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

Function trackUpdatePrompted

apps/kimi-code/src/cli/update/preflight.ts:424–439  ·  view source on GitHub ↗
(
  track: RunUpdatePreflightOptions['track'],
  currentVersion: string,
  target: UpdateTarget,
  source: InstallSource,
  decision: UpdateDecision,
  rolloutTelemetry: RolloutTelemetry,
)

Source from the content-addressed store, hash-verified

422}
423
424function trackUpdatePrompted(
425 track: RunUpdatePreflightOptions['track'],
426 currentVersion: string,
427 target: UpdateTarget,
428 source: InstallSource,
429 decision: UpdateDecision,
430 rolloutTelemetry: RolloutTelemetry,
431): void {
432 trackUpdateEvent(track, 'update_prompted', {
433 current_version: currentVersion,
434 target_version: target.version,
435 source,
436 decision,
437 ...rolloutTelemetry,
438 });
439}
440
441function trackUpdateEvent(
442 track: RunUpdatePreflightOptions['track'],

Callers 1

runUpdatePreflightFunction · 0.85

Calls 1

trackUpdateEventFunction · 0.85

Tested by

no test coverage detected