Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: os.mjs — better build telemetry with elapsed time + more log lines

Show elapsed time (Xm Ys) next to stage/percentage. Increase log
buffer from 10 to 20 lines for more build output visibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+5 -3
+5 -3
system/public/aesthetic.computer/disks/os.mjs
··· 64 64 // Build telemetry 65 65 let activeBuild = null; // { id, status, stage, percent, ref, error } 66 66 let buildLogLines = []; // last few log lines 67 - const MAX_BUILD_LOGS = 10; 67 + const MAX_BUILD_LOGS = 20; 68 68 let buildPollTimer = null; 69 69 70 70 // Color palettes for dark/light mode (deprecated builds use red tones) ··· 473 473 const logH = buildLogLines.length * (matrixH + 1) + 8; 474 474 sectionHeader("Building (" + buildVariant + ")", dark ? [20, 28, 20] : [215, 235, 215], dark ? [14, 20, 14] : [228, 240, 228], 120 + logH); 475 475 476 - // Status line: stage + percentage 476 + // Status line: stage + percentage + elapsed 477 477 const stageLabel = isCLBuild ? rawStage.slice(3) : rawStage; 478 478 const pct = activeBuild.percent || 0; 479 + const elapsed = activeBuild.elapsedMs ? Math.floor(activeBuild.elapsedMs / 1000) : 0; 480 + const elapsedStr = elapsed > 0 ? " " + Math.floor(elapsed / 60) + "m" + (elapsed % 60) + "s" : ""; 479 481 ink(...C.current); 480 - $.write(stageLabel + " " + pct + "%", { x: pad, y }); 482 + $.write(stageLabel + " " + pct + "%" + elapsedStr, { x: pad, y }); 481 483 y += rowH + 4; 482 484 483 485 // Progress bar