MCPcopy Index your code
hub / github.com/codeaashu/claude-code / memoryHeader

Function memoryHeader

src/utils/attachments.ts:2327–2332  ·  view source on GitHub ↗
(path: string, mtimeMs: number)

Source from the content-addressed store, hash-verified

2325 * can fall back for resumed sessions where the stored header is missing.
2326 */
2327export function memoryHeader(path: string, mtimeMs: number): string {
2328 const staleness = memoryFreshnessText(mtimeMs)
2329 return staleness
2330 ? `${staleness}\n\nMemory: ${path}:`
2331 : `Memory (saved ${memoryAge(mtimeMs)}): ${path}:`
2332}
2333
2334/**
2335 * A memory relevance-selector prefetch handle. The promise is started once

Callers 2

readMemoriesForSurfacingFunction · 0.85

Calls 2

memoryFreshnessTextFunction · 0.85
memoryAgeFunction · 0.85

Tested by

no test coverage detected