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

Function loadMarketplaceCatalog

apps/kimi-code/src/tui/commands/plugins.ts:203–218  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  panel: PluginsPanelComponent,
  source?: string,
)

Source from the content-addressed store, hash-verified

201}
202
203async 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
220async function showPluginMcpPicker(
221 host: SlashCommandHost,

Callers 1

showPluginsPickerFunction · 0.85

Calls 5

loadPluginMarketplaceFunction · 0.90
formatErrorMessageFunction · 0.90
setMarketplaceMethod · 0.80
setMarketplaceErrorMethod · 0.80
requestRenderMethod · 0.65

Tested by

no test coverage detected