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

Function readManifest

apps/vis/server/src/lib/import-store.ts:128–134  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

126}
127
128async function readManifest(dir: string): Promise<ImportManifest | null> {
129 try {
130 return sanitizeManifest(JSON.parse(await readFile(join(dir, 'manifest.json'), 'utf8')));
131 } catch {
132 return null;
133 }
134}
135
136/** Declared string fields of {@link ImportManifest}. `shellEnv` is free-form. */
137const MANIFEST_STRING_FIELDS = [

Callers 1

importSessionZipFunction · 0.85

Calls 2

sanitizeManifestFunction · 0.85
readFileFunction · 0.50

Tested by

no test coverage detected