@dvmkit/dvm-cli 0.12.0 → 0.13.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-GHNF2I5C.js → chunk-C2BJETRG.js} +56 -54
- package/dist/{chunk-6EYBCGGD.js → chunk-C2EZ3VY2.js} +2 -2
- package/dist/{chunk-K562SFVD.js → chunk-CCF4QONY.js} +2 -2
- package/dist/{chunk-MMXHV3KC.js → chunk-GWLOO5XD.js} +2 -2
- package/dist/{chunk-7N3HQJKE.js → chunk-I2C3YEUN.js} +4 -4
- package/dist/{chunk-GEZVSJDM.js → chunk-KQQALLOL.js} +3 -3
- package/dist/{chunk-PWOTICNA.js → chunk-NLUOHCX2.js} +1899 -92
- package/dist/{chunk-3R2GM6AD.js → chunk-PS4AUWK3.js} +2 -2
- package/dist/{chunk-IQKAJ4AN.js → chunk-RPM5XEVS.js} +3 -2
- package/dist/{chunk-MBSCP52L.js → chunk-SEJWBDGY.js} +31255 -11304
- package/dist/{chunk-HWWW7JEM.js → chunk-ZDWZT6NA.js} +3 -3
- package/dist/{chunk-UVFFMKU4.js → chunk-ZV57FFIL.js} +68 -4
- package/dist/{client-HEWHZMS2.js → client-6JRGRKFQ.js} +6 -6
- package/dist/dvm.js +4484 -2349
- package/dist/{internal-ZZHCUKOM.js → internal-KPPGYK5N.js} +5 -5
- package/dist/{lifecycle-XGNIMPTB.js → lifecycle-7YRNRLDQ.js} +6 -6
- package/dist/{payout-reporter-DDQ7FGRC-OKICJCC2.js → payout-reporter-KTLBNJJ7-WDT6M4GN.js} +2 -2
- package/dist/{pocket-refill-PMY77T54.js → pocket-refill-E2QVQDME.js} +10 -10
- package/dist/{revenue-reporter-RIEHBKRA-75BDPVVX.js → revenue-reporter-FD3GDQZS-COUBEUDN.js} +2 -2
- package/dist/{tempo-lifecycle-LGGBDCKK.js → tempo-lifecycle-EOP5IHJT.js} +8 -8
- package/dist/{tempo-wallet-PLFC443A.js → tempo-wallet-4A5M3FVO.js} +7 -7
- package/dist/{wallet-UJ7EJNQA.js → wallet-LASVQ72F.js} +7 -7
- package/dist/{x402-AY6P5KV4-SIZF7YNW.js → x402-MFBRORHG-34VE7EWO.js} +2 -2
- package/package.json +2 -2
- package/skills/dvm/calling.md +3 -1
- package/skills/dvm/credit.md +8 -0
|
@@ -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-
|
|
6
|
+
} from "./chunk-I2C3YEUN.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-
|
|
16
|
+
} from "./chunk-SEJWBDGY.js";
|
|
17
17
|
import {
|
|
18
18
|
DvmError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-C2BJETRG.js";
|
|
20
20
|
|
|
21
21
|
// src/lib/cli-identity-resolve.ts
|
|
22
22
|
function resolveSigningIdentity(opts) {
|
|
@@ -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-
|
|
5
|
+
// node_modules/@dvmkit/sdk/dist/chunk-2WWVI32F.js
|
|
6
6
|
import { isIP } from "net";
|
|
7
7
|
var diagnostic_catalogue_v1_default = {
|
|
8
8
|
version: 1,
|
|
@@ -71,6 +71,7 @@ var diagnostic_catalogue_v1_default = {
|
|
|
71
71
|
"cashu_mint_recovery_failed",
|
|
72
72
|
"cashu_mint_runtime_recovered",
|
|
73
73
|
"cashu_mint_runtime_sick",
|
|
74
|
+
"cashu_not_advertised",
|
|
74
75
|
"cashu_opts_env_ignored",
|
|
75
76
|
"cashu_refund_amount_unreported",
|
|
76
77
|
"ci_lane_report",
|
|
@@ -497,7 +498,15 @@ var diagnostic_catalogue_v1_default = {
|
|
|
497
498
|
"x402_settlement_reconciliation_chain_unreachable",
|
|
498
499
|
"x402_settlement_reconciliation_facilitator_unavailable",
|
|
499
500
|
"x402_settlement_submission_failed",
|
|
500
|
-
"x402_settlement_written_off"
|
|
501
|
+
"x402_settlement_written_off",
|
|
502
|
+
"card_charge_journal_failed",
|
|
503
|
+
"card_charge_stranded_refunded",
|
|
504
|
+
"card_charge_unsettled",
|
|
505
|
+
"card_refund_pending",
|
|
506
|
+
"card_refund_sweep",
|
|
507
|
+
"card_refund_expiry_failed",
|
|
508
|
+
"card_refund_sweep_failed",
|
|
509
|
+
"card_refund_sweep_step_failed"
|
|
501
510
|
],
|
|
502
511
|
routeTemplates: [
|
|
503
512
|
"/",
|
|
@@ -770,13 +779,23 @@ var diagnostic_catalogue_v1_default = {
|
|
|
770
779
|
"/v1/request-resume/:requestId"
|
|
771
780
|
],
|
|
772
781
|
errorCodes: [
|
|
782
|
+
"amount_too_large",
|
|
783
|
+
"api_error",
|
|
773
784
|
"app_shell_detected",
|
|
774
785
|
"audio_source_required",
|
|
775
786
|
"auth_error",
|
|
776
787
|
"auth_required",
|
|
788
|
+
"authentication_error",
|
|
789
|
+
"balance_insufficient",
|
|
777
790
|
"bytes_cap",
|
|
778
791
|
"capability_required",
|
|
779
792
|
"captcha_unsolved",
|
|
793
|
+
"card_error",
|
|
794
|
+
"charge_already_refunded",
|
|
795
|
+
"charge_disputed",
|
|
796
|
+
"charge_expired_for_refund",
|
|
797
|
+
"charge_not_refundable",
|
|
798
|
+
"charges_exhausted",
|
|
780
799
|
"cloudflare_unsolved",
|
|
781
800
|
"content_rejected",
|
|
782
801
|
"cover_invalid",
|
|
@@ -794,6 +813,7 @@ var diagnostic_catalogue_v1_default = {
|
|
|
794
813
|
"extract_llm_failed",
|
|
795
814
|
"extract_schema_invalid",
|
|
796
815
|
"extract_validation_failed",
|
|
816
|
+
"fee_not_settled",
|
|
797
817
|
"feed_full",
|
|
798
818
|
"feed_not_found",
|
|
799
819
|
"feed_path_invalid",
|
|
@@ -808,6 +828,8 @@ var diagnostic_catalogue_v1_default = {
|
|
|
808
828
|
"head_status",
|
|
809
829
|
"hint",
|
|
810
830
|
"hosting_identity_revoke_failed",
|
|
831
|
+
"idempotency_error",
|
|
832
|
+
"idempotency_key_in_use",
|
|
811
833
|
"ingest_concurrency",
|
|
812
834
|
"ingest_global_concurrency",
|
|
813
835
|
"ingest_ip_concurrency",
|
|
@@ -818,6 +840,7 @@ var diagnostic_catalogue_v1_default = {
|
|
|
818
840
|
"invalid_menu",
|
|
819
841
|
"invalid_payment",
|
|
820
842
|
"invalid_quote_data",
|
|
843
|
+
"invalid_request_error",
|
|
821
844
|
"invalid_url",
|
|
822
845
|
"job_failed",
|
|
823
846
|
"job_timeout",
|
|
@@ -838,6 +861,7 @@ var diagnostic_catalogue_v1_default = {
|
|
|
838
861
|
"payment_invalid",
|
|
839
862
|
"payment_required",
|
|
840
863
|
"paywall_detected",
|
|
864
|
+
"permission_error",
|
|
841
865
|
"polish_input_too_large",
|
|
842
866
|
"polish_llm_failed",
|
|
843
867
|
"presign_failed",
|
|
@@ -855,11 +879,14 @@ var diagnostic_catalogue_v1_default = {
|
|
|
855
879
|
"provider_timeout",
|
|
856
880
|
"provider_unavailable",
|
|
857
881
|
"quota_exceeded",
|
|
882
|
+
"rate_limit_error",
|
|
858
883
|
"rate_limited",
|
|
859
884
|
"rate_limited_by_target",
|
|
885
|
+
"refund_disputed_payment",
|
|
860
886
|
"region_unavailable",
|
|
861
887
|
"replay_detected",
|
|
862
888
|
"request_integrity_failed",
|
|
889
|
+
"resource_missing",
|
|
863
890
|
"retry_hardened",
|
|
864
891
|
"retry_with_bounded_wait",
|
|
865
892
|
"retry_with_content_selector",
|
|
@@ -868,10 +895,12 @@ var diagnostic_catalogue_v1_default = {
|
|
|
868
895
|
"server_error",
|
|
869
896
|
"sha256_mismatch",
|
|
870
897
|
"signature_invalid",
|
|
898
|
+
"signature_required",
|
|
871
899
|
"size_mismatch",
|
|
872
900
|
"source_unreachable",
|
|
873
901
|
"ssrf_blocked",
|
|
874
902
|
"string",
|
|
903
|
+
"stripe_unreachable",
|
|
875
904
|
"substrate_unavailable",
|
|
876
905
|
"timeout",
|
|
877
906
|
"timestamp_drift",
|
|
@@ -963,6 +992,10 @@ var diagnostic_catalogue_v1_default = {
|
|
|
963
992
|
"usdc"
|
|
964
993
|
],
|
|
965
994
|
booleanFields: [
|
|
995
|
+
"cashu_explicitly_excluded",
|
|
996
|
+
"cashu_lock_pubkey_missing",
|
|
997
|
+
"cashu_mode_missing",
|
|
998
|
+
"cashu_store_missing",
|
|
966
999
|
"client.capabilities_valid",
|
|
967
1000
|
"client.protocol_version_valid",
|
|
968
1001
|
"client.version_valid",
|
|
@@ -1026,7 +1059,8 @@ var diagnostic_catalogue_v1_default = {
|
|
|
1026
1059
|
identityFields: [
|
|
1027
1060
|
"dvm_id",
|
|
1028
1061
|
"dvm_slug",
|
|
1029
|
-
"builder_id"
|
|
1062
|
+
"builder_id",
|
|
1063
|
+
"dvm_resolution"
|
|
1030
1064
|
],
|
|
1031
1065
|
capabilityFields: [
|
|
1032
1066
|
"capability"
|
|
@@ -1177,6 +1211,17 @@ var CAPABILITY_RE = /^[a-z][a-z0-9_-]{0,47}$/;
|
|
|
1177
1211
|
var CLIENT_VERSION_RE = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-rc\.(?:0|[1-9]\d*))?$/;
|
|
1178
1212
|
var HASH_RE = /^(?:[0-9a-f]{16}|[0-9a-f]{64})$/i;
|
|
1179
1213
|
var DECIMAL_RE = /^(?:0|[1-9]\d{0,77})$/;
|
|
1214
|
+
var CARD_REFUND_EVENTS = /* @__PURE__ */ new Set([
|
|
1215
|
+
"card_charge_stranded_refunded",
|
|
1216
|
+
"card_charge_unsettled",
|
|
1217
|
+
"card_refund_expiry_failed",
|
|
1218
|
+
"card_refund_pending",
|
|
1219
|
+
"card_refund_sweep",
|
|
1220
|
+
"card_refund_sweep_step_failed"
|
|
1221
|
+
]);
|
|
1222
|
+
var CARD_REFUND_COUNTS = /* @__PURE__ */ new Set(["frozen", "unfrozen", "expiry_refunds", "completed", "pending", "stranded_refunds"]);
|
|
1223
|
+
var CARD_REFUND_STAGES = /* @__PURE__ */ new Set(["plan", "refund", "disputes", "expiry", "retry", "stranded"]);
|
|
1224
|
+
var CARD_REFUND_STATUSES = /* @__PURE__ */ new Set(["planned", "pending", "requires_action", "succeeded", "failed", "canceled", "rejected"]);
|
|
1180
1225
|
var STRIPE_EVENT_RE = /^evt_[A-Za-z0-9]{1,64}$/;
|
|
1181
1226
|
var REDACTED_SEGMENT_RE = /^:(?:uuid|hex|n|b58|token)$/;
|
|
1182
1227
|
var SERVICE_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -1348,6 +1393,10 @@ function projectField(key, value, dataset, authority, identityAuthority, eventNa
|
|
|
1348
1393
|
const closedEnum = Object.hasOwn(PAYMENT_ENUMS, key) ? PAYMENT_ENUMS[key] : Object.hasOwn(ROUTER_ENUMS, key) ? ROUTER_ENUMS[key] : void 0;
|
|
1349
1394
|
if (closedEnum)
|
|
1350
1395
|
return typeof value === "string" && closedEnum.has(value) ? value : void 0;
|
|
1396
|
+
if (eventName !== void 0 && CARD_REFUND_EVENTS.has(eventName)) {
|
|
1397
|
+
const projected = projectCardRefundField(key, value);
|
|
1398
|
+
if (projected !== void 0) return projected;
|
|
1399
|
+
}
|
|
1351
1400
|
if (dataset === "tempo") {
|
|
1352
1401
|
if (key === "prior_status")
|
|
1353
1402
|
return typeof value === "string" && TEMPO_CLOSE_REPORT_PRIOR_STATUSES.has(value) ? value : void 0;
|
|
@@ -1429,6 +1478,18 @@ function projectField(key, value, dataset, authority, identityAuthority, eventNa
|
|
|
1429
1478
|
return typeof value === "string" && SANCTIONS_REGIONS.has(value) ? value : void 0;
|
|
1430
1479
|
return void 0;
|
|
1431
1480
|
}
|
|
1481
|
+
function projectCardRefundField(key, value) {
|
|
1482
|
+
if (key === "credit_id" || key === "drain_id" || key === "challenge_id")
|
|
1483
|
+
return typeof value === "string" && /^[a-zA-Z0-9_.:-]{1,512}$/.test(value) ? value : void 0;
|
|
1484
|
+
if (key === "payment_intent")
|
|
1485
|
+
return typeof value === "string" && /^pi_[A-Za-z0-9]{1,64}$/.test(value) ? value : void 0;
|
|
1486
|
+
if (key === "stage")
|
|
1487
|
+
return typeof value === "string" && CARD_REFUND_STAGES.has(value) ? value : void 0;
|
|
1488
|
+
if (key === "refund_status")
|
|
1489
|
+
return typeof value === "string" && CARD_REFUND_STATUSES.has(value) ? value : void 0;
|
|
1490
|
+
if (CARD_REFUND_COUNTS.has(key)) return isNonnegativeSafeInteger(value) ? value : void 0;
|
|
1491
|
+
return void 0;
|
|
1492
|
+
}
|
|
1432
1493
|
function projectService(value) {
|
|
1433
1494
|
if (typeof value !== "string") return "unknown";
|
|
1434
1495
|
if (SERVICE_NAMES.has(value)) return value;
|
|
@@ -1445,11 +1506,14 @@ function projectHost(value) {
|
|
|
1445
1506
|
}
|
|
1446
1507
|
function validateIdentity(key, value) {
|
|
1447
1508
|
if (typeof value !== "string") return void 0;
|
|
1509
|
+
if (key === "dvm_resolution") return value === "none" ? value : void 0;
|
|
1448
1510
|
if (key === "dvm_slug") return SLUG_RE.test(value) ? value : void 0;
|
|
1449
1511
|
return value.length <= 36 && UUID_RE.test(value) ? value : void 0;
|
|
1450
1512
|
}
|
|
1451
1513
|
function projectIdentity(key, authority) {
|
|
1452
|
-
|
|
1514
|
+
const identities = authority && AUTHORITY_IDENTITIES.get(authority);
|
|
1515
|
+
if (key === "dvm_resolution" && identities?.dvm_id) return void 0;
|
|
1516
|
+
return identities?.[key];
|
|
1453
1517
|
}
|
|
1454
1518
|
function projectCapability(value, authority) {
|
|
1455
1519
|
if (typeof value !== "string" || !CAPABILITY_RE.test(value)) return void 0;
|
|
@@ -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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-RPM5XEVS.js";
|
|
7
|
+
import "./chunk-SEJWBDGY.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-C2BJETRG.js";
|
|
17
|
+
import "./chunk-CCF4QONY.js";
|
|
18
|
+
import "./chunk-PS4AUWK3.js";
|
|
19
19
|
import "./chunk-R2DSAZBO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-ZV57FFIL.js";
|
|
21
21
|
import "./chunk-EVQERRCP.js";
|
|
22
22
|
import "./chunk-RA24J4QM.js";
|
|
23
23
|
import "./chunk-B4WHUMZM.js";
|