| 8 | import { spawnCodex, terminateCodexProcessTree } from "./codex-spawn.js"; |
| 9 | |
| 10 | interface WorkerOptions { |
| 11 | args: string[]; |
| 12 | command: string; |
| 13 | timeoutMs: number; |
| 14 | resultPath: string; |
| 15 | stdoutPath: string; |
| 16 | stderrPath: string; |
| 17 | tailBytes: number; |
| 18 | maxOutputFileBytes: number; |
| 19 | } |
| 20 | |
| 21 | const options = JSON.parse(readFileSync(process.argv[2] ?? "", "utf8")) as WorkerOptions; |
| 22 | const stdout = openCodexOutputCapture(options.stdoutPath, { |
nothing calls this directly
no outgoing calls
no test coverage detected