x402-proxy 0.11.0 → 0.11.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/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 warn, S as success, _ as decodePaymentResponseHeader, b as info, c as resolveWallet, d as displayNetwork, f as formatAmount, g as wrapFetchWithPayment, h as readHistory, l as appendHistory, m as formatUsdcValue, n as fetchAllBalances, o as walletInfoCommand, p as formatTxLine, s as buildX402Client, u as calcSpend, v as dim, x as isTTY, y as error } from "../wallet-CUCoLEqs.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-C10O8N36.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-q91MbrZT.js";
8
8
  import { n as statusCommand } from "../status-DjZdIeES.js";
9
9
  import { dirname, join, normalize, resolve } from "node:path";
10
10
  import { spawn } from "node:child_process";
@@ -1184,7 +1184,7 @@ async function resolveWalletForServe(flags) {
1184
1184
  solanaKey: flags.solanaKey
1185
1185
  });
1186
1186
  if (wallet.source !== "none") return wallet;
1187
- const { runSetup } = await import("../setup-BdSfEdx4.js");
1187
+ const { runSetup } = await import("../setup-DPuLACk7.js");
1188
1188
  if (isTTY()) {
1189
1189
  dim(" No wallet found. Let's set one up first.\n");
1190
1190
  await runSetup();
@@ -1825,7 +1825,7 @@ Examples:
1825
1825
  process.exit(1);
1826
1826
  }
1827
1827
  dim(" No wallet found. Let's set one up first.\n");
1828
- const { runSetup } = await import("../setup-BdSfEdx4.js");
1828
+ const { runSetup } = await import("../setup-DPuLACk7.js");
1829
1829
  await runSetup();
1830
1830
  console.log();
1831
1831
  wallet = resolveWallet();
@@ -2258,7 +2258,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2258
2258
  });
2259
2259
  if (wallet.source === "none") {
2260
2260
  dim("No wallet found. Auto-generating...");
2261
- const { runSetup } = await import("../setup-BdSfEdx4.js");
2261
+ const { runSetup } = await import("../setup-DPuLACk7.js");
2262
2262
  await runSetup({ nonInteractive: true });
2263
2263
  const fresh = resolveWallet({
2264
2264
  evmKey: flags.evmKey,
@@ -2279,7 +2279,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2279
2279
  const { SSEClientTransport } = await import("../sse-kba68iqF.js");
2280
2280
  const { StreamableHTTPClientTransport } = await import("../streamableHttp-DRntYTFN.js");
2281
2281
  const { Server } = await import("../server-Dbsk9dql.js");
2282
- const { StdioServerTransport } = await import("../stdio-CdmkLt8r.js");
2282
+ const { StdioServerTransport } = await import("../stdio-BCoJJXun.js");
2283
2283
  const { ListToolsRequestSchema, CallToolRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, ToolListChangedNotificationSchema, ResourceListChangedNotificationSchema } = await import("../types-DH9rDVeP.js");
2284
2284
  async function connectTransport(target) {
2285
2285
  try {
@@ -2321,7 +2321,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2321
2321
  }
2322
2322
  const remoteClient = new Client({
2323
2323
  name: "x402-proxy",
2324
- version: "0.11.0"
2324
+ version: "0.11.1"
2325
2325
  });
2326
2326
  await connectTransport(remoteClient);
2327
2327
  function recordX402Payment(ctx) {
@@ -2352,7 +2352,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2352
2352
  }
2353
2353
  const localServer = new Server({
2354
2354
  name: "x402-proxy",
2355
- version: "0.11.0"
2355
+ version: "0.11.1"
2356
2356
  }, { capabilities: {
2357
2357
  tools: tools.length > 0 ? {} : void 0,
2358
2358
  resources: remoteResources.length > 0 ? {} : void 0
@@ -2425,7 +2425,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2425
2425
  }));
2426
2426
  const remoteClient = new Client({
2427
2427
  name: "x402-proxy",
2428
- version: "0.11.0"
2428
+ version: "0.11.1"
2429
2429
  });
2430
2430
  await connectTransport(remoteClient);
2431
2431
  const mppClient = McpClient.wrap(remoteClient, { methods: wrappedMethods });
@@ -2440,7 +2440,7 @@ Wallet is auto-generated on first run. No env vars needed.`
2440
2440
  }
2441
2441
  const localServer = new Server({
2442
2442
  name: "x402-proxy",
2443
- version: "0.11.0"
2443
+ version: "0.11.1"
2444
2444
  }, { capabilities: {
2445
2445
  tools: tools.length > 0 ? {} : void 0,
2446
2446
  resources: remoteResources.length > 0 ? {} : void 0
@@ -2826,7 +2826,7 @@ const app = buildApplication(buildRouteMap({
2826
2826
  docs: { brief: "curl for x402 paid APIs" }
2827
2827
  }), {
2828
2828
  name: "x402-proxy",
2829
- versionInfo: { currentVersion: "0.11.0" },
2829
+ versionInfo: { currentVersion: "0.11.1" },
2830
2830
  scanner: { caseStyle: "allow-kebab-for-camel" }
2831
2831
  });
2832
2832
  //#endregion
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { t as runSetup } from "./setup-q91MbrZT.js";
3
+ export { runSetup };
@@ -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 process$1, { stdin, stdout } from "node:process";
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 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";
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 process from "node:process";
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 = process.stdin, _stdout = process.stdout) {
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, Solana, and Tempo.",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "license": "Apache-2.0",
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { t as runSetup } from "./setup-C10O8N36.js";
3
- export { runSetup };