Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.
TypeScript agentic-aiai-agentsai-codinganthropicautomationclaudeclaude-codecodexcoding-agentsdevops-automationdevtoolsgithub-actionsgrokllmloop-engineeringmcpprompt-engineering
fix(docs): stop Live Telemetry charts from growing endlessly + pin CDN script versions (#451)
JonyT Agentic4963773367dd
diff --git a/docs/index.html b/docs/index.htmlindex be564d1..e0a01de 100644--- a/docs/index.html+++ b/docs/index.html@@ -15,7 +15,7 @@ title: Loop Engineering — Showcase<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/showcase.css"><link rel="icon" href="https://raw.githubusercontent.com/cobusgreyling/loop-engineering/main/assets/visuals/loop-engineering-logo.svg"><script type="module">- import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs";+ import mermaid from "https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.esm.min.mjs";mermaid.initialize({startOnLoad: true,theme: "dark",@@ -36,7 +36,7 @@ title: Loop Engineering — Showcase},});</script>- <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script></head><body>@@ -626,15 +626,21 @@ npx @cobusgreyling/loop-audit . --suggest<div class="telemetry-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; margin-bottom: 40px;"><div class="card" style="padding: 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px;"><h3 style="font-size: 1rem; margin-bottom: 16px; color: var(--text-muted);">Loop Readiness Score</h3>- <canvas id="scoreChart" height="200"></canvas>+ <div style="position: relative; height: 240px;">+ <canvas id="scoreChart"></canvas>+ </div></div><div class="card" style="padding: 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px;"><h3 style="font-size: 1rem; margin-bottom: 16px; color: var(--text-muted);">Cumulative Tokens (Estimate)</h3>- <canvas id="tokenChart" height="200"></canvas>+ <div style="position: relative; height: 240px;">+ <canvas id="tokenChart"></canvas>+ </div></div><div class="card" style="padding: 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px;"><h3 style="font-size: 1rem; margin-bottom: 16px; color: var(--text-muted);">Automated vs Escalated Runs</h3>- <canvas id="escalationChart" height="200"></canvas>+ <div style="position: relative; height: 240px;">+ <canvas id="escalationChart"></canvas>+ </div></div></div></section>@@ -1073,11 +1079,8 @@ async function renderTelemetry() {const labels = data.map(d => new Date(d.run_id).toLocaleDateString(undefined, { month: 'short', day: 'numeric' }));const scores = data.map(d => d.readiness_score || 0);- const tokens = data.map((d, i) => {- let sum = 0;- for (let j = 0; j <= i; j++) sum += (data[j].tokens_estimate || 0);- return sum;- });+ let tokenRunningTotal = 0;+ const tokens = data.map(d => (tokenRunningTotal += (d.tokens_estimate || 0)));const automatedRuns = data.map(d => d.outcome === 'escalated' ? 0 : 1);const escalatedRuns = data.map(d => d.outcome === 'escalated' ? 1 : 0);