@agentguard-run/burn 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.9 (2026-09-23)
4
+
5
+ - Dashboard render: the subagents caption wraps inside its panel on the 4:5 frame instead of crossing the panel edge.
6
+
3
7
  ## 0.3.8 (2026-09-23)
4
8
 
5
9
  - Add `render --dashboard` (`--wide` for 1920 by 1080, `--economics <blocks.json>`, `--fps <n>`): an animated dashboard of a recorded run drawn offline with @napi-rs/canvas. Header counters (copies, decisions, refused, elapsed), a ring with one marker per recorded spawn (teal, amber past the warn threshold, red X marks for refused attempts at the gate), the spawn-rate bar with warn and ceiling ticks, the signed decision log, a subagents panel that prices the measured child transcripts after the run, and a STOP card at the first refusal. Every value comes from the recording or the blocks JSON; motion follows the recorded clock and a fixed seed; frames run at a fixed rate across the recorded span plus a three second hold; provenance records layout, source and economics hashes, fps, seed and every frame time. Vendors Inter and JetBrains Mono (OFL) in `fonts/`.
@@ -292,9 +292,18 @@ function agents(ctx, model, state, g) {
292
292
  }
293
293
  const total = { min: economics.totalUsd.min * reveal, max: economics.totalUsd.max * reveal };
294
294
  text(ctx, (0, live_1.dollars)(total), x + 20, y + 52 + g.bigNumber, g.bigNumber, { family: 'mono', weight: 700, color: exports.INK.ink });
295
- text(ctx, `list cost of ${economics.pricedCount} subagent transcripts · not a bill`, x + 20, y + 76 + g.bigNumber, g.small, { color: exports.INK.secondary });
295
+ // The caption wraps onto a second line when the panel is narrower than the sentence, so it never crosses the panel edge.
296
+ const caption = `list cost of ${economics.pricedCount} subagent transcripts · not a bill`;
297
+ ctx.font = `400 ${g.small}px "${TEXT}"`;
298
+ const wrapped = ctx.measureText(caption).width > w - 40;
299
+ if (!wrapped)
300
+ text(ctx, caption, x + 20, y + 76 + g.bigNumber, g.small, { color: exports.INK.secondary });
301
+ else {
302
+ text(ctx, `list cost of ${economics.pricedCount} subagent transcripts`, x + 20, y + 76 + g.bigNumber, g.small, { color: exports.INK.secondary });
303
+ text(ctx, 'not a bill', x + 20, y + 76 + g.bigNumber + g.small * 1.15, g.small, { color: exports.INK.secondary });
304
+ }
296
305
  const sorted = [...economics.children].sort((a, b) => (b.tokens ?? 0) - (a.tokens ?? 0)), top = sorted.slice(0, rows), max = top[0]?.tokens ?? 1;
297
- const first = y + 100 + g.bigNumber, pitch = (h - (first - y) - 44) / rows, barW = w - 40 - g.number * 3.6;
306
+ const first = y + 100 + g.bigNumber + (wrapped ? g.small * 1.15 : 0), pitch = (h - (first - y) - 44) / rows, barW = w - 40 - g.number * 3.6;
298
307
  top.forEach((child, i) => {
299
308
  const row = first + i * pitch, fill = clamp01((child.tokens ?? 0) / max) * reveal;
300
309
  ctx.fillStyle = exports.INK.line;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentguard-run/burn",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Local session usage and runaway-agent circuit breaker. Explain tokens, cache rewrites and API list cost, track pace, warn on heavy turns, and gate agent fan-out with signed receipts. Developer command ranking requires explicit --rank.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "commonjs",