MCPcopy Create free account
hub / github.com/SethGammon/Citadel / compileMemoryBlocks

Function compileMemoryBlocks

core/memory/blocks.js:252–257  ·  view source on GitHub ↗
(projectRoot, options = {})

Source from the content-addressed store, hash-verified

250}
251
252function compileMemoryBlocks(projectRoot, options = {}) {
253 const blocks = buildBlocks(projectRoot, options);
254 const written = blocks.map((entry) => writeBlock(projectRoot, entry));
255 const indexPath = writeIndex(projectRoot, blocks);
256 return { blocks, written, indexPath };
257}
258
259function readBlockFile(filePath) {
260 return JSON.parse(fs.readFileSync(filePath, 'utf8'));

Callers 2

mainFunction · 0.85

Calls 3

buildBlocksFunction · 0.85
writeBlockFunction · 0.85
writeIndexFunction · 0.85

Tested by

no test coverage detected