( headers: Record<string, string>, isNonInteractiveSession: boolean, )
| 339 | } |
| 340 | |
| 341 | async function configureApiKeyHeaders( |
| 342 | headers: Record<string, string>, |
| 343 | isNonInteractiveSession: boolean, |
| 344 | ): Promise<void> { |
| 345 | const token = |
| 346 | process.env.ANTHROPIC_AUTH_TOKEN || |
| 347 | (await getApiKeyFromApiKeyHelper(isNonInteractiveSession)) |
| 348 | if (token) { |
| 349 | headers['Authorization'] = `Bearer ${token}` |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | function getCustomHeaders(): Record<string, string> { |
| 354 | const customHeaders: Record<string, string> = {} |
no test coverage detected