MCPcopy
hub / github.com/codeaashu/claude-code / marketplaceRemoveHandler

Function marketplaceRemoveHandler

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

Source from the content-addressed store, hash-verified

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

Callers 1

runFunction · 0.85

Calls 6

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

Tested by

no test coverage detected