MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isMarketplaceAutoUpdate

Function isMarketplaceAutoUpdate

src/utils/plugins/schemas.ts:48–58  ·  view source on GitHub ↗
(
  marketplaceName: string,
  entry: { autoUpdate?: boolean },
)

Source from the content-addressed store, hash-verified

46 * @returns Whether auto-update is enabled for this marketplace
47 */
48export function isMarketplaceAutoUpdate(
49 marketplaceName: string,
50 entry: { autoUpdate?: boolean },
51): boolean {
52 const normalizedName = marketplaceName.toLowerCase()
53 return (
54 entry.autoUpdate ??
55 (ALLOWED_OFFICIAL_MARKETPLACE_NAMES.has(normalizedName) &&
56 !NO_AUTO_UPDATE_OFFICIAL_MARKETPLACES.has(normalizedName))
57 )
58}
59
60/**
61 * Pattern to detect names that impersonate official Anthropic/Claude marketplaces.

Callers 3

loadMarketplacesFunction · 0.85
applyChangesFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected