()
| 151 | } |
| 152 | |
| 153 | async function loadRawTranscriptJsonl(): Promise<string | null> { |
| 154 | try { |
| 155 | const transcriptPath = getTranscriptPath(); |
| 156 | const { size } = await stat(transcriptPath); |
| 157 | if (size > MAX_TRANSCRIPT_READ_BYTES) { |
| 158 | logForDebugging(`Skipping raw transcript read: file too large (${size} bytes)`, { level: 'warn' }); |
| 159 | return null; |
| 160 | } |
| 161 | return await readFile(transcriptPath, 'utf-8'); |
| 162 | } catch { |
| 163 | return null; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | export function Feedback({ |
| 168 | abortSignal, |
no test coverage detected