MCPcopy
hub / github.com/MiniMax-AI/cli / fetchManifest

Function fetchManifest

src/update/self-update.ts:85–90  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

83}
84
85async function fetchManifest(version: string): Promise<Manifest> {
86 const url = `https://github.com/${REPO}/releases/download/${version}/manifest.json`;
87 const res = await fetch(url, { signal: AbortSignal.timeout(10_000) });
88 if (!res.ok) throw new CLIError(`manifest.json not found for ${version}.`, ExitCode.GENERAL);
89 return res.json() as Promise<Manifest>;
90}
91
92async function verifySha256(filePath: string, expected: string): Promise<void> {
93 const { createHash } = await import('crypto');

Callers 1

resolveUpdateTargetFunction · 0.85

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected