( host: SlashCommandHost, plugins?: readonly PluginSummary[], )
| 446 | } |
| 447 | |
| 448 | async 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 | |
| 463 | async function renderPluginInfo(host: SlashCommandHost, id: string): Promise<void> { |
| 464 | const info = await host.requireSession().getPluginInfo(id); |
no test coverage detected