@dvmkit/dvm-cli 0.1.4 → 0.2.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 (60) hide show
  1. package/README.md +14 -0
  2. package/dist/{_esm-M2HUAA3B.js → _esm-MN4BUYV6.js} +56 -54
  3. package/dist/{accounts-S747UW3A.js → accounts-2WZE4N5F.js} +5 -5
  4. package/dist/actions-LR65XILR.js +244 -0
  5. package/dist/{ccip-XZ5F5J6R.js → ccip-JXYJSXTW.js} +3 -3
  6. package/dist/{chains-PINFXYUE.js → chains-LJ7XK6H3.js} +8 -8
  7. package/dist/{chunk-YZUBKHHA.js → chunk-2VVVWBQA.js} +471 -471
  8. package/dist/chunk-3SWX5BQP.js +66 -0
  9. package/dist/chunk-4JXFXP4Y.js +757 -0
  10. package/dist/{chunk-GIDSTROG.js → chunk-4NWEJTAW.js} +160 -158
  11. package/dist/{chunk-UXQCP26E.js → chunk-65EY7CT4.js} +2 -2
  12. package/dist/{chunk-6UGZAFIR.js → chunk-6CC6JGEU.js} +348 -18
  13. package/dist/{chunk-PHZHPRQE.js → chunk-6O27TEXD.js} +173 -173
  14. package/dist/{chunk-HPRIQEJS.js → chunk-7OK7MBT6.js} +19 -19
  15. package/dist/{chunk-7UPZZGC5.js → chunk-BECPI5H5.js} +193 -193
  16. package/dist/chunk-CJTE5TS3.js +1298 -0
  17. package/dist/{chunk-RWBYCM47.js → chunk-ECEM3ZAS.js} +10 -10
  18. package/dist/{chunk-ACNNU5RY.js → chunk-ECK465AY.js} +694 -565
  19. package/dist/{chunk-XGABM4H5.js → chunk-EGY4KDBW.js} +3822 -2012
  20. package/dist/{chunk-SLDVIXCS.js → chunk-EVQERRCP.js} +12 -12
  21. package/dist/{chunk-4AQ4G7L5.js → chunk-EZHT2RLJ.js} +383 -383
  22. package/dist/{chunk-IC6OXFYW.js → chunk-F55NNH2F.js} +63 -63
  23. package/dist/chunk-G5C6E6PJ.js +9063 -0
  24. package/dist/{chunk-6AJ7H2VX.js → chunk-GZWKCIYN.js} +213 -1281
  25. package/dist/{chunk-ZGXCK43G.js → chunk-LH3QPVN6.js} +8499 -8498
  26. package/dist/{chunk-MMJR6N3J.js → chunk-MLDUKBU3.js} +1368 -1368
  27. package/dist/chunk-N3UJT2NJ.js +3 -0
  28. package/dist/chunk-N7MGIK2U.js +61408 -0
  29. package/dist/{chunk-BZNZWRBB.js → chunk-OWJZYYMG.js} +11 -15
  30. package/dist/chunk-ZJYO7OLO.js +514 -0
  31. package/dist/{client-D3XFLWOK.js → client-OWIOFBKS.js} +18 -16
  32. package/dist/{dist-7MMV3EZA.js → dist-2G3QBGID.js} +11 -10
  33. package/dist/dvm.js +27046 -4414
  34. package/dist/esm-RQLHAH2K.js +5183 -0
  35. package/dist/internal-JDG52DJH.js +1230 -0
  36. package/dist/payout-reporter-3UB5WRCV-XTVZFIAO.js +17 -0
  37. package/dist/{pocket-refill-GDYSTECR.js → pocket-refill-QJMMD6QN.js} +29 -30
  38. package/dist/revenue-reporter-JIKUPXOK-TYUBTF4P.js +11 -0
  39. package/dist/{secp256k1-4YWQEMGF.js → secp256k1-JLZEQ2H7.js} +2 -2
  40. package/dist/tempo-lifecycle-SQL3KLEZ-AATA2SKI.js +28 -0
  41. package/dist/{tempo-wallet-5FEOI4CF.js → tempo-wallet-QOLEIPCV-SWCXRBDS.js} +2 -4
  42. package/dist/{x402-VNFA3DBY.js → x402-FTG2GRAQ-UGAUMUL6.js} +13 -24
  43. package/package.json +2 -10
  44. package/skills/dvm/SKILL.md +2 -1
  45. package/dist/channel-store-GOV7TEDN.js +0 -62
  46. package/dist/chunk-3PPOU55E.js +0 -312
  47. package/dist/chunk-3TBULV3F.js +0 -551
  48. package/dist/chunk-5BUV73FO.js +0 -2351
  49. package/dist/chunk-EY5K4BM3.js +0 -1780
  50. package/dist/chunk-G3RLVJF5.js +0 -19
  51. package/dist/chunk-KC4UPK44.js +0 -113
  52. package/dist/chunk-MTBCEXJ6.js +0 -4602
  53. package/dist/chunk-ONQMRWY3.js +0 -83
  54. package/dist/chunk-TO47XRK7.js +0 -24890
  55. package/dist/chunk-U5TNSUYW.js +0 -1757
  56. package/dist/chunk-UU6QMSTQ.js +0 -171
  57. package/dist/chunk-ZELLQI7F.js +0 -248
  58. package/dist/lifecycle-5RLM5JMN.js +0 -29
  59. package/dist/tempo-lifecycle-DHZPQTSB.js +0 -31
  60. package/dist/wallet-G3VOUCL4.js +0 -30
package/README.md CHANGED
@@ -13,6 +13,18 @@ If the earlier `@dvmkit/cli` package is installed globally, remove it first with
13
13
 
14
14
  The bundled agent skill is exported as `@dvmkit/dvm-cli/skill`. Documentation lives at [dvmkit.ai](https://dvmkit.ai).
15
15
 
16
+ ## Portable job access
17
+
18
+ `status`, `messages`, `message`, and `cancel` can follow a job from another machine when both its provider endpoint and job token are available. Prefer environment variables so the bearer token does not enter shell history or the process list:
19
+
20
+ ```sh
21
+ DVM_JOB_ENDPOINT=https://provider.example \
22
+ DVM_JOB_TOKEN=<64-character-hex-token> \
23
+ dvm status <job-id>
24
+ ```
25
+
26
+ The same values are accepted as `--endpoint <url>` and `--job-token <hex>`. Each command resolves flags first, then `DVM_JOB_ENDPOINT` / `DVM_JOB_TOKEN`, then the local job record; overrides apply only to that invocation and are never saved. `pay` accepts the same overrides but still requires the submitting machine's local pending request and spending policy, so an endpoint and token alone can never authorize a payment.
27
+
16
28
  ## Protocol compatibility
17
29
 
18
30
  Every request to a DVM or the managed dvmkit platform identifies the caller version and protocol generation and advertises a sorted set of additive client capabilities. Servers gate behavior on those capabilities, not on SemVer alone: a numerically newer client does not imply support for a named behavior. An HTTP 426 response names the capabilities or minimum version the caller must add before retrying.
@@ -23,6 +35,8 @@ Use the exact Node.js release in `.nvmrc`. Install with `node scripts/pinned-npm
23
35
 
24
36
  `npm run verify` builds the CLI, runs ESLint, type-checks, runs unit and standalone mock-provider contract tests, verifies the packed package and bundled skill upgrade path, scans the repository/package/Git/optional pull-request body for public-safety violations, then proves a clean locked install can build, type-check, and pass the tests.
25
37
 
38
+ The repository scan leaves an ignored, untracked root `.kiln/` runtime directory in place. Git-tracked runtime files, nested directories with the same name, explicit scan roots, and packed-package contents remain subject to the public-safety checks.
39
+
26
40
  Release automation is documented in [docs/releasing.md](docs/releasing.md). It prepares a reviewed release pull request and only a separately signed immutable tag can enter the GitHub-hosted npm trusted-publishing path.
27
41
 
28
42
  ## License
@@ -2,15 +2,9 @@
2
2
  import { createRequire as __dvmCreateRequire } from "node:module";
3
3
  const require = __dvmCreateRequire(import.meta.url);
4
4
  import {
5
- BundleFailedError,
6
- EnsAvatarInvalidNftUriError,
7
- EnsAvatarUnsupportedNamespaceError,
8
- EnsAvatarUriResolutionError,
9
- EnsInvalidChainIdError,
10
5
  InvalidDecimalNumberError,
11
6
  ProviderRpcError as ProviderRpcError2,
12
7
  UrlRequiredError,
13
- WaitForCallsStatusTimeoutError,
14
8
  compactSignatureToSignature,
15
9
  createClient,
16
10
  createPublicClient,
@@ -20,15 +14,12 @@ import {
20
14
  custom,
21
15
  decodeDeployData,
22
16
  defineKzg,
23
- ethAddress,
24
17
  etherUnits,
25
18
  fallback,
26
19
  fromBlobs,
27
20
  getContract,
28
21
  gweiUnits,
29
22
  http,
30
- labelhash,
31
- namehash,
32
23
  parseCompactSignature,
33
24
  parseSignature,
34
25
  publicActions,
@@ -43,9 +34,20 @@ import {
43
34
  toCoinType,
44
35
  walletActions,
45
36
  webSocket,
46
- weiUnits,
37
+ weiUnits
38
+ } from "./chunk-CJTE5TS3.js";
39
+ import {
40
+ BundleFailedError,
41
+ EnsAvatarInvalidNftUriError,
42
+ EnsAvatarUnsupportedNamespaceError,
43
+ EnsAvatarUriResolutionError,
44
+ EnsInvalidChainIdError,
45
+ WaitForCallsStatusTimeoutError,
46
+ ethAddress,
47
+ labelhash,
48
+ namehash,
47
49
  zeroAddress
48
- } from "./chunk-6AJ7H2VX.js";
50
+ } from "./chunk-GZWKCIYN.js";
49
51
  import {
50
52
  BaseFeeScalarError,
51
53
  BlockNotFoundError,
@@ -86,9 +88,9 @@ import {
86
88
  parseGwei,
87
89
  parseTransaction,
88
90
  parseUnits,
89
- recoverAddress2 as recoverAddress,
91
+ recoverAddress,
90
92
  recoverMessageAddress,
91
- recoverPublicKey2 as recoverPublicKey,
93
+ recoverPublicKey,
92
94
  recoverTypedDataAddress,
93
95
  ripemd160,
94
96
  serializeErc6492Signature,
@@ -101,7 +103,43 @@ import {
101
103
  withRetry,
102
104
  withTimeout,
103
105
  zeroHash
104
- } from "./chunk-ZGXCK43G.js";
106
+ } from "./chunk-LH3QPVN6.js";
107
+ import {
108
+ InvalidDomainError,
109
+ InvalidPrimaryTypeError,
110
+ InvalidStructTypeError,
111
+ InvalidTypedDataTypeError,
112
+ assertTransactionEIP1559,
113
+ assertTransactionEIP2930,
114
+ assertTransactionLegacy,
115
+ blobsToCommitments,
116
+ blobsToProofs,
117
+ bytesToRlp,
118
+ commitmentToVersionedHash,
119
+ commitmentsToVersionedHashes,
120
+ createNonceManager,
121
+ domainSeparator,
122
+ getTransactionType,
123
+ getTypesForEIP712Domain,
124
+ hashDomain,
125
+ hashMessage,
126
+ hashStruct,
127
+ hashTypedData,
128
+ hexToRlp,
129
+ nonceManager,
130
+ presignMessagePrefix,
131
+ serializeAccessList,
132
+ serializeSignature,
133
+ serializeTransaction,
134
+ serializeTypedData,
135
+ sha256,
136
+ toBlobSidecars,
137
+ toBlobs,
138
+ toPrefixedMessage,
139
+ toRlp,
140
+ validateTypedData
141
+ } from "./chunk-6O27TEXD.js";
142
+ import "./chunk-65EY7CT4.js";
105
143
  import {
106
144
  AccountStateConflictError,
107
145
  AtomicReadyWalletRejectedUpgradeError,
@@ -184,7 +222,7 @@ import {
184
222
  erc6492SignatureValidatorByteCode,
185
223
  erc721Abi,
186
224
  formatTransactionRequest,
187
- fromBytes2 as fromBytes,
225
+ fromBytes,
188
226
  getAbiItem,
189
227
  getChainContractAddress,
190
228
  isAddressEqual,
@@ -202,43 +240,7 @@ import {
202
240
  toFunctionSelector,
203
241
  toSignature,
204
242
  toSignatureHash
205
- } from "./chunk-IC6OXFYW.js";
206
- import {
207
- InvalidDomainError,
208
- InvalidPrimaryTypeError,
209
- InvalidStructTypeError,
210
- InvalidTypedDataTypeError,
211
- assertTransactionEIP1559,
212
- assertTransactionEIP2930,
213
- assertTransactionLegacy,
214
- blobsToCommitments,
215
- blobsToProofs,
216
- bytesToRlp,
217
- commitmentToVersionedHash,
218
- commitmentsToVersionedHashes,
219
- createNonceManager,
220
- domainSeparator,
221
- getTransactionType,
222
- getTypesForEIP712Domain,
223
- hashDomain,
224
- hashMessage,
225
- hashStruct,
226
- hashTypedData,
227
- hexToRlp,
228
- nonceManager,
229
- presignMessagePrefix,
230
- serializeAccessList,
231
- serializeSignature,
232
- serializeTransaction,
233
- serializeTypedData,
234
- sha256,
235
- toBlobSidecars,
236
- toBlobs,
237
- toPrefixedMessage,
238
- toRlp,
239
- validateTypedData
240
- } from "./chunk-PHZHPRQE.js";
241
- import "./chunk-UXQCP26E.js";
243
+ } from "./chunk-F55NNH2F.js";
242
244
  import {
243
245
  AbiConstructorNotFoundError,
244
246
  AbiConstructorParamsNotFoundError,
@@ -437,8 +439,8 @@ import {
437
439
  toBytes,
438
440
  toHex,
439
441
  trim
440
- } from "./chunk-MMJR6N3J.js";
441
- import "./chunk-HPRIQEJS.js";
442
+ } from "./chunk-MLDUKBU3.js";
443
+ import "./chunk-7OK7MBT6.js";
442
444
  import "./chunk-IYHTITNZ.js";
443
445
  export {
444
446
  AbiConstructorNotFoundError,
@@ -26,18 +26,18 @@ import {
26
26
  wordlist7,
27
27
  wordlist8,
28
28
  wordlist9
29
- } from "./chunk-SLDVIXCS.js";
29
+ } from "./chunk-EVQERRCP.js";
30
30
  import {
31
31
  createNonceManager,
32
32
  nonceManager,
33
33
  publicKeyToAddress,
34
34
  serializeSignature
35
- } from "./chunk-PHZHPRQE.js";
36
- import "./chunk-UXQCP26E.js";
35
+ } from "./chunk-6O27TEXD.js";
36
+ import "./chunk-65EY7CT4.js";
37
37
  import {
38
38
  parseAccount
39
- } from "./chunk-MMJR6N3J.js";
40
- import "./chunk-HPRIQEJS.js";
39
+ } from "./chunk-MLDUKBU3.js";
40
+ import "./chunk-7OK7MBT6.js";
41
41
  import "./chunk-IYHTITNZ.js";
42
42
  export {
43
43
  HDKey,
@@ -0,0 +1,244 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __dvmCreateRequire } from "node:module";
3
+ const require = __dvmCreateRequire(import.meta.url);
4
+ import "./chunk-N3UJT2NJ.js";
5
+ import {
6
+ addChain,
7
+ createAccessList,
8
+ createBlockFilter,
9
+ createEventFilter,
10
+ createPendingTransactionFilter,
11
+ deployContract,
12
+ dropTransaction,
13
+ dumpState,
14
+ estimateContractGas,
15
+ getAddresses,
16
+ getAutomine,
17
+ getBalance,
18
+ getBlobBaseFee,
19
+ getBlockReceipts,
20
+ getBlockTransactionCount,
21
+ getCallsStatus,
22
+ getCapabilities,
23
+ getDelegation,
24
+ getEip712Domain,
25
+ getEnsAddress,
26
+ getEnsAvatar,
27
+ getEnsName,
28
+ getEnsResolver,
29
+ getEnsText,
30
+ getFeeHistory,
31
+ getFilterLogs,
32
+ getPermissions,
33
+ getProof,
34
+ getRawTransaction,
35
+ getStorageAt,
36
+ getTransactionConfirmations,
37
+ getTxpoolContent,
38
+ getTxpoolStatus,
39
+ impersonateAccount,
40
+ increaseTime,
41
+ inspectTxpool,
42
+ loadState,
43
+ mine,
44
+ multicall,
45
+ prepareAuthorization,
46
+ removeBlockTimestampInterval,
47
+ requestAddresses,
48
+ requestPermissions,
49
+ reset,
50
+ revert,
51
+ sendCalls,
52
+ sendCallsSync,
53
+ sendUnsignedTransaction,
54
+ setAutomine,
55
+ setBalance,
56
+ setBlockGasLimit,
57
+ setBlockTimestampInterval,
58
+ setCode,
59
+ setCoinbase,
60
+ setIntervalMining,
61
+ setLoggingEnabled,
62
+ setMinGasPrice,
63
+ setNextBlockBaseFeePerGas,
64
+ setNextBlockTimestamp,
65
+ setNonce,
66
+ setRpcUrl,
67
+ setStorageAt,
68
+ showCallsStatus,
69
+ signAuthorization,
70
+ signMessage,
71
+ signTransaction,
72
+ signTypedData,
73
+ simulateBlocks,
74
+ simulateCalls,
75
+ simulateContract,
76
+ snapshot,
77
+ stopImpersonatingAccount,
78
+ switchChain,
79
+ token_exports,
80
+ verifyMessage,
81
+ verifyTypedData,
82
+ waitForCallsStatus,
83
+ watchAsset,
84
+ watchBlocks,
85
+ watchEvent,
86
+ watchPendingTransactions
87
+ } from "./chunk-GZWKCIYN.js";
88
+ import {
89
+ createContractEventFilter,
90
+ defaultParameters,
91
+ estimateFeesPerGas,
92
+ estimateGas,
93
+ estimateMaxPriorityFeePerGas,
94
+ fillTransaction,
95
+ getBlock,
96
+ getBlockNumber,
97
+ getChainId,
98
+ getCode,
99
+ getContractEvents,
100
+ getFilterChanges,
101
+ getGasPrice,
102
+ getLogs,
103
+ getTransaction,
104
+ getTransactionReceipt,
105
+ prepareTransactionRequest,
106
+ readContract,
107
+ sendRawTransaction,
108
+ sendRawTransactionSync,
109
+ sendTransaction,
110
+ sendTransactionSync,
111
+ uninstallFilter,
112
+ verifyHash2 as verifyHash,
113
+ waitForTransactionReceipt,
114
+ watchBlockNumber,
115
+ watchContractEvent,
116
+ writeContract,
117
+ writeContractSync
118
+ } from "./chunk-LH3QPVN6.js";
119
+ import {
120
+ getTransactionCount
121
+ } from "./chunk-6O27TEXD.js";
122
+ import "./chunk-65EY7CT4.js";
123
+ import {
124
+ call
125
+ } from "./chunk-F55NNH2F.js";
126
+ import "./chunk-MLDUKBU3.js";
127
+ import "./chunk-7OK7MBT6.js";
128
+ import "./chunk-IYHTITNZ.js";
129
+ export {
130
+ addChain,
131
+ call,
132
+ createAccessList,
133
+ createBlockFilter,
134
+ createContractEventFilter,
135
+ createEventFilter,
136
+ createPendingTransactionFilter,
137
+ defaultParameters as defaultPrepareTransactionRequestParameters,
138
+ deployContract,
139
+ dropTransaction,
140
+ dumpState,
141
+ estimateContractGas,
142
+ estimateFeesPerGas,
143
+ estimateGas,
144
+ estimateMaxPriorityFeePerGas,
145
+ fillTransaction,
146
+ getAddresses,
147
+ getAutomine,
148
+ getBalance,
149
+ getBlobBaseFee,
150
+ getBlock,
151
+ getBlockNumber,
152
+ getBlockReceipts,
153
+ getBlockTransactionCount,
154
+ getCode as getBytecode,
155
+ getCallsStatus,
156
+ getCapabilities,
157
+ getChainId,
158
+ getCode,
159
+ getContractEvents,
160
+ getDelegation,
161
+ getEip712Domain,
162
+ getEnsAddress,
163
+ getEnsAvatar,
164
+ getEnsName,
165
+ getEnsResolver,
166
+ getEnsText,
167
+ getFeeHistory,
168
+ getFilterChanges,
169
+ getFilterLogs,
170
+ getGasPrice,
171
+ getLogs,
172
+ getPermissions,
173
+ getProof,
174
+ getRawTransaction,
175
+ getStorageAt,
176
+ getTransaction,
177
+ getTransactionConfirmations,
178
+ getTransactionCount,
179
+ getTransactionReceipt,
180
+ getTxpoolContent,
181
+ getTxpoolStatus,
182
+ impersonateAccount,
183
+ increaseTime,
184
+ inspectTxpool,
185
+ loadState,
186
+ mine,
187
+ multicall,
188
+ prepareAuthorization,
189
+ prepareTransactionRequest,
190
+ readContract,
191
+ removeBlockTimestampInterval,
192
+ requestAddresses,
193
+ requestPermissions,
194
+ reset,
195
+ revert,
196
+ sendCalls,
197
+ sendCallsSync,
198
+ sendRawTransaction,
199
+ sendRawTransactionSync,
200
+ sendTransaction,
201
+ sendTransactionSync,
202
+ sendUnsignedTransaction,
203
+ setAutomine,
204
+ setBalance,
205
+ setBlockGasLimit,
206
+ setBlockTimestampInterval,
207
+ setCode,
208
+ setCoinbase,
209
+ setIntervalMining,
210
+ setLoggingEnabled,
211
+ setMinGasPrice,
212
+ setNextBlockBaseFeePerGas,
213
+ setNextBlockTimestamp,
214
+ setNonce,
215
+ setRpcUrl,
216
+ setStorageAt,
217
+ showCallsStatus,
218
+ signAuthorization,
219
+ signMessage,
220
+ signTransaction,
221
+ signTypedData,
222
+ simulateBlocks as simulate,
223
+ simulateBlocks,
224
+ simulateCalls,
225
+ simulateContract,
226
+ snapshot,
227
+ stopImpersonatingAccount,
228
+ switchChain,
229
+ token_exports as token,
230
+ uninstallFilter,
231
+ verifyHash,
232
+ verifyMessage,
233
+ verifyTypedData,
234
+ waitForCallsStatus,
235
+ waitForTransactionReceipt,
236
+ watchAsset,
237
+ watchBlockNumber,
238
+ watchBlocks,
239
+ watchContractEvent,
240
+ watchEvent,
241
+ watchPendingTransactions,
242
+ writeContract,
243
+ writeContractSync
244
+ };
@@ -6,9 +6,9 @@ import {
6
6
  offchainLookup,
7
7
  offchainLookupAbiItem,
8
8
  offchainLookupSignature
9
- } from "./chunk-IC6OXFYW.js";
10
- import "./chunk-MMJR6N3J.js";
11
- import "./chunk-HPRIQEJS.js";
9
+ } from "./chunk-F55NNH2F.js";
10
+ import "./chunk-MLDUKBU3.js";
11
+ import "./chunk-7OK7MBT6.js";
12
12
  import "./chunk-IYHTITNZ.js";
13
13
  export {
14
14
  ccipRequest,
@@ -720,14 +720,14 @@ import {
720
720
  zora,
721
721
  zoraSepolia,
722
722
  zoraTestnet
723
- } from "./chunk-7UPZZGC5.js";
724
- import "./chunk-4AQ4G7L5.js";
725
- import "./chunk-ZGXCK43G.js";
726
- import "./chunk-IC6OXFYW.js";
727
- import "./chunk-PHZHPRQE.js";
728
- import "./chunk-UXQCP26E.js";
729
- import "./chunk-MMJR6N3J.js";
730
- import "./chunk-HPRIQEJS.js";
723
+ } from "./chunk-BECPI5H5.js";
724
+ import "./chunk-EZHT2RLJ.js";
725
+ import "./chunk-LH3QPVN6.js";
726
+ import "./chunk-6O27TEXD.js";
727
+ import "./chunk-65EY7CT4.js";
728
+ import "./chunk-F55NNH2F.js";
729
+ import "./chunk-MLDUKBU3.js";
730
+ import "./chunk-7OK7MBT6.js";
731
731
  import "./chunk-IYHTITNZ.js";
732
732
  export {
733
733
  abey,