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

Function renderPluginsList

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

Source from the content-addressed store, hash-verified

446}
447
448async function renderPluginsList(
449 host: SlashCommandHost,
450 plugins?: readonly PluginSummary[],
451): Promise<void> {
452 const currentPlugins = plugins ?? (await host.requireSession().listPlugins());
453 const title = ` Plugins (${currentPlugins.length}) `;
454 const panel = new UsagePanelComponent(
455 () => buildPluginsListLines({ plugins: currentPlugins }),
456 'primary',
457 title,
458 );
459 host.state.transcriptContainer.addChild(panel);
460 host.state.ui.requestRender();
461}
462
463async function renderPluginInfo(host: SlashCommandHost, id: string): Promise<void> {
464 const info = await host.requireSession().getPluginInfo(id);

Callers 1

handlePluginsCommandFunction · 0.85

Calls 5

buildPluginsListLinesFunction · 0.90
requireSessionMethod · 0.65
requestRenderMethod · 0.65
listPluginsMethod · 0.45
addChildMethod · 0.45

Tested by

no test coverage detected