MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTelemetryPluginScope

Function getTelemetryPluginScope

src/utils/telemetry/pluginTelemetry.ts:72–81  ·  view source on GitHub ↗
(
  name: string,
  marketplace: string | undefined,
  managedNames: Set<string> | null,
)

Source from the content-addressed store, hash-verified

70 | 'default-bundle'
71
72export function getTelemetryPluginScope(
73 name: string,
74 marketplace: string | undefined,
75 managedNames: Set<string> | null,
76): TelemetryPluginScope {
77 if (marketplace === BUILTIN_MARKETPLACE_NAME) return 'default-bundle'
78 if (isOfficialMarketplaceName(marketplace)) return 'official'
79 if (managedNames?.has(name)) return 'org'
80 return 'user-local'
81}
82
83/**
84 * How a plugin arrived in the session. Splits self-selected from org-pushed

Callers 1

Calls 2

hasMethod · 0.45

Tested by

no test coverage detected