import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { OrchestratorFailedError } from "./orchestrator-failed-error.mjs"; //#region ../ai/src/errors/orchestrator-cancelled-error.d.ts type OrchestratorCancelledErrorOptions = AIErrorOptions & { /** ISO-8601 timestamp at which the abort was observed by the orchestrator. */cancelledAt: string; /** The session whose turn was cancelled. */ sessionId: string; /** `controller.abort(reason)` payload when the caller supplied one. */ reason?: string; }; /** * A turn was cancelled via `AbortSignal` before it could settle * (orchestrator.md §17 — "mid-turn cancel"). The orchestrator returns * normally with `report.status: "cancelled"` and the error placed on * `result.error` rather than thrown; session state reverts to the * pre-turn checkpoint (the orchestrator does not persist a fresh row * for a cancelled turn — Q10). * * Mirrors `SupervisorCancelledError`, orchestrator scope. When an * `iterate: true` turn is cancelled mid-iteration, the underlying * `SupervisorCancelledError` rides on `cause`. */ declare class OrchestratorCancelledError extends OrchestratorFailedError { static readonly defaultCategory: ErrorCategory; readonly cancelledAt: string; readonly sessionId: string; readonly reason?: string; constructor(message: string, options: OrchestratorCancelledErrorOptions); } //#endregion export { OrchestratorCancelledError, OrchestratorCancelledErrorOptions }; //# sourceMappingURL=orchestrator-cancelled-error.d.mts.map