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

Method installPlugin

packages/agent-core/src/rpc/core-impl.ts:841–846  ·  view source on GitHub ↗
(payload: InstallPluginPayload)

Source from the content-addressed store, hash-verified

839 }
840
841 async installPlugin(payload: InstallPluginPayload): Promise<PluginSummary> {
842 await this.pluginsReady;
843 this.assertPluginsLoaded();
844 const record = await this.plugins.install(payload.source);
845 return this.plugins.summaries().find((s) => s.id === record.id)!;
846 }
847
848 async listPlugins(_: EmptyPayload): Promise<readonly PluginSummary[]> {
849 await this.pluginsReady;

Callers 2

runtime.test.tsFile · 0.45

Calls 3

assertPluginsLoadedMethod · 0.95
summariesMethod · 0.80
installMethod · 0.65

Tested by

no test coverage detected