Skip to content

Commit f81df79

Browse files
committed
fix(proxy): debug logging and header injection bugs
- route.ts debug check evaluated at import time before env var was set; now checks process.env.X402_PROXY_DEBUG per call - claude command passes debug flag to startServeServer so proxy logs show - injectPayerHeader keeps headers as plain Record<string,string> instead of converting to Headers instance (avoids mppx spreading bug)
1 parent 18c57ee commit f81df79

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

packages/x402-proxy/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.10.5] - 2026-04-01
11+
12+
### Fixed
13+
- `--debug` flag now works with inference proxy - route.ts debug check was captured at import time (before `cli.ts` sets the env var), so `dbg()` never fired; now evaluates lazily per call
14+
- `--debug` on `claude` command now shows proxy logs (sets `quiet: false`)
15+
- MPP `X-Payer-Address` header injection preserves headers as plain objects instead of converting to `Headers` instance, avoiding mppx headers-spreading bug that silently drops `Content-Type` on SSE requests
16+
1017
## [0.10.4] - 2026-04-01
1118

1219
### Fixed
@@ -367,7 +374,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
367374
- `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
368375
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
369376

370-
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.4...HEAD
377+
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.5...HEAD
378+
[0.10.5]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.4...v0.10.5
371379
[0.10.4]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.3...v0.10.4
372380
[0.10.3]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.2...v0.10.3
373381
[0.10.2]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.1...v0.10.2

packages/x402-proxy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "x402-proxy",
3-
"version": "0.10.4",
3+
"version": "0.10.5",
44
"description": "curl for x402 paid APIs. Auto-pays any endpoint on Base, Solana, and Tempo. Also works as an OpenClaw plugin.",
55
"type": "module",
66
"sideEffects": false,

0 commit comments

Comments
 (0)