* Check if attribution header is enabled. * Enabled by default, can be disabled via env var or GrowthBook killswitch.
()
| 50 | * Enabled by default, can be disabled via env var or GrowthBook killswitch. |
| 51 | */ |
| 52 | function isAttributionHeaderEnabled(): boolean { |
| 53 | if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_ATTRIBUTION_HEADER)) { |
| 54 | return false |
| 55 | } |
| 56 | return getFeatureValue_CACHED_MAY_BE_STALE('tengu_attribution_header', true) |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Get attribution header for API requests. |
no test coverage detected