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

Function render

scripts/runtime-matrix.js:23–36  ·  view source on GitHub ↗
(matrix)

Source from the content-addressed store, hash-verified

21}
22
23function render(matrix) {
24 const entries = matrix.level ? [[null, matrix]] : Object.entries(matrix);
25 const lines = [];
26 lines.push('Runtime Adapter Matrix');
27 lines.push('='.repeat(40));
28 for (const [id, entry] of entries) {
29 if (id) lines.push(id);
30 lines.push(` level: ${entry.level}`);
31 lines.push(` guarantees: ${entry.guarantees.join(', ') || 'none'}`);
32 lines.push(` missing: ${entry.missing.join(', ') || 'none'}`);
33 lines.push(` tradeoffs: ${entry.tradeoffs}`);
34 }
35 return `${lines.join('\n')}\n`;
36}
37
38function main() {
39 const args = parseArgs(process.argv);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected