x402-proxy 0.12.0 → 0.12.2
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,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.12.2] - 2026-06-11
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Eliminate npm peer-dependency warnings on `npx x402-proxy` install. The CLI is fully bundled and needs no runtime dependencies, but its published manifest still listed the full dependency tree, which made npm install `@x402/svm` and its older `@solana-program/*` packages (peer `@solana/kit@^5`) alongside `@solana/kit@6`, triggering "overriding peer dependency" warnings. The staged CLI package now publishes with no `dependencies`. The `x402-proxy-openclaw` plugin (unbundled) is unaffected.
|
|
15
|
+
|
|
16
|
+
## [0.12.1] - 2026-06-11
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Show Monad balance in the `status` screen and default `npx x402-proxy` view (0.12.0 added it only to `wallet info`)
|
|
21
|
+
|
|
10
22
|
## [0.12.0] - 2026-06-11
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -503,7 +515,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
503
515
|
- `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
|
|
504
516
|
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
|
|
505
517
|
|
|
506
|
-
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.
|
|
518
|
+
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.2...HEAD
|
|
519
|
+
[0.12.2]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.1...v0.12.2
|
|
520
|
+
[0.12.1]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.0...v0.12.1
|
|
507
521
|
[0.12.0]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.6...v0.12.0
|
|
508
522
|
[0.11.6]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.5...v0.11.6
|
|
509
523
|
[0.11.5]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.4...v0.11.5
|
package/dist/bin/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { C as success, S as isTTY, _ as wrapFetchWithPayment, b as error, c as b
|
|
|
5
5
|
import { i as deserializeSessionReceipt, n as tempo, o as parseUnits, r as parseEvent, t as create } from "../client-DqtxTnu6.js";
|
|
6
6
|
import { t as privateKeyToAccount } from "../accounts-D9KsVVpJ.js";
|
|
7
7
|
import { a as Nt, c as Wt, i as Jt, l as Ct, n as setupCommand, o as R, r as Gt, s as Rt, t as runSetup } from "../setup-C-fXZBSh.js";
|
|
8
|
-
import { n as statusCommand } from "../status-
|
|
8
|
+
import { n as statusCommand } from "../status-4wDGkJ3j.js";
|
|
9
9
|
import { dirname, join, normalize, resolve } from "node:path";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import { once } from "node:events";
|
|
@@ -1961,7 +1961,7 @@ Examples:
|
|
|
1961
1961
|
};
|
|
1962
1962
|
if (!url) {
|
|
1963
1963
|
if (isConfigured()) {
|
|
1964
|
-
const { displayStatus } = await import("../status-
|
|
1964
|
+
const { displayStatus } = await import("../status-DnstbyRA.js");
|
|
1965
1965
|
await displayStatus();
|
|
1966
1966
|
console.log();
|
|
1967
1967
|
console.log(import_picocolors.default.dim(" Commands:"));
|
|
@@ -2512,7 +2512,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2512
2512
|
}
|
|
2513
2513
|
const remoteClient = new Client({
|
|
2514
2514
|
name: "x402-proxy",
|
|
2515
|
-
version: "0.12.
|
|
2515
|
+
version: "0.12.2"
|
|
2516
2516
|
});
|
|
2517
2517
|
await connectTransport(remoteClient);
|
|
2518
2518
|
function recordX402Payment(ctx) {
|
|
@@ -2543,7 +2543,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2543
2543
|
}
|
|
2544
2544
|
const localServer = new Server({
|
|
2545
2545
|
name: "x402-proxy",
|
|
2546
|
-
version: "0.12.
|
|
2546
|
+
version: "0.12.2"
|
|
2547
2547
|
}, { capabilities: {
|
|
2548
2548
|
tools: tools.length > 0 ? {} : void 0,
|
|
2549
2549
|
resources: remoteResources.length > 0 ? {} : void 0
|
|
@@ -2617,7 +2617,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2617
2617
|
}));
|
|
2618
2618
|
const remoteClient = new Client({
|
|
2619
2619
|
name: "x402-proxy",
|
|
2620
|
-
version: "0.12.
|
|
2620
|
+
version: "0.12.2"
|
|
2621
2621
|
});
|
|
2622
2622
|
await connectTransport(remoteClient);
|
|
2623
2623
|
const mppClient = McpClient.wrap(remoteClient, { methods: wrappedMethods });
|
|
@@ -2632,7 +2632,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2632
2632
|
}
|
|
2633
2633
|
const localServer = new Server({
|
|
2634
2634
|
name: "x402-proxy",
|
|
2635
|
-
version: "0.12.
|
|
2635
|
+
version: "0.12.2"
|
|
2636
2636
|
}, { capabilities: {
|
|
2637
2637
|
tools: tools.length > 0 ? {} : void 0,
|
|
2638
2638
|
resources: remoteResources.length > 0 ? {} : void 0
|
|
@@ -3020,7 +3020,7 @@ const app = buildApplication(buildRouteMap({
|
|
|
3020
3020
|
docs: { brief: "curl for x402 paid APIs" }
|
|
3021
3021
|
}), {
|
|
3022
3022
|
name: "x402-proxy",
|
|
3023
|
-
versionInfo: { currentVersion: "0.12.
|
|
3023
|
+
versionInfo: { currentVersion: "0.12.2" },
|
|
3024
3024
|
scanner: { caseStyle: "allow-kebab-for-camel" }
|
|
3025
3025
|
});
|
|
3026
3026
|
//#endregion
|
|
@@ -17,11 +17,15 @@ async function displayStatus() {
|
|
|
17
17
|
console.log(import_picocolors.default.yellow(" No wallet configured."));
|
|
18
18
|
console.log(import_picocolors.default.dim(` Run ${import_picocolors.default.cyan("$ npx x402-proxy setup")} to create one.`));
|
|
19
19
|
} else {
|
|
20
|
-
const { evm, sol, tempo } = await fetchAllBalances(wallet.evmAddress, wallet.solanaAddress);
|
|
20
|
+
const { evm, sol, tempo, monad } = await fetchAllBalances(wallet.evmAddress, wallet.solanaAddress);
|
|
21
21
|
if (wallet.evmAddress) {
|
|
22
22
|
const bal = evm ? balanceLine(evm.usdc, evm.eth, "ETH") : import_picocolors.default.dim(" (network error)");
|
|
23
23
|
console.log(` Base: ${import_picocolors.default.green(wallet.evmAddress)}${bal}`);
|
|
24
24
|
}
|
|
25
|
+
if (wallet.evmAddress) {
|
|
26
|
+
const bal = monad ? balanceLine(monad.usdc, monad.mon, "MON") : import_picocolors.default.dim(" (network error)");
|
|
27
|
+
console.log(` Monad: ${import_picocolors.default.green(wallet.evmAddress)}${bal}`);
|
|
28
|
+
}
|
|
25
29
|
if (wallet.evmAddress) {
|
|
26
30
|
const bal = tempo ? import_picocolors.default.dim(` (${tempo.usdc} USDC)`) : import_picocolors.default.dim(" (network error)");
|
|
27
31
|
console.log(` Tempo: ${import_picocolors.default.green(wallet.evmAddress)}${bal}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x402-proxy",
|
|
3
3
|
"description": "curl for x402 paid APIs. Auto-pays any endpoint on Base, Monad, Solana, and Tempo.",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -29,30 +29,7 @@
|
|
|
29
29
|
"bin": {
|
|
30
30
|
"x402-proxy": "./dist/bin/cli.js"
|
|
31
31
|
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@clack/prompts": "^1.1.0",
|
|
34
|
-
"@getmcp/generators": "^0.10.1",
|
|
35
|
-
"@modelcontextprotocol/sdk": "~1.27.1",
|
|
36
|
-
"@noble/curves": "^2.0.1",
|
|
37
|
-
"@noble/hashes": "^2.0.1",
|
|
38
|
-
"@scure/base": "^2.0.0",
|
|
39
|
-
"@scure/bip32": "^2.0.1",
|
|
40
|
-
"@scure/bip39": "^2.0.1",
|
|
41
|
-
"@sinclair/typebox": "^0.34.48",
|
|
42
|
-
"@solana-program/token": "^0.12.0",
|
|
43
|
-
"@solana/kit": "^6.5.0",
|
|
44
|
-
"@stricli/core": "^1.2.6",
|
|
45
|
-
"@x402/core": "^2.8.0",
|
|
46
|
-
"@x402/evm": "^2.8.0",
|
|
47
|
-
"@x402/fetch": "^2.8.0",
|
|
48
|
-
"@x402/mcp": "^2.8.0",
|
|
49
|
-
"@x402/svm": "^2.8.0",
|
|
50
|
-
"ethers": "^6.16.0",
|
|
51
|
-
"mppx": "^0.5.1",
|
|
52
|
-
"picocolors": "^1.1.1",
|
|
53
|
-
"viem": "^2.47.6",
|
|
54
|
-
"yaml": "^2.8.3"
|
|
55
|
-
},
|
|
32
|
+
"dependencies": {},
|
|
56
33
|
"keywords": [
|
|
57
34
|
"x402",
|
|
58
35
|
"mpp",
|
package/dist/status-CawITnuz.js
DELETED