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

Function importedDirOf

apps/vis/server/src/lib/import-store.ts:34–37  ·  view source on GitHub ↗
(home: string, importId: string)

Source from the content-addressed store, hash-verified

32}
33
34export function importedDirOf(home: string, importId: string): string {
35 if (!isImportId(importId)) throw new ZipImportError(`invalid import id: "${importId}"`);
36 return join(importedRootOf(home), importId);
37}
38
39function newImportId(): string {
40 return `imp_${randomBytes(6).toString('hex')}`;

Callers 5

listSessionsFunction · 0.90
readImportedDetailFunction · 0.90
importSessionZipFunction · 0.85
readImportMetaFunction · 0.85
deleteImportedFunction · 0.85

Calls 2

isImportIdFunction · 0.85
importedRootOfFunction · 0.85

Tested by

no test coverage detected