You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
relayburn-sdk: surface replacement savings on summary(); deprecate sdk@1.x (#366)
Widens `Summary` in the Rust SDK to include an optional
`replacement_savings` field (calls, collapsedCalls, estimatedTokensSaved,
byTool). Populated from `summarize_replacement_savings()` in
`analyze/replacement_savings.rs`; elided when no replacement-tool calls
exist in the queried window.
Mirrors the new field into the napi-rs binding (`relayburn-sdk-node`) and
the TypeScript .d.ts for `@relayburn/sdk@2.x`. Adds unit tests in
`query_verbs.rs` asserting `Some(_)` for sessions with replacement calls
and `None` for clean sessions.
Adds a deprecation banner to `packages/sdk/README.md` and matching
CHANGELOG entries in both `@relayburn/sdk` (1.x maintenance freeze) and
`@relayburn/sdk` 2.x. Refs #365.
Copy file name to clipboardExpand all lines: packages/sdk-node/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## [Unreleased]
4
4
5
+
### Added
6
+
7
+
-`summary()` result now includes `replacementSavings` — a rollup of per-tool collapsed-call counts and tokens-saved estimates derived from `_meta`-annotated tool results. Omitted (field absent) when no replacement-tool calls exist in the queried window.
Copy file name to clipboardExpand all lines: packages/sdk/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ All notable changes to `@relayburn/sdk`.
4
4
5
5
## [Unreleased]
6
6
7
+
### Deprecation
8
+
9
+
-`@relayburn/sdk@1.x` is now in maintenance-only mode. New query-surface work lands in `@relayburn/sdk@2.x` (napi-rs binding over the Rust `relayburn-sdk` crate). The 1.x type surface is frozen; see [#249](https://github.com/AgentWorkforce/burn/issues/249).
Copy file name to clipboardExpand all lines: packages/sdk/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
**Deprecated.**`@relayburn/sdk@1.x` is in maintenance-only mode. New work lands in `@relayburn/sdk@2.x` (the napi-rs binding over the Rust `relayburn-sdk` crate). Embedders should pin `^2.0.0` once it ships. The 1.x type surface is frozen and will not gain new fields. See [#249](https://github.com/AgentWorkforce/burn/issues/249) for the cutover schedule.
2
+
1
3
# @relayburn/sdk
2
4
3
5
Embeddable Relayburn SDK for in-process ingestion and analysis. This package is the **source of truth** for the in-process query/compute surface — `@relayburn/mcp` and `@relayburn/cli` consume the SDK rather than duplicating its logic.
0 commit comments