/** * codex spawn adapter: runs one subagent as a headless `codex exec` * subprocess. * * Contract notes (LIVE-VERIFIED 2026-07-16 against codex-cli 0.144.5: flags * present, schema-gated triage + text stages round-trip via `--adapter codex`): * - `codex exec ""` is the non-interactive mode. * - The final assistant message is captured via `--output-last-message ` * (a temp file), which is far more drift-tolerant than parsing the * experimental `--json` JSONL event stream. * - `--skip-git-repo-check` keeps non-repo cwds working; `--sandbox * workspace-write` matches workflow-stage expectations (children may edit). * - No per-run cost or session-id surface in this mode → both left undefined. * - No max-turns equivalent → `maxTurns` is accepted and ignored (documented * in the CLI docs page). */ import type { AdapterInvocation, AdapterRawResult } from "../adapters/types.js"; import type { Spawner, SpawnRequest, SpawnResult } from "./types.js"; export declare function buildCodexInvocation(req: SpawnRequest, resultFile?: string): AdapterInvocation; export declare function normalizeCodexResult(raw: AdapterRawResult): SpawnResult; export declare const codexSpawner: Spawner; //# sourceMappingURL=spawn-codex.d.ts.map