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

Function renderPluginInfo

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

Source from the content-addressed store, hash-verified

461}
462
463async function renderPluginInfo(host: SlashCommandHost, id: string): Promise<void> {
464 const info = await host.requireSession().getPluginInfo(id);
465 const panel = new UsagePanelComponent(
466 () => buildPluginsInfoLines({ info }),
467 'primary',
468 ` ${info.id} `,
469 );
470 host.state.transcriptContainer.addChild(panel);
471 host.state.ui.requestRender();
472}
473
474async function installPluginFromSource(
475 host: SlashCommandHost,

Callers 2

handlePluginsCommandFunction · 0.85

Calls 5

buildPluginsInfoLinesFunction · 0.90
requireSessionMethod · 0.65
requestRenderMethod · 0.65
getPluginInfoMethod · 0.45
addChildMethod · 0.45

Tested by

no test coverage detected