agentcash 0.4.1 → 0.4.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.
@@ -88775,19 +88775,19 @@ var ExactEvmScheme = class {
88775
88775
  }
88776
88776
  };
88777
88777
 
88778
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/index.js
88778
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/index.js
88779
88779
  init_cjs_shims();
88780
88780
 
88781
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Expires.js
88781
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Expires.js
88782
88782
  init_cjs_shims();
88783
88783
  function minutes(n) {
88784
88784
  return new Date(Date.now() + n * 60 * 1e3).toISOString();
88785
88785
  }
88786
88786
 
88787
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/Methods.js
88787
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/Methods.js
88788
88788
  init_cjs_shims();
88789
88789
 
88790
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Credential.js
88790
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Credential.js
88791
88791
  init_cjs_shims();
88792
88792
 
88793
88793
  // ../../../node_modules/.pnpm/ox@0.12.1_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/index.js
@@ -91210,7 +91210,7 @@ function verify3(options) {
91210
91210
  // ../../../node_modules/.pnpm/ox@0.12.1_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/index.js
91211
91211
  init_Withdrawal();
91212
91212
 
91213
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Challenge.js
91213
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Challenge.js
91214
91214
  var Challenge_exports = {};
91215
91215
  __export(Challenge_exports, {
91216
91216
  Schema: () => Schema,
@@ -91224,27 +91224,27 @@ __export(Challenge_exports, {
91224
91224
  });
91225
91225
  init_cjs_shims();
91226
91226
 
91227
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/PaymentRequest.js
91227
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/PaymentRequest.js
91228
91228
  init_cjs_shims();
91229
91229
  function deserialize(encoded) {
91230
91230
  const json3 = Base64_exports.toString(encoded);
91231
91231
  return JSON.parse(json3);
91232
91232
  }
91233
- function fromIntent(intent, request) {
91234
- return intent.schema.request.parse(request);
91233
+ function fromIntent(method, request) {
91234
+ return method.schema.request.parse(request);
91235
91235
  }
91236
91236
  function serialize(request) {
91237
91237
  const json3 = JSON.stringify(request);
91238
91238
  return Base64_exports.fromString(json3, { pad: false, url: true });
91239
91239
  }
91240
91240
 
91241
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/zod.js
91241
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/zod.js
91242
91242
  init_cjs_shims();
91243
91243
 
91244
91244
  // ../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/mini/index.js
91245
91245
  init_cjs_shims();
91246
91246
 
91247
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/zod.js
91247
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/zod.js
91248
91248
  function amount() {
91249
91249
  return external_exports2.string().check(external_exports2.regex(/^\d+(\.\d+)?$/, "Invalid amount"));
91250
91250
  }
@@ -91257,13 +91257,8 @@ function hash4() {
91257
91257
  function signature() {
91258
91258
  return external_exports2.string().check(external_exports2.regex(/^0x[0-9a-fA-F]+$/, "Invalid signature"));
91259
91259
  }
91260
- function unwrapOptional(schema) {
91261
- if (schema._zod.def.type === "optional")
91262
- return schema._zod.def.innerType;
91263
- return schema;
91264
- }
91265
91260
 
91266
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Challenge.js
91261
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Challenge.js
91267
91262
  var Schema = object({
91268
91263
  /** Optional human-readable description of the payment. */
91269
91264
  description: optional(string2()),
@@ -91298,15 +91293,15 @@ function from9(parameters, options) {
91298
91293
  ...expires && { expires }
91299
91294
  });
91300
91295
  }
91301
- function fromIntent2(intent, parameters) {
91302
- const { method, name } = intent;
91296
+ function fromIntent2(method, parameters) {
91297
+ const { name: methodName, intent } = method;
91303
91298
  const { description, digest, expires, id, realm, secretKey } = parameters;
91304
- const request = fromIntent(intent, parameters.request);
91299
+ const request = fromIntent(method, parameters.request);
91305
91300
  return from9({
91306
91301
  ...id ? { id } : { secretKey },
91307
91302
  realm,
91308
- method,
91309
- intent: name,
91303
+ method: methodName,
91304
+ intent,
91310
91305
  request,
91311
91306
  description,
91312
91307
  digest,
@@ -91387,7 +91382,7 @@ function constantTimeEqual(a, b) {
91387
91382
  return result === 0;
91388
91383
  }
91389
91384
 
91390
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Credential.js
91385
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Credential.js
91391
91386
  function serialize3(credential) {
91392
91387
  const wire = {
91393
91388
  challenge: {
@@ -91402,11 +91397,19 @@ function serialize3(credential) {
91402
91397
  return `Payment ${encoded}`;
91403
91398
  }
91404
91399
 
91405
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/MethodIntent.js
91406
- init_cjs_shims();
91407
-
91408
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Intent.js
91400
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Method.js
91409
91401
  init_cjs_shims();
91402
+ function from10(method) {
91403
+ return method;
91404
+ }
91405
+ function toClient(method, options) {
91406
+ const { context: context2, createCredential } = options;
91407
+ return {
91408
+ ...method,
91409
+ context: context2,
91410
+ createCredential
91411
+ };
91412
+ }
91410
91413
 
91411
91414
  // ../../../node_modules/.pnpm/viem@2.46.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/index.js
91412
91415
  init_cjs_shims();
@@ -94780,7 +94783,7 @@ var SignatureErc8010_exports = {};
94780
94783
  __export(SignatureErc8010_exports, {
94781
94784
  InvalidWrappedSignatureError: () => InvalidWrappedSignatureError,
94782
94785
  assert: () => assert7,
94783
- from: () => from10,
94786
+ from: () => from11,
94784
94787
  magicBytes: () => magicBytes,
94785
94788
  suffixParameters: () => suffixParameters,
94786
94789
  unwrap: () => unwrap,
@@ -94799,7 +94802,7 @@ function assert7(value) {
94799
94802
  } else
94800
94803
  assert6(value.authorization);
94801
94804
  }
94802
- function from10(value) {
94805
+ function from11(value) {
94803
94806
  if (typeof value === "string")
94804
94807
  return unwrap(value);
94805
94808
  return value;
@@ -95120,7 +95123,7 @@ var SignatureErc6492_exports = {};
95120
95123
  __export(SignatureErc6492_exports, {
95121
95124
  InvalidWrappedSignatureError: () => InvalidWrappedSignatureError2,
95122
95125
  assert: () => assert8,
95123
- from: () => from11,
95126
+ from: () => from12,
95124
95127
  magicBytes: () => magicBytes2,
95125
95128
  universalSignatureValidatorAbi: () => universalSignatureValidatorAbi,
95126
95129
  universalSignatureValidatorBytecode: () => universalSignatureValidatorBytecode,
@@ -95181,7 +95184,7 @@ function assert8(wrapped) {
95181
95184
  if (slice(wrapped, -32) !== magicBytes2)
95182
95185
  throw new InvalidWrappedSignatureError2(wrapped);
95183
95186
  }
95184
- function from11(wrapped) {
95187
+ function from12(wrapped) {
95185
95188
  if (typeof wrapped === "string")
95186
95189
  return unwrap2(wrapped);
95187
95190
  return wrapped;
@@ -96000,116 +96003,10 @@ init_getAddress2();
96000
96003
  init_toFunctionSelector();
96001
96004
  init_formatUnits();
96002
96005
 
96003
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Intent.js
96004
- function from12(intent) {
96005
- return intent;
96006
- }
96007
- var charge = from12({
96008
- name: "charge",
96009
- schema: {
96010
- request: pipe(
96011
- object({
96012
- amount: amount(),
96013
- currency: string2(),
96014
- decimals: number2(),
96015
- description: optional(string2()),
96016
- expires: _default2(datetime4(), () => minutes(5)),
96017
- externalId: optional(string2()),
96018
- recipient: optional(string2())
96019
- }),
96020
- // Note: Since the spec states we must have `amount` as a base unit, we
96021
- // will transform the amount to decimal units based on `decimals`.
96022
- transform(({ amount: amount2, decimals: decimals2, ...rest }) => ({
96023
- ...rest,
96024
- amount: parseUnits(amount2, decimals2).toString()
96025
- }))
96026
- )
96027
- }
96028
- });
96029
- var session = from12({
96030
- name: "session",
96031
- schema: {
96032
- request: pipe(object({
96033
- amount: amount(),
96034
- unitType: string2(),
96035
- currency: string2(),
96036
- decimals: number2(),
96037
- recipient: optional(string2()),
96038
- suggestedDeposit: optional(amount())
96039
- }), transform(({ amount: amount2, decimals: decimals2, suggestedDeposit, ...rest }) => ({
96040
- ...rest,
96041
- amount: parseUnits(amount2, decimals2).toString(),
96042
- ...suggestedDeposit ? { suggestedDeposit: parseUnits(suggestedDeposit, decimals2).toString() } : {}
96043
- })))
96044
- }
96045
- });
96046
- function shapeOf(intent) {
96047
- const { request } = intent.schema;
96048
- if ("shape" in request)
96049
- return request.shape;
96050
- return request._zod.def.in.shape;
96051
- }
96052
-
96053
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/MethodIntent.js
96054
- function fromIntent3(intent, options) {
96055
- const { name } = intent;
96056
- const { method, schema } = options;
96057
- const requestShape = shapeOf(intent);
96058
- const methodDetails = schema.request?.methodDetails;
96059
- const requires = schema.request?.requires ?? [];
96060
- const requestInputShape = {};
96061
- for (const [key, field] of Object.entries(requestShape)) {
96062
- if (requires.includes(key))
96063
- requestInputShape[key] = unwrapOptional(field);
96064
- else
96065
- requestInputShape[key] = field;
96066
- }
96067
- const methodDetailsKeys = [];
96068
- if (methodDetails)
96069
- for (const [key, field] of Object.entries(methodDetails.shape)) {
96070
- requestInputShape[key] = field;
96071
- methodDetailsKeys.push(key);
96072
- }
96073
- const intentRequest = intent.schema.request;
96074
- const hasPipe = !("shape" in intentRequest);
96075
- const request = pipe(object(requestInputShape), transform((input) => {
96076
- const transformed = hasPipe ? intentRequest.parse(input) : input;
96077
- const result = {};
96078
- const details = {};
96079
- for (const [key, value] of Object.entries(transformed)) {
96080
- result[key] = value;
96081
- }
96082
- for (const key of methodDetailsKeys) {
96083
- const value = input[key];
96084
- if (value !== void 0)
96085
- details[key] = value;
96086
- }
96087
- if (Object.keys(details).length > 0)
96088
- result.methodDetails = details;
96089
- return result;
96090
- }));
96091
- return {
96092
- method,
96093
- name,
96094
- schema: {
96095
- credential: { payload: schema.credential.payload },
96096
- request
96097
- }
96098
- };
96099
- }
96100
- function toClient(intent, options) {
96101
- const { context: context2, createCredential } = options;
96102
- return {
96103
- ...intent,
96104
- context: context2,
96105
- createCredential
96106
- };
96107
- }
96108
-
96109
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/MethodIntents.js
96006
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/index.js
96110
96007
  init_cjs_shims();
96111
96008
 
96112
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/Charge.js
96009
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Charge.js
96113
96010
  init_cjs_shims();
96114
96011
 
96115
96012
  // ../../../node_modules/.pnpm/viem@2.46.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/actions/index.js
@@ -102330,7 +102227,7 @@ async function updateSync(client, parameters) {
102330
102227
  return { receipt };
102331
102228
  }
102332
102229
 
102333
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/viem/Account.js
102230
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/viem/Account.js
102334
102231
  init_cjs_shims();
102335
102232
 
102336
102233
  // ../../../node_modules/.pnpm/viem@2.46.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/accounts/index.js
@@ -102493,7 +102390,7 @@ function privateKeyToAccount(privateKey, options = {}) {
102493
102390
  // ../../../node_modules/.pnpm/viem@2.46.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/accounts/index.js
102494
102391
  init_parseAccount();
102495
102392
 
102496
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/viem/Account.js
102393
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/viem/Account.js
102497
102394
  function getResolver(parameters = {}) {
102498
102395
  const { account: defaultAccount } = parameters;
102499
102396
  return (client, { account: override } = {}) => {
@@ -102507,7 +102404,7 @@ function getResolver(parameters = {}) {
102507
102404
  };
102508
102405
  }
102509
102406
 
102510
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/viem/Client.js
102407
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/viem/Client.js
102511
102408
  init_cjs_shims();
102512
102409
  function getResolver2(parameters) {
102513
102410
  const { chain: chain2, getClient, rpcUrl: rpcUrl2 } = parameters;
@@ -102527,7 +102424,7 @@ function getResolver2(parameters) {
102527
102424
  };
102528
102425
  }
102529
102426
 
102530
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/Attribution.js
102427
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/Attribution.js
102531
102428
  init_cjs_shims();
102532
102429
  var tag = Hex_exports.slice(Hash_exports.keccak256(Bytes_exports.fromString("mpp"), { as: "Hex" }), 0, 4);
102533
102430
  var version6 = 1;
@@ -102548,10 +102445,23 @@ function encode5(parameters) {
102548
102445
  return Hex_exports.fromBytes(buf);
102549
102446
  }
102550
102447
 
102551
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/Intents.js
102448
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/internal/defaults.js
102449
+ init_cjs_shims();
102450
+ var rpcUrl = {
102451
+ 4217: "https://rpc.tempo.xyz",
102452
+ 42431: "https://rpc.moderato.tempo.xyz"
102453
+ };
102454
+ var escrowContract = {
102455
+ 4217: "0x0901aED692C755b870F9605E56BAA66C35BEfF69",
102456
+ 42431: "0x542831e3E4Ace07559b7C8787395f4Fb99F70787"
102457
+ };
102458
+ var decimals = 6;
102459
+
102460
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/Methods.js
102552
102461
  init_cjs_shims();
102553
- var charge2 = fromIntent3(charge, {
102554
- method: "tempo",
102462
+ var charge = from10({
102463
+ name: "tempo",
102464
+ intent: "charge",
102555
102465
  schema: {
102556
102466
  credential: {
102557
102467
  payload: discriminatedUnion("type", [
@@ -102559,36 +102469,51 @@ var charge2 = fromIntent3(charge, {
102559
102469
  object({ signature: signature(), type: literal("transaction") })
102560
102470
  ])
102561
102471
  },
102562
- request: {
102563
- methodDetails: object({
102564
- chainId: optional(number2()),
102565
- feePayer: optional(pipe(union([boolean2(), custom()]), transform((v) => typeof v === "object" ? true : v))),
102566
- memo: optional(hash4())
102567
- }),
102568
- requires: ["decimals", "recipient"]
102569
- }
102472
+ request: pipe(object({
102473
+ amount: amount(),
102474
+ chainId: optional(number2()),
102475
+ currency: string2(),
102476
+ decimals: number2(),
102477
+ description: optional(string2()),
102478
+ expires: _default2(datetime4(), () => minutes(5)),
102479
+ externalId: optional(string2()),
102480
+ feePayer: optional(pipe(union([boolean2(), custom()]), transform((v) => typeof v === "object" ? true : v))),
102481
+ memo: optional(hash4()),
102482
+ recipient: optional(string2())
102483
+ }), transform(({ amount: amount2, chainId, decimals: decimals2, feePayer, memo, ...rest }) => ({
102484
+ ...rest,
102485
+ amount: parseUnits(amount2, decimals2).toString(),
102486
+ ...chainId !== void 0 || feePayer !== void 0 || memo !== void 0 ? {
102487
+ methodDetails: {
102488
+ ...chainId !== void 0 && { chainId },
102489
+ ...feePayer !== void 0 && { feePayer },
102490
+ ...memo !== void 0 && { memo }
102491
+ }
102492
+ } : {}
102493
+ })))
102570
102494
  }
102571
102495
  });
102572
- var session2 = fromIntent3(session, {
102573
- method: "tempo",
102496
+ var session = from10({
102497
+ name: "tempo",
102498
+ intent: "session",
102574
102499
  schema: {
102575
102500
  credential: {
102576
102501
  payload: discriminatedUnion("action", [
102577
102502
  object({
102578
102503
  action: literal("open"),
102579
- type: literal("transaction"),
102580
- channelId: hash4(),
102581
- transaction: signature(),
102582
102504
  authorizedSigner: optional(string2()),
102505
+ channelId: hash4(),
102583
102506
  cumulativeAmount: amount(),
102584
- signature: signature()
102507
+ signature: signature(),
102508
+ transaction: signature(),
102509
+ type: literal("transaction")
102585
102510
  }),
102586
102511
  object({
102587
102512
  action: literal("topUp"),
102588
- type: literal("transaction"),
102513
+ additionalDeposit: amount(),
102589
102514
  channelId: hash4(),
102590
102515
  transaction: signature(),
102591
- additionalDeposit: amount()
102516
+ type: literal("transaction")
102592
102517
  }),
102593
102518
  object({
102594
102519
  action: literal("voucher"),
@@ -102604,33 +102529,37 @@ var session2 = fromIntent3(session, {
102604
102529
  })
102605
102530
  ])
102606
102531
  },
102607
- request: {
102608
- methodDetails: object({
102609
- escrowContract: string2(),
102610
- channelId: optional(hash4()),
102611
- minVoucherDelta: optional(amount()),
102612
- chainId: optional(number2()),
102613
- feePayer: optional(pipe(union([boolean2(), custom()]), transform((v) => typeof v === "object" ? true : v)))
102614
- }),
102615
- requires: ["decimals", "recipient", "currency"]
102616
- }
102532
+ request: pipe(object({
102533
+ amount: amount(),
102534
+ chainId: optional(number2()),
102535
+ channelId: optional(hash4()),
102536
+ currency: string2(),
102537
+ decimals: number2(),
102538
+ escrowContract: optional(string2()),
102539
+ feePayer: optional(pipe(union([boolean2(), custom()]), transform((v) => typeof v === "object" ? true : v))),
102540
+ minVoucherDelta: optional(amount()),
102541
+ recipient: optional(string2()),
102542
+ suggestedDeposit: optional(amount()),
102543
+ unitType: string2()
102544
+ }), transform(({ amount: amount2, chainId, channelId, decimals: decimals2, escrowContract: escrowContract2, feePayer, minVoucherDelta, suggestedDeposit, ...rest }) => ({
102545
+ ...rest,
102546
+ amount: parseUnits(amount2, decimals2).toString(),
102547
+ ...suggestedDeposit ? {
102548
+ suggestedDeposit: parseUnits(suggestedDeposit, decimals2).toString()
102549
+ } : {},
102550
+ methodDetails: {
102551
+ escrowContract: escrowContract2,
102552
+ ...channelId !== void 0 && { channelId },
102553
+ ...minVoucherDelta !== void 0 && { minVoucherDelta },
102554
+ ...chainId !== void 0 && { chainId },
102555
+ ...feePayer !== void 0 && { feePayer }
102556
+ }
102557
+ })))
102617
102558
  }
102618
102559
  });
102619
102560
 
102620
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/internal/defaults.js
102621
- init_cjs_shims();
102622
- var rpcUrl = {
102623
- 4217: "https://rpc.tempo.xyz",
102624
- 42431: "https://rpc.moderato.tempo.xyz"
102625
- };
102626
- var escrowContract = {
102627
- 4217: "0x0901aED692C755b870F9605E56BAA66C35BEfF69",
102628
- 42431: "0x542831e3E4Ace07559b7C8787395f4Fb99F70787"
102629
- };
102630
- var decimals = 6;
102631
-
102632
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/Charge.js
102633
- function charge3(parameters = {}) {
102561
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Charge.js
102562
+ function charge2(parameters = {}) {
102634
102563
  const { clientId } = parameters;
102635
102564
  const getClient = getResolver2({
102636
102565
  chain: tempo,
@@ -102638,7 +102567,7 @@ function charge3(parameters = {}) {
102638
102567
  rpcUrl
102639
102568
  });
102640
102569
  const getAccount = getResolver({ account: parameters.account });
102641
- return toClient(charge2, {
102570
+ return toClient(charge, {
102642
102571
  context: object({
102643
102572
  account: optional(custom())
102644
102573
  }),
@@ -102672,10 +102601,13 @@ function charge3(parameters = {}) {
102672
102601
  });
102673
102602
  }
102674
102603
 
102675
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/Session.js
102604
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Methods.js
102605
+ init_cjs_shims();
102606
+
102607
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Session.js
102676
102608
  init_cjs_shims();
102677
102609
 
102678
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Voucher.js
102610
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Voucher.js
102679
102611
  init_cjs_shims();
102680
102612
  var DOMAIN_NAME = "Tempo Stream Channel";
102681
102613
  var DOMAIN_VERSION = "1";
@@ -102715,13 +102647,13 @@ async function signVoucher(client, account, message, escrowContract2, chainId, a
102715
102647
  return signature2;
102716
102648
  }
102717
102649
 
102718
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/ChannelOps.js
102650
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/ChannelOps.js
102719
102651
  init_cjs_shims();
102720
102652
 
102721
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Chain.js
102653
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Chain.js
102722
102654
  init_cjs_shims();
102723
102655
 
102724
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/escrow.abi.js
102656
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/escrow.abi.js
102725
102657
  init_cjs_shims();
102726
102658
  var escrowAbi = [
102727
102659
  {
@@ -103483,7 +103415,7 @@ var escrowAbi = [
103483
103415
  }
103484
103416
  ];
103485
103417
 
103486
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Chain.js
103418
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Chain.js
103487
103419
  var UINT128_MAX = 2n ** 128n - 1n;
103488
103420
  async function getOnChainChannel(client, escrowContract2, channelId) {
103489
103421
  return readContract(client, {
@@ -103496,7 +103428,7 @@ async function getOnChainChannel(client, escrowContract2, channelId) {
103496
103428
  var escrowOpenSelector = /* @__PURE__ */ toFunctionSelector(getAbiItem({ abi: escrowAbi, name: "open" }));
103497
103429
  var escrowTopUpSelector = /* @__PURE__ */ toFunctionSelector(getAbiItem({ abi: escrowAbi, name: "topUp" }));
103498
103430
 
103499
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Channel.js
103431
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Channel.js
103500
103432
  init_cjs_shims();
103501
103433
  function computeId2(parameters) {
103502
103434
  const encoded = AbiParameters_exports.encode(AbiParameters_exports.from([
@@ -103519,7 +103451,7 @@ function computeId2(parameters) {
103519
103451
  return Hash_exports.keccak256(encoded);
103520
103452
  }
103521
103453
 
103522
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/ChannelOps.js
103454
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/ChannelOps.js
103523
103455
  function resolveEscrow(challenge2, chainId, escrowContractOverride) {
103524
103456
  const challengeEscrow = challenge2.request.methodDetails?.escrowContract;
103525
103457
  const escrow = challengeEscrow ?? escrowContractOverride ?? escrowContract[chainId];
@@ -103615,7 +103547,7 @@ async function tryRecoverChannel(client, escrowContract2, channelId, chainId) {
103615
103547
  return void 0;
103616
103548
  }
103617
103549
 
103618
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/Session.js
103550
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Session.js
103619
103551
  var streamContextSchema = object({
103620
103552
  account: optional(custom()),
103621
103553
  action: optional(_enum2(["open", "topUp", "voucher", "close"])),
@@ -103628,7 +103560,7 @@ var streamContextSchema = object({
103628
103560
  additionalDepositRaw: optional(string2()),
103629
103561
  depositRaw: optional(string2())
103630
103562
  });
103631
- function session3(parameters = {}) {
103563
+ function session2(parameters = {}) {
103632
103564
  const { decimals: decimals2 = decimals } = parameters;
103633
103565
  const getClient = getResolver2({
103634
103566
  chain: tempo,
@@ -103802,7 +103734,7 @@ function session3(parameters = {}) {
103802
103734
  }
103803
103735
  return serializeCredential(challenge2, payload, chainId, account);
103804
103736
  }
103805
- return toClient(session2, {
103737
+ return toClient(session, {
103806
103738
  context: streamContextSchema,
103807
103739
  async createCredential({ challenge: challenge2, context: context2 }) {
103808
103740
  const chainId = challenge2.request.methodDetails?.chainId ?? 0;
@@ -103817,10 +103749,10 @@ function session3(parameters = {}) {
103817
103749
  });
103818
103750
  }
103819
103751
 
103820
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/SessionManager.js
103752
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/SessionManager.js
103821
103753
  init_cjs_shims();
103822
103754
 
103823
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/internal/Fetch.js
103755
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/internal/Fetch.js
103824
103756
  init_cjs_shims();
103825
103757
  var originalFetch;
103826
103758
  function from19(config2) {
@@ -103831,9 +103763,9 @@ function from19(config2) {
103831
103763
  if (response.status !== 402)
103832
103764
  return response;
103833
103765
  const challenge2 = fromResponse(response);
103834
- const mi = methods.find((m) => m.method === challenge2.method && m.name === challenge2.intent);
103766
+ const mi = methods.find((m) => m.name === challenge2.method && m.intent === challenge2.intent);
103835
103767
  if (!mi)
103836
- throw new Error(`No method intent found for "${challenge2.method}.${challenge2.intent}". Available: ${methods.map((m) => `${m.method}.${m.name}`).join(", ")}`);
103768
+ throw new Error(`No method found for "${challenge2.method}.${challenge2.intent}". Available: ${methods.map((m) => `${m.name}.${m.intent}`).join(", ")}`);
103837
103769
  const onChallengeCredential = onChallenge ? await onChallenge(challenge2, {
103838
103770
  createCredential: async (overrideContext) => resolveCredential(challenge2, mi, overrideContext ?? context2)
103839
103771
  }) : void 0;
@@ -103862,14 +103794,14 @@ async function resolveCredential(challenge2, mi, context2) {
103862
103794
  return mi.createCredential(parsedContext !== void 0 ? { challenge: challenge2, context: parsedContext } : { challenge: challenge2 });
103863
103795
  }
103864
103796
 
103865
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Receipt.js
103797
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Receipt.js
103866
103798
  init_cjs_shims();
103867
103799
  function deserializeStreamReceipt(encoded) {
103868
103800
  const json3 = Base64_exports.toString(encoded);
103869
103801
  return JSON.parse(json3);
103870
103802
  }
103871
103803
 
103872
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/stream/Sse.js
103804
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/stream/Sse.js
103873
103805
  init_cjs_shims();
103874
103806
  function parseEvent(raw) {
103875
103807
  let eventType = "message";
@@ -103898,13 +103830,13 @@ function parseEvent(raw) {
103898
103830
  }
103899
103831
  }
103900
103832
 
103901
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/SessionManager.js
103833
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/SessionManager.js
103902
103834
  function sessionManager(parameters) {
103903
103835
  const fetchFn = parameters.fetch ?? globalThis.fetch;
103904
103836
  let channel = null;
103905
103837
  let lastChallenge = null;
103906
103838
  let lastUrl = null;
103907
- const method = session3({
103839
+ const method = session2({
103908
103840
  account: parameters.account,
103909
103841
  authorizedSigner: parameters.authorizedSigner,
103910
103842
  getClient: parameters.client ? () => parameters.client : parameters.getClient,
@@ -104073,16 +104005,16 @@ function sessionManager(parameters) {
104073
104005
  return self2;
104074
104006
  }
104075
104007
 
104076
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/tempo/client/MethodIntents.js
104008
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/tempo/client/Methods.js
104077
104009
  function tempo2(parameters = {}) {
104078
- return [charge3(parameters), session3(parameters)];
104010
+ return [charge2(parameters), session2(parameters)];
104079
104011
  }
104080
104012
  (function(tempo3) {
104081
- tempo3.charge = charge3;
104013
+ tempo3.charge = charge2;
104082
104014
  tempo3.session = sessionManager;
104083
104015
  })(tempo2 || (tempo2 = {}));
104084
104016
 
104085
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/Mppx.js
104017
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/Mppx.js
104086
104018
  var Mppx_exports = {};
104087
104019
  __export(Mppx_exports, {
104088
104020
  create: () => create4,
@@ -104090,7 +104022,7 @@ __export(Mppx_exports, {
104090
104022
  });
104091
104023
  init_cjs_shims();
104092
104024
 
104093
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/Transport.js
104025
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/Transport.js
104094
104026
  init_cjs_shims();
104095
104027
  function from20(transport) {
104096
104028
  return transport;
@@ -104112,7 +104044,7 @@ function http2() {
104112
104044
  });
104113
104045
  }
104114
104046
 
104115
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/client/Mppx.js
104047
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/client/Mppx.js
104116
104048
  function create4(config2) {
104117
104049
  const { onChallenge, polyfill: polyfill2 = true, transport = http2() } = config2;
104118
104050
  const methods = config2.methods.flat();
@@ -104131,9 +104063,9 @@ function create4(config2) {
104131
104063
  transport,
104132
104064
  async createCredential(response, context2) {
104133
104065
  const challenge2 = transport.getChallenge(response);
104134
- const mi = methods.find((m) => m.method === challenge2.method && m.name === challenge2.intent);
104066
+ const mi = methods.find((m) => m.name === challenge2.method && m.intent === challenge2.intent);
104135
104067
  if (!mi)
104136
- throw new Error(`No method intent found for "${challenge2.method}.${challenge2.intent}". Available: ${methods.map((m) => `${m.method}.${m.name}`).join(", ")}`);
104068
+ throw new Error(`No method found for "${challenge2.method}.${challenge2.intent}". Available: ${methods.map((m) => `${m.name}.${m.intent}`).join(", ")}`);
104137
104069
  const parsedContext = mi.context && context2 !== void 0 ? mi.context.parse(context2) : void 0;
104138
104070
  return mi.createCredential(parsedContext !== void 0 ? { challenge: challenge2, context: parsedContext } : { challenge: challenge2 });
104139
104071
  }
@@ -108594,10 +108526,10 @@ var safeCreateSIWxPayload = (surface2, serverInfo, signer) => {
108594
108526
  // src/shared/neverthrow/mpp/index.ts
108595
108527
  init_cjs_shims();
108596
108528
 
108597
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/index.js
108529
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/index.js
108598
108530
  init_cjs_shims();
108599
108531
 
108600
- // ../../../node_modules/.pnpm/mppx@0.1.1_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_405dfb80e1c7f6ab13ff44820fe9b86a/node_modules/mppx/dist/Receipt.js
108532
+ // ../../../node_modules/.pnpm/mppx@0.2.0_@modelcontextprotocol+sdk@1.26.0_zod@4.3.6__express@5.2.1_hono@4.11.9_typesc_3e8d079a06ad8f87e26cecc997a2a9a6/node_modules/mppx/dist/Receipt.js
108601
108533
  var Receipt_exports = {};
108602
108534
  __export(Receipt_exports, {
108603
108535
  Schema: () => Schema2,
@@ -110827,7 +110759,7 @@ var import_path2 = require("path");
110827
110759
  var import_url = require("url");
110828
110760
  function getVersion2() {
110829
110761
  if (true) {
110830
- return "0.4.1";
110762
+ return "0.4.2";
110831
110763
  }
110832
110764
  const __dirname3 = (0, import_path2.dirname)((0, import_url.fileURLToPath)(importMetaUrl));
110833
110765
  const pkg = JSON.parse(
@@ -111567,7 +111499,7 @@ var import_path3 = require("path");
111567
111499
  var import_url2 = require("url");
111568
111500
  function getVersion3() {
111569
111501
  if (true) {
111570
- return "0.4.1";
111502
+ return "0.4.2";
111571
111503
  }
111572
111504
  const __dirname3 = (0, import_path3.dirname)((0, import_url2.fileURLToPath)(importMetaUrl));
111573
111505
  const pkg = JSON.parse(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MCP_VERSION
3
- } from "./chunk-7LPATNAW.js";
3
+ } from "./chunk-KQZSZS7X.js";
4
4
  import {
5
5
  DEFAULT_FETCH_TIMEOUT,
6
6
  err,
@@ -708,4 +708,4 @@ export {
708
708
  getWalletInfo,
709
709
  submitErrorReport
710
710
  };
711
- //# sourceMappingURL=chunk-SHAJ42CH.js.map
711
+ //# sourceMappingURL=chunk-4GFBYNRG.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.4.1";
7
+ return "0.4.2";
8
8
  }
9
9
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
10
10
  const pkg = JSON.parse(
@@ -19,4 +19,4 @@ export {
19
19
  MCP_VERSION,
20
20
  DIST_TAG
21
21
  };
22
- //# sourceMappingURL=chunk-7LPATNAW.js.map
22
+ //# sourceMappingURL=chunk-KQZSZS7X.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getWalletInfo,
3
3
  submitErrorReport
4
- } from "./chunk-SHAJ42CH.js";
4
+ } from "./chunk-4GFBYNRG.js";
5
5
 
6
6
  // src/shared/operations/index.ts
7
7
  async function getWalletInfo2(surface, address, flags) {
@@ -19,4 +19,4 @@ export {
19
19
  getWalletInfo2 as getWalletInfo,
20
20
  submitErrorReport2 as submitErrorReport
21
21
  };
22
- //# sourceMappingURL=chunk-2CFQ7ILC.js.map
22
+ //# sourceMappingURL=chunk-NJYETKE3.js.map
@@ -7,7 +7,7 @@ import {
7
7
  tokenStringToNumber,
8
8
  x402Err,
9
9
  x402Ok
10
- } from "./chunk-SHAJ42CH.js";
10
+ } from "./chunk-4GFBYNRG.js";
11
11
  import {
12
12
  err,
13
13
  fetchErr,
@@ -354,4 +354,4 @@ export {
354
354
  safeGetMppChallenge,
355
355
  createFetchWithPayment
356
356
  };
357
- //# sourceMappingURL=chunk-7DEM3OEU.js.map
357
+ //# sourceMappingURL=chunk-ZHELH6AF.js.map
@@ -2,15 +2,15 @@ import {
2
2
  buildRequest,
3
3
  createFetchWithPayment,
4
4
  requestSchema
5
- } from "./chunk-7DEM3OEU.js";
5
+ } from "./chunk-ZHELH6AF.js";
6
6
  import {
7
7
  TEMPO_RPC_URL,
8
8
  checkEndpoint,
9
9
  discoverResources,
10
10
  getWalletInfo,
11
11
  submitErrorReport
12
- } from "./chunk-SHAJ42CH.js";
13
- import "./chunk-7LPATNAW.js";
12
+ } from "./chunk-4GFBYNRG.js";
13
+ import "./chunk-KQZSZS7X.js";
14
14
  import {
15
15
  DEFAULT_NETWORK,
16
16
  getWallet,
@@ -455,7 +455,7 @@ async function reportErrorCommand(args, flags) {
455
455
 
456
456
  // src/cli/commands/server.ts
457
457
  async function serverCommand(flags) {
458
- const { startServer } = await import("./server-PMG7V6KQ.js");
458
+ const { startServer } = await import("./server-BNARILZR.js");
459
459
  await startServer(flags);
460
460
  }
461
461
  export {
@@ -467,4 +467,4 @@ export {
467
467
  walletInfoCommand,
468
468
  walletRedeemCommand
469
469
  };
470
- //# sourceMappingURL=commands-WXPPIUX3.js.map
470
+ //# sourceMappingURL=commands-LLSVIODO.js.map
package/dist/esm/index.js CHANGED
@@ -75,7 +75,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
75
75
  default: "auto"
76
76
  }),
77
77
  async (args) => {
78
- const { fetchCommand } = await import("./commands-WXPPIUX3.js");
78
+ const { fetchCommand } = await import("./commands-LLSVIODO.js");
79
79
  await fetchCommand(
80
80
  {
81
81
  url: args.url,
@@ -109,7 +109,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
109
109
  description: "Additional headers as JSON object"
110
110
  }),
111
111
  async (args) => {
112
- const { checkCommand } = await import("./commands-WXPPIUX3.js");
112
+ const { checkCommand } = await import("./commands-LLSVIODO.js");
113
113
  await checkCommand(
114
114
  {
115
115
  url: args.url,
@@ -129,7 +129,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
129
129
  demandOption: true
130
130
  }),
131
131
  async (args) => {
132
- const { discoverCommand } = await import("./commands-WXPPIUX3.js");
132
+ const { discoverCommand } = await import("./commands-LLSVIODO.js");
133
133
  await discoverCommand({ url: args.url }, args);
134
134
  }
135
135
  ).command(
@@ -140,7 +140,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
140
140
  "Get wallet address, balance, and deposit link",
141
141
  (yargs3) => yargs3,
142
142
  async (args) => {
143
- const { walletInfoCommand } = await import("./commands-WXPPIUX3.js");
143
+ const { walletInfoCommand } = await import("./commands-LLSVIODO.js");
144
144
  await walletInfoCommand({}, args);
145
145
  }
146
146
  ).command(
@@ -152,7 +152,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
152
152
  demandOption: true
153
153
  }),
154
154
  async (args) => {
155
- const { walletRedeemCommand } = await import("./commands-WXPPIUX3.js");
155
+ const { walletRedeemCommand } = await import("./commands-LLSVIODO.js");
156
156
  await walletRedeemCommand({ code: args.code }, args);
157
157
  }
158
158
  ).demandCommand(1, "You must specify a wallet subcommand").strict(),
@@ -184,7 +184,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
184
184
  description: "Detailed report with context and repro steps"
185
185
  }),
186
186
  async (args) => {
187
- const { reportErrorCommand } = await import("./commands-WXPPIUX3.js");
187
+ const { reportErrorCommand } = await import("./commands-LLSVIODO.js");
188
188
  await reportErrorCommand(
189
189
  {
190
190
  tool: args.tool,
@@ -202,7 +202,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
202
202
  "Start the MCP server (default when no command specified)",
203
203
  (yargs2) => yargs2,
204
204
  async (args) => {
205
- const { serverCommand } = await import("./commands-WXPPIUX3.js");
205
+ const { serverCommand } = await import("./commands-LLSVIODO.js");
206
206
  await serverCommand(args);
207
207
  }
208
208
  ).command(
@@ -215,7 +215,7 @@ void yargs(hideBin(process.argv)).scriptName("agentcash").usage("$0 [command] [o
215
215
  default: isClaudeCode ? "claude-code" /* ClaudeCode */ : void 0
216
216
  }),
217
217
  async (args) => {
218
- const { installMcpServer } = await import("./install-N5BZ677Y.js");
218
+ const { installMcpServer } = await import("./install-SAXO5RA4.js");
219
219
  await installMcpServer(args);
220
220
  }
221
221
  ).command(
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KPEJO3KV.js";
5
5
  import {
6
6
  DIST_TAG
7
- } from "./chunk-7LPATNAW.js";
7
+ } from "./chunk-KQZSZS7X.js";
8
8
  import {
9
9
  promptDeposit,
10
10
  wait
@@ -701,4 +701,4 @@ var installMcpServer = async (flags) => {
701
701
  export {
702
702
  installMcpServer
703
703
  };
704
- //# sourceMappingURL=install-N5BZ677Y.js.map
704
+ //# sourceMappingURL=install-SAXO5RA4.js.map
package/dist/esm/lib.js CHANGED
@@ -1,10 +1,10 @@
1
- import "./chunk-2CFQ7ILC.js";
1
+ import "./chunk-NJYETKE3.js";
2
2
  import {
3
3
  SUPPORTED_METHODS,
4
4
  checkEndpoint,
5
5
  discoverResources
6
- } from "./chunk-SHAJ42CH.js";
7
- import "./chunk-7LPATNAW.js";
6
+ } from "./chunk-4GFBYNRG.js";
7
+ import "./chunk-KQZSZS7X.js";
8
8
  import "./chunk-EO4BIJAO.js";
9
9
  import "./chunk-ISR6DJ53.js";
10
10
  export {
@@ -3,7 +3,7 @@ import {
3
3
  createFetchWithPayment,
4
4
  requestSchema,
5
5
  safeGetMppChallenge
6
- } from "./chunk-7DEM3OEU.js";
6
+ } from "./chunk-ZHELH6AF.js";
7
7
  import {
8
8
  TEMPO_RPC_URL,
9
9
  checkEndpoint,
@@ -16,8 +16,8 @@ import {
16
16
  safeCreateSIWxPayload,
17
17
  safeGetPaymentRequired,
18
18
  submitErrorReport
19
- } from "./chunk-SHAJ42CH.js";
20
- import "./chunk-7LPATNAW.js";
19
+ } from "./chunk-4GFBYNRG.js";
20
+ import "./chunk-KQZSZS7X.js";
21
21
  import {
22
22
  DEFAULT_NETWORK,
23
23
  getWallet,
@@ -1231,7 +1231,7 @@ import { dirname, join } from "path";
1231
1231
  import { fileURLToPath } from "url";
1232
1232
  function getVersion() {
1233
1233
  if (true) {
1234
- return "0.4.1";
1234
+ return "0.4.2";
1235
1235
  }
1236
1236
  const __dirname2 = dirname(fileURLToPath(import.meta.url));
1237
1237
  const pkg = JSON.parse(
@@ -1328,4 +1328,4 @@ var startServer = async (flags) => {
1328
1328
  export {
1329
1329
  startServer
1330
1330
  };
1331
- //# sourceMappingURL=server-PMG7V6KQ.js.map
1331
+ //# sourceMappingURL=server-BNARILZR.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getWalletInfo,
3
3
  submitErrorReport
4
- } from "../../chunk-2CFQ7ILC.js";
4
+ } from "../../chunk-NJYETKE3.js";
5
5
  import {
6
6
  SUPPORTED_METHODS,
7
7
  checkEndpoint,
8
8
  discoverResources
9
- } from "../../chunk-SHAJ42CH.js";
10
- import "../../chunk-7LPATNAW.js";
9
+ } from "../../chunk-4GFBYNRG.js";
10
+ import "../../chunk-KQZSZS7X.js";
11
11
  import "../../chunk-EO4BIJAO.js";
12
12
  import "../../chunk-ISR6DJ53.js";
13
13
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentcash",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Generic MCP server for calling x402-protected APIs with automatic payment handling",
5
5
  "type": "module",
6
6
  "main": "dist/esm/lib.js",
@@ -32,7 +32,7 @@
32
32
  "content-type": "^1.0.5",
33
33
  "js-yaml": "^4.1.1",
34
34
  "jsonc-parser": "^3.3.1",
35
- "mppx": "^0.1.1",
35
+ "mppx": "^0.2.0",
36
36
  "open": "^11.0.0",
37
37
  "viem": "^2.46.1",
38
38
  "yargs": "^18.0.0",