fix(hopper): add bounded analysis recovery

This commit is contained in:
N0zoM1z0
2026-07-24 00:33:29 +09:00
committed by N0zoM1z0
parent 161377a505
commit e0bc7fd973
68 changed files with 1750 additions and 368 deletions
+20
View File
@@ -0,0 +1,20 @@
import { ProviderAdapterError } from "./errors.js";
import type { JsonValue } from "./jsonValue.js";
/** Provider resources could not be proven closed after bounded cleanup. */
export class ProviderCleanupError extends ProviderAdapterError {
override readonly cleanupIncomplete = true;
override readonly cleanupResources: readonly string[];
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>>,
options?: ErrorOptions,
) {
super(providerId, "close_binary", { ...options, diagnostics });
this.cleanupResources = [...resources];
}
}