( headers: Record<string, string>, isNonInteractiveSession: boolean, )
| 316 | } |
| 317 | |
| 318 | async function configureApiKeyHeaders( |
| 319 | headers: Record<string, string>, |
| 320 | isNonInteractiveSession: boolean, |
| 321 | ): Promise<void> { |
| 322 | const token = |
| 323 | process.env.ANTHROPIC_AUTH_TOKEN || |
| 324 | (await getApiKeyFromApiKeyHelper(isNonInteractiveSession)) |
| 325 | if (token) { |
| 326 | headers['Authorization'] = `Bearer ${token}` |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | function getCustomHeaders(): Record<string, string> { |
| 331 | const customHeaders: Record<string, string> = {} |
no test coverage detected