MCPcopy Create free account
hub / github.com/Noumena-Network/code / marketplaceRemoveHandler

Function marketplaceRemoveHandler

src/cli/handlers/plugins.ts:591–609  ·  view source on GitHub ↗
(
  name: string,
  options: { cowork?: boolean },
)

Source from the content-addressed store, hash-verified

589
590// marketplace remove (lines 5576–5598)
591export async function marketplaceRemoveHandler(
592 name: string,
593 options: { cowork?: boolean },
594): Promise<void> {
595 if (options.cowork) setUseCoworkPlugins(true)
596 try {
597 await removeMarketplaceSource(name)
598 clearAllCaches()
599
600 logEvent('ncode_marketplace_removed', {
601 marketplace_name:
602 name as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
603 })
604
605 cliOk(`${figures.tick} Successfully removed marketplace: ${name}`)
606 } catch (error) {
607 handleMarketplaceError(error, 'remove marketplace')
608 }
609}
610
611// marketplace update (lines 5609–5672)
612export async function marketplaceUpdateHandler(

Callers 1

runFunction · 0.85

Calls 6

setUseCoworkPluginsFunction · 0.85
removeMarketplaceSourceFunction · 0.85
clearAllCachesFunction · 0.85
cliOkFunction · 0.85
handleMarketplaceErrorFunction · 0.85
logEventFunction · 0.50

Tested by

no test coverage detected