x402-proxy 0.12.0 → 0.12.1
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 +8 -1
- package/dist/bin/cli.js +12 -12
- package/dist/{setup-C-fXZBSh.js → setup-DUHpm-R1.js} +2 -2
- package/dist/setup-HnE7chKM.js +3 -0
- package/dist/{status-CALRKYFp.js → status-4wDGkJ3j.js} +5 -1
- package/dist/status-DnstbyRA.js +3 -0
- package/dist/{stdio-BCoJJXun.js → stdio-CdmkLt8r.js} +2 -2
- package/package.json +1 -1
- package/dist/setup-5KzHDwRR.js +0 -3
- package/dist/status-CawITnuz.js +0 -3
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.1] - 2026-06-11
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Show Monad balance in the `status` screen and default `npx x402-proxy` view (0.12.0 added it only to `wallet info`)
|
|
15
|
+
|
|
10
16
|
## [0.12.0] - 2026-06-11
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -503,7 +509,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
503
509
|
- `appendHistory` / `readHistory` / `calcSpend` - JSONL transaction history
|
|
504
510
|
- Re-exports from `@x402/fetch`, `@x402/svm`, `@x402/evm`
|
|
505
511
|
|
|
506
|
-
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.
|
|
512
|
+
[Unreleased]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.1...HEAD
|
|
513
|
+
[0.12.1]: https://github.com/cascade-protocol/x402-proxy/compare/v0.12.0...v0.12.1
|
|
507
514
|
[0.12.0]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.6...v0.12.0
|
|
508
515
|
[0.11.6]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.5...v0.11.6
|
|
509
516
|
[0.11.5]: https://github.com/cascade-protocol/x402-proxy/compare/v0.11.4...v0.11.5
|
package/dist/bin/cli.js
CHANGED
|
@@ -4,8 +4,8 @@ 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-
|
|
8
|
-
import { n as statusCommand } from "../status-
|
|
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-DUHpm-R1.js";
|
|
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";
|
|
@@ -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-HnE7chKM.js");
|
|
1378
1378
|
if (isTTY()) {
|
|
1379
1379
|
dim(" No wallet found. Let's set one up first.\n");
|
|
1380
1380
|
await runSetup();
|
|
@@ -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:"));
|
|
@@ -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-HnE7chKM.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-HnE7chKM.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-CdmkLt8r.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.1"
|
|
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.1"
|
|
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.1"
|
|
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.1"
|
|
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.1" },
|
|
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 process$1, { 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 process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.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");
|
|
@@ -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}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Z as JSONRPCMessageSchema } from "./types-BQ17ZF7g.js";
|
|
3
|
-
import
|
|
3
|
+
import process 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 = process.stdin, _stdout = process.stdout) {
|
|
39
39
|
this._stdin = _stdin;
|
|
40
40
|
this._stdout = _stdout;
|
|
41
41
|
this._readBuffer = new ReadBuffer();
|
package/package.json
CHANGED
package/dist/setup-5KzHDwRR.js
DELETED
package/dist/status-CawITnuz.js
DELETED