MCPcopy
hub / github.com/codeaashu/claude-code / memoryFileFreshnessPrefix

Function memoryFileFreshnessPrefix

src/tools/FileReadTool/FileReadTool.ts:749–753  ·  view source on GitHub ↗
(data: object)

Source from the content-addressed store, hash-verified

747const memoryFileMtimes = new WeakMap<object, number>()
748
749function memoryFileFreshnessPrefix(data: object): string {
750 const mtimeMs = memoryFileMtimes.get(data)
751 if (mtimeMs === undefined) return ''
752 return memoryFreshnessNote(mtimeMs)
753}
754
755async function validateContentTokens(
756 content: string,

Callers 1

Calls 2

memoryFreshnessNoteFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected