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

Function main

apps/kimi-code/scripts/update-catalog.mjs:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85async function main() {
86 console.log(`Fetching ${modelsUrl} ...`);
87 const json = await fetchCatalog(modelsUrl);
88 mkdirSync(dirname(outFile), { recursive: true });
89 writeFileSync(outFile, json, "utf-8");
90 console.log(`Wrote ${outFile} (${(json.length / 1024).toFixed(0)} KB JSON)`);
91}
92
93main().catch((error) => {
94 console.error(error.message);

Callers 1

update-catalog.mjsFile · 0.70

Calls 2

fetchCatalogFunction · 0.70
logMethod · 0.65

Tested by

no test coverage detected