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

Function getFastModeRuntimeState

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

Source from the content-addressed store, hash-verified

199export const onCooldownExpired = cooldownExpired.subscribe
200
201export function getFastModeRuntimeState(): FastModeRuntimeState {
202 if (
203 runtimeState.status === 'cooldown' &&
204 Date.now() >= runtimeState.resetAt
205 ) {
206 if (isFastModeEnabled() && !hasLoggedCooldownExpiry) {
207 logForDebugging('Fast mode cooldown expired, re-enabling fast mode')
208 hasLoggedCooldownExpiry = true
209 cooldownExpired.emit()
210 }
211 runtimeState = { status: 'active' }
212 }
213 return runtimeState
214}
215
216export function triggerFastModeCooldown(
217 resetTimestamp: number,

Callers 2

isFastModeCooldownFunction · 0.85
FastModePickerFunction · 0.85

Calls 3

isFastModeEnabledFunction · 0.85
logForDebuggingFunction · 0.85
emitMethod · 0.80

Tested by

no test coverage detected