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

Function resolveFastModeStatusFromCache

source code/utils/fastMode.ts:394–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392 * while still making fast mode availability checks work.
393 */
394export function resolveFastModeStatusFromCache(): void {
395 if (!isFastModeEnabled()) {
396 return
397 }
398 if (orgStatus.status !== 'pending') {
399 return
400 }
401 const isAnt = process.env.USER_TYPE === 'ant'
402 const cachedEnabled = getGlobalConfig().penguinModeOrgEnabled === true
403 orgStatus =
404 isAnt || cachedEnabled
405 ? { status: 'enabled' }
406 : { status: 'disabled', reason: 'unknown' }
407}
408
409export async function prefetchFastModeStatus(): Promise<void> {
410 // Skip network requests if nonessential traffic is disabled

Callers 1

runFunction · 0.85

Calls 2

isFastModeEnabledFunction · 0.85
getGlobalConfigFunction · 0.85

Tested by

no test coverage detected