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

Function createCodexSessionScanner

cli/src/codex/utils/codexSessionScanner.ts:18–30  ·  view source on GitHub ↗
(opts: CodexSessionScannerOptions)

Source from the content-addressed store, hash-verified

16}
17
18export async function createCodexSessionScanner(opts: CodexSessionScannerOptions): Promise<CodexSessionScanner> {
19 const scanner = new CodexSessionScannerImpl(opts);
20 await scanner.start();
21
22 return {
23 cleanup: async () => {
24 await scanner.cleanup();
25 },
26 setTranscriptPath: async (transcriptPath: string) => {
27 await scanner.setTranscriptPath(transcriptPath);
28 }
29 };
30}
31
32class CodexSessionScannerImpl extends BaseSessionScanner<CodexSessionEvent> {
33 private transcriptPath: string | null;

Callers 2

processTranscriptPathFunction · 0.90

Calls 3

setTranscriptPathMethod · 0.95
startMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected