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

Method materialize

packages/agent-core/src/plugin/manager.ts:300–314  ·  view source on GitHub ↗
(entry: InstalledRecord)

Source from the content-addressed store, hash-verified

298 }
299
300 private async materialize(entry: InstalledRecord): Promise<PluginRecord> {
301 const parsed = await parseManifest(entry.root);
302 return recordFrom({
303 id: entry.id,
304 root: entry.root,
305 enabled: entry.enabled,
306 installedAt: entry.installedAt,
307 updatedAt: entry.updatedAt,
308 originalSource: entry.originalSource,
309 capabilities: entry.capabilities,
310 github: entry.github,
311 source: entry.source,
312 parsed,
313 });
314 }
315}
316
317async function normalizeInstallRoot(rootPath: string): Promise<string> {

Callers 2

loadMethod · 0.95
reloadMethod · 0.95

Calls 2

parseManifestFunction · 0.90
recordFromFunction · 0.85

Tested by

no test coverage detected