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

Function renderArtifact

scripts/operator-console.js:302–312  ·  view source on GitHub ↗
(label, artifact)

Source from the content-addressed store, hash-verified

300}
301
302function renderArtifact(label, artifact) {
303 if (!artifact) return [` ${label}: none`];
304 const lines = [
305 ` ${label}: ${artifact.path || '(unknown)'}`,
306 ` freshness: ${artifact.freshness || 'unknown'}`,
307 ];
308 for (const reason of (artifact.staleReasons || []).slice(0, 2)) {
309 lines.push(` stale: ${reason}`);
310 }
311 return lines;
312}
313
314function renderConsole(consoleState) {
315 const pending = consoleState.dashboard.pending;

Callers 1

renderConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected