MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hashPluginId

Function hashPluginId

source code/utils/telemetry/pluginTelemetry.ts:50–56  ·  view source on GitHub ↗
(name: string, marketplace?: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected