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 +29 -1
- package/dist/bin/cli.js +237 -178
- package/dist/config-B_upkJeK.js +66 -0
- package/dist/config-Be35NM5s.js +3 -0
- package/dist/config-D9wIR3xc.js +91 -0
- package/dist/config-J1m-CWXT.js +27 -0
- package/dist/{derive-CY0En_Y3.js → derive-CL6e8K0Z.js} +1 -78
- package/dist/index.js +27 -2
- package/dist/openclaw/plugin.js +230 -191
- package/dist/{setup-DtKrojW1.js → setup-CNyMLnM-.js} +2 -1
- package/dist/setup-DTIxPe58.js +3 -0
- package/dist/{status-B5oH1nHv.js → status-Dc1dB0ZG.js} +2 -2
- package/dist/status-wknbavnl.js +3 -0
- package/dist/wallet-C9UlV7qi.js +3 -0
- package/dist/{wallet-DqGROXlC.js → wallet-LUl2l8WM.js} +2 -1
- package/package.json +2 -2
- package/dist/setup-EX1_teNg.js +0 -3
- package/dist/status-DlR8yBrK.js +0 -3
- package/dist/wallet-7XKcknNZ.js +0 -3
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.
|
|
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
|