MCPcopy Create free account
hub / github.com/Noumena-Network/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.NCODE_ATTRIBUTION_HEADER ?? process.env.CLAUDE_CODE_ATTRIBUTION_HEADER)) {
54 return false
55 }
56 return getFeatureValue_CACHED_MAY_BE_STALE('ncode_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