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

Method remove

packages/agent-core/src/plugin/manager.ts:175–181  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

173 }
174
175 async remove(id: string): Promise<void> {
176 const key = normalizePluginId(id);
177 if (!this.records.delete(key)) {
178 throw new Error(`Plugin "${id}" is not installed`);
179 }
180 await this.persist();
181 }
182
183 async reload(): Promise<ReloadSummary> {
184 const prevIds = new Set(this.records.keys());

Callers

nothing calls this directly

Calls 3

persistMethod · 0.95
normalizePluginIdFunction · 0.90
deleteMethod · 0.65

Tested by

no test coverage detected