MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / normalizeMemories

Function normalizeMemories

src/memory/store.ts:88–96  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

86}
87
88export function normalizeMemories(raw: unknown): Memory[] {
89 if (!Array.isArray(raw)) return [];
90 const out: Memory[] = [];
91 for (const item of raw) {
92 const normalized = normalizeMemory(item);
93 if (normalized) out.push(normalized);
94 }
95 return out;
96}
97
98export async function readMemoriesFile(memoryPath: string): Promise<Memory[]> {
99 try {

Callers 3

readMemoriesFileFunction · 0.85

Calls 1

normalizeMemoryFunction · 0.85

Tested by

no test coverage detected