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

Function isBriefEnabled

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

Source from the content-addressed store, hash-verified

124 * caller reaches here.
125 */
126export function isBriefEnabled(): boolean {
127 // Top-level feature() guard is load-bearing for DCE: Bun can constant-fold
128 // the ternary to `false` in external builds and then dead-code the BriefTool
129 // object. Composing isBriefEntitled() alone (which has its own guard) is
130 // semantically equivalent but defeats constant-folding across the boundary.
131 return feature('KAIROS') || feature('KAIROS_BRIEF')
132 ? (getKairosActive() || getUserMsgOptIn()) && isBriefEntitled()
133 : false
134}
135
136export const BriefTool = buildTool({
137 name: BRIEF_TOOL_NAME,

Callers 2

isEnabledFunction · 0.85
GlobalKeybindingHandlersFunction · 0.85

Calls 4

featureFunction · 0.85
getKairosActiveFunction · 0.85
getUserMsgOptInFunction · 0.85
isBriefEntitledFunction · 0.85

Tested by

no test coverage detected