@dvmkit/dvm-cli 0.15.2 → 0.16.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.
- package/dist/{chunk-I7ZBID4L.js → chunk-2TNH4ME5.js} +2 -2
- package/dist/{chunk-HXTASGHL.js → chunk-A2B7QDMS.js} +2 -2
- package/dist/{chunk-EZL4IVCU.js → chunk-CEBEPXQ7.js} +3 -3
- package/dist/{chunk-57PXJ56K.js → chunk-DGA5EFKU.js} +354 -186
- package/dist/{chunk-UWVMG4VG.js → chunk-H6WQ4S6K.js} +3 -3
- package/dist/{chunk-D5CGDS3V.js → chunk-IK7RI645.js} +2 -2
- package/dist/{chunk-ECJO73RZ.js → chunk-LDYMUQZE.js} +2795 -2549
- package/dist/{chunk-5SHB3MZ7.js → chunk-NSA2RJ2T.js} +37 -7
- package/dist/{chunk-YQJRKWNT.js → chunk-U2PODYIS.js} +24487 -22833
- package/dist/{chunk-UCCT5IKU.js → chunk-UFMAHF6T.js} +63 -1
- package/dist/{chunk-2MCZ4QOK.js → chunk-WRIXUSMR.js} +2 -2
- package/dist/{chunk-HJ2JYBTT.js → chunk-WSLZBJ52.js} +4 -4
- package/dist/{client-YIHI4AIC.js → client-S5PTHG25.js} +6 -6
- package/dist/dvm.js +483 -197
- package/dist/{internal-O7IQD6EQ.js → internal-3SIUYRWP.js} +5 -5
- package/dist/{lifecycle-MIJH3JE4.js → lifecycle-7NHL5ATK.js} +6 -6
- package/dist/{payout-reporter-Y6OW3FYD-K6MRWQXK.js → payout-reporter-F5LFV5W4-EJ7E5ALO.js} +2 -2
- package/dist/{pocket-refill-XZTMPTP6.js → pocket-refill-3CA4PFXG.js} +10 -10
- package/dist/{revenue-reporter-CIG2MEDN-ZXMO6NWG.js → revenue-reporter-2U55YH2I-EUB6PBRN.js} +2 -2
- package/dist/{tempo-lifecycle-FMBCHD2M.js → tempo-lifecycle-GAM3DJ63.js} +8 -8
- package/dist/{tempo-wallet-U3WBWIIH.js → tempo-wallet-JTARPYLN.js} +7 -7
- package/dist/{wallet-Z3FDX43V.js → wallet-QKAKRLPI.js} +7 -7
- package/dist/{x402-ARXZQ5BD-H6PNJYYT.js → x402-G6C4N2BN-TAJEBQGU.js} +2 -2
- package/package.json +2 -2
- package/skills/dvm/calling.md +1 -1
- package/skills/dvm/wallets.md +9 -1
|
@@ -469,7 +469,7 @@ import {
|
|
|
469
469
|
x402SettledShare,
|
|
470
470
|
x402VoucherPendingState,
|
|
471
471
|
x402WalletFromConfig
|
|
472
|
-
} from "./chunk-
|
|
472
|
+
} from "./chunk-U2PODYIS.js";
|
|
473
473
|
import "./chunk-JBU7RKQ3.js";
|
|
474
474
|
import "./chunk-KDNFUDOG.js";
|
|
475
475
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -531,13 +531,13 @@ import {
|
|
|
531
531
|
x402NetworkListForCopy,
|
|
532
532
|
x402NetworkToCaip2,
|
|
533
533
|
x402SupportedNetworksHint
|
|
534
|
-
} from "./chunk-
|
|
534
|
+
} from "./chunk-DGA5EFKU.js";
|
|
535
535
|
import {
|
|
536
536
|
RevenueReporter
|
|
537
|
-
} from "./chunk-
|
|
537
|
+
} from "./chunk-A2B7QDMS.js";
|
|
538
538
|
import {
|
|
539
539
|
PayoutReporter
|
|
540
|
-
} from "./chunk-
|
|
540
|
+
} from "./chunk-IK7RI645.js";
|
|
541
541
|
import "./chunk-R2DSAZBO.js";
|
|
542
542
|
import {
|
|
543
543
|
DIAGNOSTIC_CATALOGUE_VERSION,
|
|
@@ -548,7 +548,7 @@ import {
|
|
|
548
548
|
projectDiagnosticFields,
|
|
549
549
|
projectEventName,
|
|
550
550
|
projectSpanRow
|
|
551
|
-
} from "./chunk-
|
|
551
|
+
} from "./chunk-UFMAHF6T.js";
|
|
552
552
|
import "./chunk-EVQERRCP.js";
|
|
553
553
|
import "./chunk-RA24J4QM.js";
|
|
554
554
|
import "./chunk-B4WHUMZM.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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2TNH4ME5.js";
|
|
7
|
+
import "./chunk-U2PODYIS.js";
|
|
8
8
|
import "./chunk-JBU7RKQ3.js";
|
|
9
9
|
import "./chunk-KDNFUDOG.js";
|
|
10
10
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -13,11 +13,11 @@ import "./chunk-6LP4EGKA.js";
|
|
|
13
13
|
import "./chunk-N3UJT2NJ.js";
|
|
14
14
|
import "./chunk-SYFKO6BA.js";
|
|
15
15
|
import "./chunk-PUOXBKY2.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DGA5EFKU.js";
|
|
17
|
+
import "./chunk-A2B7QDMS.js";
|
|
18
|
+
import "./chunk-IK7RI645.js";
|
|
19
19
|
import "./chunk-R2DSAZBO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UFMAHF6T.js";
|
|
21
21
|
import "./chunk-EVQERRCP.js";
|
|
22
22
|
import "./chunk-RA24J4QM.js";
|
|
23
23
|
import "./chunk-B4WHUMZM.js";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
PayoutReporter,
|
|
8
8
|
PostgresX402BatchStore,
|
|
9
9
|
x402EarnedCeiling
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IK7RI645.js";
|
|
11
11
|
import "./chunk-R2DSAZBO.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-UFMAHF6T.js";
|
|
13
13
|
import "./chunk-IYHTITNZ.js";
|
|
14
14
|
export {
|
|
15
15
|
MemoryX402BatchStore,
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
recordFloatSpend,
|
|
14
14
|
resolveFundMint,
|
|
15
15
|
sweepPendingMints
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-LDYMUQZE.js";
|
|
17
|
+
import "./chunk-WSLZBJ52.js";
|
|
18
18
|
import {
|
|
19
19
|
info,
|
|
20
20
|
tryResolveBtcUsdRate
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-NSA2RJ2T.js";
|
|
22
|
+
import "./chunk-H6WQ4S6K.js";
|
|
23
23
|
import {
|
|
24
24
|
loadConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WRIXUSMR.js";
|
|
26
26
|
import {
|
|
27
27
|
effectiveFundingMint,
|
|
28
28
|
effectiveMints,
|
|
29
29
|
formatUsd,
|
|
30
30
|
loadAgentWallet
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-U2PODYIS.js";
|
|
32
32
|
import "./chunk-JBU7RKQ3.js";
|
|
33
33
|
import "./chunk-KDNFUDOG.js";
|
|
34
34
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -40,11 +40,11 @@ import "./chunk-PUOXBKY2.js";
|
|
|
40
40
|
import {
|
|
41
41
|
microToSats,
|
|
42
42
|
msatsToMicro
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-DGA5EFKU.js";
|
|
44
|
+
import "./chunk-A2B7QDMS.js";
|
|
45
|
+
import "./chunk-IK7RI645.js";
|
|
46
46
|
import "./chunk-R2DSAZBO.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-UFMAHF6T.js";
|
|
48
48
|
import "./chunk-EVQERRCP.js";
|
|
49
49
|
import "./chunk-RA24J4QM.js";
|
|
50
50
|
import "./chunk-B4WHUMZM.js";
|
package/dist/{revenue-reporter-CIG2MEDN-ZXMO6NWG.js → revenue-reporter-2U55YH2I-EUB6PBRN.js}
RENAMED
|
@@ -3,9 +3,9 @@ import { createRequire as __dvmCreateRequire } from "node:module";
|
|
|
3
3
|
const require = __dvmCreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
RevenueReporter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A2B7QDMS.js";
|
|
7
7
|
import "./chunk-R2DSAZBO.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UFMAHF6T.js";
|
|
9
9
|
import "./chunk-IYHTITNZ.js";
|
|
10
10
|
export {
|
|
11
11
|
RevenueReporter
|
|
@@ -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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CEBEPXQ7.js";
|
|
7
|
+
import "./chunk-WSLZBJ52.js";
|
|
8
|
+
import "./chunk-WRIXUSMR.js";
|
|
9
|
+
import "./chunk-U2PODYIS.js";
|
|
10
10
|
import "./chunk-JBU7RKQ3.js";
|
|
11
11
|
import "./chunk-KDNFUDOG.js";
|
|
12
12
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -15,11 +15,11 @@ import "./chunk-6LP4EGKA.js";
|
|
|
15
15
|
import "./chunk-N3UJT2NJ.js";
|
|
16
16
|
import "./chunk-SYFKO6BA.js";
|
|
17
17
|
import "./chunk-PUOXBKY2.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DGA5EFKU.js";
|
|
19
|
+
import "./chunk-A2B7QDMS.js";
|
|
20
|
+
import "./chunk-IK7RI645.js";
|
|
21
21
|
import "./chunk-R2DSAZBO.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-UFMAHF6T.js";
|
|
23
23
|
import "./chunk-EVQERRCP.js";
|
|
24
24
|
import "./chunk-RA24J4QM.js";
|
|
25
25
|
import "./chunk-B4WHUMZM.js";
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
generateTempoKey,
|
|
7
7
|
tempoBalanceCheckHint,
|
|
8
8
|
tempoWrongAssetHint
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-WSLZBJ52.js";
|
|
10
|
+
import "./chunk-WRIXUSMR.js";
|
|
11
|
+
import "./chunk-U2PODYIS.js";
|
|
12
12
|
import "./chunk-JBU7RKQ3.js";
|
|
13
13
|
import "./chunk-KDNFUDOG.js";
|
|
14
14
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -17,11 +17,11 @@ import "./chunk-6LP4EGKA.js";
|
|
|
17
17
|
import "./chunk-N3UJT2NJ.js";
|
|
18
18
|
import "./chunk-SYFKO6BA.js";
|
|
19
19
|
import "./chunk-PUOXBKY2.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-DGA5EFKU.js";
|
|
21
|
+
import "./chunk-A2B7QDMS.js";
|
|
22
|
+
import "./chunk-IK7RI645.js";
|
|
23
23
|
import "./chunk-R2DSAZBO.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-UFMAHF6T.js";
|
|
25
25
|
import "./chunk-EVQERRCP.js";
|
|
26
26
|
import "./chunk-RA24J4QM.js";
|
|
27
27
|
import "./chunk-B4WHUMZM.js";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
removeX402Wallet,
|
|
8
8
|
repinX402WalletNetwork,
|
|
9
9
|
saveX402Wallet
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-H6WQ4S6K.js";
|
|
11
|
+
import "./chunk-WRIXUSMR.js";
|
|
12
|
+
import "./chunk-U2PODYIS.js";
|
|
13
13
|
import "./chunk-JBU7RKQ3.js";
|
|
14
14
|
import "./chunk-KDNFUDOG.js";
|
|
15
15
|
import "./chunk-IUTVV6N5.js";
|
|
@@ -18,11 +18,11 @@ import "./chunk-6LP4EGKA.js";
|
|
|
18
18
|
import "./chunk-N3UJT2NJ.js";
|
|
19
19
|
import "./chunk-SYFKO6BA.js";
|
|
20
20
|
import "./chunk-PUOXBKY2.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DGA5EFKU.js";
|
|
22
|
+
import "./chunk-A2B7QDMS.js";
|
|
23
|
+
import "./chunk-IK7RI645.js";
|
|
24
24
|
import "./chunk-R2DSAZBO.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-UFMAHF6T.js";
|
|
26
26
|
import "./chunk-EVQERRCP.js";
|
|
27
27
|
import "./chunk-RA24J4QM.js";
|
|
28
28
|
import "./chunk-B4WHUMZM.js";
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
x402NetworkListForCopy,
|
|
31
31
|
x402NetworkToCaip2,
|
|
32
32
|
x402SupportedNetworksHint
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-DGA5EFKU.js";
|
|
34
|
+
import "./chunk-UFMAHF6T.js";
|
|
35
35
|
import "./chunk-IYHTITNZ.js";
|
|
36
36
|
export {
|
|
37
37
|
X402_DEFAULT_FACILITATOR,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvmkit/dvm-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.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": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@cashu/cashu-ts": "4.10.2",
|
|
72
|
-
"@dvmkit/sdk": "0.
|
|
72
|
+
"@dvmkit/sdk": "0.31.0",
|
|
73
73
|
"@x402/evm": "2.21.0",
|
|
74
74
|
"commander": "14.0.3",
|
|
75
75
|
"mppx": "0.8.15",
|
package/skills/dvm/calling.md
CHANGED
|
@@ -33,7 +33,7 @@ Submit once with `dvm request`, preserving the approved input and spending limit
|
|
|
33
33
|
|
|
34
34
|
Successful upfront Cashu fallback includes optional `mint_attempts`: an array of `{ mint, reason, message }` for earlier failed candidates in the order tried. Reasons are `unreachable`, `keys_unavailable`, `swap_disabled`, `fee_cap_exceeded`, `insufficient_balance`, `no_eligible_mint`, or `swap_rejected`. Messages are bounded CLI-authored explanations, never raw dependency errors; mint URLs are redacted and limited to 2,048 characters. These observations explain why the selected `mint` was used; they do not mark the request failed or represent extra payments. The field is omitted when no candidate failed, including reserve-direct success. Attempts are temporary diagnostics and are not persisted for later status or recovery commands. Existing failure diagnostics remain unchanged.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
When `dvm request` returns for a still-running job, tell the human at once that the job has started, what was paid, and what happens next. Only then run `dvm messages <job-id> --wait` in the background (default limit `12h`, override with `--until 30m`) and act on its `next_action`; it keeps paying charges authorised by the stored policy while attached. Check the background output on your own schedule; do not wait for the task to report before answering the human. Silent stream reads reconnect after 60 seconds by default; use `--timeout <seconds>` to change that interval.
|
|
37
37
|
|
|
38
38
|
Follow the returned action: respond to a provider question only with authorized information; pay an existing job only within consent; poll when still processing. After `dvm pay <job-id>`, continue with `dvm messages <job-id>`, not a new request. If a `pay` action warns that a payment may already have been sent, run `dvm pay <job-id>` to resolve it: the command checks fresh provider history before spending. A send has a 60-second client timeout. A lost send waits 45 seconds after its failure before it is sent again, and then only if history still shows the same unanswered charge and the job is `awaiting-input`. The retry re-delivers the payment already signed for that charge: the same Cashu token and request ID, or the same x402 or Tempo credential. No second payment is signed while the first is unconfirmed. It is booked as paid only on evidence that it was taken: the provider's acceptance or replay answer, a recorded payment in history that carries its Cashu request ID or exact credential, or Cashu proofs minted for this payment that the provider or the wallet sweep reports spent. It is released for a new payment when a newer ask replaces it, when the wallet confirms it reclaimed the token, or on a refusal whose code the provider's own `error` field names: `payment_invalid` (except for a re-sent x402 or Tempo credential, which a provider also answers that way when it already settled or used it; that one stays held), `lock_not_exclusive`, an invalid token, or a validation refusal. A short payment (`payment_insufficient`) is never released automatically: a provider keeps a short Cashu token, on credit where it has a ledger. Auto-pay stops, the hint names `dvm credit drain`, and only an explicit `dvm pay <job-id>` signs a new payment. Spent reserve proofs need the same explicit `dvm pay`. Transient, throttled (408, 425, 429), unrecognized or unstructured answers keep the payment held and re-sent; answers that would repeat on every re-send keep it held with `dvm decline` and `dvm cancel` as the ways out. Inside that window, `payment_settling` gives the retry time and command; `--wait` keeps checking automatically. Concurrent payment commands are serialized per job; another payer gets `payment_settling`, and `--wait` keeps watching. A later question does not invalidate a still-pending charge. Older local records without a send timestamp skip the delay but still require the same pending charge. `payment_unconfirmed` means nothing new was signed: the held payment cannot be re-sent here (a record from an older CLI, a wallet entry that is gone, or a different `--rail` or `--endpoint`). Follow its hint: re-send without the conflicting flag, keep watching with `dvm messages <job-id> --wait`, or end the job with `dvm decline <job-id>` (keeps finished work) or `dvm cancel <job-id>`. Recovery reads time out after 60 seconds by default; a failed or timed-out history read never authorizes a payment. If history cannot be read, retry once the provider is reachable or enter [recovery](recovery.md).
|
|
39
39
|
|
package/skills/dvm/wallets.md
CHANGED
|
@@ -18,7 +18,15 @@ For a trusted local connection, pass credentials through the CLI's documented fi
|
|
|
18
18
|
|
|
19
19
|
Check the required amount and existing balance before topping up. Wallet funding and job payments both count toward spending caps; leave enough authorized headroom for both. Quote shell amounts containing a dollar sign, for example `dvm wallet fund '$5'`, so the shell does not substitute them.
|
|
20
20
|
|
|
21
|
-
For autonomous funding, follow the output until it reports the observed result.
|
|
21
|
+
For autonomous funding, follow the output until it reports the observed result. When a human pays a Cashu Lightning invoice, run `dvm wallet fund '<amount>' --no-float --no-wait`, then run the returned `next_step` (`dvm wallet show`) after payment to collect it. An existing unpaid-quote warning names an earlier invoice: avoid asking the human to pay both for the same top-up.
|
|
22
|
+
|
|
23
|
+
For human-assisted funding, show the invoice as soon as the CLI prints it; never wait for the funding command to finish. Send:
|
|
24
|
+
|
|
25
|
+
1. The exact `relay.copy_text` (invoice or address) alone in its own message, with no other text, so a person on a phone can copy the whole message. Never retype an invoice.
|
|
26
|
+
2. The image from `qr_image_path` in a separate message. Send both, text first: copy and paste serves someone paying on the same device; a QR serves someone with a second screen.
|
|
27
|
+
3. One short line with the amount, what it funds, and how long the invoice is valid, using the CLI output's amount and expiry.
|
|
28
|
+
|
|
29
|
+
If the harness cannot send several messages, put the invoice or address last, on its own lines in its own code block. Do not rely on a `lightning:` link being tappable; offer it only as an extra. Never present a payment request as proof that funding completed. Confirm the balance through the CLI before continuing the job.
|
|
22
30
|
|
|
23
31
|
If funding or settlement is uncertain, keep its records and enter [recovery](recovery.md) before initiating another deposit. A low balance alone does not prove the previous attempt moved no money.
|
|
24
32
|
|