import type { AdapterEnvironmentCheck } from "@penclipai/adapter-utils"; import type { AdapterExecutionTarget } from "@penclipai/adapter-utils/execution-target"; export declare const CODEX_CLI_VERSION_INCOMPATIBLE_CHECK_CODE = "codex_cli_version_incompatible"; export declare const CODEX_CLI_VERSION_COMPATIBLE_CHECK_CODE = "codex_cli_version_compatible"; export declare const CODEX_HELLO_PROBE_MODEL_REJECTED_CHECK_CODE = "codex_hello_probe_model_rejected"; /** * Run `codex --version` where the run would execute it. Never cached: an * operator may upgrade Codex, or promote a new sandbox image, while the * Paperclip server keeps running, and the next Test should see the change. */ export declare function readCodexCommandVersion(input: { runId: string; command: string; target: AdapterExecutionTarget | null | undefined; cwd: string; env: Record; }): Promise; /** * Compare the installed Codex CLI with the floor the configured model needs * for ChatGPT sign-in. Returns null when the model has no verified floor, so * callers skip the version probe entirely for such models. */ export declare function checkCodexCliVersionForModel(input: { runId: string; model: string | null | undefined; command: string; target: AdapterExecutionTarget | null | undefined; cwd: string; env: Record; }): Promise<{ check: AdapterEnvironmentCheck; compatible: boolean; detectedVersion: string | null; } | null>; /** * The backend rejects a model for ChatGPT sign-in with one fixed sentence. * Map it to a dedicated check so the cause (stale CLI, or a plan that does * not include the model) is named instead of a generic probe failure. */ export declare function codexHelloProbeModelRejectionCheck(input: { evidence: string; detectedVersion: string | null; targetIsSandbox: boolean; }): AdapterEnvironmentCheck | null; //# sourceMappingURL=cli-version.d.ts.map