(opts: CodexSessionScannerOptions)
| 16 | } |
| 17 | |
| 18 | export 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 | |
| 32 | class CodexSessionScannerImpl extends BaseSessionScanner<CodexSessionEvent> { |
| 33 | private transcriptPath: string | null; |
no test coverage detected