Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
import type { JsonValue } from "./jsonValue.js";
import { ProviderAdapterError } from "./providerAdapterError.js";
import type { AnalysisErrorOptions } from "./analysisErrorBase.js";
/** Provider resources could not be proven closed after bounded cleanup. */
export class ProviderCleanupError extends ProviderAdapterError {
override cleanupIncomplete = true;
override readonly userMessage =
"Provider cleanup could not be fully confirmed. Review the reported local resources before opening another target.";
constructor(
providerId: string,
resources: readonly string[],
diagnostics: Readonly<Record<string, JsonValue>>,
/** Identify the operation owning these resources; binary callers retain their default. */
options?: Omit<AnalysisErrorOptions, "diagnostics"> & {
readonly operation?: string;
readonly remediationAction?: string;
},
) {
const { operation = "close_binary", ...errorOptions } = options ?? {};
super(providerId, operation, {
...errorOptions,
diagnostics,
});
this.setCleanupResources(resources);
}
}