@dvmkit/dvm-cli 0.16.0 → 0.17.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.
@@ -469,7 +469,7 @@ import {
469
469
  x402SettledShare,
470
470
  x402VoucherPendingState,
471
471
  x402WalletFromConfig
472
- } from "./chunk-U2PODYIS.js";
472
+ } from "./chunk-THTPKBZX.js";
473
473
  import "./chunk-JBU7RKQ3.js";
474
474
  import "./chunk-KDNFUDOG.js";
475
475
  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-2TNH4ME5.js";
7
- import "./chunk-U2PODYIS.js";
6
+ } from "./chunk-REIUNZQX.js";
7
+ import "./chunk-THTPKBZX.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-LDYMUQZE.js";
17
- import "./chunk-WSLZBJ52.js";
16
+ } from "./chunk-DE7TEOUR.js";
17
+ import "./chunk-OEWENVJ7.js";
18
+ import "./chunk-VLD7OKSH.js";
19
+ import {
20
+ loadConfig
21
+ } from "./chunk-ESQ6DCS3.js";
18
22
  import {
19
23
  info,
20
24
  tryResolveBtcUsdRate
21
- } from "./chunk-NSA2RJ2T.js";
22
- import "./chunk-H6WQ4S6K.js";
23
- import {
24
- loadConfig
25
- } from "./chunk-WRIXUSMR.js";
25
+ } from "./chunk-R6FZT6S2.js";
26
26
  import {
27
27
  effectiveFundingMint,
28
28
  effectiveMints,
29
29
  formatUsd,
30
30
  loadAgentWallet
31
- } from "./chunk-U2PODYIS.js";
31
+ } from "./chunk-THTPKBZX.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-CEBEPXQ7.js";
7
- import "./chunk-WSLZBJ52.js";
8
- import "./chunk-WRIXUSMR.js";
9
- import "./chunk-U2PODYIS.js";
6
+ } from "./chunk-ZGBCVQF2.js";
7
+ import "./chunk-OEWENVJ7.js";
8
+ import "./chunk-ESQ6DCS3.js";
9
+ import "./chunk-THTPKBZX.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-WSLZBJ52.js";
10
- import "./chunk-WRIXUSMR.js";
11
- import "./chunk-U2PODYIS.js";
9
+ } from "./chunk-OEWENVJ7.js";
10
+ import "./chunk-ESQ6DCS3.js";
11
+ import "./chunk-THTPKBZX.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-H6WQ4S6K.js";
11
- import "./chunk-WRIXUSMR.js";
12
- import "./chunk-U2PODYIS.js";
10
+ } from "./chunk-VLD7OKSH.js";
11
+ import "./chunk-ESQ6DCS3.js";
12
+ import "./chunk-THTPKBZX.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.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Command-line client and agent skill for Digital Vending Machines: pay-per-use HTTPS services AI agents can find, pay, and call with no account or API key",
5
5
  "author": "DVM Technologies Ltd",
6
6
  "keywords": [
@@ -70,6 +70,7 @@
70
70
  "dependencies": {
71
71
  "@cashu/cashu-ts": "4.10.2",
72
72
  "@dvmkit/sdk": "0.31.0",
73
+ "@scure/base": "2.0.0",
73
74
  "@x402/evm": "2.21.0",
74
75
  "commander": "14.0.3",
75
76
  "mppx": "0.8.15",
@@ -54,6 +54,8 @@ Both commands wait and resend automatically while the DVM is still verifying a p
54
54
 
55
55
  `dvm request --human`, `dvm messages <job-id> --human`, and `dvm status <job-id> --human` end with a `Next:` line when the caller needs to act or keep watching. It relays the pending question and choices, payment amount, or working status with the command to continue. Terminal jobs and already claimed refunds omit the line. Unclaimed refunds show the recovery instruction once. Add `--messages` to human status reads for a readable message log.
56
56
 
57
+ When a job ends with `wallet_remaining`, relay its `display` to the human verbatim. If they reply with a Lightning address or invoice, run the cash-out command named in its `hint` with that destination.
58
+
57
59
  Read `payload_in`: when it points to messages, retrieve them and obtain the artifact rather than reporting only the summary. Check the result against the user's request. Keep receipt verification separate from result quality and job completion.
58
60
 
59
61
  `dvm status <job-id>` includes `spend` for locally recorded jobs. Relay its `display` to show the total paid, charge count, approved budget, and refund count. `charges` lists conversation payments in sequence order with fiat-first `display`, `rail`, provider-wrapped `reason`, and `approval` (`auto`, `explicit`, or `unknown` for older records). `payments` includes upfront payments; `max_payments` is the stored cap on all payments, including the upfront payment. `total_msats` comes from the stored running total, which already includes the upfront rail payment (falling back to the completion cost for older records). `upfront_display` identifies the difference between that total and the conversation charges; the initial payment has no conversation message. When every payment has a recorded price in one fiat currency, the total sums those prices and the budget uses the resulting aggregate fiat/msat ratio. An upfront payment without a recorded fiat price keeps the existing amount display. Jobs paid from prepaid credit say so; their upfront draw amount is not recorded locally, and `upfront_display` is omitted. Refunds (including change) are listed separately and do not reduce the gross paid total. `log_mismatch` flags inconsistent local payment amounts or counts only after a job is terminal, including when the total minus conversation charges differs from a recorded completion cost; an active log may still be behind. A job that started free records no completion cost, so a missing mid-job payment message there shows as an upfront amount rather than a mismatch. When a receipt is available, `receipt_total_display` shows its signed total. `receipt_mismatch` is true when comparable Bitcoin-native signed and local totals differ in either direction, and false when they agree. The display states both amounts neutrally: mint fees, returned change, or a payment not recorded locally can explain the difference. If the receipt, upfront record, or any conversation charge identifies Tempo/x402, the aggregate BTC totals are exchange-rate valuations. Their displays are labeled `BTC valuation`; `receipt_mismatch` is omitted even when the converted totals happen to agree. The display explicitly says the comparison is unknown because local records lack comparable native settlement amounts. Converted BTC differences do not establish a difference in token principal or fees, including on mixed-rail jobs. For jobs paid from prepaid credit, the comparison is unknown and `receipt_mismatch` is omitted because the local record does not hold the credit draw amount; the receipt total includes that draw. Check `receipt_verified` separately before trusting the signature. When the receipt settles by the piece, `spend.settlement` carries `held_micro`, `charged_micro`, `released_micro` and `currency`, and `spend.display` ends with "Charged X of Y held, Z released." on any ending, including a failed, declined or cancelled job. `overcharged: true` with `ceiling_micro` means the receipt charges more than the finished pieces this CLI paid for; relay it to the human and follow [recovery](recovery.md). Human status prints the bill and charge list before `Next:`. Jobs accessed without a local record omit `spend`.