(message: { type?: string; content?: string })
| 54 | let scanner: GeminiScannerHandle | null = null; |
| 55 | |
| 56 | const handleTranscriptMessage = (message: { type?: string; content?: string }) => { |
| 57 | if (message.type === 'user' && typeof message.content === 'string') { |
| 58 | session.sendUserMessage(message.content); |
| 59 | return; |
| 60 | } |
| 61 | if (message.type === 'gemini' && typeof message.content === 'string') { |
| 62 | session.sendAgentMessage({ |
| 63 | type: 'message', |
| 64 | message: message.content, |
| 65 | id: randomUUID() |
| 66 | }); |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | const ensureScanner = async (transcriptPath: string): Promise<void> => { |
| 71 | if (scanner) { |
nothing calls this directly
no test coverage detected