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