x402-proxy 0.10.2 → 0.10.4

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
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.10.4] - 2026-04-01
11
+
12
+ ### Fixed
13
+ - MPP sessions now reuse a single handler across requests instead of creating a new one per request - eliminates redundant escrow deposits and wasted USDC
14
+ - MPP sessions properly settle on process shutdown (`serve` command and OpenClaw plugin both call `close()` on SIGTERM/stop)
15
+ - MPP channelId persisted to `~/.config/x402-proxy/session.json` for tracking; cleared on session close
16
+
17
+ ### Added
18
+ - `--debug` global CLI flag - sets `X402_PROXY_DEBUG=1` for verbose stderr logging of MPP SSE lifecycle, channelId, and proxy routing
19
+ - Debug trace points in inference proxy: upstream routing, SSE start/end, usage stats, errors
20
+
21
+ ### Changed
22
+ - Upgraded `mppx` from ^0.4.9 to ^0.5.1
23
+ - MPP requests now send `X-Payer-Address` header so the server can include the payer's existing `channelId` in 402 challenges, enabling cross-restart session recovery
24
+ - Inference proxy no longer accepts `getEvmKey` option - receives pre-built `getMppHandler` instead
25
+
26
+ ## [0.10.3] - 2026-04-01
27
+
28
+ ### Fixed
29
+ - Anthropic Messages API (`/v1/messages`) SSE streaming - proxy now emits proper `event: {type}` framing and omits the `data: [DONE]` sentinel that breaks the Anthropic SDK parser
30
+ - Anthropic error responses use correct format (`{type:"error",error:{type,message}}`) instead of OpenAI format for `/v1/messages` endpoints
31
+ - MPP streaming usage tracking - token counts were always 0/0 because raw JSON payloads lacked the `data:` prefix the tracker expected
32
+ - Anthropic usage accumulation from `message_start` (input tokens) and `message_delta` (output tokens) events instead of relying on a single final chunk
33
+ - Anthropic thinking mode (`thinking.budget_tokens`) now extracted from request body for history tracking
34
+ - MPP error messages and payment history now show the EVM wallet address instead of the Solana address
35
+
10
36
  ## [0.10.2] - 2026-04-01
11
37
 
12
38
  ### Fixed
@@ -341,7 +367,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
341
367
  - `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
342
368
  - Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
343
369
 
344
- [Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.2...HEAD
370
+ [Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.4...HEAD
371
+ [0.10.4]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.3...v0.10.4
372
+ [0.10.3]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.2...v0.10.3
345
373
  [0.10.2]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.1...v0.10.2
346
374
  [0.10.1]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.0...v0.10.1
347
375
  [0.10.0]: https://github.com/cascade-protocol/x402-proxy/compare/v0.9.4...v0.10.0