()
| 135 | }); |
| 136 | } |
| 137 | async function loadRawTranscriptJsonl(): Promise<string | null> { |
| 138 | try { |
| 139 | const transcriptPath = getTranscriptPath(); |
| 140 | const { |
| 141 | size |
| 142 | } = await stat(transcriptPath); |
| 143 | if (size > MAX_TRANSCRIPT_READ_BYTES) { |
| 144 | logForDebugging(`Skipping raw transcript read: file too large (${size} bytes)`, { |
| 145 | level: 'warn' |
| 146 | }); |
| 147 | return null; |
| 148 | } |
| 149 | return await readFile(transcriptPath, 'utf-8'); |
| 150 | } catch { |
| 151 | return null; |
| 152 | } |
| 153 | } |
| 154 | export function Feedback({ |
| 155 | abortSignal, |
| 156 | messages, |
no test coverage detected