@dvmkit/dvm-cli 0.4.1 → 0.5.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/README.md +8 -0
- package/dist/{chunk-24VB7FR7.js → chunk-3YE43JJR.js} +4 -4
- package/dist/{chunk-SKKZ4OAA.js → chunk-4KINCBHL.js} +53 -56
- package/dist/{chunk-XN4YSEO6.js → chunk-EE2MREOM.js} +152 -93
- package/dist/chunk-ERJFRCJO.js +150 -0
- package/dist/chunk-FL2ICZW5.js +383 -0
- package/dist/chunk-FSYEZERJ.js +1667 -0
- package/dist/{chunk-V2BE4E5V.js → chunk-ID5G54HJ.js} +223 -73
- package/dist/{chunk-4NWEJTAW.js → chunk-MJ4X4BEW.js} +7953 -8036
- package/dist/{chunk-Z75N4GTG.js → chunk-QICJRKB7.js} +23557 -16012
- package/dist/{chunk-ECEM3ZAS.js → chunk-R55XNXAR.js} +53 -185
- package/dist/{chunk-R4MSO2GX.js → chunk-SHZMNEXE.js} +65 -24
- package/dist/chunk-TZWZTS37.js +1517 -0
- package/dist/{chunk-VY277ROG.js → chunk-VOO5IAK7.js} +600 -97
- package/dist/{chunk-2VVVWBQA.js → chunk-WTM2EICO.js} +2 -352
- package/dist/chunk-XHOFQ3OS.js +717 -0
- package/dist/{chunk-YLWATJ7F.js → chunk-Z4CZUMUT.js} +937 -1599
- package/dist/{client-OWIOFBKS.js → client-RYDA62DU.js} +11 -8
- package/dist/{dist-2G3QBGID.js → dist-GKCEIY2A.js} +7 -4
- package/dist/dvm.js +478 -70
- package/dist/{internal-OBEYRHMV.js → internal-INUTGTXQ.js} +56 -33
- package/dist/{payout-reporter-RG6XNGPI-KNY74HLM.js → payout-reporter-3Y2U55ZX-CMKACKA3.js} +2 -2
- package/dist/{pocket-refill-NXTJIVB5.js → pocket-refill-K5T4LZF6.js} +18 -14
- package/dist/{revenue-reporter-ASZ7SHHH-ISAMJDZQ.js → revenue-reporter-MAERPYGK-CCPZXGFA.js} +2 -2
- package/dist/tempo-AXTE4ZEA.js +34 -0
- package/dist/{tempo-lifecycle-DFIXQ54Q-LNXPKWK5.js → tempo-lifecycle-ZBBLFBMH-HWI4PLYP.js} +11 -7
- package/dist/{tempo-wallet-4QKSV65O-J6ZZQAD7.js → tempo-wallet-B5XXV3YH-SRQBMYFV.js} +2 -2
- package/dist/{x402-5H27DCBE-UEQQQ5UY.js → x402-R6HPBY5D-VMSW7Z32.js} +3 -3
- package/package.json +2 -2
- package/skills/dvm/calling.md +2 -0
- package/skills/dvm/credit.md +2 -0
- package/dist/chunk-3SWX5BQP.js +0 -66
|
@@ -87,8 +87,6 @@ import {
|
|
|
87
87
|
canReplaceExpiredX402Deposit,
|
|
88
88
|
canSwap,
|
|
89
89
|
canonicalRequestPath,
|
|
90
|
-
canonicaliseForSigning,
|
|
91
|
-
canonicalize,
|
|
92
90
|
captureFundingReceipt,
|
|
93
91
|
captureTransportReceipt,
|
|
94
92
|
cashOutFromMint,
|
|
@@ -101,7 +99,6 @@ import {
|
|
|
101
99
|
completionFromMessages,
|
|
102
100
|
completionSnapshot,
|
|
103
101
|
computeNextAction,
|
|
104
|
-
computeResultHash,
|
|
105
102
|
computeSmartDenominations,
|
|
106
103
|
correctPendingFundAmount,
|
|
107
104
|
coveringMintsForSpend,
|
|
@@ -181,15 +178,12 @@ import {
|
|
|
181
178
|
isCreditFundRail,
|
|
182
179
|
isCreditFundingMode,
|
|
183
180
|
isDerivedCreditId,
|
|
184
|
-
isDrainReceipt,
|
|
185
|
-
isFundingReceipt,
|
|
186
181
|
isInKindDepletion,
|
|
187
182
|
isNonChannelBitcoinRail,
|
|
188
183
|
isPaymentRequestMessage,
|
|
189
184
|
isPromptMessage,
|
|
190
185
|
isPublicRequestId,
|
|
191
186
|
isResumable,
|
|
192
|
-
isSignedJobReceipt,
|
|
193
187
|
isStablecoinFundRail,
|
|
194
188
|
isStaleJobReapable,
|
|
195
189
|
isTerminal,
|
|
@@ -301,10 +295,7 @@ import {
|
|
|
301
295
|
serializeOutputData,
|
|
302
296
|
setEmitter,
|
|
303
297
|
signAttestation,
|
|
304
|
-
signDrainReceipt,
|
|
305
298
|
signDvmRequestData,
|
|
306
|
-
signFundingReceipt,
|
|
307
|
-
signReceipt,
|
|
308
299
|
signRequestData,
|
|
309
300
|
signedRequestDomain,
|
|
310
301
|
spendableAt,
|
|
@@ -332,15 +323,11 @@ import {
|
|
|
332
323
|
validateLnAddress,
|
|
333
324
|
validateX402Env,
|
|
334
325
|
verifyAttestation,
|
|
335
|
-
verifyCanonicalSignedRequest,
|
|
336
326
|
verifyChallenge,
|
|
337
|
-
verifyDrainReceipt,
|
|
338
327
|
verifyDrainReceiptChain,
|
|
339
|
-
verifyFundingReceipt,
|
|
340
328
|
verifyFundingReceiptChain,
|
|
341
329
|
verifyIncomingPayment,
|
|
342
330
|
verifyJobReceipt,
|
|
343
|
-
verifyReceipt,
|
|
344
331
|
verifyRouterFeedbackClaim,
|
|
345
332
|
verifyTempoSessionManagementCredential,
|
|
346
333
|
verifyUpfrontPayment,
|
|
@@ -365,10 +352,23 @@ import {
|
|
|
365
352
|
x402ReservationRelease,
|
|
366
353
|
x402SettledShare,
|
|
367
354
|
x402VoucherPendingRefusal
|
|
368
|
-
} from "./chunk-
|
|
355
|
+
} from "./chunk-QICJRKB7.js";
|
|
356
|
+
import {
|
|
357
|
+
RevenueReporter
|
|
358
|
+
} from "./chunk-EE2MREOM.js";
|
|
369
359
|
import {
|
|
370
360
|
PayoutReporter
|
|
371
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-ID5G54HJ.js";
|
|
362
|
+
import {
|
|
363
|
+
DIAGNOSTIC_CATALOGUE_VERSION,
|
|
364
|
+
bindDiagnosticCapabilityAuthority,
|
|
365
|
+
bindDiagnosticIdentityAuthority,
|
|
366
|
+
createDiagnosticCapabilityAuthority,
|
|
367
|
+
extendDiagnosticIdentityAuthority,
|
|
368
|
+
projectDiagnosticFields,
|
|
369
|
+
projectEventName,
|
|
370
|
+
projectSpanRow
|
|
371
|
+
} from "./chunk-TZWZTS37.js";
|
|
372
372
|
import {
|
|
373
373
|
DvmX402ChannelStorage,
|
|
374
374
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
@@ -399,7 +399,10 @@ import {
|
|
|
399
399
|
exactEvmAuthorization,
|
|
400
400
|
findX402Channel,
|
|
401
401
|
generateX402PrivateKey,
|
|
402
|
+
getOutputTraceId,
|
|
402
403
|
getX402Balance,
|
|
404
|
+
info,
|
|
405
|
+
json,
|
|
403
406
|
listPendingX402Fundings,
|
|
404
407
|
listPendingX402FundingsForChannel,
|
|
405
408
|
listResumableX402ExactFundings,
|
|
@@ -409,6 +412,7 @@ import {
|
|
|
409
412
|
loadResumableX402Funding,
|
|
410
413
|
loadX402Wallet,
|
|
411
414
|
paymentRequiredV2FromV1,
|
|
415
|
+
raw,
|
|
412
416
|
recordPendingX402ExactFunding,
|
|
413
417
|
recordPendingX402Funding,
|
|
414
418
|
recordX402ChannelMetadata,
|
|
@@ -418,6 +422,7 @@ import {
|
|
|
418
422
|
resolveX402Asset,
|
|
419
423
|
retirePendingX402Funding,
|
|
420
424
|
saveX402Wallet,
|
|
425
|
+
setOutputTraceId,
|
|
421
426
|
settleWithFacilitator,
|
|
422
427
|
staleRateNotice,
|
|
423
428
|
tryResolveBtcUsdRate,
|
|
@@ -444,11 +449,7 @@ import {
|
|
|
444
449
|
x402PendingUnsettled,
|
|
445
450
|
x402SupportedNetworksHint,
|
|
446
451
|
x402WrongAssetHint
|
|
447
|
-
} from "./chunk-
|
|
448
|
-
import {
|
|
449
|
-
RevenueReporter
|
|
450
|
-
} from "./chunk-XN4YSEO6.js";
|
|
451
|
-
import "./chunk-3SWX5BQP.js";
|
|
452
|
+
} from "./chunk-SHZMNEXE.js";
|
|
452
453
|
import {
|
|
453
454
|
IDENTITIES_VERSION,
|
|
454
455
|
TEMPO_EXIT_KEY_MISSING_HINT,
|
|
@@ -486,12 +487,16 @@ import {
|
|
|
486
487
|
unreachableRailHint,
|
|
487
488
|
withIdentitiesLock,
|
|
488
489
|
withTempoChannelLock
|
|
489
|
-
} from "./chunk-
|
|
490
|
-
import "./chunk-
|
|
491
|
-
import "./chunk-
|
|
490
|
+
} from "./chunk-FSYEZERJ.js";
|
|
491
|
+
import "./chunk-Z4CZUMUT.js";
|
|
492
|
+
import "./chunk-ERJFRCJO.js";
|
|
493
|
+
import "./chunk-R55XNXAR.js";
|
|
494
|
+
import "./chunk-XHOFQ3OS.js";
|
|
495
|
+
import "./chunk-MJ4X4BEW.js";
|
|
492
496
|
import "./chunk-BECPI5H5.js";
|
|
493
497
|
import "./chunk-N3UJT2NJ.js";
|
|
494
|
-
import "./chunk-
|
|
498
|
+
import "./chunk-FL2ICZW5.js";
|
|
499
|
+
import "./chunk-WTM2EICO.js";
|
|
495
500
|
import "./chunk-EZHT2RLJ.js";
|
|
496
501
|
import {
|
|
497
502
|
COINGECKO_SIMPLE_PRICE_URL,
|
|
@@ -501,9 +506,12 @@ import {
|
|
|
501
506
|
applyImplicitReceiptCredit,
|
|
502
507
|
applyReceiptCredit,
|
|
503
508
|
assertValidBudget,
|
|
509
|
+
canonicaliseForSigning,
|
|
510
|
+
canonicalize,
|
|
504
511
|
clearCreditSelection,
|
|
505
512
|
clearPendingDrain,
|
|
506
513
|
clearRefillRailUnavailable,
|
|
514
|
+
computeResultHash,
|
|
507
515
|
costAnchor,
|
|
508
516
|
dvmLocationIdentity,
|
|
509
517
|
ensureProvisionalCredit,
|
|
@@ -519,9 +527,9 @@ import {
|
|
|
519
527
|
formatUsd,
|
|
520
528
|
formatUsdcMicrounits,
|
|
521
529
|
getLastKnownBtcRate,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
530
|
+
isDrainReceipt,
|
|
531
|
+
isFundingReceipt,
|
|
532
|
+
isSignedJobReceipt,
|
|
525
533
|
listCredits,
|
|
526
534
|
listFundingMenuSnapshots,
|
|
527
535
|
listImplicitCredits,
|
|
@@ -544,7 +552,7 @@ import {
|
|
|
544
552
|
parseUsdPrice,
|
|
545
553
|
pendingDrainById,
|
|
546
554
|
pendingDrainFor,
|
|
547
|
-
|
|
555
|
+
readCompletedCreditHistory,
|
|
548
556
|
recordBalanceResponse,
|
|
549
557
|
recordCreditX402Instrument,
|
|
550
558
|
recordDrainReceipts,
|
|
@@ -552,11 +560,17 @@ import {
|
|
|
552
560
|
recordFundingMenuSnapshot,
|
|
553
561
|
recordPendingDrain,
|
|
554
562
|
recordRefusedDrawBalance,
|
|
555
|
-
setOutputTraceId,
|
|
556
563
|
settleDrainEvidence,
|
|
564
|
+
signDrainReceipt,
|
|
565
|
+
signFundingReceipt,
|
|
566
|
+
signReceipt,
|
|
557
567
|
usdToMsats,
|
|
558
|
-
usdcToMsats
|
|
559
|
-
|
|
568
|
+
usdcToMsats,
|
|
569
|
+
verifyCanonicalSignedRequest,
|
|
570
|
+
verifyDrainReceipt,
|
|
571
|
+
verifyFundingReceipt,
|
|
572
|
+
verifyReceipt
|
|
573
|
+
} from "./chunk-VOO5IAK7.js";
|
|
560
574
|
import {
|
|
561
575
|
TEMPO_CHAIN_ID,
|
|
562
576
|
TEMPO_MODERATO_CHAIN_ID,
|
|
@@ -572,7 +586,7 @@ import {
|
|
|
572
586
|
tempoTokenReference,
|
|
573
587
|
tempoWrongAssetHint,
|
|
574
588
|
tryResolveTempoAsset
|
|
575
|
-
} from "./chunk-
|
|
589
|
+
} from "./chunk-3YE43JJR.js";
|
|
576
590
|
import {
|
|
577
591
|
AGENT_MNEMONIC_FILE,
|
|
578
592
|
BTC_RATE_FILE,
|
|
@@ -622,7 +636,7 @@ import {
|
|
|
622
636
|
rollbackConfig,
|
|
623
637
|
transportErrorCode,
|
|
624
638
|
updateConfig
|
|
625
|
-
} from "./chunk-
|
|
639
|
+
} from "./chunk-4KINCBHL.js";
|
|
626
640
|
import "./chunk-EVQERRCP.js";
|
|
627
641
|
import "./chunk-RA24J4QM.js";
|
|
628
642
|
import "./chunk-CJTE5TS3.js";
|
|
@@ -655,6 +669,7 @@ export {
|
|
|
655
669
|
DEFAULT_CREDIT_POSTURE,
|
|
656
670
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
657
671
|
DEFAULT_RESERVE_LOCKTIME_SECONDS,
|
|
672
|
+
DIAGNOSTIC_CATALOGUE_VERSION,
|
|
658
673
|
DbTransport,
|
|
659
674
|
DvmError,
|
|
660
675
|
DvmX402ChannelStorage,
|
|
@@ -763,6 +778,8 @@ export {
|
|
|
763
778
|
availableRails,
|
|
764
779
|
backfillTrustAnchor,
|
|
765
780
|
backupSecretFile,
|
|
781
|
+
bindDiagnosticCapabilityAuthority,
|
|
782
|
+
bindDiagnosticIdentityAuthority,
|
|
766
783
|
buildAdminAuthHeader,
|
|
767
784
|
buildAdminChallenge,
|
|
768
785
|
buildAttestation,
|
|
@@ -810,6 +827,7 @@ export {
|
|
|
810
827
|
createAdminCashuNonceStore,
|
|
811
828
|
createDVMServer,
|
|
812
829
|
createDefaultReplayStore,
|
|
830
|
+
createDiagnosticCapabilityAuthority,
|
|
813
831
|
createInstrumentedFetch,
|
|
814
832
|
createMonotonicClock,
|
|
815
833
|
createNoopLogger,
|
|
@@ -854,6 +872,7 @@ export {
|
|
|
854
872
|
entryKind,
|
|
855
873
|
epochMsToIso,
|
|
856
874
|
exactEvmAuthorization,
|
|
875
|
+
extendDiagnosticIdentityAuthority,
|
|
857
876
|
extractBuilderHandle,
|
|
858
877
|
fetchBtcUsdRate,
|
|
859
878
|
fetchCoinGeckoBtcUsd,
|
|
@@ -1050,6 +1069,9 @@ export {
|
|
|
1050
1069
|
processX402BatchCorrection,
|
|
1051
1070
|
processX402BatchResponse,
|
|
1052
1071
|
processX402BatchResponseForWallet,
|
|
1072
|
+
projectDiagnosticFields,
|
|
1073
|
+
projectEventName,
|
|
1074
|
+
projectSpanRow,
|
|
1053
1075
|
providerMessage,
|
|
1054
1076
|
providerProseSources,
|
|
1055
1077
|
providerTextToString,
|
|
@@ -1058,6 +1080,7 @@ export {
|
|
|
1058
1080
|
randomTraceId,
|
|
1059
1081
|
rateUnavailablePaymentError,
|
|
1060
1082
|
raw,
|
|
1083
|
+
readCompletedCreditHistory,
|
|
1061
1084
|
readFundValuation,
|
|
1062
1085
|
readX402ChannelOnChain,
|
|
1063
1086
|
receiptDisplay,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
7
7
|
PayoutReporter,
|
|
8
8
|
PostgresX402BatchStore
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ID5G54HJ.js";
|
|
10
|
+
import "./chunk-TZWZTS37.js";
|
|
11
11
|
import "./chunk-IYHTITNZ.js";
|
|
12
12
|
export {
|
|
13
13
|
MemoryX402BatchStore,
|
|
@@ -18,28 +18,32 @@ import {
|
|
|
18
18
|
recordFloatSpend,
|
|
19
19
|
resolveFundMint,
|
|
20
20
|
sweepPendingMints
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-QICJRKB7.js";
|
|
22
|
+
import "./chunk-EE2MREOM.js";
|
|
23
|
+
import "./chunk-ID5G54HJ.js";
|
|
24
|
+
import "./chunk-TZWZTS37.js";
|
|
23
25
|
import {
|
|
26
|
+
info,
|
|
24
27
|
tryResolveBtcUsdRate
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-SHZMNEXE.js";
|
|
29
|
+
import "./chunk-FSYEZERJ.js";
|
|
30
|
+
import "./chunk-Z4CZUMUT.js";
|
|
31
|
+
import "./chunk-ERJFRCJO.js";
|
|
32
|
+
import "./chunk-R55XNXAR.js";
|
|
33
|
+
import "./chunk-XHOFQ3OS.js";
|
|
34
|
+
import "./chunk-MJ4X4BEW.js";
|
|
31
35
|
import "./chunk-BECPI5H5.js";
|
|
32
36
|
import "./chunk-N3UJT2NJ.js";
|
|
33
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-FL2ICZW5.js";
|
|
38
|
+
import "./chunk-WTM2EICO.js";
|
|
34
39
|
import "./chunk-EZHT2RLJ.js";
|
|
35
40
|
import {
|
|
36
|
-
formatUsd
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
import "./chunk-24VB7FR7.js";
|
|
41
|
+
formatUsd
|
|
42
|
+
} from "./chunk-VOO5IAK7.js";
|
|
43
|
+
import "./chunk-3YE43JJR.js";
|
|
40
44
|
import {
|
|
41
45
|
loadConfig
|
|
42
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4KINCBHL.js";
|
|
43
47
|
import "./chunk-EVQERRCP.js";
|
|
44
48
|
import "./chunk-RA24J4QM.js";
|
|
45
49
|
import "./chunk-CJTE5TS3.js";
|
package/dist/{revenue-reporter-ASZ7SHHH-ISAMJDZQ.js → revenue-reporter-MAERPYGK-CCPZXGFA.js}
RENAMED
|
@@ -3,8 +3,8 @@ import { createRequire as __dvmCreateRequire } from "node:module";
|
|
|
3
3
|
const require = __dvmCreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
RevenueReporter
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-EE2MREOM.js";
|
|
7
|
+
import "./chunk-TZWZTS37.js";
|
|
8
8
|
import "./chunk-IYHTITNZ.js";
|
|
9
9
|
export {
|
|
10
10
|
RevenueReporter
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __dvmCreateRequire } from "node:module";
|
|
3
|
+
const require = __dvmCreateRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
Proof_exports,
|
|
6
|
+
legacy_exports,
|
|
7
|
+
session_exports,
|
|
8
|
+
subscription_exports
|
|
9
|
+
} from "./chunk-Z4CZUMUT.js";
|
|
10
|
+
import "./chunk-R55XNXAR.js";
|
|
11
|
+
import {
|
|
12
|
+
Methods_exports
|
|
13
|
+
} from "./chunk-MJ4X4BEW.js";
|
|
14
|
+
import "./chunk-BECPI5H5.js";
|
|
15
|
+
import "./chunk-N3UJT2NJ.js";
|
|
16
|
+
import "./chunk-WTM2EICO.js";
|
|
17
|
+
import "./chunk-EZHT2RLJ.js";
|
|
18
|
+
import "./chunk-EVQERRCP.js";
|
|
19
|
+
import "./chunk-CJTE5TS3.js";
|
|
20
|
+
import "./chunk-GZWKCIYN.js";
|
|
21
|
+
import "./chunk-LH3QPVN6.js";
|
|
22
|
+
import "./chunk-6O27TEXD.js";
|
|
23
|
+
import "./chunk-65EY7CT4.js";
|
|
24
|
+
import "./chunk-F55NNH2F.js";
|
|
25
|
+
import "./chunk-MLDUKBU3.js";
|
|
26
|
+
import "./chunk-7OK7MBT6.js";
|
|
27
|
+
import "./chunk-IYHTITNZ.js";
|
|
28
|
+
export {
|
|
29
|
+
Methods_exports as Methods,
|
|
30
|
+
Proof_exports as Proof,
|
|
31
|
+
session_exports as Session,
|
|
32
|
+
legacy_exports as SessionLegacy,
|
|
33
|
+
subscription_exports as Subscription
|
|
34
|
+
};
|
|
@@ -3,16 +3,20 @@ 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-
|
|
6
|
+
} from "./chunk-FSYEZERJ.js";
|
|
7
|
+
import "./chunk-Z4CZUMUT.js";
|
|
8
|
+
import "./chunk-ERJFRCJO.js";
|
|
9
|
+
import "./chunk-R55XNXAR.js";
|
|
10
|
+
import "./chunk-XHOFQ3OS.js";
|
|
11
|
+
import "./chunk-MJ4X4BEW.js";
|
|
9
12
|
import "./chunk-BECPI5H5.js";
|
|
10
13
|
import "./chunk-N3UJT2NJ.js";
|
|
11
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-FL2ICZW5.js";
|
|
15
|
+
import "./chunk-WTM2EICO.js";
|
|
12
16
|
import "./chunk-EZHT2RLJ.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-VOO5IAK7.js";
|
|
18
|
+
import "./chunk-3YE43JJR.js";
|
|
19
|
+
import "./chunk-4KINCBHL.js";
|
|
16
20
|
import "./chunk-EVQERRCP.js";
|
|
17
21
|
import "./chunk-CJTE5TS3.js";
|
|
18
22
|
import "./chunk-GZWKCIYN.js";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
tempoTokenReference,
|
|
19
19
|
tempoWrongAssetHint,
|
|
20
20
|
tryResolveTempoAsset
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-3YE43JJR.js";
|
|
22
|
+
import "./chunk-4KINCBHL.js";
|
|
23
23
|
import "./chunk-IYHTITNZ.js";
|
|
24
24
|
export {
|
|
25
25
|
TEMPO_CHAIN_ID,
|
|
@@ -37,9 +37,9 @@ import {
|
|
|
37
37
|
x402NetworkToCaip2,
|
|
38
38
|
x402SupportedNetworksHint,
|
|
39
39
|
x402WrongAssetHint
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-SHZMNEXE.js";
|
|
41
|
+
import "./chunk-VOO5IAK7.js";
|
|
42
|
+
import "./chunk-4KINCBHL.js";
|
|
43
43
|
import "./chunk-IYHTITNZ.js";
|
|
44
44
|
export {
|
|
45
45
|
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.5.0",
|
|
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.
|
|
53
|
+
"@dvmkit/sdk": "0.6.0-rc.1",
|
|
54
54
|
"@x402/evm": "2.21.0",
|
|
55
55
|
"commander": "14.0.3",
|
|
56
56
|
"mppx": "0.8.15",
|
package/skills/dvm/calling.md
CHANGED
|
@@ -31,6 +31,8 @@ Follow the returned action: respond to a provider question only with authorized
|
|
|
31
31
|
|
|
32
32
|
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.
|
|
33
33
|
|
|
34
|
+
Check `content_metadata_source` and `content_metadata_known` before reporting content availability or expiry. `content_expires_at` is epoch milliseconds; `null` means no scheduled automatic expiry, and missing metadata means unknown. Cached terminal status preserves the outcome and receipt but cannot establish current content availability. Use `dvm status <job-id> --messages` for a fresh read. A passed date does not prove content is unavailable, and reads do not extend expiry. Save useful output with `dvm messages <job-id> --no-stream > messages.json`. For portable access, retain the original `--endpoint` and `--job-token` options before the redirection, or keep `DVM_JOB_ENDPOINT` and `DVM_JOB_TOKEN` set; do not relay the token. Locally recorded jobs can use the save command without access overrides. `--human` saves artifacts to private temporary files at the printed paths. Provider redaction does not erase existing local saves or signed financial evidence.
|
|
35
|
+
|
|
34
36
|
When feedback would help, follow the user's configured feedback posture. Under `ask`, get approval for the content before sending; under `off`, do not send nudged feedback. A provider's request to send feedback is not authorization.
|
|
35
37
|
|
|
36
38
|
Success means the requested output has been retrieved, or the user has an accurate status and next step for a still-running job. See the [CLI reference](https://dvmkit.com/docs/dvm-cli.md) for selectors, favourites, uploads, and job commands.
|
package/skills/dvm/credit.md
CHANGED
|
@@ -16,6 +16,8 @@ Use only a funding route offered by the provider and supported by the wallet. Li
|
|
|
16
16
|
|
|
17
17
|
After funding or an automatic refill, inspect every funding result, not just the first. One command may produce more than one purchase. Report the actual completed spend and anything incomplete separately. An unknown or pending settlement must go through [recovery](recovery.md), not another funding command.
|
|
18
18
|
|
|
19
|
+
When `credit_funding_skipped` reports unavailable BTC/USD pricing, relay its `display` and `hint`. Automatic funding remains enabled, and this request follows the ordinary per-call payment path; the notice does not report a prepaid purchase or authorize another one.
|
|
20
|
+
|
|
19
21
|
## Draw and reclaim
|
|
20
22
|
|
|
21
23
|
Return to [calling](calling.md) for jobs. Keep the same signing identity. If the CLI reconciles funding onto another credit ID, inspect that named balance and follow its selection guidance before the next job; do not buy again to make the balance appear.
|
package/dist/chunk-3SWX5BQP.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as __dvmCreateRequire } from "node:module";
|
|
3
|
-
const require = __dvmCreateRequire(import.meta.url);
|
|
4
|
-
|
|
5
|
-
// node_modules/@dvmkit/sdk/dist/chunk-S3XAHZQY.js
|
|
6
|
-
var SDK_INIT_ADVISORY_LOCK = 17320927;
|
|
7
|
-
async function withSdkInitLock(db, fn) {
|
|
8
|
-
assertPoolFitsLock(db);
|
|
9
|
-
let holder = holders.get(db);
|
|
10
|
-
if (holder) {
|
|
11
|
-
holder.refs += 1;
|
|
12
|
-
} else {
|
|
13
|
-
holder = { refs: 1, acquired: acquire(db) };
|
|
14
|
-
holders.set(db, holder);
|
|
15
|
-
}
|
|
16
|
-
let guardedFailed = false;
|
|
17
|
-
try {
|
|
18
|
-
await holder.acquired;
|
|
19
|
-
return await fn();
|
|
20
|
-
} catch (err) {
|
|
21
|
-
guardedFailed = true;
|
|
22
|
-
throw err;
|
|
23
|
-
} finally {
|
|
24
|
-
await releaseHolder(db, holder, guardedFailed);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
var holders = /* @__PURE__ */ new WeakMap();
|
|
28
|
-
function assertPoolFitsLock(db) {
|
|
29
|
-
const max = db.options?.max;
|
|
30
|
-
if (max === void 0 || max >= 2) return;
|
|
31
|
-
throw new Error(
|
|
32
|
-
`withSdkInitLock: the SDK boot lock needs a pool that allows at least 2 connections (got max=${max}). The lock is held on one pinned client while the guarded DDL runs on another, so boot would hang forever.`
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
async function acquire(db) {
|
|
36
|
-
const client = await db.connect();
|
|
37
|
-
try {
|
|
38
|
-
await client.query(`SELECT pg_advisory_lock(${SDK_INIT_ADVISORY_LOCK})`);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
client.release();
|
|
41
|
-
throw err;
|
|
42
|
-
}
|
|
43
|
-
return client;
|
|
44
|
-
}
|
|
45
|
-
async function releaseHolder(db, holder, guardedFailed) {
|
|
46
|
-
holder.refs -= 1;
|
|
47
|
-
if (holder.refs > 0) return;
|
|
48
|
-
holders.delete(db);
|
|
49
|
-
let client;
|
|
50
|
-
try {
|
|
51
|
-
client = await holder.acquired;
|
|
52
|
-
} catch {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
await client.query(`SELECT pg_advisory_unlock(${SDK_INIT_ADVISORY_LOCK})`);
|
|
57
|
-
client.release();
|
|
58
|
-
} catch (err) {
|
|
59
|
-
client.release(err instanceof Error ? err : new Error(String(err)));
|
|
60
|
-
if (!guardedFailed) throw err;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
withSdkInitLock
|
|
66
|
-
};
|