(line: string)
| 194 | } |
| 195 | |
| 196 | export function formatUserFacingCliStderrLine(line: string): string | undefined { |
| 197 | const trimmed = line.trim(); |
| 198 | if (!trimmed) return undefined; |
| 199 | if (/^Open this link on your local machine to\b/.test(trimmed)) return trimmed; |
| 200 | if (/^https?:\/\/\S+/.test(trimmed)) return trimmed; |
| 201 | if (/^\(.+annotations added in browser\)$/.test(trimmed)) return trimmed; |
| 202 | return undefined; |
| 203 | } |
| 204 | |
| 205 | function createCliStderrForwarder(client: OpenCodeClient) { |
| 206 | let pending = ""; |
no outgoing calls
no test coverage detected