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

Function showPluginInstallResult

apps/kimi-code/src/tui/commands/plugins.ts:488–502  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  beforeList: readonly PluginSummary[],
  summary: PluginSummary,
)

Source from the content-addressed store, hash-verified

486const PLUGIN_RELOAD_HINT = 'Run /new or /reload to apply plugin changes.';
487
488function showPluginInstallResult(
489 host: SlashCommandHost,
490 beforeList: readonly PluginSummary[],
491 summary: PluginSummary,
492): void {
493 const previous = beforeList.find((entry) => entry.id === summary.id);
494 const serverWord = summary.mcpServerCount === 1 ? 'server' : 'servers';
495 const mcpHint =
496 summary.mcpServerCount > 0
497 ? ` Declares ${summary.mcpServerCount} MCP ${serverWord}; enabled by default and configurable from /plugins.`
498 : '';
499 const action = describeInstallAction(previous, summary);
500 host.showStatus(`${action} (${summary.id}).${mcpHint}`);
501 host.showStatus(PLUGIN_RELOAD_HINT, 'warning');
502}
503
504function describeInstallAction(
505 previous: PluginSummary | undefined,

Callers 1

installPluginFromSourceFunction · 0.85

Calls 2

describeInstallActionFunction · 0.85
showStatusMethod · 0.65

Tested by

no test coverage detected