@agentguard-run/burn 0.3.4 → 0.3.5
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/canvas.d.ts +2 -0
- package/dist/src/canvas.js +26 -0
- package/dist/src/frames.d.ts +1 -0
- package/dist/src/insights/pricing.js +4 -0
- package/dist/src/live-panel.d.ts +2 -0
- package/dist/src/live-panel.js +56 -0
- package/dist/src/render-recording.d.ts +1 -1
- package/dist/src/render-recording.js +12 -8
- package/docs/USAGE_AND_PRICING.md +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.5 (2026-09-22)
|
|
4
|
+
|
|
5
|
+
- Price `claude-opus-5-5` (4, 0.2, 5, 8, 20 USD per million tokens), `gpt-6-sol` (2, 0.2, 2.5, 10) and `gpt-6-luna` (0.1, 0.01, 0.125, 0.5) at the published list rates checked on 2026-09-22. The two OpenAI rows use the documented 272K input threshold for long-context pricing. Sessions on these models were previously reported as unpriced.
|
|
6
|
+
- Recorded renders use a showcase layout for live frames: seven-row spawn digits, the spawn-rate bar, a short explanation of what a spawn is and a boxed STOP card. Token and replay panels appear only when the recording measured them. Video output uses bold white text, a frame margin and CRF 16.
|
|
7
|
+
|
|
3
8
|
## 0.3.4 (2026-09-22)
|
|
4
9
|
|
|
5
10
|
- Add local, read-only `limits` reports for Claude plan rejections, allowed warnings and HTTP 429 events, with reset interval arithmetic and nearby Burn decisions. Keep Codex limits unsupported and label proximity as correlation.
|
package/dist/src/canvas.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export declare class Canvas {
|
|
|
27
27
|
});
|
|
28
28
|
put(row: number, col: number, text: string, color?: CanvasColor): this;
|
|
29
29
|
digits(row: number, col: number, value: string | number, color?: CanvasColor): this;
|
|
30
|
+
/** Seven-row block digits, two cells per pixel, for recorded showcase frames. */
|
|
31
|
+
bigDigits(row: number, col: number, value: string | number, color?: CanvasColor): this;
|
|
30
32
|
bar(row: number, col: number, width: number, fraction: number, color?: CanvasColor): this;
|
|
31
33
|
rule(row: number, col: number, width?: number): this;
|
|
32
34
|
header(left?: string, right?: string): this;
|
package/dist/src/canvas.js
CHANGED
|
@@ -18,6 +18,19 @@ const GLYPHS = {
|
|
|
18
18
|
'8': ['█▀█', '█▀█', '█▄█'], '9': ['█▀█', '▀▀█', '▄▄█'],
|
|
19
19
|
'.': [' ', ' ', '▄'], '-': [' ', '▀▀▀', ' '],
|
|
20
20
|
};
|
|
21
|
+
const BIG_GLYPHS = {
|
|
22
|
+
'0': [' ### ', '# #', '# #', '# #', '# #', '# #', ' ### '],
|
|
23
|
+
'1': [' # ', ' ## ', ' # ', ' # ', ' # ', ' # ', ' ### '],
|
|
24
|
+
'2': [' ### ', '# #', ' #', ' # ', ' # ', ' # ', '#####'],
|
|
25
|
+
'3': ['#### ', ' #', ' #', ' ### ', ' #', ' #', '#### '],
|
|
26
|
+
'4': [' # ', ' ## ', ' # # ', '# # ', '#####', ' # ', ' # '],
|
|
27
|
+
'5': ['#####', '# ', '#### ', ' #', ' #', '# #', ' ### '],
|
|
28
|
+
'6': [' ### ', '# ', '# ', '#### ', '# #', '# #', ' ### '],
|
|
29
|
+
'7': ['#####', ' #', ' # ', ' # ', ' # ', ' # ', ' # '],
|
|
30
|
+
'8': [' ### ', '# #', '# #', ' ### ', '# #', '# #', ' ### '],
|
|
31
|
+
'9': [' ### ', '# #', '# #', ' ####', ' #', ' #', ' ### '],
|
|
32
|
+
'-': [' ', ' ', ' ', '#####', ' ', ' ', ' '],
|
|
33
|
+
};
|
|
21
34
|
const colors = new Set(['mint', 'slate', 'amber', 'red', 'white', 'none']);
|
|
22
35
|
function dimension(value, fallback, limit) {
|
|
23
36
|
return Math.max(1, Math.min(limit, Math.floor(typeof value === 'number' && Number.isFinite(value) ? value : fallback)));
|
|
@@ -76,6 +89,19 @@ class Canvas {
|
|
|
76
89
|
}
|
|
77
90
|
return this;
|
|
78
91
|
}
|
|
92
|
+
/** Seven-row block digits, two cells per pixel, for recorded showcase frames. */
|
|
93
|
+
bigDigits(row, col, value, color = 'mint') {
|
|
94
|
+
let x = col;
|
|
95
|
+
for (const char of characters(String(value))) {
|
|
96
|
+
const glyph = BIG_GLYPHS[char] ?? BIG_GLYPHS['-'];
|
|
97
|
+
for (let y = 0; y < 7; y++)
|
|
98
|
+
this.put(row + y, x, glyph[y].replace(/#/g, '██').replace(/ /g, ' '), color);
|
|
99
|
+
x += 12;
|
|
100
|
+
if (x >= this.width)
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
79
105
|
bar(row, col, width, fraction, color = 'mint') {
|
|
80
106
|
if (!Number.isFinite(width) || width <= 0)
|
|
81
107
|
return this;
|
package/dist/src/frames.d.ts
CHANGED
|
@@ -13,11 +13,15 @@ const openaiRates = (input, cacheRead, cacheWrite, output, sourceUrl, longContex
|
|
|
13
13
|
exports.MODEL_PRICING = Object.freeze({
|
|
14
14
|
'claude-fable-5-1': rates(10, 0.25, 12.5, 20, 50),
|
|
15
15
|
'claude-fable-5': rates(10, 1, 12.5, 20, 50),
|
|
16
|
+
// Verified 2026-09-22: cache hits on Opus 5.5 are 0.05x base input.
|
|
17
|
+
'claude-opus-5-5': Object.freeze({ ...rates(4, 0.2, 5, 8, 20), verifiedAt: '2026-09-22' }),
|
|
16
18
|
'claude-opus-5': rates(5, 0.5, 6.25, 10, 25),
|
|
17
19
|
'claude-opus-4-8': rates(5, 0.5, 6.25, 10, 25),
|
|
18
20
|
'claude-sonnet-5': rates(2, 0.2, 2.5, 4, 10),
|
|
19
21
|
'claude-haiku-4-5-20251001': rates(1, 0.1, 1.25, 2, 5),
|
|
20
22
|
'gpt-6-astra': openaiRates(10, 1, 12.5, 50, 'https://developers.openai.com/api/docs/pricing'),
|
|
23
|
+
'gpt-6-sol': Object.freeze({ ...openaiRates(2, 0.2, 2.5, 10, 'https://developers.openai.com/api/docs/pricing'), verifiedAt: '2026-09-22' }),
|
|
24
|
+
'gpt-6-luna': Object.freeze({ ...openaiRates(0.1, 0.01, 0.125, 0.5, 'https://developers.openai.com/api/docs/pricing'), verifiedAt: '2026-09-22' }),
|
|
21
25
|
'gpt-5.6-sol': openaiRates(4, 0.4, 5, 20, 'https://developers.openai.com/api/docs/pricing'),
|
|
22
26
|
'gpt-5.6-luna': openaiRates(0.2, 0.02, 0.25, 1.2, 'https://developers.openai.com/api/docs/pricing'),
|
|
23
27
|
'gpt-5.4-mini': openaiRates(0.75, 0.075, null, 4.5, 'https://developers.openai.com/api/docs/models/gpt-5.4-mini', false),
|
package/dist/src/live-panel.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export declare class SessionFollow {
|
|
|
40
40
|
update(snapshot: LivePanelSnapshot, now: number): LivePanelSnapshot;
|
|
41
41
|
}
|
|
42
42
|
export declare function spawnBarColor(spawns: number | null, ceiling: number | null): CanvasColor;
|
|
43
|
+
/** Recorded showcase layout: the spawn count is the hero, unrecorded panels are omitted, never faked. */
|
|
44
|
+
export declare function renderShowcasePanel(snapshot: LivePanelSnapshot, options?: FrameOptions): Canvas;
|
|
43
45
|
export declare function renderLivePanel(snapshot: LivePanelSnapshot, options?: FrameOptions): Canvas;
|
|
44
46
|
/** STOP report adaptation uses only already-computed metadata, never local I/O. */
|
|
45
47
|
export declare function panelFromReport(report: BurnReport, at: number, outcome?: 'blocked' | 'shadow' | 'overridden' | 'allowed', subject?: 'spawn' | 'call'): LivePanelSnapshot;
|
package/dist/src/live-panel.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.StopHold = exports.SessionFollow = void 0;
|
|
|
4
4
|
exports.panelDecisions = panelDecisions;
|
|
5
5
|
exports.collectLivePanel = collectLivePanel;
|
|
6
6
|
exports.spawnBarColor = spawnBarColor;
|
|
7
|
+
exports.renderShowcasePanel = renderShowcasePanel;
|
|
7
8
|
exports.renderLivePanel = renderLivePanel;
|
|
8
9
|
exports.panelFromReport = panelFromReport;
|
|
9
10
|
exports.runLivePanel = runLivePanel;
|
|
@@ -41,7 +42,62 @@ function elapsed(ms) {
|
|
|
41
42
|
const seconds = Math.max(0, Math.floor(ms / 1000));
|
|
42
43
|
return `${String(Math.floor(seconds / 3600)).padStart(2, '0')}:${String(Math.floor(seconds / 60) % 60).padStart(2, '0')}:${String(seconds % 60).padStart(2, '0')}`;
|
|
43
44
|
}
|
|
45
|
+
/** Recorded showcase layout: the spawn count is the hero, unrecorded panels are omitted, never faked. */
|
|
46
|
+
function renderShowcasePanel(snapshot, options = {}) {
|
|
47
|
+
const c = new canvas_1.Canvas(options), w = c.width, h = c.height, split = Math.floor(w * .45), right = split + 3, room = w - right;
|
|
48
|
+
const at = options.at ?? new Date(snapshot.observedAt).toISOString(), color = spawnBarColor(snapshot.spawns, snapshot.spawnCeiling);
|
|
49
|
+
c.header('AGENTGUARD / BURN', 'RECORDED RUN · 1x');
|
|
50
|
+
c.footer('local observation only', `elapsed ${snapshot.elapsedMs === null ? 'unknown' : elapsed(snapshot.elapsedMs ?? snapshot.observedAt - snapshot.startedAt)}`);
|
|
51
|
+
c.put(2, 0, `session ${snapshot.session} · ${at.slice(11, 19)} UTC`, 'slate');
|
|
52
|
+
for (let y = 3; y < h - 3; y++)
|
|
53
|
+
c.put(y, split + 1, '│', 'slate');
|
|
54
|
+
c.put(4, 0, 'AGENT SPAWNS IN WINDOW', 'slate');
|
|
55
|
+
c.bigDigits(6, 0, snapshot.spawns === null ? '-' : snapshot.spawns, color);
|
|
56
|
+
c.put(14, 0, `${snapshot.spawns ?? '?'} of ${snapshot.spawnCeiling ?? '?'} allowed · ${snapshot.windowActiveMinutes ?? '?'} active min`.slice(0, split), 'white');
|
|
57
|
+
const fraction = snapshot.spawns === null || snapshot.spawnCeiling === null ? 0 : snapshot.spawns / snapshot.spawnCeiling;
|
|
58
|
+
const rate = `${snapshot.spawns ?? '?'} / ${snapshot.spawnCeiling ?? '?'}`;
|
|
59
|
+
c.put(16, 0, 'SPAWN RATE', 'slate').put(16, Math.max(11, split - rate.length), rate, color);
|
|
60
|
+
c.bar(17, 0, split, fraction, color).bar(18, 0, split, fraction, color);
|
|
61
|
+
let y = 21;
|
|
62
|
+
if (snapshot.tokens !== null) {
|
|
63
|
+
const tokens = compact(snapshot.tokens);
|
|
64
|
+
c.put(y, 0, 'TOKENS IN WINDOW', 'slate').digits(y + 1, 0, tokens.digits, 'mint').put(y + 4, 0, tokens.unit.slice(0, split), 'slate');
|
|
65
|
+
y += 6;
|
|
66
|
+
}
|
|
67
|
+
if (snapshot.replayShare !== null && y + 5 < h - 3) {
|
|
68
|
+
c.put(y, 0, 'REPLAY SHARE %', 'slate').digits(y + 1, 0, Math.round(snapshot.replayShare * 100), 'mint').put(y + 4, 0, 'session cache-read / tokens'.slice(0, split), 'slate');
|
|
69
|
+
y += 6;
|
|
70
|
+
}
|
|
71
|
+
if (y + 5 < h - 3) {
|
|
72
|
+
c.put(y, 0, 'WHAT A SPAWN IS', 'slate');
|
|
73
|
+
['Each spawn is a new agent copy that re-reads', 'the whole context and burns its own tokens.', 'Past the ceiling, the next spawn is refused.', 'Every decision is signed on this machine.']
|
|
74
|
+
.forEach((line, i) => c.put(y + 1 + i, 0, line.slice(0, split), 'white'));
|
|
75
|
+
}
|
|
76
|
+
c.put(4, right, 'LAST 8 DECISIONS', 'slate');
|
|
77
|
+
snapshot.decisions.slice(-8).forEach((d, index) => {
|
|
78
|
+
const row = 5 + index * 2, chip = d.verdict === 'OK' ? 'clean' : d.verdict, tint = d.verdict === 'STOP' ? 'red' : d.verdict === 'WARN' ? 'amber' : 'mint';
|
|
79
|
+
c.put(row, right, `${new Date(d.at).toISOString().slice(11, 19)} ${d.tool}`.slice(0, Math.max(0, room - 8)), 'white');
|
|
80
|
+
c.put(row, Math.max(right, w - 7), `[${chip}]`, tint);
|
|
81
|
+
c.put(row + 1, right, d.reason.slice(0, room), 'slate');
|
|
82
|
+
});
|
|
83
|
+
if (!snapshot.decisions.length)
|
|
84
|
+
c.put(6, right, 'No recorded decisions yet.', 'slate');
|
|
85
|
+
if (snapshot.stop) {
|
|
86
|
+
const top = h - 11;
|
|
87
|
+
for (let i = 0; i < 5; i++)
|
|
88
|
+
c.put(top + i, right, ' '.repeat(room), 'none');
|
|
89
|
+
c.put(top - 1, right, '─'.repeat(room), 'red');
|
|
90
|
+
c.put(top, right, 'STOP · ' + (snapshot.stop.blocked === true ? 'blocked' : snapshot.stop.blocked === false ? 'shadow / allowed' : 'outcome unknown'), 'red');
|
|
91
|
+
c.put(top + 1, right, snapshot.stop.reason.slice(0, room), 'red');
|
|
92
|
+
c.put(top + 2, right, snapshot.stopHold === false ? 'Latest STOP reason.' : 'Reason held for 2 seconds.', 'slate');
|
|
93
|
+
c.put(top + 3, right, '─'.repeat(room), 'red');
|
|
94
|
+
}
|
|
95
|
+
c.put(h - 3, 0, snapshot.note.slice(0, w), 'slate');
|
|
96
|
+
return c;
|
|
97
|
+
}
|
|
44
98
|
function renderLivePanel(snapshot, options = {}) {
|
|
99
|
+
if (options.showcase && (options.height ?? 35) >= 30 && (options.width ?? 104) >= 80)
|
|
100
|
+
return renderShowcasePanel(snapshot, options);
|
|
45
101
|
const c = new canvas_1.Canvas(options), w = c.width, h = c.height, narrow = w < 80, split = narrow ? w : Math.floor(w * .45), right = narrow ? 0 : split + 3, room = w - right;
|
|
46
102
|
const at = options.at ?? new Date(snapshot.observedAt).toISOString(), color = spawnBarColor(snapshot.spawns, snapshot.spawnCeiling);
|
|
47
103
|
c.header('AGENTGUARD / BURN', options.recorded ? 'RECORDED RUN · 1x' : 'LIVE');
|
|
@@ -7,7 +7,7 @@ export interface RenderRecordingResult {
|
|
|
7
7
|
ffmpegCommand: string;
|
|
8
8
|
frameCount: number;
|
|
9
9
|
}
|
|
10
|
-
export declare function renderCanvasPng(snapshot: CanvasSnapshot, width?: number, height?: number): Promise<Buffer>;
|
|
10
|
+
export declare function renderCanvasPng(snapshot: CanvasSnapshot, width?: number, height?: number, style?: 'default' | 'showcase'): Promise<Buffer>;
|
|
11
11
|
export declare function renderRecording(source: string, options: {
|
|
12
12
|
mp4: string;
|
|
13
13
|
gif?: string;
|
|
@@ -68,26 +68,30 @@ function timestampMicros(at) {
|
|
|
68
68
|
const fraction = /\.(\d+)(?:Z|[+-]\d{2}:?\d{2})$/i.exec(at)?.[1] ?? '';
|
|
69
69
|
return BigInt(milliseconds) * 1000n + BigInt(fraction.slice(3, 6).padEnd(3, '0'));
|
|
70
70
|
}
|
|
71
|
-
async function renderCanvasPng(snapshot, width = 1920, height = 1080) {
|
|
71
|
+
async function renderCanvasPng(snapshot, width = 1920, height = 1080, style = 'default') {
|
|
72
72
|
await font();
|
|
73
73
|
if (!Number.isInteger(width) || !Number.isInteger(height) || width < 64 || height < 64 || width > 4096 || height > 4096)
|
|
74
74
|
throw new Error('Canvas raster dimensions must be integers between 64 and 4096.');
|
|
75
75
|
const canvas = (0, canvas_1.createCanvas)(width, height);
|
|
76
|
-
|
|
77
|
-
const
|
|
76
|
+
// Showcase frames keep a real margin so block digits never touch the frame edge; other frames keep the exact recorded geometry.
|
|
77
|
+
const marginX = style === 'showcase' ? 160 : 32, marginY = style === 'showcase' ? 120 : 32;
|
|
78
|
+
const cellWidth = Math.min(CELL_WIDTH, Math.max(1, Math.floor((width - marginX) / snapshot.width)));
|
|
79
|
+
const cellHeight = Math.min(CELL_HEIGHT, Math.max(1, Math.floor((height - marginY) / snapshot.height)), Math.round(cellWidth * CELL_HEIGHT / CELL_WIDTH));
|
|
78
80
|
const paddingX = Math.floor((canvas.width - snapshot.width * cellWidth) / 2);
|
|
79
81
|
const paddingY = Math.floor((canvas.height - snapshot.height * cellHeight) / 2);
|
|
80
82
|
const ctx = canvas.getContext('2d');
|
|
81
83
|
ctx.fillStyle = '#0B1117';
|
|
82
84
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
83
|
-
ctx.font = `${26 * cellWidth / CELL_WIDTH}px "${FONT_ALIAS}"`;
|
|
85
|
+
ctx.font = `${style === 'showcase' ? 'bold ' : ''}${26 * cellWidth / CELL_WIDTH}px "${FONT_ALIAS}"`;
|
|
84
86
|
ctx.textBaseline = 'alphabetic';
|
|
87
|
+
// Showcase palette: brighter than the terminal palette so text survives re-encoding on social players.
|
|
88
|
+
const VIDEO_HEX = style === 'showcase' ? { mint: '#2ABCB4', slate: '#B4BECF', amber: '#F59E0B', red: '#FF5A4E', white: '#FFFFFF' } : {};
|
|
85
89
|
for (let row = 0; row < snapshot.height; row++)
|
|
86
90
|
for (let col = 0; col < snapshot.width; col++) {
|
|
87
91
|
const cell = snapshot.cells[row][col];
|
|
88
92
|
if (cell.char === ' ')
|
|
89
93
|
continue;
|
|
90
|
-
ctx.fillStyle = canvas_2.CANVAS_PALETTE[cell.color === 'none' ? 'white' : cell.color].hex;
|
|
94
|
+
ctx.fillStyle = VIDEO_HEX[cell.color === 'none' ? 'white' : cell.color] ?? canvas_2.CANVAS_PALETTE[cell.color === 'none' ? 'white' : cell.color].hex;
|
|
91
95
|
const x = paddingX + col * cellWidth, y = paddingY + row * cellHeight;
|
|
92
96
|
if (cell.char === '█')
|
|
93
97
|
ctx.fillRect(x, y, cellWidth, cellHeight);
|
|
@@ -145,8 +149,8 @@ async function renderRecording(source, options) {
|
|
|
145
149
|
for (let index = 0; index < frames.length; index++) {
|
|
146
150
|
const frame = frames[index];
|
|
147
151
|
const name = `frame-${String(index).padStart(6, '0')}.png`;
|
|
148
|
-
const image = (0, frames_1.renderFrame)(frame.data, { recorded: true, at: frame.at, width: frame.viewport?.width ?? 104, height: frame.viewport?.height ?? 35, colour: true });
|
|
149
|
-
await (0, promises_1.writeFile)((0, node_path_1.join)(framesDir, name), await renderCanvasPng(image.toJSON()), { flag: 'wx', mode: 0o600 });
|
|
152
|
+
const image = (0, frames_1.renderFrame)(frame.data, { recorded: true, showcase: true, at: frame.at, width: frame.viewport?.width ?? 104, height: frame.viewport?.height ?? 35, colour: true });
|
|
153
|
+
await (0, promises_1.writeFile)((0, node_path_1.join)(framesDir, name), await renderCanvasPng(image.toJSON(), 1920, 1080, frame.data.kind === 'live' ? 'showcase' : 'default'), { flag: 'wx', mode: 0o600 });
|
|
150
154
|
}
|
|
151
155
|
for (const [position, index] of videoIndices.entries()) {
|
|
152
156
|
const next = videoIndices[position + 1];
|
|
@@ -160,7 +164,7 @@ async function renderRecording(source, options) {
|
|
|
160
164
|
const common = ['-hide_banner', '-loglevel', 'error', '-nostdin', '-n', '-protocol_whitelist', 'file,pipe', '-f', 'concat', '-safe', '0', '-i', concatPath];
|
|
161
165
|
// B-frame reordering can collapse the MP4 track duration to rapid DTS steps even
|
|
162
166
|
// when the final presentation timestamp correctly includes the one-second hold.
|
|
163
|
-
const mp4Args = [...common, '-fps_mode', 'vfr', '-c:v', 'libx264', '-bf', '0', '-enc_time_base', '1:1000000', '-video_track_timescale', '1000000', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', mp4Path];
|
|
167
|
+
const mp4Args = [...common, '-fps_mode', 'vfr', '-c:v', 'libx264', '-crf', '16', '-preset', 'slow', '-bf', '0', '-enc_time_base', '1:1000000', '-video_track_timescale', '1000000', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', mp4Path];
|
|
164
168
|
const gifArgs = [...common, '-fps_mode', 'vfr', '-frames:v', String(videoIndices.length), '-final_delay', '100', '-vf', 'split[a][b];[a]palettegen[p];[b][p]paletteuse', '-loop', '0', ...(gifPath ? [gifPath] : [])];
|
|
165
169
|
const command = [ffmpeg || 'ffmpeg', ...mp4Args].map(shellWord).join(' ')
|
|
166
170
|
+ (gifPath ? `\n${[ffmpeg || 'ffmpeg', ...gifArgs].map(shellWord).join(' ')}` : '');
|
|
@@ -39,12 +39,13 @@ For `claude-fable-5-1`, 500,000 cache-read tokens have a $0.125 API equivalent.
|
|
|
39
39
|
|
|
40
40
|
## Pricing sources and overrides
|
|
41
41
|
|
|
42
|
-
Every bundled row includes its exact model identifier, `sourceUrl` and `verifiedAt`. The rates were checked on 2026-09-17. The runtime never downloads pricing. Run `agentguard-burn pricing` to inspect the installed table.
|
|
42
|
+
Every bundled row includes its exact model identifier, `sourceUrl` and `verifiedAt`. The rates were checked on 2026-09-17, except `claude-opus-5-5`, `gpt-6-sol` and `gpt-6-luna`, which were checked on 2026-09-22. The runtime never downloads pricing. Run `agentguard-burn pricing` to inspect the installed table.
|
|
43
43
|
|
|
44
44
|
The Claude rows use the [official model price list](https://platform.claude.com/docs/en/about-claude/pricing). Amounts below are USD per million tokens in the order fresh input, cache read, five-minute write, one-hour write, output:
|
|
45
45
|
|
|
46
46
|
* `claude-fable-5-1`: 10, 0.25, 12.5, 20, 50.
|
|
47
47
|
* `claude-fable-5`: 10, 1, 12.5, 20, 50.
|
|
48
|
+
* `claude-opus-5-5`: 4, 0.2, 5, 8, 20.
|
|
48
49
|
* `claude-opus-5` and `claude-opus-4-8`: 5, 0.5, 6.25, 10, 25.
|
|
49
50
|
* `claude-sonnet-5`: 2, 0.2, 2.5, 4, 10.
|
|
50
51
|
* `claude-haiku-4-5-20251001`: 1, 0.1, 1.25, 2, 5.
|
|
@@ -52,6 +53,8 @@ The Claude rows use the [official model price list](https://platform.claude.com/
|
|
|
52
53
|
The [OpenAI API price list](https://developers.openai.com/api/docs/pricing) supplies these standard rates in the order fresh input, cache read, cache write, output:
|
|
53
54
|
|
|
54
55
|
* `gpt-6-astra`: 10, 1, 12.5, 50.
|
|
56
|
+
* `gpt-6-sol`: 2, 0.2, 2.5, 10.
|
|
57
|
+
* `gpt-6-luna`: 0.1, 0.01, 0.125, 0.5.
|
|
55
58
|
* `gpt-5.6-sol`: 4, 0.4, 5, 20. These are the published promotional rates on the verification date.
|
|
56
59
|
* `gpt-5.6-luna`: 0.2, 0.02, 0.25, 1.2.
|
|
57
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentguard-run/burn",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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",
|