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

Function getFastModeRuntimeState

src/utils/fastMode.ts:199–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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