MCPcopy Create free account
hub / github.com/tiann/hapi / writeTranscriptMeta

Function writeTranscriptMeta

cli/src/codex/codexLocalLauncher.test.ts:149–161  ·  view source on GitHub ↗
(fileName: string, sessionId: string)

Source from the content-addressed store, hash-verified

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()}`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected