* Extract provider auth failure details from Copilot output when available. * @param {string} output * @returns {{ providerUrl: string, statusCode: string } | null}
(output)
| 372 | * @returns {{ providerUrl: string, statusCode: string } | null} |
| 373 | */ |
| 374 | function parseProviderAuthFailure(output) { |
| 375 | const match = output.match(/Authentication failed with provider at (\S+) \(HTTP (\d+)\)\.?/i); |
| 376 | if (!match) { |
| 377 | return null; |
| 378 | } |
| 379 | return { |
| 380 | providerUrl: match[1], |
| 381 | statusCode: match[2], |
| 382 | }; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * Determine whether a provider URL likely points at the gh-aw API proxy sidecar. |
no outgoing calls
no test coverage detected