@relayburn/sdk 2.9.0 → 2.10.1

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
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.10.0] - 2026-05-24
6
+
7
+ ### Added
8
+
9
+ - `hotspots()` attribution result carries a new `mcpServers` field —
10
+ per-server rollup of `mcp__<server>__<tool>` tool calls with summed
11
+ cost/tokens/ride-turns and top representative tool basenames. (#424)
12
+
5
13
  ## [2.9.0] - 2026-05-21
6
14
 
7
15
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayburn/sdk",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "Embeddable Relayburn SDK — napi-rs bindings over the Rust relayburn-sdk crate (2.x). Drop-in replacement for the TS @relayburn/sdk@1.x.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -43,10 +43,10 @@
43
43
  ]
44
44
  },
45
45
  "optionalDependencies": {
46
- "@relayburn/sdk-darwin-arm64": "2.9.0",
47
- "@relayburn/sdk-darwin-x64": "2.9.0",
48
- "@relayburn/sdk-linux-arm64-gnu": "2.9.0",
49
- "@relayburn/sdk-linux-x64-gnu": "2.9.0"
46
+ "@relayburn/sdk-darwin-arm64": "2.10.1",
47
+ "@relayburn/sdk-darwin-x64": "2.10.1",
48
+ "@relayburn/sdk-linux-arm64-gnu": "2.10.1",
49
+ "@relayburn/sdk-linux-x64-gnu": "2.10.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@napi-rs/cli": "^2.18.4",
package/src/index.d.ts CHANGED
@@ -280,6 +280,18 @@ export interface HotspotsSubagentRow {
280
280
  totalCost: number;
281
281
  }
282
282
 
283
+ export interface HotspotsMcpServerRow {
284
+ /** MCP server name (the `<server>` segment of `mcp__<server>__<tool>`). */
285
+ server: string;
286
+ callCount: number;
287
+ initialTokens: number | bigint;
288
+ persistenceTokens: number | bigint;
289
+ ridingTurns: number;
290
+ totalCost: number;
291
+ /** Up to three representative tool basenames (cost desc, then name asc). */
292
+ topTools: string[];
293
+ }
294
+
283
295
  export interface HotspotsSessionTotal {
284
296
  sessionId: string;
285
297
  grandCost: number;
@@ -307,6 +319,7 @@ export interface HotspotsAttributionResult {
307
319
  bashVerbs: HotspotsBashVerbRow[];
308
320
  bash: HotspotsBashRow[];
309
321
  subagents: HotspotsSubagentRow[];
322
+ mcpServers: HotspotsMcpServerRow[];
310
323
  fidelity: HotspotsFidelityBlock;
311
324
  refused?: boolean;
312
325
  refusalReason?: string;