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

Method load

packages/agent-core/src/plugin/manager.ts:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 async load(): Promise<void> {
46 const file = await readInstalled(this.kimiHomeDir);
47 const next = new Map<string, PluginRecord>();
48 for (const entry of file.plugins) {
49 next.set(entry.id, await this.materialize(entry));
50 }
51 this.records = next;
52 }
53
54 list(): readonly PluginRecord[] {
55 return [...this.records.values()].toSorted((a, b) => a.id.localeCompare(b.id));

Callers

nothing calls this directly

Calls 3

materializeMethod · 0.95
readInstalledFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected