MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getFastModeRuntimeState

Function getFastModeRuntimeState

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

Source from the content-addressed store, hash-verified

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

Callers 2

isFastModeCooldownFunction · 0.85
FastModePickerFunction · 0.85

Calls 4

isFastModeEnabledFunction · 0.85
nowMethod · 0.80
logForDebuggingFunction · 0.70
emitMethod · 0.45

Tested by

no test coverage detected