MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / failureAttemptsFor

Function failureAttemptsFor

apps/kimi-code/src/cli/update/preflight.ts:330–332  ·  view source on GitHub ↗
(state: UpdateInstallState, target: UpdateTarget)

Source from the content-addressed store, hash-verified

328}
329
330function failureAttemptsFor(state: UpdateInstallState, target: UpdateTarget): number {
331 return state.lastFailure?.version === target.version ? state.lastFailure.attempts : 0;
332}
333
334function hasFreshActiveInstall(state: UpdateInstallState, target: UpdateTarget): boolean {
335 const active = state.active;

Callers 3

startBackgroundInstallFunction · 0.85
finishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected