UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

19 lines • 974 B
export type CursorCliErrorKind = "binary_missing" | "invalid_api_key" | "keychain_locked" | "invalid_model" | "rate_limit" | "auth_error" | "context_overflow" | "network" | "malformed_stream" | "other"; export type CursorCliErrorClassification = { kind: CursorCliErrorKind; retryable: boolean; blockMs?: number; }; export type CursorCliErrorInput = { exitCode?: unknown; stderr?: unknown; resultEvent?: unknown; thrown?: unknown; }; export declare const DEFAULT_RATE_LIMIT_BLOCK_MS = 60000; export declare const MAX_RATE_LIMIT_BLOCK_MS: number; /** Add each probe-observed Cursor context failure as one exact line. */ export declare const CURSOR_CONTEXT_OVERFLOW_WORDINGS: readonly string[]; /** Classifies observed cursor-agent stderr, result events, and typed transport failures. */ export declare function classifyCursorCliError(input: CursorCliErrorInput | null | undefined): CursorCliErrorClassification; //# sourceMappingURL=errors.d.ts.map