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

Function renderList

scripts/memory-compile.js:57–67  ·  view source on GitHub ↗
(projectRoot, blocks)

Source from the content-addressed store, hash-verified

55}
56
57function renderList(projectRoot, blocks) {
58 const lines = [];
59 lines.push('Memory Blocks');
60 lines.push('='.repeat(40));
61 lines.push(`Project: ${projectRoot}`);
62 lines.push(`Matches: ${blocks.length}`);
63 for (const block of blocks) {
64 lines.push(` ${block.id} (${block.type}) scope=${block.scope.join(',')} confidence=${block.confidence}`);
65 }
66 return `${lines.join('\n')}\n`;
67}
68
69function main() {
70 const args = parseArgs(process.argv);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected