//#region src/agent-runtime/errors.d.ts /** * Error thrown when a thread or run is not found. * The `status` property is recognized by Koa/Egg error handling * to set the corresponding HTTP response status code. */ export declare class AgentNotFoundError extends Error { status: number; constructor(message: string); } /** * Error thrown when an agent API request contains invalid input. */ export declare class AgentInvalidRequestError extends Error { status: number; constructor(message: string); } /** * Error thrown when an operation conflicts with the current state * (e.g., cancelling a completed run). */ export declare class AgentConflictError extends Error { status: number; constructor(message: string); } /** * Error thrown when a RunBuilder state transition is invalid * (e.g., calling `complete()` on a queued run). */ export declare class InvalidRunStateTransitionError extends Error { status: number; constructor(from: string, to: string); } /** * Error thrown when cancelRun waits for the executor's session to be * committed to persistent storage (e.g. Claude Code SDK jsonl on disk) * but the commit never arrives within the configured timeout. The run is * transitioned to `failed` rather than `cancelled` to reflect that the * executor never reached a resumable state. */ export declare class AgentTimeoutError extends Error { status: number; constructor(message: string); } //#endregion