MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / cacheToObject

Function cacheToObject

source code/utils/fileStateCache.ts:111–115  ·  view source on GitHub ↗
(
  cache: FileStateCache,
)

Source from the content-addressed store, hash-verified

109
110// Helper function to convert cache to object (used by compact.ts)
111export function cacheToObject(
112 cache: FileStateCache,
113): Record<string, FileState> {
114 return Object.fromEntries(cache.entries())
115}
116
117// Helper function to get all keys from cache (used by several components)
118export function cacheKeys(cache: FileStateCache): string[] {

Callers 2

compactConversationFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected