@agentguard-run/burn 0.3.14 → 0.3.15
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 +5 -0
- package/dist/src/presentation.js +10 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.15 (2026-09-26)
|
|
4
|
+
|
|
5
|
+
- `why`, `rewrites`, `ttl`, `pricing` and every other command whose values do not fit one screen now print their plain text on a colour terminal. 0.3.14 paged `why` at a person as 2,247 canvas screens of `prices.N...` rows and never printed its table; the table appeared only when piped or with `--no-color`. Small command frames (`status`, `enforce`) still draw the canvas.
|
|
6
|
+
- `--record` writes one frame for such a command, not one per page (`why --record` had produced a 5 GB recording).
|
|
7
|
+
|
|
3
8
|
## 0.3.14 (2026-09-24)
|
|
4
9
|
|
|
5
10
|
- `rewrites` names the cause of every cache miss, in a fixed precedence: `model_switch` (the model differs from the previous usage turn), `version_upgrade` (Claude Code's recorded `version` differs), `compaction`, `first_spawned_turn`, `idle_ttl_expired`, `image_pruning` (an earlier message re-recorded with fewer image or PDF blocks), then a host-reported `prefix_change`. The remainder is `prefix_change` as a stated residual or `unknown_ttl`. Effort changes, fast mode and tool definition changes are not in any transcript, and Claude Code does not persist image pruning, so the explanation says so instead of guessing. Codex takes the model from `turn_context` and compaction from `compacted`; a Codex rewrite with neither signal is `unknown` with the reason, never prefix change by default.
|
package/dist/src/presentation.js
CHANGED
|
@@ -7,10 +7,17 @@ const frames_1 = require("./frames");
|
|
|
7
7
|
const recording_1 = require("./recording");
|
|
8
8
|
function present(data, plain, options = {}) {
|
|
9
9
|
const colour = options.colour ?? (Boolean(process.stdout.isTTY) && process.env.NO_COLOR === undefined);
|
|
10
|
-
const
|
|
11
|
-
const grid = new canvas_1.Canvas(
|
|
10
|
+
const wantsScreen = colour && !options.protocol;
|
|
11
|
+
const grid = new canvas_1.Canvas(wantsScreen ? {} : { width: 104, height: 35 });
|
|
12
12
|
const viewport = { width: Math.min(104, grid.width), height: Math.min(35, grid.height) };
|
|
13
|
-
|
|
13
|
+
// A command frame that does not fit one screen is a report, not a screen.
|
|
14
|
+
// 0.3.14 paged `why` at a person as 2,247 canvas screens of price rows and
|
|
15
|
+
// never printed its table (the table only appeared when piped or with
|
|
16
|
+
// --no-color). Such a frame prints its plain text on screen and is
|
|
17
|
+
// recorded once, not once per page (`why --record` had written 5 GB).
|
|
18
|
+
const overflow = data.kind === 'command' && (0, frames_1.framePageCount)(data, viewport) > 1;
|
|
19
|
+
const screen = wantsScreen && !overflow;
|
|
20
|
+
const pages = (screen || (0, recording_1.isRecording)()) && !overflow ? (0, frames_1.framePageCount)(data, viewport) : 1;
|
|
14
21
|
for (let page = 0; page < pages; page++) {
|
|
15
22
|
const frame = data.kind !== 'report' ? { ...data, page } : data;
|
|
16
23
|
const at = new Date().toISOString();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentguard-run/burn",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
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",
|