( host: SlashCommandHost, panel: PluginsPanelComponent, source?: string, )
| 201 | } |
| 202 | |
| 203 | async function loadMarketplaceCatalog( |
| 204 | host: SlashCommandHost, |
| 205 | panel: PluginsPanelComponent, |
| 206 | source?: string, |
| 207 | ): Promise<void> { |
| 208 | try { |
| 209 | const marketplace = await loadPluginMarketplace({ |
| 210 | workDir: host.state.appState.workDir, |
| 211 | source, |
| 212 | }); |
| 213 | panel.setMarketplace(marketplace.plugins, marketplace.source); |
| 214 | } catch (error) { |
| 215 | panel.setMarketplaceError(formatErrorMessage(error)); |
| 216 | } |
| 217 | host.state.ui.requestRender(); |
| 218 | } |
| 219 | |
| 220 | async function showPluginMcpPicker( |
| 221 | host: SlashCommandHost, |
no test coverage detected