@dvmkit/dvm-cli 0.7.0-rc.1 → 0.7.0-rc.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.
@@ -5,11 +5,11 @@ import {
5
5
  authorizeProtectedRemoval,
6
6
  loadConfig,
7
7
  updateConfig
8
- } from "./chunk-PATIATFK.js";
8
+ } from "./chunk-ZXVOMXT4.js";
9
9
  import {
10
10
  withX402ChannelLock,
11
11
  x402WalletFromConfig
12
- } from "./chunk-32AOWN2U.js";
12
+ } from "./chunk-VIYUB3XT.js";
13
13
  import {
14
14
  DvmError,
15
15
  X402_DEFAULT_NETWORK,
@@ -4,11 +4,11 @@ const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  loadConfig,
6
6
  updateConfig
7
- } from "./chunk-PATIATFK.js";
7
+ } from "./chunk-ZXVOMXT4.js";
8
8
  import {
9
9
  tempoAccountFromConfig,
10
10
  tryResolveTempoAsset
11
- } from "./chunk-32AOWN2U.js";
11
+ } from "./chunk-VIYUB3XT.js";
12
12
  import {
13
13
  DvmError
14
14
  } from "./chunk-JTMBSEZO.js";
@@ -46,7 +46,7 @@ async function generateTempoKey(opts = {}) {
46
46
  );
47
47
  }
48
48
  if (existing && opts.force) {
49
- const { assertTempoWalletIdle } = await import("./tempo-lifecycle-OT75TYVA.js");
49
+ const { assertTempoWalletIdle } = await import("./tempo-lifecycle-HS2NIFKT.js");
50
50
  await assertTempoWalletIdle("replace");
51
51
  }
52
52
  const { privateKeyToAccount, generatePrivateKey } = await import("./accounts-2WZE4N5F.js");
@@ -5,7 +5,7 @@ import {
5
5
  formatUsdcMicrounits,
6
6
  listX402Channels,
7
7
  readX402ChannelGuardFacts
8
- } from "./chunk-32AOWN2U.js";
8
+ } from "./chunk-VIYUB3XT.js";
9
9
  import {
10
10
  DvmError
11
11
  } from "./chunk-JTMBSEZO.js";
@@ -12,7 +12,7 @@ import {
12
12
  isSignableExactRequirement,
13
13
  maxAdvertisedMicro,
14
14
  withinAdvertisedTolerance
15
- } from "./chunk-32AOWN2U.js";
15
+ } from "./chunk-VIYUB3XT.js";
16
16
  import {
17
17
  DvmError,
18
18
  X402_V1_VERSION,
@@ -3,7 +3,7 @@ import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  connectedTempoAccount
6
- } from "./chunk-3E4LW5R5.js";
6
+ } from "./chunk-7UAQTHNP.js";
7
7
  import {
8
8
  deriveIdentityFromPrivkey,
9
9
  formatUsdcMicrounits,
@@ -13,7 +13,7 @@ import {
13
13
  reconcileTempoChannelOnChain,
14
14
  shellQuoteArg,
15
15
  tempoChannelControlledBy
16
- } from "./chunk-32AOWN2U.js";
16
+ } from "./chunk-VIYUB3XT.js";
17
17
  import {
18
18
  DvmError
19
19
  } from "./chunk-JTMBSEZO.js";
@@ -40101,7 +40101,7 @@ function isUniqueViolation2(err) {
40101
40101
  return typeof err === "object" && err !== null && err.code === "23505";
40102
40102
  }
40103
40103
 
40104
- // node_modules/@dvmkit/sdk/dist/chunk-A6CXKAQV.js
40104
+ // node_modules/@dvmkit/sdk/dist/chunk-3UK3CDOT.js
40105
40105
  import { createHash as createHash8, randomUUID as randomUUID7 } from "crypto";
40106
40106
  import { createHash as createHash23 } from "crypto";
40107
40107
  import { createHash as createHash33 } from "crypto";
@@ -43559,7 +43559,7 @@ var BatchSettlementEvmScheme3 = class {
43559
43559
  }
43560
43560
  };
43561
43561
 
43562
- // node_modules/@dvmkit/sdk/dist/chunk-A6CXKAQV.js
43562
+ // node_modules/@dvmkit/sdk/dist/chunk-3UK3CDOT.js
43563
43563
  import { randomBytes as randomBytes8, randomUUID as randomUUID22 } from "crypto";
43564
43564
  import { randomBytes as randomBytes22 } from "crypto";
43565
43565
 
@@ -45930,7 +45930,7 @@ function date3(params) {
45930
45930
  // node_modules/zod/v4/classic/external.js
45931
45931
  config(en_default());
45932
45932
 
45933
- // node_modules/@dvmkit/sdk/dist/chunk-A6CXKAQV.js
45933
+ // node_modules/@dvmkit/sdk/dist/chunk-3UK3CDOT.js
45934
45934
  import { createHash as createHash42 } from "crypto";
45935
45935
  import { createHmac as createHmac2, randomUUID as randomUUID42, timingSafeEqual as timingSafeEqual2 } from "crypto";
45936
45936
  import { createHash as createHash52, randomUUID as randomUUID32 } from "crypto";
@@ -48322,7 +48322,7 @@ var streamSSE = (c, cb, onError) => {
48322
48322
  return c.newResponse(stream2.responseReadable);
48323
48323
  };
48324
48324
 
48325
- // node_modules/@dvmkit/sdk/dist/chunk-A6CXKAQV.js
48325
+ // node_modules/@dvmkit/sdk/dist/chunk-3UK3CDOT.js
48326
48326
  import { createHash as createHash82 } from "crypto";
48327
48327
  async function initLockPubkeyTable(db) {
48328
48328
  await withSdkInitLock(db, () => createLockPubkeyTable(db));
@@ -49990,9 +49990,10 @@ async function createX402BatchSettlementServer(opts) {
49990
49990
  throw new Error("x402 batch-settlement payTo must be a 20-byte EVM address");
49991
49991
  }
49992
49992
  const withdrawDelay = opts.config.withdrawDelay ?? X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS;
49993
- if (!Number.isInteger(withdrawDelay) || withdrawDelay < X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS) {
49993
+ const minimumWithdrawDelay = opts.network === X402_BATCH_SETTLEMENT_NETWORK ? 900 : X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS;
49994
+ if (!Number.isInteger(withdrawDelay) || withdrawDelay < minimumWithdrawDelay) {
49994
49995
  throw new Error(
49995
- `x402 batch-settlement withdrawDelay must be at least ${String(X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS)} seconds`
49996
+ `x402 batch-settlement withdrawDelay must be at least ${String(minimumWithdrawDelay)} seconds`
49996
49997
  );
49997
49998
  }
49998
49999
  if (opts.config.autoSettlement !== false && opts.config.autoSettlement?.selectRefundChannels) {
@@ -4,7 +4,7 @@ const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  loadX402Wallet,
6
6
  x402NetworkLabel
7
- } from "./chunk-5RVUW52C.js";
7
+ } from "./chunk-6QHVPJNX.js";
8
8
  import {
9
9
  costAnchor,
10
10
  info,
@@ -12,14 +12,14 @@ import {
12
12
  resolveBtcUsdRate,
13
13
  tryResolveBtcUsdRate,
14
14
  tryX402Payment
15
- } from "./chunk-VIRAAIDU.js";
15
+ } from "./chunk-RQYMWLX4.js";
16
16
  import {
17
17
  connectedTempoAccount
18
- } from "./chunk-3E4LW5R5.js";
18
+ } from "./chunk-7UAQTHNP.js";
19
19
  import {
20
20
  isCreditPosture,
21
21
  loadConfig
22
- } from "./chunk-PATIATFK.js";
22
+ } from "./chunk-ZXVOMXT4.js";
23
23
  import {
24
24
  BUDGET_FILE,
25
25
  JOBS_FILE,
@@ -156,7 +156,7 @@ import {
156
156
  x402PendingUnsettled,
157
157
  x402RequiredFromError,
158
158
  x402VoucherPendingState
159
- } from "./chunk-32AOWN2U.js";
159
+ } from "./chunk-VIYUB3XT.js";
160
160
  import {
161
161
  Challenge_exports,
162
162
  Credential_exports
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_PINNED_FILE,
9
9
  ensureConfigDir,
10
10
  require_proper_lockfile
11
- } from "./chunk-32AOWN2U.js";
11
+ } from "./chunk-VIYUB3XT.js";
12
12
  import {
13
13
  DvmError
14
14
  } from "./chunk-JTMBSEZO.js";
@@ -3,8 +3,8 @@ import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  tryX402Payment
6
- } from "./chunk-VIRAAIDU.js";
7
- import "./chunk-32AOWN2U.js";
6
+ } from "./chunk-RQYMWLX4.js";
7
+ import "./chunk-VIYUB3XT.js";
8
8
  import "./chunk-JBU7RKQ3.js";
9
9
  import "./chunk-KDNFUDOG.js";
10
10
  import "./chunk-IUTVV6N5.js";
package/dist/dvm.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  assertTempoWalletIdle,
6
6
  findSigningIdentityByPubkey,
7
7
  resolveSigningIdentity
8
- } from "./chunk-MWWZX7OQ.js";
8
+ } from "./chunk-U3YRNLZ5.js";
9
9
  import {
10
10
  assertX402WalletIdle
11
- } from "./chunk-SNSJAOR3.js";
11
+ } from "./chunk-PG7MEKJI.js";
12
12
  import {
13
13
  DEFAULT_CREDIT_POSTURE,
14
14
  DEFAULT_RESERVE_LOCKTIME_SECONDS,
@@ -85,7 +85,7 @@ import {
85
85
  trustOverrideCapMicro,
86
86
  unrecordedFloatBudgetWarning,
87
87
  updateJob
88
- } from "./chunk-6PVFVHS5.js";
88
+ } from "./chunk-VLZ2K7JL.js";
89
89
  import {
90
90
  assertSupportedX402Network,
91
91
  connectedX402Payer,
@@ -94,7 +94,7 @@ import {
94
94
  repinX402WalletNetwork,
95
95
  saveX402Wallet,
96
96
  x402NetworkLabel
97
- } from "./chunk-5RVUW52C.js";
97
+ } from "./chunk-6QHVPJNX.js";
98
98
  import {
99
99
  assertValidBudget,
100
100
  costAnchor,
@@ -112,13 +112,13 @@ import {
112
112
  staleRateNotice,
113
113
  tryResolveBtcUsdRate,
114
114
  tryX402Payment
115
- } from "./chunk-VIRAAIDU.js";
115
+ } from "./chunk-RQYMWLX4.js";
116
116
  import {
117
117
  connectedTempoAccount,
118
118
  generateTempoKey,
119
119
  tempoBalanceCheckHint,
120
120
  tempoWrongAssetHint
121
- } from "./chunk-3E4LW5R5.js";
121
+ } from "./chunk-7UAQTHNP.js";
122
122
  import {
123
123
  CREDIT_POSTURES,
124
124
  FEEDBACK_POSTURES,
@@ -135,7 +135,7 @@ import {
135
135
  retireConfigBackup,
136
136
  rollbackConfig,
137
137
  updateConfig
138
- } from "./chunk-PATIATFK.js";
138
+ } from "./chunk-ZXVOMXT4.js";
139
139
  import {
140
140
  A,
141
141
  AGENT_MNEMONIC_FILE,
@@ -376,7 +376,7 @@ import {
376
376
  x402PendingUnsettled,
377
377
  x402RequiredFromError,
378
378
  x402ReservationRelease
379
- } from "./chunk-32AOWN2U.js";
379
+ } from "./chunk-VIYUB3XT.js";
380
380
  import "./chunk-JBU7RKQ3.js";
381
381
  import "./chunk-KDNFUDOG.js";
382
382
  import "./chunk-IUTVV6N5.js";
@@ -10005,8 +10005,8 @@ async function handlePaymentRequest(jobId, request2, policy, transport, provider
10005
10005
  }
10006
10006
  }
10007
10007
  if ((opts?.rail === void 0 || opts.rail === "x402") && request2.x402) {
10008
- const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-BRXTQ4BB.js");
10009
- const { tryX402Payment: tryX402Payment2 } = await import("./client-VHGN7ZFZ.js");
10008
+ const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-RPPUCQUR.js");
10009
+ const { tryX402Payment: tryX402Payment2 } = await import("./client-IDO4IAXG.js");
10010
10010
  const wallet = loadX402Wallet2();
10011
10011
  if (wallet) {
10012
10012
  let proof;
@@ -12587,14 +12587,14 @@ async function confirmRollback(stored, preview, opts) {
12587
12587
  async function withStrandingChecked(removing, commit) {
12588
12588
  const leaving = new Set(removing.map((target) => target.split(".")[0]));
12589
12589
  if (leaving.has("tempo")) {
12590
- const { assertTempoWalletIdle: assertTempoWalletIdle2 } = await import("./tempo-lifecycle-OT75TYVA.js");
12590
+ const { assertTempoWalletIdle: assertTempoWalletIdle2 } = await import("./tempo-lifecycle-HS2NIFKT.js");
12591
12591
  await assertTempoWalletIdle2("disconnect");
12592
12592
  }
12593
12593
  if (!leaving.has("x402")) return commit();
12594
- const { withX402ChannelLock: withX402ChannelLock2, listPendingX402Fundings: listPendingX402Fundings2, x402PendingUnsettled: x402PendingUnsettled2 } = await import("./internal-7RZYJLLG.js");
12595
- const { assertX402WalletIdle: assertX402WalletIdle2 } = await import("./lifecycle-Z7YUOTR5.js");
12596
- const { ensureAddress: ensureAddress2 } = await import("./internal-7RZYJLLG.js");
12597
- const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-BRXTQ4BB.js");
12594
+ const { withX402ChannelLock: withX402ChannelLock2, listPendingX402Fundings: listPendingX402Fundings2, x402PendingUnsettled: x402PendingUnsettled2 } = await import("./internal-7FXJTFBU.js");
12595
+ const { assertX402WalletIdle: assertX402WalletIdle2 } = await import("./lifecycle-LRS3IBQL.js");
12596
+ const { ensureAddress: ensureAddress2 } = await import("./internal-7FXJTFBU.js");
12597
+ const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-RPPUCQUR.js");
12598
12598
  return withX402ChannelLock2(async () => {
12599
12599
  const unsettled = listPendingX402Fundings2().filter((entry) => x402PendingUnsettled2(entry));
12600
12600
  if (unsettled.length > 0) {
@@ -17426,8 +17426,8 @@ async function probeX402(x402, timeoutMs) {
17426
17426
  let network;
17427
17427
  let address;
17428
17428
  try {
17429
- const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-BRXTQ4BB.js");
17430
- const { getX402Balance, ensureAddress: ensureAddress2, usdcContractByCaip2 } = await import("./internal-7RZYJLLG.js");
17429
+ const { loadX402Wallet: loadX402Wallet2 } = await import("./wallet-RPPUCQUR.js");
17430
+ const { getX402Balance, ensureAddress: ensureAddress2, usdcContractByCaip2 } = await import("./internal-7FXJTFBU.js");
17431
17431
  const wallet = loadX402Wallet2();
17432
17432
  if (!wallet) {
17433
17433
  const storedKey = x402.privateKey;
@@ -17479,8 +17479,8 @@ async function probeMpp(mpp, timeoutMs) {
17479
17479
  if (!mpp) return null;
17480
17480
  if (mpp.method === "tempo") {
17481
17481
  try {
17482
- const { connectedTempoAccount: connectedTempoAccount2 } = await import("./tempo-wallet-SGYOEWVY.js");
17483
- const { getTempoUsdcBalance: getTempoUsdcBalance3, resolveTempoNetwork: resolveTempoNetwork2 } = await import("./internal-7RZYJLLG.js");
17482
+ const { connectedTempoAccount: connectedTempoAccount2 } = await import("./tempo-wallet-BA2LKR45.js");
17483
+ const { getTempoUsdcBalance: getTempoUsdcBalance3, resolveTempoNetwork: resolveTempoNetwork2 } = await import("./internal-7FXJTFBU.js");
17484
17484
  const account = await connectedTempoAccount2();
17485
17485
  if (!account) {
17486
17486
  return {
@@ -22121,7 +22121,7 @@ async function settleCreditAfterJob(args) {
22121
22121
  }
22122
22122
  }
22123
22123
  if (args.allowTopup !== false) {
22124
- const refill = args.refillPocket ?? (await import("./pocket-refill-CCWF3G4N.js")).refillPocketIfLow;
22124
+ const refill = args.refillPocket ?? (await import("./pocket-refill-J5OWRBXH.js")).refillPocketIfLow;
22125
22125
  await refill({ human: args.human }).catch(() => void 0);
22126
22126
  }
22127
22127
  }
@@ -460,7 +460,7 @@ import {
460
460
  x402SettledShare,
461
461
  x402VoucherPendingState,
462
462
  x402WalletFromConfig
463
- } from "./chunk-32AOWN2U.js";
463
+ } from "./chunk-VIYUB3XT.js";
464
464
  import "./chunk-JBU7RKQ3.js";
465
465
  import "./chunk-KDNFUDOG.js";
466
466
  import "./chunk-IUTVV6N5.js";
@@ -3,8 +3,8 @@ import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  assertX402WalletIdle
6
- } from "./chunk-SNSJAOR3.js";
7
- import "./chunk-32AOWN2U.js";
6
+ } from "./chunk-PG7MEKJI.js";
7
+ import "./chunk-VIYUB3XT.js";
8
8
  import "./chunk-JBU7RKQ3.js";
9
9
  import "./chunk-KDNFUDOG.js";
10
10
  import "./chunk-IUTVV6N5.js";
@@ -13,22 +13,22 @@ import {
13
13
  recordFloatSpend,
14
14
  resolveFundMint,
15
15
  sweepPendingMints
16
- } from "./chunk-6PVFVHS5.js";
17
- import "./chunk-5RVUW52C.js";
16
+ } from "./chunk-VLZ2K7JL.js";
17
+ import "./chunk-6QHVPJNX.js";
18
18
  import {
19
19
  info,
20
20
  tryResolveBtcUsdRate
21
- } from "./chunk-VIRAAIDU.js";
22
- import "./chunk-3E4LW5R5.js";
21
+ } from "./chunk-RQYMWLX4.js";
22
+ import "./chunk-7UAQTHNP.js";
23
23
  import {
24
24
  loadConfig
25
- } from "./chunk-PATIATFK.js";
25
+ } from "./chunk-ZXVOMXT4.js";
26
26
  import {
27
27
  effectiveFundingMint,
28
28
  effectiveMints,
29
29
  formatUsd,
30
30
  loadAgentWallet
31
- } from "./chunk-32AOWN2U.js";
31
+ } from "./chunk-VIYUB3XT.js";
32
32
  import "./chunk-JBU7RKQ3.js";
33
33
  import "./chunk-KDNFUDOG.js";
34
34
  import "./chunk-IUTVV6N5.js";
@@ -3,10 +3,10 @@ import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  assertTempoWalletIdle
6
- } from "./chunk-MWWZX7OQ.js";
7
- import "./chunk-3E4LW5R5.js";
8
- import "./chunk-PATIATFK.js";
9
- import "./chunk-32AOWN2U.js";
6
+ } from "./chunk-U3YRNLZ5.js";
7
+ import "./chunk-7UAQTHNP.js";
8
+ import "./chunk-ZXVOMXT4.js";
9
+ import "./chunk-VIYUB3XT.js";
10
10
  import "./chunk-JBU7RKQ3.js";
11
11
  import "./chunk-KDNFUDOG.js";
12
12
  import "./chunk-IUTVV6N5.js";
@@ -6,9 +6,9 @@ import {
6
6
  generateTempoKey,
7
7
  tempoBalanceCheckHint,
8
8
  tempoWrongAssetHint
9
- } from "./chunk-3E4LW5R5.js";
10
- import "./chunk-PATIATFK.js";
11
- import "./chunk-32AOWN2U.js";
9
+ } from "./chunk-7UAQTHNP.js";
10
+ import "./chunk-ZXVOMXT4.js";
11
+ import "./chunk-VIYUB3XT.js";
12
12
  import "./chunk-JBU7RKQ3.js";
13
13
  import "./chunk-KDNFUDOG.js";
14
14
  import "./chunk-IUTVV6N5.js";
@@ -7,9 +7,9 @@ import {
7
7
  removeX402Wallet,
8
8
  repinX402WalletNetwork,
9
9
  saveX402Wallet
10
- } from "./chunk-5RVUW52C.js";
11
- import "./chunk-PATIATFK.js";
12
- import "./chunk-32AOWN2U.js";
10
+ } from "./chunk-6QHVPJNX.js";
11
+ import "./chunk-ZXVOMXT4.js";
12
+ import "./chunk-VIYUB3XT.js";
13
13
  import "./chunk-JBU7RKQ3.js";
14
14
  import "./chunk-KDNFUDOG.js";
15
15
  import "./chunk-IUTVV6N5.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvmkit/dvm-cli",
3
- "version": "0.7.0-rc.1",
3
+ "version": "0.7.0-rc.2",
4
4
  "description": "CLI for Digital Vending Machines — discover, pay, and use DVMs from the terminal",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@cashu/cashu-ts": "4.10.2",
53
- "@dvmkit/sdk": "0.7.0-rc.2",
53
+ "@dvmkit/sdk": "0.7.0-rc.3",
54
54
  "@x402/evm": "2.21.0",
55
55
  "commander": "14.0.3",
56
56
  "mppx": "0.8.15",