(home: string, ymd: string, content: string)
| 50 | } |
| 51 | |
| 52 | function writeCodexSession(home: string, ymd: string, content: string): string { |
| 53 | const [y, m, d] = ymd.split("-"); |
| 54 | const dir = join(home, ".codex", "sessions", y, m, d); |
| 55 | mkdirSync(dir, { recursive: true }); |
| 56 | const file = join(dir, `rollout-${Date.now()}.jsonl`); |
| 57 | writeFileSync(file, content, "utf-8"); |
| 58 | return file; |
| 59 | } |
| 60 | |
| 61 | // ── --help and --probe ───────────────────────────────────────────────────── |
| 62 |
no outgoing calls
no test coverage detected