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

Function rolloutTelemetryFor

apps/kimi-code/src/cli/update/preflight.ts:197–211  ·  view source on GitHub ↗
(
  deviceId: string,
  targetVersion: string,
  manifest: UpdateManifest | null,
  bypassRollout: boolean,
)

Source from the content-addressed store, hash-verified

195}
196
197function rolloutTelemetryFor(
198 deviceId: string,
199 targetVersion: string,
200 manifest: UpdateManifest | null,
201 bypassRollout: boolean,
202): RolloutTelemetry {
203 const bucket = rolloutBucket(deviceId, targetVersion);
204 return {
205 rollout_bucket: bucket,
206 rollout_delay_seconds:
207 manifest === null || bypassRollout ? 0 : rolloutDelayForBucket(manifest.rollout, bucket),
208 rollout_from_manifest: manifest !== null,
209 rollout_bypassed: bypassRollout,
210 };
211}
212
213type RolloutCheckPhase = 'startup-cache' | 'background-refresh' | 'prompt-refresh';
214

Callers 2

runUpdatePreflightFunction · 0.85

Calls 2

rolloutBucketFunction · 0.90
rolloutDelayForBucketFunction · 0.90

Tested by

no test coverage detected