MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / buildQueryConfig

Function buildQueryConfig

source code/query/config.ts:31–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

queryLoopFunction · 0.85

Calls 3

getSessionIdFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected