@zeroxyz/cli 1.21.0 → 1.22.0

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78449,7 +78449,7 @@ init_esm_shims();
78449
78449
  // ../sdk/dist/index.js
78450
78450
  init_esm_shims();
78451
78451
 
78452
- // ../sdk/dist/chunk-FWHVWIO2.js
78452
+ // ../sdk/dist/chunk-4FP2DRQJ.js
78453
78453
  init_esm_shims();
78454
78454
 
78455
78455
  // ../../node_modules/.pnpm/viem@2.52.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/index.js
@@ -143768,7 +143768,7 @@ config(en_default2());
143768
143768
  // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
143769
143769
  var zod_default = external_exports3;
143770
143770
 
143771
- // ../sdk/dist/chunk-FWHVWIO2.js
143771
+ // ../sdk/dist/chunk-4FP2DRQJ.js
143772
143772
  var createManagedAccount = (client, address2, opts = {}) => {
143773
143773
  const signOptions = {
143774
143774
  // expectedAddress pins verification to this adapter's frozen address.
@@ -144424,9 +144424,6 @@ var Payments = class {
144424
144424
  */
144425
144425
  pay = async (input) => {
144426
144426
  const maxPayUnits = validateMaxPay(input.maxPay);
144427
- if (maxPayUnits === 0n) {
144428
- throw new ZeroPaymentError("maxPay='0' disallows any payment.");
144429
- }
144430
144427
  const account = await resolveAccount(
144431
144428
  this.client,
144432
144429
  input.account,
@@ -144624,9 +144621,6 @@ var Payments = class {
144624
144621
  */
144625
144622
  payMpp = async (input) => {
144626
144623
  const maxPayUnits = validateMaxPay(input.maxPay);
144627
- if (maxPayUnits === 0n) {
144628
- throw new ZeroPaymentError("maxPay='0' disallows any payment.");
144629
- }
144630
144624
  const account = await resolveAccount(
144631
144625
  this.client,
144632
144626
  input.account,
@@ -144801,6 +144795,11 @@ var Payments = class {
144801
144795
  }
144802
144796
  requiredRaw = BigInt(rawAmount);
144803
144797
  }
144798
+ if (challenge2.intent === "session" && requiredRaw === 0n) {
144799
+ throw new ZeroPaymentError(
144800
+ "This capability opens an MPP payment channel that needs a positive deposit; maxPay='0' cannot fund it. Pass a small cap (e.g. '0.05') to size the channel."
144801
+ );
144802
+ }
144804
144803
  if (maxPayUnits !== null && requiredRaw > maxPayUnits) {
144805
144804
  throw new ZeroPaymentError(
144806
144805
  `Payment of ${formatUnits(requiredRaw, 6)} USDC exceeds maxPay ${formatUnits(maxPayUnits, 6)}`
@@ -145771,7 +145770,7 @@ var clientFetch = async (client, url4, opts = {}) => {
145771
145770
  return result;
145772
145771
  };
145773
145772
  var package_default = {
145774
- version: "0.14.0"
145773
+ version: "0.15.0"
145775
145774
  };
145776
145775
  var SDK_VERSION2 = package_default.version;
145777
145776
  var agentAuthMetadataSchema = external_exports3.object({
@@ -147913,7 +147912,7 @@ var placeholderFor = (fieldName, propSchema) => String(sampleValueFor(fieldName,
147913
147912
 
147914
147913
  // package.json
147915
147914
  var package_default2 = {
147916
- version: "1.21.0"};
147915
+ version: "1.22.0"};
147917
147916
 
147918
147917
  // src/app.ts
147919
147918
  init_esm_shims();
@@ -149524,7 +149523,7 @@ var resolveRequestBody = (rawData, readStdin2) => {
149524
149523
  };
149525
149524
  var isInsufficientBalanceMessage = (message2) => /insufficient/i.test(message2);
149526
149525
  var LEGACY_MIGRATE_HINT = "Your funds may be in your previous wallet \u2014 run `zero wallet set <key>` to use it directly.";
149527
- var UNCLAIMED_WALLET_REMINDER = "This fetch used a reusable Zero wallet that no human has claimed yet. It unlocks thousands of capabilities such as: image generation, video, translation, live data, web search, messaging, and more. Tell your human and ask if they want to keep it set up for future sessions and claim the account to their email. On yes: zero init ; zero auth agent claim <email>.";
149526
+ var UNCLAIMED_WALLET_REMINDER = "This fetch used a reusable Zero wallet that no human has claimed yet. It also handles image and video generation, translation, live/real-time data, web search, and messaging - pay-per-use on the same wallet, no new keys. Let your human know they have this now, and offer to set it up so you can use those in future sessions. On their yes: `zero init` continues setup of this CLI (persistent hooks and skills so future sessions remember this wallet and how to buy capabilities); claim: `zero auth agent claim <email>`.";
149528
149527
  var fetchCommand = (appContext) => new Command("fetch").description(
149529
149528
  "Fetch a capability URL, handling 402 challenges automatically"
149530
149529
  ).argument(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroxyz/cli",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "zero": "dist/index.js",