MCPcopy
hub / github.com/claude-code-best/claude-code / buildQueryConfig

Function buildQueryConfig

src/query/config.ts:29–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29export function buildQueryConfig(): QueryConfig {
30 return {
31 sessionId: getSessionId(),
32 gates: {
33 streamingToolExecution: checkStatsigFeatureGate_CACHED_MAY_BE_STALE(
34 'tengu_streaming_tool_execution2',
35 ),
36 emitToolUseSummaries: isEnvTruthy(
37 process.env.CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES,
38 ),
39 isAnt: process.env.USER_TYPE === 'ant',
40 // Inlined from fastMode.ts to avoid pulling its heavy module graph
41 // (axios, settings, auth, model, oauth, config) into test shards that
42 // didn't previously load it — changes init order and breaks unrelated tests.
43 fastModeEnabled: !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FAST_MODE),
44 },
45 }
46}

Callers 1

queryLoopFunction · 0.85

Calls 3

getSessionIdFunction · 0.85
isEnvTruthyFunction · 0.50

Tested by

no test coverage detected