@t2000/cli 9.5.0 → 9.6.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.
@@ -144707,6 +144707,7 @@ var KeypairSigner = class {
144707
144707
  constructor(keypair) {
144708
144708
  this.keypair = keypair;
144709
144709
  }
144710
+ kind = "keypair";
144710
144711
  getAddress() {
144711
144712
  return this.keypair.getPublicKey().toSuiAddress();
144712
144713
  }
@@ -144805,6 +144806,13 @@ async function payWithMpp(args) {
144805
144806
  }
144806
144807
  const headerChallenge = await parseMppSuiChallenge(probe);
144807
144808
  if (headerChallenge) {
144809
+ if (signer.kind === "zklogin") {
144810
+ throw new T2000Error(
144811
+ "DIALECT_UNSUPPORTED",
144812
+ "This seller only offers the MPP header dialect, which zkLogin (Passport) wallets cannot safely pay: the seller cannot verify zkLogin signatures, so the payment would settle on-chain without the service delivering. No payment was made. Use an x402-capable service, or pay from a keypair wallet (t2 CLI / MCP).",
144813
+ { dialect: "mpp-header", signerKind: "zklogin" }
144814
+ );
144815
+ }
144808
144816
  const result = await payViaMppHeader({ signer, client, options });
144809
144817
  await reportDirectPayment(result, options.url);
144810
144818
  return result;
@@ -145040,6 +145048,7 @@ var ZkLoginSigner = class {
145040
145048
  this.userAddress = userAddress;
145041
145049
  this.maxEpoch = maxEpoch;
145042
145050
  }
145051
+ kind = "zklogin";
145043
145052
  getAddress() {
145044
145053
  return this.userAddress;
145045
145054
  }
@@ -147201,7 +147210,7 @@ Through this wallet you can reach essentially any major external API, billed to
147201
147210
  CRITICAL: When the user asks to use any external or paid API, names a provider (e.g. "via fal.ai", "with ElevenLabs"), or requests a capability one of the services above provides, DO NOT say you cannot reach that service, that it isn't on an allowlist, or that there's no connector \u2014 and do NOT fall back to writing a script for the user to run. You CAN do it directly through this wallet. Use t2000_services to discover the endpoint and request shape, then t2000_pay to execute, then show the user the result (display image/audio URLs returned in the response).
147202
147211
 
147203
147212
  Spending is the user's own USDC and every t2000_pay call is bounded by maxPrice. For larger or multi-step spends, state the estimated cost first and proceed once the user is happy. Use t2000_balance to check funds. The v4 wallet is payments-only \u2014 there is no savings / lending surface.`;
147204
- var PKG_VERSION = "9.5.0";
147213
+ var PKG_VERSION = "9.6.0";
147205
147214
  console.log = (...args) => console.error("[log]", ...args);
147206
147215
  console.warn = (...args) => console.error("[warn]", ...args);
147207
147216
  async function startMcpServer(opts) {
@@ -147286,4 +147295,4 @@ mime-types/index.js:
147286
147295
  @scure/bip39/index.js:
147287
147296
  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
147288
147297
  */
147289
- //# sourceMappingURL=dist-3GO63RFI.js.map
147298
+ //# sourceMappingURL=dist-VTNYUSEM.js.map