(fileName: string, sessionId: string)
| 147 | |
| 148 | const wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); |
| 149 | const writeTranscriptMeta = async (fileName: string, sessionId: string): Promise<string> => { |
| 150 | const transcriptPath = join(tempDir, fileName); |
| 151 | await writeFile( |
| 152 | transcriptPath, |
| 153 | JSON.stringify({ |
| 154 | type: 'session_meta', |
| 155 | payload: { |
| 156 | id: sessionId |
| 157 | } |
| 158 | }) + '\n' |
| 159 | ); |
| 160 | return transcriptPath; |
| 161 | }; |
| 162 | |
| 163 | beforeEach(async () => { |
| 164 | tempDir = join(tmpdir(), `codex-local-launcher-${Date.now()}`); |
no outgoing calls
no test coverage detected