()
| 148 | ]; |
| 149 | |
| 150 | const readServerLog = (): string => { |
| 151 | const texts = serverLogCandidates.flatMap((path) => { |
| 152 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: probing which of the two stdout sinks this run uses |
| 153 | try { |
| 154 | return [readFileSync(path, "utf8")]; |
| 155 | } catch { |
| 156 | return []; |
| 157 | } |
| 158 | }); |
| 159 | return texts.join("\n"); |
| 160 | }; |
| 161 | |
| 162 | const REPORT_PREFIX = "[api] unhandled cause: "; |
| 163 |