x402-proxy 0.12.1 → 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,12 @@ 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
|
+
|
|
10
16
|
## [0.12.1] - 2026-06-11
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
@@ -509,7 +515,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
509
515
|
- `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
|
|
510
516
|
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
|
|
511
517
|
|
|
512
|
-
[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
|
|
513
520
|
[0.12.1]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.0...v0.12.1
|
|
514
521
|
[0.12.0]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.6...v0.12.0
|
|
515
522
|
[0.11.6]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.5...v0.11.6
|
package/dist/bin/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import { C as run, S as buildRouteMap, _ as base58, a as getDebugLogPath, b as b
|
|
|
4
4
|
import { C as success, S as isTTY, _ as wrapFetchWithPayment, b as error, c as buildX402Client, d as calcSpend, f as displayNetwork, g as readHistory, h as formatUsdcValue, l as resolveWallet, m as formatTxLine, n as fetchAllBalances, p as formatAmount, s as walletInfoCommand, u as appendHistory, v as decodePaymentResponseHeader, w as warn, x as info, y as dim } from "../wallet-PKXYPnrG.js";
|
|
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
|
-
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-
|
|
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
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";
|
|
@@ -1374,7 +1374,7 @@ async function resolveWalletForServe(flags) {
|
|
|
1374
1374
|
solanaKey: flags.solanaKey
|
|
1375
1375
|
});
|
|
1376
1376
|
if (wallet.source !== "none") return wallet;
|
|
1377
|
-
const { runSetup } = await import("../setup-
|
|
1377
|
+
const { runSetup } = await import("../setup-5KzHDwRR.js");
|
|
1378
1378
|
if (isTTY()) {
|
|
1379
1379
|
dim(" No wallet found. Let's set one up first.\n");
|
|
1380
1380
|
await runSetup();
|
|
@@ -2016,7 +2016,7 @@ Examples:
|
|
|
2016
2016
|
process.exit(1);
|
|
2017
2017
|
}
|
|
2018
2018
|
dim(" No wallet found. Let's set one up first.\n");
|
|
2019
|
-
const { runSetup } = await import("../setup-
|
|
2019
|
+
const { runSetup } = await import("../setup-5KzHDwRR.js");
|
|
2020
2020
|
await runSetup();
|
|
2021
2021
|
console.log();
|
|
2022
2022
|
wallet = resolveWallet();
|
|
@@ -2449,7 +2449,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2449
2449
|
});
|
|
2450
2450
|
if (wallet.source === "none") {
|
|
2451
2451
|
dim("No wallet found. Auto-generating...");
|
|
2452
|
-
const { runSetup } = await import("../setup-
|
|
2452
|
+
const { runSetup } = await import("../setup-5KzHDwRR.js");
|
|
2453
2453
|
await runSetup({ nonInteractive: true });
|
|
2454
2454
|
const fresh = resolveWallet({
|
|
2455
2455
|
evmKey: flags.evmKey,
|
|
@@ -2470,7 +2470,7 @@ Wallet is auto-generated on first run. No env vars needed.`
|
|
|
2470
2470
|
const { SSEClientTransport } = await import("../sse-kba68iqF.js");
|
|
2471
2471
|
const { StreamableHTTPClientTransport } = await import("../streamableHttp-DRntYTFN.js");
|
|
2472
2472
|
const { Server } = await import("../server-Dbsk9dql.js");
|
|
2473
|
-
const { StdioServerTransport } = await import("../stdio-
|
|
2473
|
+
const { StdioServerTransport } = await import("../stdio-BCoJJXun.js");
|
|
2474
2474
|
const { ListToolsRequestSchema, CallToolRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, ToolListChangedNotificationSchema, ResourceListChangedNotificationSchema } = await import("../types-DH9rDVeP.js");
|
|
2475
2475
|
async function connectTransport(target) {
|
|
2476
2476
|
try {
|
|
@@ -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
|
|
@@ -4,7 +4,7 @@ import { c as isConfigured, d as saveConfig, g as generateMnemonic, i as getConf
|
|
|
4
4
|
import "node:path";
|
|
5
5
|
import "node:fs";
|
|
6
6
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
7
|
-
import
|
|
7
|
+
import N, { stdin, stdout } from "node:process";
|
|
8
8
|
import "node:readline";
|
|
9
9
|
import ot from "node:readline";
|
|
10
10
|
import "node:tty";
|
|
@@ -493,7 +493,7 @@ var $t = class extends B {
|
|
|
493
493
|
//#endregion
|
|
494
494
|
//#region node_modules/.pnpm/@clack+prompts@1.1.0/node_modules/@clack/prompts/dist/index.mjs
|
|
495
495
|
function pt() {
|
|
496
|
-
return
|
|
496
|
+
return N.platform !== "win32" ? N.env.TERM !== "linux" : !!N.env.CI || !!N.env.WT_SESSION || !!N.env.TERMINUS_SUBLIME || N.env.ConEmuTask === "{cmd::Cmder}" || N.env.TERM_PROGRAM === "Terminus-Sublime" || N.env.TERM_PROGRAM === "vscode" || N.env.TERM === "xterm-256color" || N.env.TERM === "alacritty" || N.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
497
497
|
}
|
|
498
498
|
const ee = pt(), I = (e, r) => ee ? e : r, Re = I("◆", "*"), $e = I("■", "x"), de = I("▲", "x"), V = I("◇", "o"), he = I("┌", "T"), h = I("│", "|"), x = I("└", "—");
|
|
499
499
|
I("┐", "T");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Z as JSONRPCMessageSchema } from "./types-BQ17ZF7g.js";
|
|
3
|
-
import
|
|
3
|
+
import N from "node:process";
|
|
4
4
|
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
5
5
|
/**
|
|
6
6
|
* Buffers a continuous stdio stream into discrete JSON-RPC messages.
|
|
@@ -35,7 +35,7 @@ function serializeMessage(message) {
|
|
|
35
35
|
* This transport is only available in Node.js environments.
|
|
36
36
|
*/
|
|
37
37
|
var StdioServerTransport = class {
|
|
38
|
-
constructor(_stdin =
|
|
38
|
+
constructor(_stdin = N.stdin, _stdout = N.stdout) {
|
|
39
39
|
this._stdin = _stdin;
|
|
40
40
|
this._stdout = _stdout;
|
|
41
41
|
this._readBuffer = new ReadBuffer();
|
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/setup-HnE7chKM.js
DELETED