@dvmkit/dvm-cli 0.13.0 → 0.15.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 (28) hide show
  1. package/dist/{chunk-GWLOO5XD.js → chunk-2MCZ4QOK.js} +2 -2
  2. package/dist/{chunk-C2BJETRG.js → chunk-57PXJ56K.js} +4 -4
  3. package/dist/{chunk-PS4AUWK3.js → chunk-D5CGDS3V.js} +2 -2
  4. package/dist/{chunk-ZDWZT6NA.js → chunk-EZL4IVCU.js} +3 -3
  5. package/dist/{chunk-I2C3YEUN.js → chunk-HJ2JYBTT.js} +4 -4
  6. package/dist/{chunk-CCF4QONY.js → chunk-HXTASGHL.js} +2 -2
  7. package/dist/{chunk-C2EZ3VY2.js → chunk-I7ZBID4L.js} +2 -2
  8. package/dist/{chunk-RPM5XEVS.js → chunk-LPILVPFG.js} +15 -3
  9. package/dist/{chunk-ZV57FFIL.js → chunk-UCCT5IKU.js} +9 -1
  10. package/dist/{chunk-KQQALLOL.js → chunk-UWVMG4VG.js} +3 -3
  11. package/dist/{chunk-SEJWBDGY.js → chunk-YQJRKWNT.js} +1739 -788
  12. package/dist/{chunk-NLUOHCX2.js → chunk-ZKC6KN36.js} +339 -53
  13. package/dist/{client-6JRGRKFQ.js → client-RSHQFXCA.js} +6 -6
  14. package/dist/dvm.js +858 -599
  15. package/dist/{internal-KPPGYK5N.js → internal-O7IQD6EQ.js} +5 -5
  16. package/dist/{lifecycle-7YRNRLDQ.js → lifecycle-MIJH3JE4.js} +6 -6
  17. package/dist/{payout-reporter-KTLBNJJ7-WDT6M4GN.js → payout-reporter-Y6OW3FYD-K6MRWQXK.js} +2 -2
  18. package/dist/{pocket-refill-E2QVQDME.js → pocket-refill-7Q6CR6I4.js} +10 -10
  19. package/dist/{revenue-reporter-FD3GDQZS-COUBEUDN.js → revenue-reporter-CIG2MEDN-ZXMO6NWG.js} +2 -2
  20. package/dist/{tempo-lifecycle-EOP5IHJT.js → tempo-lifecycle-FMBCHD2M.js} +8 -8
  21. package/dist/{tempo-wallet-4A5M3FVO.js → tempo-wallet-U3WBWIIH.js} +7 -7
  22. package/dist/{wallet-LASVQ72F.js → wallet-Z3FDX43V.js} +7 -7
  23. package/dist/{x402-MFBRORHG-34VE7EWO.js → x402-ARXZQ5BD-H6PNJYYT.js} +2 -2
  24. package/package.json +4 -2
  25. package/skills/dvm/SKILL.md +2 -0
  26. package/skills/dvm/calling.md +12 -1
  27. package/skills/dvm/credit.md +3 -1
  28. package/skills/dvm/recovery.md +52 -0
@@ -8,10 +8,10 @@ import {
8
8
  CONFIG_PINNED_FILE,
9
9
  ensureConfigDir,
10
10
  require_proper_lockfile
11
- } from "./chunk-SEJWBDGY.js";
11
+ } from "./chunk-YQJRKWNT.js";
12
12
  import {
13
13
  DvmError
14
- } from "./chunk-C2BJETRG.js";
14
+ } from "./chunk-57PXJ56K.js";
15
15
  import {
16
16
  __toESM
17
17
  } from "./chunk-IYHTITNZ.js";
@@ -3,7 +3,7 @@ import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-ZV57FFIL.js";
6
+ } from "./chunk-UCCT5IKU.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-IYHTITNZ.js";
@@ -3107,7 +3107,7 @@ function buildNoopLoggers() {
3107
3107
  };
3108
3108
  }
3109
3109
 
3110
- // node_modules/@dvmkit/sdk/dist/chunk-3DGIRHP2.js
3110
+ // node_modules/@dvmkit/sdk/dist/chunk-EIL7VIVM.js
3111
3111
  import { AsyncLocalStorage } from "async_hooks";
3112
3112
  import { createPrivateKey, randomBytes as randomBytes2 } from "crypto";
3113
3113
 
@@ -10599,7 +10599,7 @@ var SignJWT = class {
10599
10599
  }
10600
10600
  };
10601
10601
 
10602
- // node_modules/@dvmkit/sdk/dist/chunk-3DGIRHP2.js
10602
+ // node_modules/@dvmkit/sdk/dist/chunk-EIL7VIVM.js
10603
10603
  var scopes = new AsyncLocalStorage();
10604
10604
  function withPaymentDiagnostics(fn) {
10605
10605
  return scopes.run({}, fn);
@@ -10774,7 +10774,7 @@ function logRejected(stage) {
10774
10774
  });
10775
10775
  }
10776
10776
 
10777
- // node_modules/@dvmkit/sdk/dist/chunk-GDZXGB43.js
10777
+ // node_modules/@dvmkit/sdk/dist/chunk-E4EXYTEO.js
10778
10778
  async function verifyX402Payment(paymentHeader, config, requiredUsdcMicro, resource, btcUsdRate, exactVersions = { v1: true, v2: true }) {
10779
10779
  return callerLoggers.x402.span(
10780
10780
  "x402.verify_payment",
@@ -6,9 +6,9 @@ import {
6
6
  } from "./chunk-R2DSAZBO.js";
7
7
  import {
8
8
  diagnosticConsole
9
- } from "./chunk-ZV57FFIL.js";
9
+ } from "./chunk-UCCT5IKU.js";
10
10
 
11
- // node_modules/@dvmkit/sdk/dist/chunk-DY5QIHJA.js
11
+ // node_modules/@dvmkit/sdk/dist/chunk-PDWVERRC.js
12
12
  import { createHash, randomUUID } from "crypto";
13
13
  async function x402EarnedCeiling(channel, earnedNative) {
14
14
  let earned;
@@ -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-I2C3YEUN.js";
6
+ } from "./chunk-HJ2JYBTT.js";
7
7
  import {
8
8
  deriveIdentityFromPrivkey,
9
9
  formatUsdcMicrounits,
@@ -13,10 +13,10 @@ import {
13
13
  reconcileTempoChannelOnChain,
14
14
  shellQuoteArg,
15
15
  tempoChannelControlledBy
16
- } from "./chunk-SEJWBDGY.js";
16
+ } from "./chunk-YQJRKWNT.js";
17
17
  import {
18
18
  DvmError
19
- } from "./chunk-C2BJETRG.js";
19
+ } from "./chunk-57PXJ56K.js";
20
20
 
21
21
  // src/lib/cli-identity-resolve.ts
22
22
  function resolveSigningIdentity(opts) {
@@ -4,14 +4,14 @@ const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
5
  loadConfig,
6
6
  updateConfig
7
- } from "./chunk-GWLOO5XD.js";
7
+ } from "./chunk-2MCZ4QOK.js";
8
8
  import {
9
9
  tempoAccountFromConfig,
10
10
  tryResolveTempoAsset
11
- } from "./chunk-SEJWBDGY.js";
11
+ } from "./chunk-YQJRKWNT.js";
12
12
  import {
13
13
  DvmError
14
- } from "./chunk-C2BJETRG.js";
14
+ } from "./chunk-57PXJ56K.js";
15
15
 
16
16
  // src/lib/payment-rails/tempo-wallet.ts
17
17
  function tempoBalanceCheckHint(token) {
@@ -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-EOP5IHJT.js");
49
+ const { assertTempoWalletIdle } = await import("./tempo-lifecycle-FMBCHD2M.js");
50
50
  await assertTempoWalletIdle("replace");
51
51
  }
52
52
  const { privateKeyToAccount, generatePrivateKey } = await import("./accounts-2WZE4N5F.js");
@@ -6,9 +6,9 @@ import {
6
6
  } from "./chunk-R2DSAZBO.js";
7
7
  import {
8
8
  diagnosticConsole
9
- } from "./chunk-ZV57FFIL.js";
9
+ } from "./chunk-UCCT5IKU.js";
10
10
 
11
- // node_modules/@dvmkit/sdk/dist/chunk-QMKGYIBM.js
11
+ // node_modules/@dvmkit/sdk/dist/chunk-PGQID4PR.js
12
12
  import { randomUUID } from "crypto";
13
13
  var ENDPOINTS = {
14
14
  job_terminal: "/_internal/job-terminal",
@@ -5,10 +5,10 @@ import {
5
5
  formatUsdcMicrounits,
6
6
  listX402Channels,
7
7
  readX402ChannelGuardFacts
8
- } from "./chunk-SEJWBDGY.js";
8
+ } from "./chunk-YQJRKWNT.js";
9
9
  import {
10
10
  DvmError
11
- } from "./chunk-C2BJETRG.js";
11
+ } from "./chunk-57PXJ56K.js";
12
12
 
13
13
  // src/lib/x402/lifecycle.ts
14
14
  async function assertX402WalletIdle(wallet, intent) {
@@ -12,7 +12,7 @@ import {
12
12
  isSignableExactRequirement,
13
13
  maxAdvertisedMicro,
14
14
  withinAdvertisedTolerance
15
- } from "./chunk-SEJWBDGY.js";
15
+ } from "./chunk-YQJRKWNT.js";
16
16
  import {
17
17
  DvmError,
18
18
  X402_V1_VERSION,
@@ -30,7 +30,7 @@ import {
30
30
  usdcToMsats,
31
31
  x402NetworkByCaip2,
32
32
  x402NetworkToCaip2
33
- } from "./chunk-C2BJETRG.js";
33
+ } from "./chunk-57PXJ56K.js";
34
34
 
35
35
  // src/lib/x402/client.ts
36
36
  import { randomBytes } from "crypto";
@@ -42,13 +42,25 @@ var warnings = new AsyncLocalStorage();
42
42
  function withOutputWarnings(run) {
43
43
  return warnings.run([], run);
44
44
  }
45
+ function sameWarning(prior, entry) {
46
+ if (prior.code === "auto_pay_bound_exceeded" && entry.code === "auto_pay_bound_exceeded") {
47
+ return prior.auto_pay_below === entry.auto_pay_below && prior.source === entry.source;
48
+ }
49
+ if (prior.code === "draw_funding_unverified" && entry.code === "draw_funding_unverified") {
50
+ return prior.job_id === entry.job_id && prior.reason === entry.reason && prior.display === entry.display;
51
+ }
52
+ return false;
53
+ }
45
54
  function addOutputWarnings(entries, human) {
46
55
  const pending = warnings.getStore();
56
+ const added = [];
47
57
  for (const entry of entries) {
48
- if (pending?.some((prior) => prior.auto_pay_below === entry.auto_pay_below && prior.source === entry.source)) continue;
58
+ if (pending?.some((prior) => sameWarning(prior, entry))) continue;
49
59
  pending?.push(entry);
60
+ added.push(entry);
50
61
  if (human) info(`Warning: ${entry.display}`);
51
62
  }
63
+ return added;
52
64
  }
53
65
  var _traceId = null;
54
66
  function setOutputTraceId(id) {
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
 
5
- // node_modules/@dvmkit/sdk/dist/chunk-2WWVI32F.js
5
+ // node_modules/@dvmkit/sdk/dist/chunk-3UACKFEK.js
6
6
  import { isIP } from "net";
7
7
  var diagnostic_catalogue_v1_default = {
8
8
  version: 1,
@@ -101,6 +101,8 @@ var diagnostic_catalogue_v1_default = {
101
101
  "credit_resolve_failed",
102
102
  "credit_resolve_state_mismatch",
103
103
  "credit_topup_over_ask",
104
+ "credit_topup_redirected",
105
+ "credit_topup_refused",
104
106
  "credit_topup_skipped",
105
107
  "credit_topup_stale_rate",
106
108
  "credit_topup_unbound",
@@ -206,6 +208,7 @@ var diagnostic_catalogue_v1_default = {
206
208
  "job_heartbeat_failed",
207
209
  "job_id",
208
210
  "job_message_append_failed",
211
+ "piece_settlement_exceeds_hold",
209
212
  "step_persist_failed",
210
213
  "job_messages_listen_connect_failed",
211
214
  "job_messages_listen_lost",
@@ -782,6 +785,8 @@ var diagnostic_catalogue_v1_default = {
782
785
  "amount_too_large",
783
786
  "api_error",
784
787
  "app_shell_detected",
788
+ "ask_already_open",
789
+ "ask_expired",
785
790
  "audio_source_required",
786
791
  "auth_error",
787
792
  "auth_required",
@@ -801,6 +806,7 @@ var diagnostic_catalogue_v1_default = {
801
806
  "cover_invalid",
802
807
  "credit_fund_failed",
803
808
  "css_selector_for_requested_content",
809
+ "decline_unavailable",
804
810
  "decoder_failed",
805
811
  "decoder_unavailable",
806
812
  "diarise_failed",
@@ -849,6 +855,7 @@ var diagnostic_catalogue_v1_default = {
849
855
  "milliseconds",
850
856
  "network_error",
851
857
  "no_diariser",
858
+ "no_open_ask",
852
859
  "no_premium_substrate",
853
860
  "none",
854
861
  "not_found",
@@ -1073,6 +1080,7 @@ var diagnostic_catalogue_v1_default = {
1073
1080
  ],
1074
1081
  paymentSkipReasons: [
1075
1082
  "credit_or_draw_missing",
1083
+ "credit_not_active",
1076
1084
  "draw_not_pending",
1077
1085
  "draw_job_mismatch",
1078
1086
  "rail_mismatch",
@@ -5,11 +5,11 @@ import {
5
5
  authorizeProtectedRemoval,
6
6
  loadConfig,
7
7
  updateConfig
8
- } from "./chunk-GWLOO5XD.js";
8
+ } from "./chunk-2MCZ4QOK.js";
9
9
  import {
10
10
  withX402ChannelLock,
11
11
  x402WalletFromConfig
12
- } from "./chunk-SEJWBDGY.js";
12
+ } from "./chunk-YQJRKWNT.js";
13
13
  import {
14
14
  DvmError,
15
15
  X402_DEFAULT_NETWORK,
@@ -17,7 +17,7 @@ import {
17
17
  ensureAddress,
18
18
  isValidEvmPrivateKey,
19
19
  x402NetworkByCaip2
20
- } from "./chunk-C2BJETRG.js";
20
+ } from "./chunk-57PXJ56K.js";
21
21
 
22
22
  // src/lib/x402/networks.ts
23
23
  function x402NetworkLabel(network) {