MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getStateFilePath

Function getStateFilePath

src/utils/cacheStats.ts:55–58  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

53 * - The raw session id is never written to disk.
54 */
55export function getStateFilePath(sessionId: string): string {
56 const hash = createHash('sha256').update(sessionId).digest('hex').slice(0, 16)
57 return join(getClaudeConfigHomeDir(), 'cache-stats', `${hash}.json`)
58}
59
60const INIT_STATE: CacheStatsState = {
61 version: 1,

Callers 3

initCacheStatsStateFunction · 0.85
onResponseFunction · 0.85
cacheStats.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected