(text)
| 154 | } |
| 155 | |
| 156 | export function parseCodexJsonStream(text) { |
| 157 | const lines = String(text || "").split(/\r?\n/); |
| 158 | const events = []; |
| 159 | const ignoredLines = []; |
| 160 | |
| 161 | for (const line of lines) { |
| 162 | const trimmed = line.trim(); |
| 163 | if (!trimmed) { |
| 164 | continue; |
| 165 | } |
| 166 | |
| 167 | try { |
| 168 | events.push(JSON.parse(trimmed)); |
| 169 | } catch { |
| 170 | ignoredLines.push(line); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | return { |
| 175 | events, |
| 176 | ignoredLines, |
| 177 | }; |
| 178 | } |
| 179 | |
| 180 | export function summarizeCodexEvents(events) { |
| 181 | const errorMessages = []; |
no outgoing calls
no test coverage detected