(sessionId: string)
| 53 | * - The raw session id is never written to disk. |
| 54 | */ |
| 55 | export 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 | |
| 60 | const INIT_STATE: CacheStatsState = { |
| 61 | version: 1, |
no outgoing calls
no test coverage detected