@intent-engine/cli 0.1.23 → 0.1.26

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 (175) hide show
  1. package/dist/src/admin-commands.d.ts +12 -0
  2. package/dist/src/admin-commands.js +140 -0
  3. package/dist/src/admin-commands.js.map +1 -0
  4. package/dist/src/agent/actions.d.ts +2 -0
  5. package/dist/src/agent/actions.js +1 -1
  6. package/dist/src/agent/actions.js.map +1 -1
  7. package/dist/src/agent/claims.js +13 -12
  8. package/dist/src/agent/claims.js.map +1 -1
  9. package/dist/src/agent/create.d.ts +1 -0
  10. package/dist/src/agent/create.js +7 -3
  11. package/dist/src/agent/create.js.map +1 -1
  12. package/dist/src/agent/mandate-agent.d.ts +2 -0
  13. package/dist/src/agent/mandate-agent.js +136 -0
  14. package/dist/src/agent/mandate-agent.js.map +1 -0
  15. package/dist/src/agent/mandate-grant.d.ts +2 -0
  16. package/dist/src/agent/mandate-grant.js +192 -0
  17. package/dist/src/agent/mandate-grant.js.map +1 -0
  18. package/dist/src/agent/mandate-revoke.d.ts +1 -0
  19. package/dist/src/agent/mandate-revoke.js +142 -0
  20. package/dist/src/agent/mandate-revoke.js.map +1 -0
  21. package/dist/src/agent/mandate-state.d.ts +33 -0
  22. package/dist/src/agent/mandate-state.js +85 -0
  23. package/dist/src/agent/mandate-state.js.map +1 -0
  24. package/dist/src/agent/mandate.d.ts +4 -26
  25. package/dist/src/agent/mandate.js +4 -479
  26. package/dist/src/agent/mandate.js.map +1 -1
  27. package/dist/src/agent/mcp.js +7 -3
  28. package/dist/src/agent/mcp.js.map +1 -1
  29. package/dist/src/agent/prepare.js +1 -1
  30. package/dist/src/agent/prepare.js.map +1 -1
  31. package/dist/src/agent/problems.d.ts +13 -1
  32. package/dist/src/agent/problems.js +32 -1
  33. package/dist/src/agent/problems.js.map +1 -1
  34. package/dist/src/agent/read.d.ts +12 -0
  35. package/dist/src/agent/read.js +20 -6
  36. package/dist/src/agent/read.js.map +1 -1
  37. package/dist/src/agent/registry.js +6 -1
  38. package/dist/src/agent/registry.js.map +1 -1
  39. package/dist/src/agent/relay.d.ts +2 -0
  40. package/dist/src/agent/relay.js +11 -3
  41. package/dist/src/agent/relay.js.map +1 -1
  42. package/dist/src/agent/sales.d.ts +29 -0
  43. package/dist/src/agent/sales.js +248 -0
  44. package/dist/src/agent/sales.js.map +1 -0
  45. package/dist/src/agent/signed-prepare.d.ts +1 -0
  46. package/dist/src/agent/signed-prepare.js +141 -0
  47. package/dist/src/agent/signed-prepare.js.map +1 -0
  48. package/dist/src/agent/signed-relay.d.ts +25 -0
  49. package/dist/src/agent/signed-relay.js +68 -0
  50. package/dist/src/agent/signed-relay.js.map +1 -0
  51. package/dist/src/agent/signed-submit.d.ts +2 -0
  52. package/dist/src/agent/signed-submit.js +137 -0
  53. package/dist/src/agent/signed-submit.js.map +1 -0
  54. package/dist/src/agent/signed-terms.d.ts +85 -0
  55. package/dist/src/agent/signed-terms.js +84 -0
  56. package/dist/src/agent/signed-terms.js.map +1 -0
  57. package/dist/src/agent/signed.d.ts +4 -13
  58. package/dist/src/agent/signed.js +4 -361
  59. package/dist/src/agent/signed.js.map +1 -1
  60. package/dist/src/agent/wallet/account.d.ts +4 -0
  61. package/dist/src/agent/wallet/account.js +84 -0
  62. package/dist/src/agent/wallet/account.js.map +1 -0
  63. package/dist/src/agent/wallet/attest.d.ts +4 -0
  64. package/dist/src/agent/wallet/attest.js +178 -0
  65. package/dist/src/agent/wallet/attest.js.map +1 -0
  66. package/dist/src/agent/wallet/delivery.d.ts +13 -0
  67. package/dist/src/agent/wallet/delivery.js +171 -0
  68. package/dist/src/agent/wallet/delivery.js.map +1 -0
  69. package/dist/src/agent/wallet/escrow.d.ts +7 -0
  70. package/dist/src/agent/wallet/escrow.js +164 -0
  71. package/dist/src/agent/wallet/escrow.js.map +1 -0
  72. package/dist/src/agent/wallet/fills.d.ts +27 -0
  73. package/dist/src/agent/wallet/fills.js +80 -0
  74. package/dist/src/agent/wallet/fills.js.map +1 -0
  75. package/dist/src/agent/wallet/guard.d.ts +57 -0
  76. package/dist/src/agent/wallet/guard.js +205 -0
  77. package/dist/src/agent/wallet/guard.js.map +1 -0
  78. package/dist/src/agent/wallet/offer.d.ts +50 -0
  79. package/dist/src/agent/wallet/offer.js +80 -0
  80. package/dist/src/agent/wallet/offer.js.map +1 -0
  81. package/dist/src/agent/wallet/receipt.d.ts +42 -0
  82. package/dist/src/agent/wallet/receipt.js +102 -0
  83. package/dist/src/agent/wallet/receipt.js.map +1 -0
  84. package/dist/src/agent/wallet/record.d.ts +31 -0
  85. package/dist/src/agent/wallet/record.js +178 -0
  86. package/dist/src/agent/wallet/record.js.map +1 -0
  87. package/dist/src/agent/wallet/releases.d.ts +40 -0
  88. package/dist/src/agent/wallet/releases.js +236 -0
  89. package/dist/src/agent/wallet/releases.js.map +1 -0
  90. package/dist/src/agent/wallet/split.d.ts +10 -0
  91. package/dist/src/agent/wallet/split.js +271 -0
  92. package/dist/src/agent/wallet/split.js.map +1 -0
  93. package/dist/src/agent/wallet/trade.d.ts +14 -0
  94. package/dist/src/agent/wallet/trade.js +243 -0
  95. package/dist/src/agent/wallet/trade.js.map +1 -0
  96. package/dist/src/agent/wallet/wait.d.ts +5 -0
  97. package/dist/src/agent/wallet/wait.js +99 -0
  98. package/dist/src/agent/wallet/wait.js.map +1 -0
  99. package/dist/src/agent/wallet.d.ts +18 -73
  100. package/dist/src/agent/wallet.js +24 -1322
  101. package/dist/src/agent/wallet.js.map +1 -1
  102. package/dist/src/arg-options.d.ts +333 -0
  103. package/dist/src/arg-options.js +310 -0
  104. package/dist/src/arg-options.js.map +1 -0
  105. package/dist/src/arg-usage.d.ts +7 -0
  106. package/dist/src/arg-usage.js +53 -0
  107. package/dist/src/arg-usage.js.map +1 -0
  108. package/dist/src/arg-values.d.ts +47 -0
  109. package/dist/src/arg-values.js +280 -0
  110. package/dist/src/arg-values.js.map +1 -0
  111. package/dist/src/args.d.ts +7 -545
  112. package/dist/src/args.js +55 -923
  113. package/dist/src/args.js.map +1 -1
  114. package/dist/src/artifact.d.ts +22 -0
  115. package/dist/src/artifact.js +89 -0
  116. package/dist/src/artifact.js.map +1 -0
  117. package/dist/src/check-process.d.ts +39 -0
  118. package/dist/src/check-process.js +338 -0
  119. package/dist/src/check-process.js.map +1 -0
  120. package/dist/src/command-builders.d.ts +37 -0
  121. package/dist/src/command-builders.js +216 -0
  122. package/dist/src/command-builders.js.map +1 -0
  123. package/dist/src/command-types.d.ts +227 -0
  124. package/dist/src/command-types.js +2 -0
  125. package/dist/src/command-types.js.map +1 -0
  126. package/dist/src/commands.d.ts +7 -43
  127. package/dist/src/commands.js +60 -457
  128. package/dist/src/commands.js.map +1 -1
  129. package/dist/src/event-feed.d.ts +13 -0
  130. package/dist/src/event-feed.js +46 -0
  131. package/dist/src/event-feed.js.map +1 -0
  132. package/dist/src/flow-commands.d.ts +8 -0
  133. package/dist/src/flow-commands.js +116 -0
  134. package/dist/src/flow-commands.js.map +1 -0
  135. package/dist/src/flows.d.ts +6 -0
  136. package/dist/src/flows.js +84 -10
  137. package/dist/src/flows.js.map +1 -1
  138. package/dist/src/job-commands.d.ts +9 -0
  139. package/dist/src/job-commands.js +89 -0
  140. package/dist/src/job-commands.js.map +1 -0
  141. package/dist/src/judge-errors.d.ts +12 -0
  142. package/dist/src/judge-errors.js +16 -0
  143. package/dist/src/judge-errors.js.map +1 -0
  144. package/dist/src/judge.d.ts +11 -16
  145. package/dist/src/judge.js +120 -100
  146. package/dist/src/judge.js.map +1 -1
  147. package/dist/src/main.d.ts +4 -1
  148. package/dist/src/main.js +25 -9
  149. package/dist/src/main.js.map +1 -1
  150. package/dist/src/order-builders.d.ts +10 -0
  151. package/dist/src/order-builders.js +172 -0
  152. package/dist/src/order-builders.js.map +1 -0
  153. package/dist/src/render.d.ts +1 -0
  154. package/dist/src/render.js +9 -0
  155. package/dist/src/render.js.map +1 -1
  156. package/dist/src/runtime.d.ts +22 -0
  157. package/dist/src/runtime.js +2 -0
  158. package/dist/src/runtime.js.map +1 -0
  159. package/dist/src/solve-commands.d.ts +25 -0
  160. package/dist/src/solve-commands.js +171 -0
  161. package/dist/src/solve-commands.js.map +1 -0
  162. package/dist/src/tokens.js +2 -1
  163. package/dist/src/tokens.js.map +1 -1
  164. package/dist/src/version.d.ts +1 -1
  165. package/dist/src/version.js +1 -1
  166. package/dist/src/wallet.d.ts +4 -1
  167. package/dist/src/wallet.js +25 -5
  168. package/dist/src/wallet.js.map +1 -1
  169. package/package.json +16 -7
  170. package/dist/src/events.d.ts +0 -8
  171. package/dist/src/events.js +0 -43
  172. package/dist/src/events.js.map +0 -1
  173. package/dist/src/transport.d.ts +0 -208
  174. package/dist/src/transport.js +0 -441
  175. package/dist/src/transport.js.map +0 -1
@@ -1,554 +1,16 @@
1
- import { type Priority } from "./compute.js";
2
- import { type Address } from "@solana/kit";
3
- import { type EconomicsSpec } from "@intent-engine/core";
1
+ import type { Command, Env } from "./command-types.js";
2
+ export type { Authority, Command, Env, WalletLimits } from "./command-types.js";
3
+ export { ACCEPTS, GLOBAL_OPTIONS, type Side, SUB_ACCEPTS, TOKEN_SIDES, type Tokens } from "./arg-options.js";
4
+ export { COMMANDS, SHAPES, USAGE, usageOf } from "./arg-usage.js";
5
+ export { MAX_EVENT_LIMIT, MAX_RENT_FORMAT, MAX_SOL_COST_FORMAT, outputOf, parseFeeBps, parseI64, parseKinds, parseLimit, parseMaxRent, parsePause, parsePriority, parseSolCost, parseU64, SHA256_NEEDED, UsageError, } from "./arg-values.js";
6
+ export { expiry, MANDATE_USE_KINDS, needsSpecHash, order, SPEC_HASH_FORMAT } from "./order-builders.js";
7
+ export { AGENT_DEFAULT_HOURLY_LAMPORTS, AGENT_NEEDS_OWNERS, ISSUE_ALONE, ISSUE_FORMAT, JUDGE_TIMEOUT, MAX_DELIVERY_PAGES, MAX_JUDGE_TIMEOUT, ONE_MARKET, RELAY_DEFAULT_HOURLY_LAMPORTS, RELAY_DEFAULT_TTL, RELAY_MAX_TTL, RELAY_NEEDS_FEES, RELEASE_NEEDED, RUN_NEEDED, solveFeeAboveCap, TREASURY_CREATE_NEEDS_MINTS, WALLET_LIMITS_NEED_WALLET, zeroProfit, } from "./command-builders.js";
4
8
  export declare const DEFAULT_URL = "http://127.0.0.1:8899";
5
9
  export declare const CLUSTERS: Readonly<Record<string, string>>;
6
10
  export declare const ENV_URL = "INTENT_ENGINE_URL";
7
11
  export declare const ENV_KEYPAIR = "INTENT_ENGINE_KEYPAIR";
8
12
  export declare const WALLET_NOT_MAINNET = "mcp --wallet keeps its key in a file on this machine, so it serves devnet, testnet and localnet only";
9
- export type Env = Readonly<Record<string, string | undefined>>;
10
- export declare const GLOBAL_OPTIONS: readonly ["output", "help"];
11
- export declare class UsageError extends Error {
12
- }
13
- type Remote = {
14
- url: string;
15
- priority: Priority;
16
- };
17
- type RelaySpec = {
18
- keypair: string;
19
- maxLamports: bigint;
20
- maxTtl: bigint;
21
- perHour: number;
22
- hourlyLamports: bigint;
23
- fees: ReadonlyMap<Address, bigint>;
24
- };
25
- type AgentSpec = {
26
- keypair: string;
27
- hourlyLamports: bigint;
28
- owners: Address[];
29
- };
30
- type IssueSpec = {
31
- inputMint: Address;
32
- outputMint: Address;
33
- out: bigint;
34
- in: bigint;
35
- };
36
- export declare const RELAY_NEEDS_FEES = "--relayer needs --relay-fee naming every input token it relays as mint=amount; amount may be 0, and other tokens are refused";
37
- export declare const AGENT_NEEDS_OWNERS = "--agent needs --agent-owners naming every owner whose mandates this agent key may use";
38
- export declare const RELAY_DEFAULT_TTL: number;
39
- export declare const RELAY_DEFAULT_HOURLY_LAMPORTS = 100000000n;
40
- export declare const AGENT_DEFAULT_HOURLY_LAMPORTS = 50000000n;
41
- export declare const RELAY_MAX_TTL: number;
42
- type Keyed = Remote & {
43
- keypair: string;
44
- };
45
- export type Authority = {
46
- keypair: string;
47
- yes: boolean;
48
- } | {
49
- authority: Address;
50
- };
51
- type Administered = Remote & {
52
- by: Authority;
53
- };
54
- type FlowName = "create" | "mandate-grant" | "mandate-revoke" | "mandate-use" | "approve" | "revoke-approval";
55
- type LookupName = "list" | "mandate-show";
56
- type ToolInput = Record<string, unknown>;
57
- export type Side = "input" | "output";
58
- export type Tokens = {
59
- tokens: string;
60
- side: Side;
61
- };
62
- export declare const TOKEN_SIDES: Partial<Record<string, Side>>;
63
- type ConfigChange = {
64
- guardian: Address | undefined;
65
- feeRecipient: Address | undefined;
66
- feeBps: number | undefined;
67
- enabledKinds: bigint | undefined;
68
- fillDisabledKinds: bigint | undefined;
69
- };
70
- export type Command = {
71
- name: "pda";
72
- owner: Address;
73
- nonce: bigint;
74
- } | {
75
- name: "hash";
76
- artifact: string;
77
- } | (Remote & {
78
- name: "show-config";
79
- }) | (Remote & {
80
- name: "domain";
81
- }) | (Remote & {
82
- name: "setup";
83
- keypair: string | undefined;
84
- }) | (Remote & {
85
- name: "balance";
86
- keypair: string | undefined;
87
- owner: Address | undefined;
88
- mints: Address[] | null;
89
- }) | (Remote & {
90
- name: "mcp";
91
- relay: RelaySpec | undefined;
92
- agent: AgentSpec | undefined;
93
- wallet: WalletLimits | null;
94
- }) | (Remote & {
95
- name: "show-intent";
96
- owner: Address;
97
- nonce: bigint;
98
- }) | (Remote & {
99
- name: "quote";
100
- owner: Address;
101
- nonce: bigint;
102
- at: bigint | undefined;
103
- }) | (Keyed & {
104
- name: "cancel";
105
- nonce: bigint;
106
- }) | (Keyed & {
107
- name: "expire";
108
- owner: Address;
109
- nonce: bigint;
110
- }) | (Keyed & {
111
- name: "close";
112
- owner: Address;
113
- nonce: bigint;
114
- }) | (Keyed & {
115
- name: "advance-nonce";
116
- base: bigint;
117
- }) | (Keyed & {
118
- name: "advance-epoch";
119
- }) | (Administered & {
120
- name: "init-config";
121
- guardian: Address;
122
- feeRecipient: Address;
123
- feeBps: number;
124
- enabledKinds: bigint;
125
- paused: number;
126
- }) | (Administered & {
127
- name: "raise-pause" | "lower-pause";
128
- flags: number;
129
- }) | (Administered & {
130
- name: "set-economics";
131
- economics: EconomicsSpec;
132
- }) | (Administered & {
133
- name: "update-config";
134
- change: ConfigChange;
135
- }) | (Administered & {
136
- name: "propose-admin";
137
- pendingAdmin: Address;
138
- }) | (Administered & {
139
- name: "accept-admin";
140
- }) | (Keyed & {
141
- name: "solve";
142
- jupiter: string | undefined;
143
- issue: IssueSpec[];
144
- jito: string | undefined;
145
- tipLamports: bigint;
146
- minProfit: ReadonlyMap<Address, bigint>;
147
- maxFeeBps: number;
148
- slippageBps: number;
149
- routeProgram: Address | undefined;
150
- lookupTables: Address[];
151
- watch: number | null;
152
- }) | (Keyed & {
153
- name: "crank";
154
- dryRun: boolean;
155
- fundAccounts: boolean;
156
- }) | (Remote & {
157
- name: "events";
158
- limit: number;
159
- }) | (Remote & {
160
- name: "jobs";
161
- attestor: Address | undefined;
162
- }) | (Keyed & {
163
- name: "deliver";
164
- yes: boolean;
165
- intent: Address;
166
- sha256: string;
167
- workUrl: string;
168
- }) | (Remote & {
169
- name: "deliveries";
170
- attestor: Address;
171
- intent: Address;
172
- }) | (Keyed & {
173
- name: "judge";
174
- yes: boolean;
175
- owner: Address;
176
- nonce: bigint;
177
- spec: string;
178
- artifact: string;
179
- run: string;
180
- payTo: Address | undefined;
181
- timeout: number;
182
- verdict: string | undefined;
183
- }) | (Keyed & {
184
- name: "flow";
185
- flow: FlowName;
186
- yes: boolean;
187
- input: ToolInput;
188
- }) | (Remote & {
189
- name: "lookup";
190
- lookup: LookupName;
191
- keypair: string | undefined;
192
- input: ToolInput;
193
- }) | (Keyed & {
194
- name: "signed-prepare";
195
- yes: boolean;
196
- out: string;
197
- input: ToolInput;
198
- }) | (Keyed & {
199
- name: "signed-submit";
200
- yes: boolean;
201
- file: string;
202
- }) | {
203
- name: "help";
204
- verb: string | undefined;
205
- } | {
206
- name: "version";
207
- } | (Remote & {
208
- name: "follow";
209
- limit: number;
210
- interval: number;
211
- }) | (Remote & {
212
- name: "treasury";
213
- mints: Address[] | null;
214
- create: boolean;
215
- keypair: string | undefined;
216
- yes: boolean;
217
- }) | (Remote & {
218
- name: "solver-table";
219
- solver: Address;
220
- mints: Address[];
221
- });
222
- declare const OPTIONS: {
223
- readonly url: {
224
- readonly type: "string";
225
- };
226
- readonly keypair: {
227
- readonly type: "string";
228
- };
229
- readonly relayer: {
230
- readonly type: "string";
231
- };
232
- readonly agent: {
233
- readonly type: "string";
234
- };
235
- readonly wallet: {
236
- readonly type: "boolean";
237
- };
238
- readonly "wallet-per-trade": {
239
- readonly type: "string";
240
- };
241
- readonly "wallet-per-hour": {
242
- readonly type: "string";
243
- };
244
- readonly "relay-max-lamports": {
245
- readonly type: "string";
246
- };
247
- readonly "relay-max-ttl": {
248
- readonly type: "string";
249
- };
250
- readonly "relay-per-hour": {
251
- readonly type: "string";
252
- };
253
- readonly "relay-hourly-lamports": {
254
- readonly type: "string";
255
- };
256
- readonly "relay-fee": {
257
- readonly type: "string";
258
- };
259
- readonly "priority-fee": {
260
- readonly type: "string";
261
- };
262
- readonly authority: {
263
- readonly type: "string";
264
- };
265
- readonly "fill-disabled": {
266
- readonly type: "string";
267
- };
268
- readonly "new-admin": {
269
- readonly type: "string";
270
- };
271
- readonly "agent-hourly-lamports": {
272
- readonly type: "string";
273
- };
274
- readonly "agent-owners": {
275
- readonly type: "string";
276
- };
277
- readonly owner: {
278
- readonly type: "string";
279
- };
280
- readonly nonce: {
281
- readonly type: "string";
282
- };
283
- readonly at: {
284
- readonly type: "string";
285
- };
286
- readonly base: {
287
- readonly type: "string";
288
- };
289
- readonly "input-mint": {
290
- readonly type: "string";
291
- };
292
- readonly "output-mint": {
293
- readonly type: "string";
294
- };
295
- readonly "expires-at": {
296
- readonly type: "string";
297
- };
298
- readonly "amount-in": {
299
- readonly type: "string";
300
- };
301
- readonly "min-out": {
302
- readonly type: "string";
303
- };
304
- readonly make: {
305
- readonly type: "string";
306
- };
307
- readonly take: {
308
- readonly type: "string";
309
- };
310
- readonly guardian: {
311
- readonly type: "string";
312
- };
313
- readonly "fee-recipient": {
314
- readonly type: "string";
315
- };
316
- readonly "fee-bps": {
317
- readonly type: "string";
318
- };
319
- readonly kinds: {
320
- readonly type: "string";
321
- };
322
- readonly flags: {
323
- readonly type: "string";
324
- };
325
- readonly "dry-run": {
326
- readonly type: "boolean";
327
- };
328
- readonly yes: {
329
- readonly type: "boolean";
330
- };
331
- readonly help: {
332
- readonly type: "boolean";
333
- };
334
- readonly version: {
335
- readonly type: "boolean";
336
- };
337
- readonly follow: {
338
- readonly type: "boolean";
339
- };
340
- readonly watch: {
341
- readonly type: "boolean";
342
- };
343
- readonly output: {
344
- readonly type: "string";
345
- };
346
- readonly interval: {
347
- readonly type: "string";
348
- };
349
- readonly "expires-in": {
350
- readonly type: "string";
351
- };
352
- readonly "start-out": {
353
- readonly type: "string";
354
- };
355
- readonly "end-out": {
356
- readonly type: "string";
357
- };
358
- readonly "start-at": {
359
- readonly type: "string";
360
- };
361
- readonly "end-at": {
362
- readonly type: "string";
363
- };
364
- readonly "min-result": {
365
- readonly type: "string";
366
- };
367
- readonly "max-result": {
368
- readonly type: "string";
369
- };
370
- readonly attestor: {
371
- readonly type: "string";
372
- };
373
- readonly "per-intent": {
374
- readonly type: "string";
375
- };
376
- readonly total: {
377
- readonly type: "string";
378
- };
379
- readonly "max-intents": {
380
- readonly type: "string";
381
- };
382
- readonly "max-ttl": {
383
- readonly type: "string";
384
- };
385
- readonly "valid-for": {
386
- readonly type: "string";
387
- };
388
- readonly "floor-out": {
389
- readonly type: "string";
390
- };
391
- readonly "floor-in": {
392
- readonly type: "string";
393
- };
394
- readonly "agent-fee": {
395
- readonly type: "string";
396
- };
397
- readonly id: {
398
- readonly type: "string";
399
- };
400
- readonly mint: {
401
- readonly type: "string";
402
- };
403
- readonly amount: {
404
- readonly type: "string";
405
- };
406
- readonly out: {
407
- readonly type: "string";
408
- };
409
- readonly file: {
410
- readonly type: "string";
411
- };
412
- readonly "submit-within": {
413
- readonly type: "string";
414
- };
415
- readonly "relayer-fee": {
416
- readonly type: "string";
417
- };
418
- readonly units: {
419
- readonly type: "string";
420
- };
421
- readonly "fund-accounts": {
422
- readonly type: "boolean";
423
- };
424
- readonly limit: {
425
- readonly type: "string";
426
- };
427
- readonly bounty: {
428
- readonly type: "string";
429
- };
430
- readonly "create-fee": {
431
- readonly type: "string";
432
- };
433
- readonly "kind-fees": {
434
- readonly type: "string";
435
- };
436
- readonly "partner-cut": {
437
- readonly type: "string";
438
- };
439
- readonly partner: {
440
- readonly type: "string";
441
- };
442
- readonly jupiter: {
443
- readonly type: "string";
444
- };
445
- readonly jito: {
446
- readonly type: "string";
447
- };
448
- readonly tip: {
449
- readonly type: "string";
450
- };
451
- readonly "min-profit": {
452
- readonly type: "string";
453
- };
454
- readonly issue: {
455
- readonly type: "string";
456
- };
457
- readonly "max-fee-bps": {
458
- readonly type: "string";
459
- };
460
- readonly "slippage-bps": {
461
- readonly type: "string";
462
- };
463
- readonly "route-program": {
464
- readonly type: "string";
465
- };
466
- readonly "lookup-table": {
467
- readonly type: "string";
468
- };
469
- readonly solver: {
470
- readonly type: "string";
471
- };
472
- readonly "partner-bps": {
473
- readonly type: "string";
474
- };
475
- readonly mints: {
476
- readonly type: "string";
477
- };
478
- readonly create: {
479
- readonly type: "boolean";
480
- };
481
- readonly intent: {
482
- readonly type: "string";
483
- };
484
- readonly sha256: {
485
- readonly type: "string";
486
- };
487
- readonly "work-url": {
488
- readonly type: "string";
489
- };
490
- readonly spec: {
491
- readonly type: "string";
492
- };
493
- readonly artifact: {
494
- readonly type: "string";
495
- };
496
- readonly run: {
497
- readonly type: "string";
498
- };
499
- readonly "pay-to": {
500
- readonly type: "string";
501
- };
502
- readonly timeout: {
503
- readonly type: "string";
504
- };
505
- readonly verdict: {
506
- readonly type: "string";
507
- };
508
- };
509
- export declare function parseKinds(text: string): bigint;
510
- export declare function parsePause(text: string, key: string): number;
511
- export declare const MAX_EVENT_LIMIT = 1000;
512
- export declare function parseLimit(text: string): number;
513
- export declare function parseFeeBps(text: string): number;
514
- type Flag = "dry-run" | "fund-accounts" | "yes" | "help" | "version" | "follow" | "create" | "wallet" | "watch";
515
- type StringKey = Exclude<keyof typeof OPTIONS, Flag>;
516
- type Values = {
517
- [K in StringKey]?: string | undefined;
518
- } & {
519
- [K in Flag]?: boolean | undefined;
520
- };
521
- export declare const MANDATE_USE_KINDS = "a mandate covers swap, limit and dutch orders; name one of those";
522
- export declare const ACCEPTS: Record<string, readonly (keyof typeof OPTIONS)[]>;
523
- export declare const SUB_ACCEPTS: Record<string, Record<string, readonly (keyof typeof OPTIONS)[]>>;
524
- export declare function parseU64(text: string, key: string): bigint;
525
- export declare function parseI64(text: string, key: string): bigint;
526
- export declare function order(kind: string | undefined, values: Values): ToolInput;
527
- export declare function expiry(values: Values): ToolInput;
528
- export type WalletLimits = {
529
- perTrade: ReadonlyMap<Address, string>;
530
- perHour: ReadonlyMap<Address, string>;
531
- };
532
- export declare const WALLET_LIMITS_NEED_WALLET = "--wallet-per-trade and --wallet-per-hour need --wallet";
533
- export declare function parsePriority(text: string | undefined): Priority;
534
- export declare const ISSUE_FORMAT = "--issue takes <input mint>:<output mint>=<out>/<in> entries separated by commas";
535
- export declare const ONE_MARKET = "solve needs exactly one of --jupiter or --issue";
536
- export declare const ISSUE_ALONE = "--issue mints the output itself, so --slippage-bps and --route-program do not apply";
537
- export declare const TREASURY_CREATE_NEEDS_MINTS = "--create needs --mints naming the tokens to open treasury accounts for; anyone can open intents in any token, so the list must be yours";
538
- export declare const SHA256_NEEDED = "--sha256 must be the work's sha256 as 64 hex digits";
539
- export declare const JUDGE_TIMEOUT = 600;
540
- export declare const MAX_JUDGE_TIMEOUT = 86400;
541
- export declare const RUN_NEEDED = "--run must name the command that checks the artifact";
542
13
  export declare function clusterUrl(text: string): string;
543
- export declare function outputOf(argv: readonly string[]): "json" | "text";
544
14
  export declare const MAX_FOLLOW_INTERVAL = 3600;
545
15
  export declare const WATCH_INTERVAL = 5;
546
- export declare const COMMANDS = "setup | balance | pda | domain | mcp | show config | show intent | quote | cancel | expire | close | advance-nonce | advance-epoch | create swap|limit|dutch|attested | list | mandate grant|show|revoke|use <kind> | approve | revoke-approval | signed prepare <kind>|submit | init-config | update-config | set-economics | propose-admin | accept-admin | solve | raise-pause | lower-pause | crank | treasury | solver-table | events | jobs | deliver | deliveries | judge | hash | version | help [command]";
547
- export declare const USAGE = "usage: setup | balance | pda | domain | mcp | show config | show intent | quote | cancel | expire | close | advance-nonce | advance-epoch | create swap|limit|dutch|attested | list | mandate grant|show|revoke|use <kind> | approve | revoke-approval | signed prepare <kind>|submit | init-config | update-config | set-economics | propose-admin | accept-admin | solve | raise-pause | lower-pause | crank | treasury | solver-table | events | jobs | deliver | deliveries | judge | hash | version | help [command]";
548
- export declare const SHAPES: Readonly<Record<string, string>>;
549
- export declare function usageOf(verb: string | undefined): {
550
- usage: string;
551
- options: string[];
552
- };
553
16
  export declare function parse(argv: readonly string[], env?: Env): Command;
554
- export {};