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

Function shortHash

src/utils/telemetry/betaSessionTracing.ts:122–124  ·  view source on GitHub ↗

* Generate a short hash (first 12 hex chars of SHA-256).

(content: string)

Source from the content-addressed store, hash-verified

120 * Generate a short hash (first 12 hex chars of SHA-256).
121 */
122function shortHash(content: string): string {
123 return createHash('sha256').update(content).digest('hex').slice(0, 12)
124}
125
126/**
127 * Generate a hash for a system prompt.

Callers 3

hashSystemPromptFunction · 0.85
hashMessageFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected