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

Function hashPluginId

src/utils/telemetry/pluginTelemetry.ts:48–54  ·  view source on GitHub ↗
(name: string, marketplace?: string)

Source from the content-addressed store, hash-verified

46 * is preserved in both branches (enabledPlugins keys are case-sensitive).
47 */
48export function hashPluginId(name: string, marketplace?: string): string {
49 const key = marketplace ? `${name}@${marketplace.toLowerCase()}` : name
50 return createHash('sha256')
51 .update(key + PLUGIN_ID_HASH_SALT)
52 .digest('hex')
53 .slice(0, 16)
54}
55
56/**
57 * 4-value scope enum for plugin origin. Distinct from PluginScope

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected