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

Function writeAppServerDashboard

core/codex/native-integrations.js:800–814  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

798
799function escapeHtml(value) {
800 return String(value ?? '')
801 .replace(/&/g, '&')
802 .replace(/</g, '&lt;')
803 .replace(/>/g, '&gt;')
804 .replace(/"/g, '&quot;');
805}
806
807function writeAppServerDashboard(options = {}) {
808 const projectRoot = path.resolve(options.projectRoot || process.cwd());
809 const summary = options.summary || summarizeAppServerEvents(options.input || []);
810 const outDir = options.outDir || path.join(planningDir(projectRoot, 'app-server'));
811 const summaryPath = path.join(outDir, 'summary.json');
812 const dashboardPath = path.join(outDir, 'dashboard.html');
813 writeJson(summaryPath, summary);
814 writeText(dashboardPath, renderAppServerDashboard(summary, { source: options.source }));
815 return {
816 projectRoot,
817 summaryPath,

Callers 4

testAppServerDashboardFunction · 0.85
finishFunction · 0.85

Calls 5

summarizeAppServerEventsFunction · 0.85
writeTextFunction · 0.85
renderAppServerDashboardFunction · 0.85
planningDirFunction · 0.70
writeJsonFunction · 0.70

Tested by

no test coverage detected