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

Function installPluginFromSource

apps/kimi-code/src/tui/commands/plugins.ts:474–484  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  source: string,
)

Source from the content-addressed store, hash-verified

472}
473
474async function installPluginFromSource(
475 host: SlashCommandHost,
476 source: string,
477): Promise<void> {
478 const session = host.requireSession();
479 const beforeList = await session.listPlugins();
480 const summary = await session.installPlugin(
481 resolvePluginInstallSource(source, host.state.appState.workDir),
482 );
483 showPluginInstallResult(host, beforeList, summary);
484}
485
486const PLUGIN_RELOAD_HINT = 'Run /new or /reload to apply plugin changes.';
487

Callers 2

handlePluginsCommandFunction · 0.85
installFromPanelFunction · 0.85

Calls 5

showPluginInstallResultFunction · 0.85
requireSessionMethod · 0.65
listPluginsMethod · 0.45
installPluginMethod · 0.45

Tested by

no test coverage detected