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

Function isSpeculationEnabled

src/services/PromptSuggestion/speculation.ts:337–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335}
336
337export function isSpeculationEnabled(): boolean {
338 const enabled =
339 process.env.USER_TYPE === 'ant' &&
340 (getGlobalConfig().speculationEnabled ?? true)
341 logForDebugging(`[Speculation] enabled=${enabled}`)
342 return enabled
343}
344
345async function generatePipelinedSuggestion(
346 context: REPLHookContext,

Callers 2

startSpeculationFunction · 0.85
executePromptSuggestionFunction · 0.85

Calls 2

getGlobalConfigFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected