MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isAttributionHeaderEnabled

Function isAttributionHeaderEnabled

src/constants/system.ts:51–56  ·  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

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

Callers 1

getAttributionHeaderFunction · 0.85

Calls 2

isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected