agentcash 0.13.2 → 0.13.4

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.
@@ -134540,7 +134540,7 @@ init_cjs_shims();
134540
134540
  // src/operations/check-endpoint.ts
134541
134541
  init_cjs_shims();
134542
134542
 
134543
- // ../../../node_modules/.pnpm/@agentcash+discovery@1.4.4/node_modules/@agentcash/discovery/dist/index.js
134543
+ // ../../../node_modules/.pnpm/@agentcash+discovery@1.4.5/node_modules/@agentcash/discovery/dist/index.js
134544
134544
  init_cjs_shims();
134545
134545
  var import_dereference_json_schema = __toESM(require_dereference_json_schema(), 1);
134546
134546
  var __defProp2 = Object.defineProperty;
@@ -148358,7 +148358,7 @@ function resolvePricingHint(p) {
148358
148358
  function resolveProtocols(p) {
148359
148359
  const fromProtocols = (p.protocols ?? []).filter((proto) => proto.length > 0);
148360
148360
  if (fromProtocols.length > 0) return fromProtocols;
148361
- if (p.method) return [p.method];
148361
+ if (p.intent) return ["mpp"];
148362
148362
  return [];
148363
148363
  }
148364
148364
  var OpenApiParsedSchema = OpenApiDocSchema.transform((doc) => {
@@ -149153,9 +149153,7 @@ function parseOperationProtocols(operation) {
149153
149153
  );
149154
149154
  if (protocols.length > 0) return protocols;
149155
149155
  }
149156
- if (typeof paymentInfo.method === "string" && paymentInfo.method.length > 0) {
149157
- return [paymentInfo.method];
149158
- }
149156
+ if (typeof paymentInfo.intent === "string") return ["mpp"];
149159
149157
  return void 0;
149160
149158
  }
149161
149159
  function getL3ForOpenAPI(openApi, path, method) {
@@ -149556,7 +149554,7 @@ var import_path2 = require("path");
149556
149554
  var import_url2 = require("url");
149557
149555
  function getVersion2() {
149558
149556
  if (true) {
149559
- return "0.13.2";
149557
+ return "0.13.4";
149560
149558
  }
149561
149559
  const __dirname2 = (0, import_path2.dirname)((0, import_url2.fileURLToPath)(importMetaUrl));
149562
149560
  const pkg2 = JSON.parse(
@@ -157023,7 +157021,7 @@ var import_path3 = require("path");
157023
157021
  var import_url5 = require("url");
157024
157022
  function getVersion3() {
157025
157023
  if (true) {
157026
- return "0.13.2";
157024
+ return "0.13.4";
157027
157025
  }
157028
157026
  const __dirname2 = (0, import_path3.dirname)((0, import_url5.fileURLToPath)(importMetaUrl));
157029
157027
  const pkg2 = JSON.parse(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MCP_VERSION
3
- } from "./chunk-WRMSVC2R.js";
3
+ } from "./chunk-MY4XBSA5.js";
4
4
  import {
5
5
  getBaseUrl,
6
6
  safeFetchJson
@@ -49,4 +49,4 @@ async function submitErrorReport(surface, input, address, dev) {
49
49
  export {
50
50
  submitErrorReport
51
51
  };
52
- //# sourceMappingURL=chunk-5JBG33QY.js.map
52
+ //# sourceMappingURL=chunk-27UK6Y67.js.map
@@ -4,7 +4,7 @@ import { dirname, join } from "path";
4
4
  import { fileURLToPath } from "url";
5
5
  function getVersion() {
6
6
  if (true) {
7
- return "0.13.2";
7
+ return "0.13.4";
8
8
  }
9
9
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
10
10
  const pkg = JSON.parse(
@@ -23,4 +23,4 @@ export {
23
23
  MCP_VERSION,
24
24
  INSTALL_PACKAGE_SPECIFIER
25
25
  };
26
- //# sourceMappingURL=chunk-WRMSVC2R.js.map
26
+ //# sourceMappingURL=chunk-MY4XBSA5.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-27DZCYDB.js";
7
7
  import {
8
8
  INSTALL_PACKAGE_SPECIFIER
9
- } from "./chunk-WRMSVC2R.js";
9
+ } from "./chunk-MY4XBSA5.js";
10
10
  import {
11
11
  log,
12
12
  safeReadFile,
@@ -610,4 +610,4 @@ export {
610
610
  tryAddServer,
611
611
  addServer
612
612
  };
613
- //# sourceMappingURL=chunk-H3L6DHOH.js.map
613
+ //# sourceMappingURL=chunk-XHUD4EZA.js.map
package/dist/esm/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-YIU364NZ.js";
8
8
  import {
9
9
  MCP_VERSION
10
- } from "./chunk-WRMSVC2R.js";
10
+ } from "./chunk-MY4XBSA5.js";
11
11
  import {
12
12
  paymentNetworks,
13
13
  paymentProtocols,
@@ -273,7 +273,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
273
273
  description: "The invite code to redeem (optional)"
274
274
  }),
275
275
  async (args) => {
276
- const { onboardCommand } = await import("./onboard-SLU3CNO4.js");
276
+ const { onboardCommand } = await import("./onboard-RNDOS2PC.js");
277
277
  await onboardCommand({ ...args, code: args.code ?? args.invite });
278
278
  }
279
279
  ).command(
@@ -402,7 +402,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
402
402
  description: TOOL_PARAMS.reportError.fullReport
403
403
  }),
404
404
  async (args) => {
405
- const { reportErrorCommand } = await import("./report-error-D3RRKDEC.js");
405
+ const { reportErrorCommand } = await import("./report-error-QG5I2WVK.js");
406
406
  await reportErrorCommand(args);
407
407
  }
408
408
  ).command(
@@ -432,7 +432,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
432
432
  "Start the MCP server (default when no command specified)",
433
433
  (yargs2) => yargs2,
434
434
  async (args) => {
435
- const { serverCommand } = await import("./server-QJNQOPBK.js");
435
+ const { serverCommand } = await import("./server-UBYLRQYE.js");
436
436
  await serverCommand(args);
437
437
  }
438
438
  ).command(
@@ -446,7 +446,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
446
446
  default: isClaudeCode ? "claude-code" /* ClaudeCode */ : void 0
447
447
  }),
448
448
  async (args) => {
449
- const { installMcpServer } = await import("./install-OK4J2KEU.js");
449
+ const { installMcpServer } = await import("./install-FFLO6EEN.js");
450
450
  await installMcpServer(args);
451
451
  }
452
452
  ).command(
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JOIAQY6V.js";
4
4
  import {
5
5
  addServer
6
- } from "./chunk-H3L6DHOH.js";
6
+ } from "./chunk-XHUD4EZA.js";
7
7
  import {
8
8
  wait
9
9
  } from "./chunk-DZNSJ2BA.js";
@@ -14,7 +14,7 @@ import {
14
14
  Clients,
15
15
  clientMetadata
16
16
  } from "./chunk-27DZCYDB.js";
17
- import "./chunk-WRMSVC2R.js";
17
+ import "./chunk-MY4XBSA5.js";
18
18
  import "./chunk-ISF2WVEZ.js";
19
19
  import {
20
20
  getBalance
@@ -175,4 +175,4 @@ var installMcpServer = async (args) => {
175
175
  export {
176
176
  installMcpServer
177
177
  };
178
- //# sourceMappingURL=install-OK4J2KEU.js.map
178
+ //# sourceMappingURL=install-FFLO6EEN.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getPlatformPath,
3
3
  tryAddServer
4
- } from "./chunk-H3L6DHOH.js";
4
+ } from "./chunk-XHUD4EZA.js";
5
5
  import "./chunk-DZNSJ2BA.js";
6
6
  import {
7
7
  installGitHubSkill
@@ -13,7 +13,7 @@ import {
13
13
  redeemInviteCode
14
14
  } from "./chunk-AWFBYDYO.js";
15
15
  import "./chunk-27DZCYDB.js";
16
- import "./chunk-WRMSVC2R.js";
16
+ import "./chunk-MY4XBSA5.js";
17
17
  import {
18
18
  getOnboardingCta,
19
19
  getWalletInfo
@@ -380,4 +380,4 @@ var onboardCommand = async (args) => {
380
380
  export {
381
381
  onboardCommand
382
382
  };
383
- //# sourceMappingURL=onboard-SLU3CNO4.js.map
383
+ //# sourceMappingURL=onboard-RNDOS2PC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  submitErrorReport
3
- } from "./chunk-5JBG33QY.js";
4
- import "./chunk-WRMSVC2R.js";
3
+ } from "./chunk-27UK6Y67.js";
4
+ import "./chunk-MY4XBSA5.js";
5
5
  import "./chunk-PBVLTOFS.js";
6
6
  import {
7
7
  getWalletOrExit
@@ -32,4 +32,4 @@ var reportErrorCommand = async (args) => {
32
32
  export {
33
33
  reportErrorCommand
34
34
  };
35
- //# sourceMappingURL=report-error-D3RRKDEC.js.map
35
+ //# sourceMappingURL=report-error-QG5I2WVK.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AWFBYDYO.js";
4
4
  import {
5
5
  submitErrorReport
6
- } from "./chunk-5JBG33QY.js";
6
+ } from "./chunk-27UK6Y67.js";
7
7
  import {
8
8
  bridge,
9
9
  bridgeSchema
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  loadUserOrigins
13
13
  } from "./chunk-YIU364NZ.js";
14
- import "./chunk-WRMSVC2R.js";
14
+ import "./chunk-MY4XBSA5.js";
15
15
  import {
16
16
  checkEndpoint
17
17
  } from "./chunk-5CMVFNXO.js";
@@ -682,7 +682,7 @@ import { dirname, join } from "path";
682
682
  import { fileURLToPath } from "url";
683
683
  function getVersion() {
684
684
  if (true) {
685
- return "0.13.2";
685
+ return "0.13.4";
686
686
  }
687
687
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
688
688
  const pkg = JSON.parse(
@@ -748,4 +748,4 @@ var startServer = async (flags) => {
748
748
  export {
749
749
  startServer
750
750
  };
751
- //# sourceMappingURL=server-KWXWCPIO.js.map
751
+ //# sourceMappingURL=server-S5KE2G7J.js.map
@@ -5,10 +5,10 @@ var serverCommand = async (args) => {
5
5
  "MCP server started. If you meant to explore the CLI, run: npx agentcash --help\n"
6
6
  );
7
7
  }
8
- const { startServer } = await import("./server-KWXWCPIO.js");
8
+ const { startServer } = await import("./server-S5KE2G7J.js");
9
9
  await startServer(args);
10
10
  };
11
11
  export {
12
12
  serverCommand
13
13
  };
14
- //# sourceMappingURL=server-QJNQOPBK.js.map
14
+ //# sourceMappingURL=server-UBYLRQYE.js.map
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "agentcash",
3
- "version": "0.13.2",
3
+ "version": "0.13.4",
4
+ "mcpName": "io.github.Merit-Systems/agentcash",
4
5
  "description": "Generic MCP server for calling x402-protected APIs with automatic payment handling",
5
6
  "type": "module",
6
7
  "main": "dist/esm/lib.js",
@@ -12,7 +13,7 @@
12
13
  "dist"
13
14
  ],
14
15
  "dependencies": {
15
- "@agentcash/discovery": "1.4.4",
16
+ "@agentcash/discovery": "1.4.5",
16
17
  "@clack/prompts": "^0.11.0",
17
18
  "@iarna/toml": "^2.2.5",
18
19
  "@modelcontextprotocol/sdk": "^1.27.0",