()
| 66 | } |
| 67 | |
| 68 | function getAllowedFirstPartyHosts(): string[] { |
| 69 | const allowedHosts = [ |
| 70 | ...FIRST_PARTY_NOUMENA_HOSTS, |
| 71 | ...FIRST_PARTY_ANTHROPIC_HOSTS, |
| 72 | ] |
| 73 | if (process.env.USER_TYPE === 'ant') { |
| 74 | allowedHosts.push('api-staging.anthropic.com') |
| 75 | } |
| 76 | return allowedHosts |
| 77 | } |
| 78 | |
| 79 | export function isFirstPartyBaseUrlValue( |
| 80 | baseUrl: string | undefined, |
no outgoing calls
no test coverage detected