Packages
@relayburn/reader@1.8.0(tag:reader-v1.8.0)@relayburn/ledger@1.8.0(tag:ledger-v1.8.0)@relayburn/analyze@1.8.0(tag:analyze-v1.8.0)@relayburn/mcp@1.8.0(tag:mcp-v1.8.0)@relayburn/cli@1.8.0(tag:cli-v1.8.0)@relayburn/sdk@1.8.0(tag:sdk-v1.8.0)relayburn@1.8.0(tag:relayburn-v1.8.0)
Release Notes
Added
- Recognise
_meta.replaces/_meta.collapsedCallsannotations on Claudetool_resultblocks across reader → analyze → CLI, so replacement tools (e.g. relaywash) get attributed estimated tokens saved inburn summaryandburn summary --by-tool.
Package Changelogs
@relayburn/reader
Added
- Claude reader now back-populates
_meta.replaces/_meta.collapsedCallsannotations fromtool_resultblocks onto the matchingToolCall.replacedTools/ToolCall.collapsedCallsand the correspondingToolResultEventRecord, so replacement tools (e.g. relaywash) carry counterfactual attribution through to analyze.
@relayburn/ledger
Added
- SQLite archive
tool_callstable now persistsreplaced_tools(JSON) andcollapsed_callsvia additive migration, andqueryAllFromArchive()rehydratesToolCall.replacedTools/ToolCall.collapsedCallsso the default archive code path preserves the counterfactual annotations introduced in #219.
@relayburn/analyze
Added
- Added
summarizeReplacementSavings()andestimateSavingsForToolCall()to estimate tokens saved by replacement tools (e.g. relaywash) against the vanilla calls they collapse, using a static per-tool cost table (DEFAULT_REPLACED_TOOL_TOKEN_COST).
@relayburn/cli
Added
burn summaryandburn summary --by-toolnow surface estimated tokens saved by replacement tools (e.g. relaywash) when sessions carry_meta.replaces/_meta.collapsedCallsannotations: a top-line "estimated savings from replacement tools" notice in the default view, asavedTokenscolumn in the by-tool table, and areplacementSavingsblock (with per-tool breakdown) in JSON output.