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

Function fetchUpdateManifestFromCdn

apps/kimi-code/src/cli/update/cdn.ts:72–78  ·  view source on GitHub ↗
(fetchImpl: typeof fetch)

Source from the content-addressed store, hash-verified

70}
71
72async function fetchUpdateManifestFromCdn(fetchImpl: typeof fetch): Promise<UpdateManifest> {
73 const response = await fetchWithTimeout(fetchImpl, KIMI_CODE_CDN_LATEST_JSON_URL);
74 if (!response.ok) {
75 throw new Error(`CDN /latest.json returned HTTP ${response.status}`);
76 }
77 return UpdateManifestSchema.parse(JSON.parse(await response.text()));
78}
79
80/**
81 * Fetch the rollout manifest, falling back to the plain-text `/latest` when

Callers 1

fetchLatestFromCdnFunction · 0.85

Calls 2

fetchWithTimeoutFunction · 0.70
textMethod · 0.65

Tested by

no test coverage detected