import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { SupervisorFailedError } from "./supervisor-failed-error.mjs"; //#region ../ai/src/errors/supervisor-drift-error.d.ts type SupervisorDriftErrorOptions = AIErrorOptions & { /** Signature recorded on the snapshot being resumed. */savedSignature: string; /** Signature computed from the current supervisor definition. */ currentSignature: string; runId: string; }; /** * `supervisor.resume(runId)` loaded a snapshot whose structural * fingerprint does not match the current supervisor definition * (agent keys + descriptions + router identity + route presence). * The resume is refused — no iteration runs — and the user decides * how to recover: discard the snapshot, migrate manually, or call * `resume(runId, { force: true })` to bypass the check. * * Mirrors `WorkflowDriftError` for workflow resume — same rationale, * different primitive. */ declare class SupervisorDriftError extends SupervisorFailedError { static readonly defaultCategory: ErrorCategory; readonly savedSignature: string; readonly currentSignature: string; readonly runId: string; constructor(message: string, options: SupervisorDriftErrorOptions); } //#endregion export { SupervisorDriftError, SupervisorDriftErrorOptions }; //# sourceMappingURL=supervisor-drift-error.d.mts.map