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

Function getEntry

src/services/SessionMemory/multiStore.ts:201–207  ·  view source on GitHub ↗
(store: string, key: string)

Source from the content-addressed store, hash-verified

199
200/** Read an entry from a store. Returns null if not found. */
201export function getEntry(store: string, key: string): string | null {
202 validateStoreName(store)
203 validateKey(key)
204 const entryPath = getEntryPath(store, key)
205 if (!existsSync(entryPath)) return null
206 return readFileSync(entryPath, 'utf8')
207}
208
209/**
210 * M4 fix: bounded read variant. Returns at most `maxBytes` bytes from the

Callers 3

LocalMemoryPanelFunction · 0.85
dispatchLocalMemoryFunction · 0.85
multiStore.test.tsFile · 0.85

Calls 5

validateStoreNameFunction · 0.85
getEntryPathFunction · 0.85
existsSyncFunction · 0.85
validateKeyFunction · 0.50
readFileSyncFunction · 0.50

Tested by

no test coverage detected