Skip to content

Commit a5d2895

Browse files
committed
release: v0.10.8
1 parent c655b12 commit a5d2895

28 files changed

Lines changed: 1443 additions & 283 deletions

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ jobs:
2020
- run: pnpm check
2121
- run: pnpm build
2222
- run: pnpm --filter x402-proxy test
23+
- run: pnpm stage:release
24+
- run: pnpm verify:release
25+
- run: npm pack --json packages/x402-proxy/.release/x402-proxy > /dev/null
26+
- run: npm pack --json packages/x402-proxy/.release/x402-proxy-openclaw > /dev/null

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
- run: pnpm check
2525
- run: pnpm build
2626
- run: pnpm --filter x402-proxy test
27-
- run: pnpm --filter x402-proxy publish --provenance --access public --no-git-checks
27+
- run: pnpm stage:release
28+
- run: pnpm verify:release
29+
- run: npm pack --json packages/x402-proxy/.release/x402-proxy > /dev/null
30+
- run: npm pack --json packages/x402-proxy/.release/x402-proxy-openclaw > /dev/null
31+
- run: npm publish --provenance --access public packages/x402-proxy/.release/x402-proxy
32+
- run: npm publish --provenance --access public packages/x402-proxy/.release/x402-proxy-openclaw
2833
- name: Extract changelog and create GitHub release
2934
env:
3035
GH_TOKEN: ${{ github.token }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
node_modules/
22
dist/
33
.turbo/
4+
.artifacts/
5+
.release/
46
*.tsbuildinfo
57
.env
68
.env.*

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
"check": "turbo run build type-check test && biome check --write",
88
"lint": "biome check --write",
99
"build": "turbo run build",
10+
"stage:release": "pnpm --filter x402-proxy stage:release",
11+
"verify:release": "node scripts/verify-staged-x402-packages.mjs",
1012
"test": "vitest --project x402-proxy"
1113
},
1214
"devDependencies": {
1315
"@biomejs/biome": "^2.4.9",
16+
"tsdown": "^0.21.5",
1417
"turbo": "^2.8.20",
1518
"typescript": "^6.0.2",
1619
"vitest": "^4.1.1"

packages/x402-proxy/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.10.8] - 2026-04-02
11+
12+
### Added
13+
- Separate published OpenClaw plugin package: `x402-proxy-openclaw`
14+
- Release staging and verification flow that produces `x402-proxy` and `x402-proxy-openclaw` together from the same source package directory
15+
- MCP payment retry tests covering structured x402 errors and paid tool result metadata preservation
16+
17+
### Changed
18+
- Build output now stages separate CLI and OpenClaw artifacts before publish, while keeping one shared version and release tag
19+
- OpenClaw install documentation now points to `openclaw plugins install x402-proxy-openclaw`
20+
21+
### Fixed
22+
- MCP proxy now preserves structured tool metadata such as `outputSchema`, resource metadata, `structuredContent`, and `_meta` when auto-paying x402 tool calls
23+
- Paid MCP retries now resend tool calls with the `x402/payment` payload while keeping the original result shape intact
24+
1025
## [0.10.7] - 2026-04-01
1126

1227
### Added
@@ -393,7 +408,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
393408
- `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
394409
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
395410

396-
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.7...HEAD
411+
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.8...HEAD
412+
[0.10.8]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.7...v0.10.8
397413
[0.10.7]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.6...v0.10.7
398414
[0.10.6]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.5...v0.10.6
399415
[0.10.5]: https://github.com/cascade-protocol/x402-proxy/compare/v0.10.4...v0.10.5

packages/x402-proxy/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@ See the [library API docs](https://github.com/cascade-protocol/x402-proxy/tree/m
143143

144144
## OpenClaw Plugin
145145

146-
x402-proxy ships as an [OpenClaw](https://openclaw.dev) plugin, giving your gateway automatic x402 and MPP payment capabilities. Registers `x_wallet` and `x_request` tools (aliased as `x_balance`/`x_payment`), `/x_wallet` and `/x_send` commands, and an HTTP route proxy for upstream inference endpoints.
146+
The OpenClaw plugin now ships as a separate npm package: `x402-proxy-openclaw`.
147+
148+
```bash
149+
openclaw plugins install x402-proxy-openclaw
150+
```
151+
152+
It gives your gateway automatic x402 and MPP payment capabilities. Registers `x_wallet` and `x_request` tools (aliased as `x_balance`/`x_payment`), `/x_wallet` and `/x_send` commands, and an HTTP route proxy for upstream inference endpoints.
147153

148154
By default, the plugin registers a built-in `surf` provider at `/x402-proxy/v1` that points at `https://surf.cascade.fyi/api/v1/inference` and prefers MPP. Uses the standard wallet resolution (env vars or `wallet.json`).
149155

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# x402-proxy-openclaw
2+
3+
OpenClaw plugin for x402 and MPP payments, wallet tools, and paid inference proxying.
4+
5+
## Install
6+
7+
```bash
8+
openclaw plugins install x402-proxy-openclaw
9+
```
10+
11+
## What It Adds
12+
13+
- `x_wallet` and `x_request` tools, with `x_balance` and `x_payment` aliases
14+
- `/x_wallet` and `/x_send` commands
15+
- an HTTP route proxy for upstream inference endpoints
16+
- a built-in `surf` provider at `/x402-proxy/v1`
17+
18+
By default, the plugin proxies `https://surf.cascade.fyi/api/v1/inference` and prefers MPP.
19+
20+
## Relationship To The CLI Package
21+
22+
The standalone CLI and library remain published as `x402-proxy`.
23+
24+
Use `x402-proxy` when you want:
25+
- paid HTTP requests from the command line
26+
- the MCP proxy
27+
- local wallet setup and export flows
28+
29+
Use `x402-proxy-openclaw` when you want:
30+
- OpenClaw gateway integration
31+
- plugin-managed tools, commands, and routes
32+
33+
## License
34+
35+
Apache-2.0

packages/x402-proxy/openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "x402-proxy",
33
"name": "mpp/x402 Payments Proxy",
44
"description": "x402 and MPP payments, wallet tools, and paid inference proxying",
5-
"version": "1.0.0",
5+
"version": "0.10.8",
66
"providers": ["surf"],
77
"autoEnableWhenConfiguredProviders": ["surf"],
88
"skills": ["skills"],

packages/x402-proxy/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "x402-proxy",
3-
"version": "0.10.7",
4-
"description": "curl for x402 paid APIs. Auto-pays any endpoint on Base, Solana, and Tempo. Also works as an OpenClaw plugin.",
3+
"private": true,
4+
"version": "0.10.8",
5+
"description": "curl for x402 paid APIs. Auto-pays any endpoint on Base, Solana, and Tempo.",
56
"type": "module",
67
"sideEffects": false,
78
"main": "./dist/index.js",
@@ -37,12 +38,13 @@
3738
"x402-proxy": "./dist/bin/cli.js"
3839
},
3940
"scripts": {
40-
"build": "rm -rf dist && tsdown --publint && cp openclaw.plugin.json dist/",
41-
"dev": "tsdown --watch",
41+
"build": "pnpm exec tsdown --config ../../tsdown.config.ts",
42+
"dev": "pnpm exec tsdown --config ../../tsdown.config.ts --watch",
4243
"type-check": "tsc --noEmit",
4344
"test": "vitest run",
4445
"check": "pnpm type-check && biome check --write",
45-
"prepublishOnly": "pnpm build"
46+
"stage:release": "node ../../scripts/stage-x402-packages.mjs",
47+
"verify:release": "node ../../scripts/verify-staged-x402-packages.mjs"
4648
},
4749
"dependencies": {
4850
"@clack/prompts": "^1.1.0",

packages/x402-proxy/skills/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ stdout = response body, stderr = payment info. Pipes, redirects, and `jq` all wo
167167

168168
## OpenClaw Plugin
169169

170-
x402-proxy ships as an [OpenClaw](https://openclaw.dev) plugin for automatic x402 payments, wallet management, and pay-per-use inference proxying. For full installation, provider/model configuration, and troubleshooting, read `references/openclaw-plugin.md`.
170+
x402-proxy also ships as a separate [OpenClaw](https://openclaw.dev) plugin package, `x402-proxy-openclaw`, for automatic x402 payments, wallet management, and pay-per-use inference proxying. For full installation, provider/model configuration, and troubleshooting, read `references/openclaw-plugin.md`.
171171

172172
Quick install:
173173

174174
```bash
175-
openclaw plugins install x402-proxy
175+
openclaw plugins install x402-proxy-openclaw
176176
npx x402-proxy setup # creates wallet if needed
177177
```
178178

0 commit comments

Comments
 (0)