import type { HarnessTestDriver, HarnessDriverContext, ParsedRun } from "../../core/harness-driver.js"; /** * The non-interactive `codex exec` argv. The mock-wiring `-c` flags * (`ctx.mockArgs`, from `runtime.wireMock`) MUST follow `exec` — placed before * `exec` they're parsed as global flags and ignored (codex falls back to the * real OpenAI provider). `--ephemeral` + * `--dangerously-bypass-approvals-and-sandbox` make it run unattended; * `--skip-git-repo-check` lets it run in a bare temp dir; `--ignore-user-config` * keeps the host's `~/.codex` out. The prompt is the trailing positional. * `ctx.allowedTools` is ignored: `codex exec` runs with approvals bypassed, so * everything is already approved. `ctx.tools` is refused (throws): Codex has no * per-run tool availability. * Pure, so the arg shape is unit-tested. */ export declare function buildCodexArgs(ctx: HarnessDriverContext): string[]; /** * Extract the final assistant text from codex stdout. Codex `exec` prints the * assistant message as plain text (no `--json` here); we return the trimmed * stdout as the output. Pure, so it's unit-tested without spawning codex. */ export declare function parseCodexRun(stdout: string): ParsedRun; export declare const codexDriver: HarnessTestDriver; //# sourceMappingURL=driver.d.ts.map