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

Function isBriefEntitled

src/tools/BriefTool/BriefTool.ts:88–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 * the env var alone also sets userMsgOptIn via maybeActivateBrief().
87 */
88export function isBriefEntitled(): boolean {
89 // Positive ternary — see docs/feature-gating.md. Negative early-return
90 // would not eliminate the GB gate string from external builds.
91 return feature('KAIROS') || feature('KAIROS_BRIEF')
92 ? getKairosActive() ||
93 isEnvTruthy(process.env.CLAUDE_CODE_BRIEF) ||
94 getFeatureValue_CACHED_WITH_REFRESH(
95 'tengu_kairos_brief',
96 false,
97 KAIROS_BRIEF_REFRESH_MS,
98 )
99 : false
100}
101
102/**
103 * Unified activation gate for the Brief tool. Governs model-facing behavior

Callers 4

runFunction · 0.85
maybeActivateBriefFunction · 0.85
isBriefEnabledFunction · 0.85
callFunction · 0.85

Calls 4

featureFunction · 0.85
getKairosActiveFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected