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

Function computePerToolHashes

src/services/api/promptCacheBreakDetection.ts:187–196  ·  view source on GitHub ↗
(
  strippedTools: ReadonlyArray<unknown>,
  names: string[],
)

Source from the content-addressed store, hash-verified

185}
186
187function computePerToolHashes(
188 strippedTools: ReadonlyArray<unknown>,
189 names: string[],
190): Record<string, number> {
191 const hashes: Record<string, number> = {}
192 for (let i = 0; i < strippedTools.length; i++) {
193 hashes[names[i] ?? `__idx_${i}`] = computeHash(strippedTools[i])
194 }
195 return hashes
196}
197
198function getSystemCharCount(system: TextBlockParam[]): number {
199 let total = 0

Callers 1

computeToolHashesFunction · 0.85

Calls 1

computeHashFunction · 0.85

Tested by

no test coverage detected