/** * Typed error hierarchy for the harness. Every error carries a stable machine * `code` so `--json` output and `doctor` reports stay parseable across versions. */ export declare class AihError extends Error { readonly code: string; constructor(message: string, code?: string); } /** Invalid/contradictory configuration (env or CLI). Fail-closed. */ export declare class SettingsError extends AihError { constructor(message: string); } /** A host/platform probe could not be satisfied on this OS. */ export declare class PlatformError extends AihError { constructor(message: string); } /** A staged filesystem transaction failed (and was rolled back). */ export declare class FsTxnError extends AihError { constructor(message: string); } /** A verification probe failed in a way that should halt the run. */ export declare class VerificationError extends AihError { constructor(message: string); } /** Capability not yet implemented (foundation stub). */ export declare class NotImplementedError extends AihError { constructor(message: string); } /** Existing config could not be parsed for a merge — fail closed, never partial-merge. */ export declare class MergeError extends AihError { constructor(message: string); } /** An action path escaped its intended root (path-containment violation). Fail-closed. */ export declare class PathContainmentError extends AihError { constructor(message: string); } /** An `--apply` was attempted on a dirty git worktree without `--force`. Fail-closed. */ export declare class DirtyWorktreeError extends AihError { constructor(message: string); } export interface ChangeProfileInputIssue { issueCode: string; path: string; } /** Supplied change facts are malformed or contradictory. Details are deliberately redacted. */ export declare class ChangeProfileInputError extends AihError { readonly issues: readonly ChangeProfileInputIssue[]; readonly issueTotal: number; constructor(issues: readonly ChangeProfileInputIssue[]); toJSON(): { name: string; code: string; message: string; issueTotal: number; issues: readonly ChangeProfileInputIssue[]; }; } /** A live command option or prompt file failed its bounded input contract. */ type LiveErrorCli = "codex" | "claude" | "kimi"; type LiveErrorSafety = "read_only" | "non_read_only"; declare class LiveCliError extends AihError { readonly cli: LiveErrorCli | undefined; readonly safety: LiveErrorSafety | undefined; constructor(summary: string, code: string, cli?: LiveErrorCli, safety?: LiveErrorSafety); } export declare class LiveInputError extends LiveCliError { constructor(cli?: LiveErrorCli, safety?: LiveErrorSafety); } /** Kimi's native-tools risk was not explicitly acknowledged. */ export declare class LiveConsentError extends LiveCliError { constructor(); } /** The explicitly selected local CLI cannot be launched through an allowed transport. */ export declare class LiveUnavailableError extends LiveCliError { constructor(cli: LiveErrorCli, safety: LiveErrorSafety); } /** The selected local CLI could not be spawned. */ export declare class LiveSpawnError extends LiveCliError { constructor(cli: LiveErrorCli, safety: LiveErrorSafety); } /** The selected local CLI exceeded the operator's bounded timeout. */ export declare class LiveTimeoutError extends LiveCliError { constructor(cli: LiveErrorCli, safety: LiveErrorSafety); } /** The selected local CLI's stream failed before a terminal result settled. */ export declare class LiveStreamError extends LiveCliError { constructor(cli: LiveErrorCli, safety: LiveErrorSafety); } /** The selected local CLI exited without its pinned terminal result shape. */ export declare class LiveResultError extends LiveCliError { constructor(cli: LiveErrorCli, safety: LiveErrorSafety); } export {};