(label, artifact)
| 300 | } |
| 301 | |
| 302 | function 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 | |
| 314 | function renderConsole(consoleState) { |
| 315 | const pending = consoleState.dashboard.pending; |