/** * Exit code constants and ErrorCode-to-exit-code mapping. * * @see docs/10-cli-reference.md Section 4 */ import type { ErrorCode } from '@a5c-ai/comm-adapter'; /** CLI exit code constants. */ export declare const ExitCode: { readonly SUCCESS: 0; readonly GENERAL_ERROR: 1; readonly USAGE_ERROR: 2; readonly AGENT_NOT_FOUND: 3; readonly AGENT_NOT_INSTALLED: 4; readonly AUTH_ERROR: 5; readonly CAPABILITY_ERROR: 6; readonly CONFIG_ERROR: 7; readonly SESSION_NOT_FOUND: 8; readonly PROFILE_NOT_FOUND: 9; readonly PLUGIN_ERROR: 10; readonly TIMEOUT: 11; readonly AGENT_CRASHED: 12; readonly ABORTED: 13; readonly RATE_LIMITED: 14; readonly CONTEXT_EXCEEDED: 15; }; export type ExitCodeValue = (typeof ExitCode)[keyof typeof ExitCode]; /** * Map an ErrorCode to an exit code. * * @see docs/10-cli-reference.md Section 4.1 */ export declare function errorCodeToExitCode(code: ErrorCode): ExitCodeValue;