MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCacheBreakDiffPath

Function getCacheBreakDiffPath

src/services/api/promptCacheBreakDetection.ts:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17} from '../analytics/index.js'
18
19function getCacheBreakDiffPath(): string {
20 const chars = 'abcdefghijklmnopqrstuvwxyz0123456789'
21 let suffix = ''
22 for (let i = 0; i < 4; i++) {
23 suffix += chars[Math.floor(Math.random() * chars.length)]
24 }
25 return join(getNcodeTempDir(), `cache-break-${suffix}.diff`)
26}
27
28type PreviousState = {
29 systemHash: number

Callers 1

writeCacheBreakDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected