MCPcopy Create free account
hub / github.com/Noumena-Network/code / memoryHeader

Function memoryHeader

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

Source from the content-addressed store, hash-verified

2332 * can fall back for resumed sessions where the stored header is missing.
2333 */
2334export function memoryHeader(path: string, mtimeMs: number): string {
2335 const staleness = memoryFreshnessText(mtimeMs)
2336 return staleness
2337 ? `${staleness}\n\nMemory: ${path}:`
2338 : `Memory (saved ${memoryAge(mtimeMs)}): ${path}:`
2339}
2340
2341/**
2342 * 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