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

Function writeConsoleReport

scripts/operator-console.js:253–259  ·  view source on GitHub ↗
(projectRoot, consoleState)

Source from the content-addressed store, hash-verified

251}
252
253function writeConsoleReport(projectRoot, consoleState) {
254 const outDir = path.join(projectRoot, '.planning', 'operator-console');
255 fs.mkdirSync(outDir, { recursive: true });
256 const outPath = path.join(outDir, 'latest.md');
257 fs.writeFileSync(outPath, renderConsole(consoleState), 'utf8');
258 return normalizePath(path.relative(projectRoot, outPath));
259}
260
261function buildConsole(projectRoot, options = {}) {
262 const root = path.resolve(projectRoot || process.cwd());

Callers 1

buildConsoleFunction · 0.85

Calls 2

renderConsoleFunction · 0.85
normalizePathFunction · 0.70

Tested by

no test coverage detected