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

Function resolveOutputFile

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

Source from the content-addressed store, hash-verified

27]);
28
29function resolveOutputFile(args) {
30 const index = args.indexOf("--out");
31 if (index !== -1) {
32 const value = args[index + 1];
33 if (value === undefined || value.length === 0) {
34 throw new Error("Missing value for --out");
35 }
36 return resolve(process.cwd(), value);
37 }
38 return resolve(scriptDir, "../dist/built-in-catalog.json");
39}
40
41function stripModel(model) {
42 if (typeof model !== "object" || model === null) return undefined;

Callers 1

update-catalog.mjsFile · 0.85

Calls 2

cwdMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected