import { n as CLI_RESUME_WATCHDOG_DEFAULTS, t as CLI_FRESH_WATCHDOG_DEFAULTS } from "./cli-watchdog-defaults-CcHwIlSf.js";
//#region extensions/openai/cli-backend.ts
const CODEX_CLI_DEFAULT_MODEL_REF = "codex-cli/gpt-5.5";
function buildOpenAICodexCliBackend() {
	return {
		id: "codex-cli",
		liveTest: {
			defaultModelRef: CODEX_CLI_DEFAULT_MODEL_REF,
			defaultImageProbe: true,
			defaultMcpProbe: true,
			docker: {
				npmPackage: "@openai/codex@0.128.0",
				binaryName: "codex"
			}
		},
		bundleMcp: true,
		bundleMcpMode: "codex-config-overrides",
		nativeToolMode: "always-on",
		config: {
			command: "codex",
			args: [
				"exec",
				"--json",
				"--color",
				"never",
				"--sandbox",
				"workspace-write",
				"-c",
				"service_tier=\"fast\"",
				"--skip-git-repo-check"
			],
			resumeArgs: [
				"exec",
				"resume",
				"{sessionId}",
				"-c",
				"sandbox_mode=\"workspace-write\"",
				"-c",
				"service_tier=\"fast\"",
				"--skip-git-repo-check"
			],
			output: "jsonl",
			resumeOutput: "text",
			input: "arg",
			modelArg: "--model",
			sessionIdFields: ["thread_id"],
			sessionMode: "existing",
			systemPromptFileConfigArg: "-c",
			systemPromptFileConfigKey: "model_instructions_file",
			systemPromptWhen: "first",
			imageArg: "--image",
			imageMode: "repeat",
			imagePathScope: "workspace",
			reliability: { watchdog: {
				fresh: { ...CLI_FRESH_WATCHDOG_DEFAULTS },
				resume: { ...CLI_RESUME_WATCHDOG_DEFAULTS }
			} },
			serialize: true
		}
	};
}
//#endregion
export { buildOpenAICodexCliBackend as t };
