MCPcopy
hub / github.com/codeaashu/claude-code / isAttributionHeaderEnabled

Function isAttributionHeaderEnabled

src/constants/system.ts:52–57  ·  view source on GitHub ↗

* Check if attribution header is enabled. * Enabled by default, can be disabled via env var or GrowthBook killswitch.

()

Source from the content-addressed store, hash-verified

50 * Enabled by default, can be disabled via env var or GrowthBook killswitch.
51 */
52function 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.

Callers 1

getAttributionHeaderFunction · 0.85

Calls 2

isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected