@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.
- package/dist/src/admin-commands.d.ts +12 -0
- package/dist/src/admin-commands.js +140 -0
- package/dist/src/admin-commands.js.map +1 -0
- package/dist/src/agent/actions.d.ts +2 -0
- package/dist/src/agent/actions.js +1 -1
- package/dist/src/agent/actions.js.map +1 -1
- package/dist/src/agent/claims.js +13 -12
- package/dist/src/agent/claims.js.map +1 -1
- package/dist/src/agent/create.d.ts +1 -0
- package/dist/src/agent/create.js +7 -3
- package/dist/src/agent/create.js.map +1 -1
- package/dist/src/agent/mandate-agent.d.ts +2 -0
- package/dist/src/agent/mandate-agent.js +136 -0
- package/dist/src/agent/mandate-agent.js.map +1 -0
- package/dist/src/agent/mandate-grant.d.ts +2 -0
- package/dist/src/agent/mandate-grant.js +192 -0
- package/dist/src/agent/mandate-grant.js.map +1 -0
- package/dist/src/agent/mandate-revoke.d.ts +1 -0
- package/dist/src/agent/mandate-revoke.js +142 -0
- package/dist/src/agent/mandate-revoke.js.map +1 -0
- package/dist/src/agent/mandate-state.d.ts +33 -0
- package/dist/src/agent/mandate-state.js +85 -0
- package/dist/src/agent/mandate-state.js.map +1 -0
- package/dist/src/agent/mandate.d.ts +4 -26
- package/dist/src/agent/mandate.js +4 -479
- package/dist/src/agent/mandate.js.map +1 -1
- package/dist/src/agent/mcp.js +7 -3
- package/dist/src/agent/mcp.js.map +1 -1
- package/dist/src/agent/prepare.js +1 -1
- package/dist/src/agent/prepare.js.map +1 -1
- package/dist/src/agent/problems.d.ts +13 -1
- package/dist/src/agent/problems.js +32 -1
- package/dist/src/agent/problems.js.map +1 -1
- package/dist/src/agent/read.d.ts +12 -0
- package/dist/src/agent/read.js +20 -6
- package/dist/src/agent/read.js.map +1 -1
- package/dist/src/agent/registry.js +6 -1
- package/dist/src/agent/registry.js.map +1 -1
- package/dist/src/agent/relay.d.ts +2 -0
- package/dist/src/agent/relay.js +11 -3
- package/dist/src/agent/relay.js.map +1 -1
- package/dist/src/agent/sales.d.ts +29 -0
- package/dist/src/agent/sales.js +248 -0
- package/dist/src/agent/sales.js.map +1 -0
- package/dist/src/agent/signed-prepare.d.ts +1 -0
- package/dist/src/agent/signed-prepare.js +141 -0
- package/dist/src/agent/signed-prepare.js.map +1 -0
- package/dist/src/agent/signed-relay.d.ts +25 -0
- package/dist/src/agent/signed-relay.js +68 -0
- package/dist/src/agent/signed-relay.js.map +1 -0
- package/dist/src/agent/signed-submit.d.ts +2 -0
- package/dist/src/agent/signed-submit.js +137 -0
- package/dist/src/agent/signed-submit.js.map +1 -0
- package/dist/src/agent/signed-terms.d.ts +85 -0
- package/dist/src/agent/signed-terms.js +84 -0
- package/dist/src/agent/signed-terms.js.map +1 -0
- package/dist/src/agent/signed.d.ts +4 -13
- package/dist/src/agent/signed.js +4 -361
- package/dist/src/agent/signed.js.map +1 -1
- package/dist/src/agent/wallet/account.d.ts +4 -0
- package/dist/src/agent/wallet/account.js +84 -0
- package/dist/src/agent/wallet/account.js.map +1 -0
- package/dist/src/agent/wallet/attest.d.ts +4 -0
- package/dist/src/agent/wallet/attest.js +178 -0
- package/dist/src/agent/wallet/attest.js.map +1 -0
- package/dist/src/agent/wallet/delivery.d.ts +13 -0
- package/dist/src/agent/wallet/delivery.js +171 -0
- package/dist/src/agent/wallet/delivery.js.map +1 -0
- package/dist/src/agent/wallet/escrow.d.ts +7 -0
- package/dist/src/agent/wallet/escrow.js +164 -0
- package/dist/src/agent/wallet/escrow.js.map +1 -0
- package/dist/src/agent/wallet/fills.d.ts +27 -0
- package/dist/src/agent/wallet/fills.js +80 -0
- package/dist/src/agent/wallet/fills.js.map +1 -0
- package/dist/src/agent/wallet/guard.d.ts +57 -0
- package/dist/src/agent/wallet/guard.js +205 -0
- package/dist/src/agent/wallet/guard.js.map +1 -0
- package/dist/src/agent/wallet/offer.d.ts +50 -0
- package/dist/src/agent/wallet/offer.js +80 -0
- package/dist/src/agent/wallet/offer.js.map +1 -0
- package/dist/src/agent/wallet/receipt.d.ts +42 -0
- package/dist/src/agent/wallet/receipt.js +102 -0
- package/dist/src/agent/wallet/receipt.js.map +1 -0
- package/dist/src/agent/wallet/record.d.ts +31 -0
- package/dist/src/agent/wallet/record.js +178 -0
- package/dist/src/agent/wallet/record.js.map +1 -0
- package/dist/src/agent/wallet/releases.d.ts +40 -0
- package/dist/src/agent/wallet/releases.js +236 -0
- package/dist/src/agent/wallet/releases.js.map +1 -0
- package/dist/src/agent/wallet/split.d.ts +10 -0
- package/dist/src/agent/wallet/split.js +271 -0
- package/dist/src/agent/wallet/split.js.map +1 -0
- package/dist/src/agent/wallet/trade.d.ts +14 -0
- package/dist/src/agent/wallet/trade.js +243 -0
- package/dist/src/agent/wallet/trade.js.map +1 -0
- package/dist/src/agent/wallet/wait.d.ts +5 -0
- package/dist/src/agent/wallet/wait.js +99 -0
- package/dist/src/agent/wallet/wait.js.map +1 -0
- package/dist/src/agent/wallet.d.ts +18 -73
- package/dist/src/agent/wallet.js +24 -1322
- package/dist/src/agent/wallet.js.map +1 -1
- package/dist/src/arg-options.d.ts +333 -0
- package/dist/src/arg-options.js +310 -0
- package/dist/src/arg-options.js.map +1 -0
- package/dist/src/arg-usage.d.ts +7 -0
- package/dist/src/arg-usage.js +53 -0
- package/dist/src/arg-usage.js.map +1 -0
- package/dist/src/arg-values.d.ts +47 -0
- package/dist/src/arg-values.js +280 -0
- package/dist/src/arg-values.js.map +1 -0
- package/dist/src/args.d.ts +7 -545
- package/dist/src/args.js +55 -923
- package/dist/src/args.js.map +1 -1
- package/dist/src/artifact.d.ts +22 -0
- package/dist/src/artifact.js +89 -0
- package/dist/src/artifact.js.map +1 -0
- package/dist/src/check-process.d.ts +39 -0
- package/dist/src/check-process.js +338 -0
- package/dist/src/check-process.js.map +1 -0
- package/dist/src/command-builders.d.ts +37 -0
- package/dist/src/command-builders.js +216 -0
- package/dist/src/command-builders.js.map +1 -0
- package/dist/src/command-types.d.ts +227 -0
- package/dist/src/command-types.js +2 -0
- package/dist/src/command-types.js.map +1 -0
- package/dist/src/commands.d.ts +7 -43
- package/dist/src/commands.js +60 -457
- package/dist/src/commands.js.map +1 -1
- package/dist/src/event-feed.d.ts +13 -0
- package/dist/src/event-feed.js +46 -0
- package/dist/src/event-feed.js.map +1 -0
- package/dist/src/flow-commands.d.ts +8 -0
- package/dist/src/flow-commands.js +116 -0
- package/dist/src/flow-commands.js.map +1 -0
- package/dist/src/flows.d.ts +6 -0
- package/dist/src/flows.js +84 -10
- package/dist/src/flows.js.map +1 -1
- package/dist/src/job-commands.d.ts +9 -0
- package/dist/src/job-commands.js +89 -0
- package/dist/src/job-commands.js.map +1 -0
- package/dist/src/judge-errors.d.ts +12 -0
- package/dist/src/judge-errors.js +16 -0
- package/dist/src/judge-errors.js.map +1 -0
- package/dist/src/judge.d.ts +11 -16
- package/dist/src/judge.js +120 -100
- package/dist/src/judge.js.map +1 -1
- package/dist/src/main.d.ts +4 -1
- package/dist/src/main.js +25 -9
- package/dist/src/main.js.map +1 -1
- package/dist/src/order-builders.d.ts +10 -0
- package/dist/src/order-builders.js +172 -0
- package/dist/src/order-builders.js.map +1 -0
- package/dist/src/render.d.ts +1 -0
- package/dist/src/render.js +9 -0
- package/dist/src/render.js.map +1 -1
- package/dist/src/runtime.d.ts +22 -0
- package/dist/src/runtime.js +2 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/solve-commands.d.ts +25 -0
- package/dist/src/solve-commands.js +171 -0
- package/dist/src/solve-commands.js.map +1 -0
- package/dist/src/tokens.js +2 -1
- package/dist/src/tokens.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/wallet.d.ts +4 -1
- package/dist/src/wallet.js +25 -5
- package/dist/src/wallet.js.map +1 -1
- package/package.json +16 -7
- package/dist/src/events.d.ts +0 -8
- package/dist/src/events.js +0 -43
- package/dist/src/events.js.map +0 -1
- package/dist/src/transport.d.ts +0 -208
- package/dist/src/transport.js +0 -441
- package/dist/src/transport.js.map +0 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
export const GLOBAL_OPTIONS = ["output", "help"];
|
|
2
|
+
export const TOKEN_SIDES = {
|
|
3
|
+
"amount-in": "input",
|
|
4
|
+
make: "input",
|
|
5
|
+
"per-intent": "input",
|
|
6
|
+
total: "input",
|
|
7
|
+
"agent-fee": "input",
|
|
8
|
+
"floor-in": "input",
|
|
9
|
+
"relayer-fee": "input",
|
|
10
|
+
"judge-fee": "input",
|
|
11
|
+
amount: "input",
|
|
12
|
+
"min-out": "output",
|
|
13
|
+
take: "output",
|
|
14
|
+
"start-out": "output",
|
|
15
|
+
"end-out": "output",
|
|
16
|
+
"floor-out": "output",
|
|
17
|
+
};
|
|
18
|
+
export const OPTIONS = {
|
|
19
|
+
url: { type: "string" },
|
|
20
|
+
keypair: { type: "string" },
|
|
21
|
+
relayer: { type: "string" },
|
|
22
|
+
agent: { type: "string" },
|
|
23
|
+
wallet: { type: "boolean" },
|
|
24
|
+
"wallet-per-trade": { type: "string" },
|
|
25
|
+
"wallet-per-hour": { type: "string" },
|
|
26
|
+
"relay-max-lamports": { type: "string" },
|
|
27
|
+
"relay-max-ttl": { type: "string" },
|
|
28
|
+
"relay-per-hour": { type: "string" },
|
|
29
|
+
"relay-hourly-lamports": { type: "string" },
|
|
30
|
+
"relay-fee": { type: "string" },
|
|
31
|
+
"priority-fee": { type: "string" },
|
|
32
|
+
authority: { type: "string" },
|
|
33
|
+
"fill-disabled": { type: "string" },
|
|
34
|
+
"new-admin": { type: "string" },
|
|
35
|
+
"agent-hourly-lamports": { type: "string" },
|
|
36
|
+
"agent-owners": { type: "string" },
|
|
37
|
+
owner: { type: "string" },
|
|
38
|
+
nonce: { type: "string" },
|
|
39
|
+
at: { type: "string" },
|
|
40
|
+
base: { type: "string" },
|
|
41
|
+
"input-mint": { type: "string" },
|
|
42
|
+
"output-mint": { type: "string" },
|
|
43
|
+
"expires-at": { type: "string" },
|
|
44
|
+
"amount-in": { type: "string" },
|
|
45
|
+
"min-out": { type: "string" },
|
|
46
|
+
make: { type: "string" },
|
|
47
|
+
take: { type: "string" },
|
|
48
|
+
guardian: { type: "string" },
|
|
49
|
+
"fee-recipient": { type: "string" },
|
|
50
|
+
"fee-bps": { type: "string" },
|
|
51
|
+
kinds: { type: "string" },
|
|
52
|
+
flags: { type: "string" },
|
|
53
|
+
"dry-run": { type: "boolean" },
|
|
54
|
+
yes: { type: "boolean" },
|
|
55
|
+
help: { type: "boolean" },
|
|
56
|
+
version: { type: "boolean" },
|
|
57
|
+
follow: { type: "boolean" },
|
|
58
|
+
watch: { type: "boolean" },
|
|
59
|
+
output: { type: "string" },
|
|
60
|
+
interval: { type: "string" },
|
|
61
|
+
"expires-in": { type: "string" },
|
|
62
|
+
"start-out": { type: "string" },
|
|
63
|
+
"end-out": { type: "string" },
|
|
64
|
+
"start-at": { type: "string" },
|
|
65
|
+
"end-at": { type: "string" },
|
|
66
|
+
"min-result": { type: "string" },
|
|
67
|
+
"max-result": { type: "string" },
|
|
68
|
+
attestor: { type: "string" },
|
|
69
|
+
"per-intent": { type: "string" },
|
|
70
|
+
total: { type: "string" },
|
|
71
|
+
"max-intents": { type: "string" },
|
|
72
|
+
"max-ttl": { type: "string" },
|
|
73
|
+
"valid-for": { type: "string" },
|
|
74
|
+
"floor-out": { type: "string" },
|
|
75
|
+
"floor-in": { type: "string" },
|
|
76
|
+
"agent-fee": { type: "string" },
|
|
77
|
+
id: { type: "string" },
|
|
78
|
+
mint: { type: "string" },
|
|
79
|
+
amount: { type: "string" },
|
|
80
|
+
out: { type: "string" },
|
|
81
|
+
file: { type: "string" },
|
|
82
|
+
"submit-within": { type: "string" },
|
|
83
|
+
"relayer-fee": { type: "string" },
|
|
84
|
+
units: { type: "string" },
|
|
85
|
+
"fund-accounts": { type: "boolean" },
|
|
86
|
+
limit: { type: "string" },
|
|
87
|
+
bounty: { type: "string" },
|
|
88
|
+
"create-fee": { type: "string" },
|
|
89
|
+
"kind-fees": { type: "string" },
|
|
90
|
+
"partner-cut": { type: "string" },
|
|
91
|
+
partner: { type: "string" },
|
|
92
|
+
jupiter: { type: "string" },
|
|
93
|
+
jito: { type: "string" },
|
|
94
|
+
tip: { type: "string" },
|
|
95
|
+
"min-profit": { type: "string" },
|
|
96
|
+
issue: { type: "string" },
|
|
97
|
+
"max-fee-bps": { type: "string" },
|
|
98
|
+
"max-sol-cost": { type: "string" },
|
|
99
|
+
"max-rent": { type: "string" },
|
|
100
|
+
"slippage-bps": { type: "string" },
|
|
101
|
+
"route-program": { type: "string" },
|
|
102
|
+
"lookup-table": { type: "string" },
|
|
103
|
+
solver: { type: "string" },
|
|
104
|
+
"partner-bps": { type: "string" },
|
|
105
|
+
mints: { type: "string" },
|
|
106
|
+
create: { type: "boolean" },
|
|
107
|
+
intent: { type: "string" },
|
|
108
|
+
sha256: { type: "string" },
|
|
109
|
+
"work-url": { type: "string" },
|
|
110
|
+
spec: { type: "string" },
|
|
111
|
+
artifact: { type: "string" },
|
|
112
|
+
run: { type: "string" },
|
|
113
|
+
"pay-to": { type: "string" },
|
|
114
|
+
timeout: { type: "string" },
|
|
115
|
+
verdict: { type: "string" },
|
|
116
|
+
"max-pages": { type: "string" },
|
|
117
|
+
"spec-hash": { type: "string" },
|
|
118
|
+
"judge-fee": { type: "string" },
|
|
119
|
+
"spec-url": { type: "string" },
|
|
120
|
+
result: { type: "string" },
|
|
121
|
+
close: { type: "boolean" },
|
|
122
|
+
release: { type: "string" },
|
|
123
|
+
};
|
|
124
|
+
export const EXPIRY = ["expires-at", "expires-in"];
|
|
125
|
+
export const ORDER = [
|
|
126
|
+
"amount-in",
|
|
127
|
+
"min-out",
|
|
128
|
+
"make",
|
|
129
|
+
"take",
|
|
130
|
+
"start-out",
|
|
131
|
+
"end-out",
|
|
132
|
+
"start-at",
|
|
133
|
+
"end-at",
|
|
134
|
+
"min-result",
|
|
135
|
+
"max-result",
|
|
136
|
+
"attestor",
|
|
137
|
+
];
|
|
138
|
+
export const MANDATE_ORDER = ORDER.filter((o) => o !== "min-result" && o !== "max-result" && o !== "attestor");
|
|
139
|
+
export const ACCEPTS = {
|
|
140
|
+
setup: ["url", "keypair"],
|
|
141
|
+
balance: ["url", "keypair", "owner", "mints"],
|
|
142
|
+
pda: ["owner", "nonce"],
|
|
143
|
+
hash: ["artifact"],
|
|
144
|
+
show: ["url", "owner", "nonce"],
|
|
145
|
+
domain: ["url"],
|
|
146
|
+
mcp: [
|
|
147
|
+
"url",
|
|
148
|
+
"priority-fee",
|
|
149
|
+
"relayer",
|
|
150
|
+
"relay-max-lamports",
|
|
151
|
+
"relay-max-ttl",
|
|
152
|
+
"relay-per-hour",
|
|
153
|
+
"relay-hourly-lamports",
|
|
154
|
+
"relay-fee",
|
|
155
|
+
"agent",
|
|
156
|
+
"agent-hourly-lamports",
|
|
157
|
+
"agent-owners",
|
|
158
|
+
"wallet",
|
|
159
|
+
"wallet-per-trade",
|
|
160
|
+
"wallet-per-hour",
|
|
161
|
+
],
|
|
162
|
+
quote: ["url", "owner", "nonce", "at"],
|
|
163
|
+
cancel: ["url", "priority-fee", "keypair", "yes", "nonce", "close"],
|
|
164
|
+
expire: ["url", "priority-fee", "keypair", "yes", "owner", "nonce"],
|
|
165
|
+
close: ["url", "priority-fee", "keypair", "yes", "owner", "nonce"],
|
|
166
|
+
"advance-nonce": ["url", "priority-fee", "keypair", "base"],
|
|
167
|
+
"advance-epoch": ["url", "priority-fee", "keypair"],
|
|
168
|
+
"init-config": ["url", "priority-fee", "keypair", "authority", "yes", "guardian", "fee-recipient", "fee-bps", "kinds", "flags"],
|
|
169
|
+
"raise-pause": ["url", "priority-fee", "keypair", "authority", "yes", "flags"],
|
|
170
|
+
"set-economics": ["url", "priority-fee", "keypair", "authority", "yes", "bounty", "create-fee", "kind-fees", "partner-cut"],
|
|
171
|
+
"update-config": [
|
|
172
|
+
"url",
|
|
173
|
+
"priority-fee",
|
|
174
|
+
"keypair",
|
|
175
|
+
"authority",
|
|
176
|
+
"yes",
|
|
177
|
+
"guardian",
|
|
178
|
+
"fee-recipient",
|
|
179
|
+
"fee-bps",
|
|
180
|
+
"kinds",
|
|
181
|
+
"fill-disabled",
|
|
182
|
+
],
|
|
183
|
+
"propose-admin": ["url", "priority-fee", "keypair", "authority", "yes", "new-admin"],
|
|
184
|
+
"accept-admin": ["url", "priority-fee", "keypair", "authority", "yes"],
|
|
185
|
+
solve: ["url", "priority-fee", "keypair", "jupiter", "issue", "jito", "tip", "min-profit", "max-fee-bps", "max-sol-cost", "max-rent", "slippage-bps", "route-program", "lookup-table", "watch", "interval"],
|
|
186
|
+
"solver-table": ["url", "solver", "mints"],
|
|
187
|
+
"lower-pause": ["url", "priority-fee", "keypair", "authority", "yes", "flags"],
|
|
188
|
+
events: ["url", "limit", "follow", "interval"],
|
|
189
|
+
jobs: ["url", "attestor"],
|
|
190
|
+
deliver: ["url", "priority-fee", "keypair", "yes", "intent", "sha256", "work-url"],
|
|
191
|
+
deliveries: ["url", "attestor", "intent", "max-pages"],
|
|
192
|
+
receipt: ["url", "owner", "nonce", "sha256", "release"],
|
|
193
|
+
"record-delivery": ["url", "priority-fee", "keypair", "yes", "owner", "nonce", "sha256", "release"],
|
|
194
|
+
judge: ["url", "priority-fee", "keypair", "yes", "owner", "nonce", "spec", "artifact", "run", "pay-to", "result", "timeout", "verdict", "max-pages"],
|
|
195
|
+
crank: ["url", "priority-fee", "keypair", "dry-run", "fund-accounts"],
|
|
196
|
+
treasury: ["url", "priority-fee", "keypair", "yes", "mints", "create"],
|
|
197
|
+
create: [
|
|
198
|
+
"url",
|
|
199
|
+
"priority-fee",
|
|
200
|
+
"keypair",
|
|
201
|
+
"yes",
|
|
202
|
+
"nonce",
|
|
203
|
+
"input-mint",
|
|
204
|
+
"output-mint",
|
|
205
|
+
...EXPIRY,
|
|
206
|
+
...ORDER,
|
|
207
|
+
"spec-hash",
|
|
208
|
+
"judge-fee",
|
|
209
|
+
"spec-url",
|
|
210
|
+
"pay-to",
|
|
211
|
+
"partner",
|
|
212
|
+
"partner-bps",
|
|
213
|
+
"units",
|
|
214
|
+
],
|
|
215
|
+
list: ["url", "keypair", "owner"],
|
|
216
|
+
mandate: [
|
|
217
|
+
"url",
|
|
218
|
+
"priority-fee",
|
|
219
|
+
"keypair",
|
|
220
|
+
"yes",
|
|
221
|
+
"owner",
|
|
222
|
+
"agent",
|
|
223
|
+
"id",
|
|
224
|
+
"input-mint",
|
|
225
|
+
"output-mint",
|
|
226
|
+
"kinds",
|
|
227
|
+
"per-intent",
|
|
228
|
+
"total",
|
|
229
|
+
"max-intents",
|
|
230
|
+
"max-ttl",
|
|
231
|
+
"valid-for",
|
|
232
|
+
"floor-out",
|
|
233
|
+
"floor-in",
|
|
234
|
+
"partner",
|
|
235
|
+
"partner-bps",
|
|
236
|
+
"agent-fee",
|
|
237
|
+
"nonce",
|
|
238
|
+
...EXPIRY,
|
|
239
|
+
...ORDER,
|
|
240
|
+
"units",
|
|
241
|
+
],
|
|
242
|
+
approve: ["url", "priority-fee", "keypair", "yes", "mint", "amount", "units"],
|
|
243
|
+
"revoke-approval": ["url", "priority-fee", "keypair", "yes", "mint"],
|
|
244
|
+
signed: [
|
|
245
|
+
"url",
|
|
246
|
+
"keypair",
|
|
247
|
+
"yes",
|
|
248
|
+
"out",
|
|
249
|
+
"file",
|
|
250
|
+
"nonce",
|
|
251
|
+
"input-mint",
|
|
252
|
+
"output-mint",
|
|
253
|
+
"submit-within",
|
|
254
|
+
"relayer-fee",
|
|
255
|
+
...EXPIRY,
|
|
256
|
+
...ORDER,
|
|
257
|
+
"partner",
|
|
258
|
+
"partner-bps",
|
|
259
|
+
"units",
|
|
260
|
+
],
|
|
261
|
+
};
|
|
262
|
+
export const SUB_ACCEPTS = {
|
|
263
|
+
mandate: {
|
|
264
|
+
grant: [
|
|
265
|
+
"url",
|
|
266
|
+
"priority-fee",
|
|
267
|
+
"keypair",
|
|
268
|
+
"yes",
|
|
269
|
+
"agent",
|
|
270
|
+
"id",
|
|
271
|
+
"input-mint",
|
|
272
|
+
"output-mint",
|
|
273
|
+
"kinds",
|
|
274
|
+
"per-intent",
|
|
275
|
+
"total",
|
|
276
|
+
"max-intents",
|
|
277
|
+
"max-ttl",
|
|
278
|
+
"valid-for",
|
|
279
|
+
"floor-out",
|
|
280
|
+
"floor-in",
|
|
281
|
+
"partner",
|
|
282
|
+
"partner-bps",
|
|
283
|
+
"agent-fee",
|
|
284
|
+
"units",
|
|
285
|
+
],
|
|
286
|
+
show: ["url", "keypair", "agent", "id", "owner"],
|
|
287
|
+
revoke: ["url", "priority-fee", "keypair", "yes", "agent", "id"],
|
|
288
|
+
use: ["url", "priority-fee", "keypair", "yes", "owner", "id", "nonce", ...EXPIRY, ...MANDATE_ORDER, "units"],
|
|
289
|
+
},
|
|
290
|
+
signed: {
|
|
291
|
+
prepare: [
|
|
292
|
+
"url",
|
|
293
|
+
"keypair",
|
|
294
|
+
"yes",
|
|
295
|
+
"out",
|
|
296
|
+
"nonce",
|
|
297
|
+
"input-mint",
|
|
298
|
+
"output-mint",
|
|
299
|
+
"submit-within",
|
|
300
|
+
"relayer-fee",
|
|
301
|
+
...EXPIRY,
|
|
302
|
+
...ORDER,
|
|
303
|
+
"partner",
|
|
304
|
+
"partner-bps",
|
|
305
|
+
"units",
|
|
306
|
+
],
|
|
307
|
+
submit: ["url", "keypair", "yes", "file"],
|
|
308
|
+
},
|
|
309
|
+
};
|
|
310
|
+
//# sourceMappingURL=arg-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arg-options.js","sourceRoot":"","sources":["../../src/arg-options.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,YAAY,EAAE,OAAO;IACrB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,SAAS;QACT,aAAa;QACb,OAAO;KACR;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAsE;IAC5F,OAAO,EAAE;QACP,KAAK,EAAE;YACL,KAAK;YACL,cAAc;YACd,SAAS;YACT,KAAK;YACL,OAAO;YACP,IAAI;YACJ,YAAY;YACZ,aAAa;YACb,OAAO;YACP,YAAY;YACZ,OAAO;YACP,aAAa;YACb,SAAS;YACT,WAAW;YACX,WAAW;YACX,UAAU;YACV,SAAS;YACT,aAAa;YACb,WAAW;YACX,OAAO;SACR;QACD,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;QAChD,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC;QAChE,GAAG,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,aAAa,EAAE,OAAO,CAAC;KAC7G;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK;YACL,SAAS;YACT,KAAK;YACL,KAAK;YACL,OAAO;YACP,YAAY;YACZ,aAAa;YACb,eAAe;YACf,aAAa;YACb,GAAG,MAAM;YACT,GAAG,KAAK;YACR,SAAS;YACT,aAAa;YACb,OAAO;SACR;QACD,MAAM,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC;KAC1C;CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
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 | receipt | record-delivery | judge | hash | version | help [command]";
|
|
2
|
+
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 | receipt | record-delivery | judge | hash | version | help [command]";
|
|
3
|
+
export declare const SHAPES: Readonly<Record<string, string>>;
|
|
4
|
+
export declare function usageOf(verb: string | undefined): {
|
|
5
|
+
usage: string;
|
|
6
|
+
options: string[];
|
|
7
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ACCEPTS, GLOBAL_OPTIONS } from "./arg-options.js";
|
|
2
|
+
export 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 | receipt | record-delivery | judge | hash | version | help [command]";
|
|
3
|
+
export const USAGE = `usage: ${COMMANDS}`;
|
|
4
|
+
const MANDATE_ORDER_SHAPE = "(--amount-in --min-out | --make --take | --amount-in --start-out --end-out --start-at --end-at)";
|
|
5
|
+
const ORDER_SHAPE = "(--amount-in --min-out | --make --take | --amount-in --start-out --end-out --start-at --end-at | --amount-in --min-result --max-result --attestor)";
|
|
6
|
+
const PARTNER_SHAPE = "[--partner <address> --partner-bps <n>]";
|
|
7
|
+
export const SHAPES = {
|
|
8
|
+
setup: "[--url <cluster>] [--keypair <file>]",
|
|
9
|
+
balance: "[--keypair <file> | --owner <address>] [--mints <mint,...>]",
|
|
10
|
+
pda: "--owner <address> --nonce <n>",
|
|
11
|
+
hash: "--artifact <file or directory>",
|
|
12
|
+
show: "config | intent --owner <address> --nonce <n>",
|
|
13
|
+
domain: "",
|
|
14
|
+
mcp: "[--wallet [--wallet-per-trade <token=amount,...>] [--wallet-per-hour <token=amount,...>]] [--relayer <keypair> --relay-fee <mint=amount,...> [--relay-max-lamports] [--relay-max-ttl] [--relay-per-hour] [--relay-hourly-lamports]] [--agent <keypair> --agent-owners <address,...> [--agent-hourly-lamports]]",
|
|
15
|
+
quote: "--owner <address> --nonce <n> [--at <unix>]",
|
|
16
|
+
cancel: "--keypair <file> --nonce <n> [--close] [--yes]",
|
|
17
|
+
expire: "--keypair <file> --owner <address> --nonce <n> [--yes]",
|
|
18
|
+
close: "--keypair <file> --owner <address> --nonce <n> [--yes]",
|
|
19
|
+
"advance-nonce": "--keypair <file> --base <n>",
|
|
20
|
+
"advance-epoch": "--keypair <file>",
|
|
21
|
+
"init-config": "(--keypair <file> [--yes] | --authority <address>) --guardian --fee-recipient --fee-bps --kinds [--flags create|fill|all]",
|
|
22
|
+
"update-config": "(--keypair <file> [--yes] | --authority <address>) and any of --guardian --fee-recipient --fee-bps --kinds --fill-disabled",
|
|
23
|
+
"propose-admin": "(--keypair <file> [--yes] | --authority <address>) --new-admin <address>",
|
|
24
|
+
"accept-admin": "(--keypair <file> [--yes] | --authority <address>)",
|
|
25
|
+
"raise-pause": "(--keypair <file> [--yes] | --authority <address>) --flags create|fill|all",
|
|
26
|
+
"lower-pause": "(--keypair <file> [--yes] | --authority <address>) --flags create|fill|all",
|
|
27
|
+
"set-economics": "(--keypair <file> [--yes] | --authority <address>) --bounty --create-fee [--kind-fees] [--partner-cut]",
|
|
28
|
+
solve: "--keypair <file> (--jupiter <url> | --issue <input mint>:<output mint>=<out>/<in>,...) --min-profit <output mint=raw,...> [--priority-fee <micro-lamports|auto>] [--max-fee-bps <n>] [--max-sol-cost <SOL>] [--max-rent <SOL>] [--slippage-bps <n>] [--jito <url> [--tip <lamports>]] [--route-program <program the aggregator swaps through>] [--lookup-table <address,...>] [--watch [--interval <seconds>]]",
|
|
29
|
+
"solver-table": "--solver <address> --mints <mint,...>",
|
|
30
|
+
crank: "--keypair <file> [--dry-run] [--fund-accounts]",
|
|
31
|
+
treasury: "[--mints <mint,...>] [--create --mints <mint,...> --keypair <payer file> [--yes]]",
|
|
32
|
+
events: "[--limit <n>] [--follow [--interval <seconds>]]",
|
|
33
|
+
jobs: "[--attestor <address>]",
|
|
34
|
+
deliver: "--keypair <worker file> --intent <address> --sha256 <64 hex> --work-url <https url> [--yes]",
|
|
35
|
+
deliveries: "--attestor <address> --intent <address> [--max-pages <n>]",
|
|
36
|
+
receipt: "--owner <address> --nonce <n> [--sha256 <64 hex>] [--release <signature>]",
|
|
37
|
+
"record-delivery": "--keypair <judge file> --owner <address> --nonce <n> --sha256 <64 hex> [--release <signature>] [--yes]",
|
|
38
|
+
judge: "--keypair <judge file> --owner <address> --nonce <n> --spec <file> --artifact <file or directory> --run <command> [--pay-to <wallet>] [--result <n>] [--timeout <seconds>] [--verdict <file>] [--max-pages <n>] [--yes]",
|
|
39
|
+
create: `swap|limit|dutch|attested --keypair <file> --input-mint --output-mint (--expires-at | --expires-in) ${ORDER_SHAPE} [--nonce <n>] [--pay-to <wallet>] ${PARTNER_SHAPE} [--units tokens|raw] [--yes]; attested takes [--spec-hash <64 hex> [--judge-fee <amount>] [--spec-url <https url>]] to make a proof escrow`,
|
|
40
|
+
list: "--owner <address> or --keypair <file>; --owner wins when both are given",
|
|
41
|
+
mandate: `grant --keypair <file> --agent --input-mint --output-mint --kinds --per-intent --total --max-intents --max-ttl --valid-for --floor-out --floor-in [--agent-fee] ${PARTNER_SHAPE} [--id] [--units tokens|raw] [--yes] | show --agent (--owner <address> | --keypair <file>) [--id] | revoke --keypair <file> --agent [--id] [--yes] | use swap|limit|dutch --keypair <file> --owner (--expires-at | --expires-in) ${MANDATE_ORDER_SHAPE} [--id] [--nonce <n>] [--units tokens|raw] [--yes]`,
|
|
42
|
+
approve: "--keypair <file> --mint <mint> --amount <amount> [--units tokens|raw] [--yes]",
|
|
43
|
+
"revoke-approval": "--keypair <file> --mint <mint> [--yes]",
|
|
44
|
+
signed: `prepare swap|limit|dutch|attested --keypair <file> --out <file> --input-mint --output-mint (--expires-at | --expires-in) ${ORDER_SHAPE} [--nonce <n>] [--submit-within <seconds>] [--relayer-fee] ${PARTNER_SHAPE} [--units tokens|raw] [--yes] | submit --keypair <relayer file> --file <file> [--yes]`,
|
|
45
|
+
};
|
|
46
|
+
export function usageOf(verb) {
|
|
47
|
+
const known = verb !== undefined && ACCEPTS[verb] !== undefined;
|
|
48
|
+
return {
|
|
49
|
+
usage: known ? `${verb} ${SHAPES[verb] ?? ""}`.trim() : COMMANDS,
|
|
50
|
+
options: known ? [...(ACCEPTS[verb] ?? []), ...GLOBAL_OPTIONS].map((o) => `--${o}`) : [],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=arg-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arg-usage.js","sourceRoot":"","sources":["../../src/arg-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,CAAC,MAAM,QAAQ,GAAG,ghBAAghB,CAAC;AAEziB,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,QAAQ,EAAE,CAAC;AAE1C,MAAM,mBAAmB,GAAG,iGAAiG,CAAC;AAE9H,MAAM,WAAW,GAAG,oJAAoJ,CAAC;AAEzK,MAAM,aAAa,GAAG,yCAAyC,CAAC;AAEhE,MAAM,CAAC,MAAM,MAAM,GAAqC;IACtD,KAAK,EAAE,sCAAsC;IAC7C,OAAO,EAAE,6DAA6D;IACtE,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE,+CAA+C;IACrD,MAAM,EAAE,EAAE;IACV,GAAG,EAAE,gTAAgT;IACrT,KAAK,EAAE,6CAA6C;IACpD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,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;KACzF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Priority } from "./compute.js";
|
|
2
|
+
import { type StringKey, type Tokens, type Values } from "./arg-options.js";
|
|
3
|
+
import { type Address } from "@solana/kit";
|
|
4
|
+
import { Kind } from "@intent-engine/core";
|
|
5
|
+
export declare class UsageError extends Error {
|
|
6
|
+
}
|
|
7
|
+
export declare const KIND_NAMES: Record<string, Kind>;
|
|
8
|
+
export declare function parseKinds(text: string): bigint;
|
|
9
|
+
export declare function parseKindSet(text: string, key: string, allowNone: boolean): bigint;
|
|
10
|
+
export declare function parsePause(text: string, key: string): number;
|
|
11
|
+
export declare function parseBounded(text: string, key: string, max: number, min?: number): number;
|
|
12
|
+
export declare function parseKindFees(text: string): {
|
|
13
|
+
mask: number;
|
|
14
|
+
bps: [number, number, number, number];
|
|
15
|
+
};
|
|
16
|
+
export declare const MAX_EVENT_LIMIT = 1000;
|
|
17
|
+
export declare function parseLimit(text: string): number;
|
|
18
|
+
export declare function parseFeeBps(text: string): number;
|
|
19
|
+
export declare function noRepeats(argv: readonly string[]): void;
|
|
20
|
+
export declare function onlyAccepted(verb: string | undefined, sub: string | undefined, values: Values): void;
|
|
21
|
+
export declare function required(values: Values, key: StringKey): string;
|
|
22
|
+
export declare function parseU64(text: string, key: string): bigint;
|
|
23
|
+
export declare function parseI64(text: string, key: string): bigint;
|
|
24
|
+
export declare function parseAddress(text: string, key: string): Address;
|
|
25
|
+
export declare const u64: (values: Values, key: StringKey) => bigint;
|
|
26
|
+
export declare const key: (values: Values, name: StringKey) => Address;
|
|
27
|
+
export declare function amountOf(values: Values, name: StringKey): string | Tokens;
|
|
28
|
+
export declare function unitsOf(values: Values): void;
|
|
29
|
+
export declare const timeOf: (values: Values, name: StringKey) => string;
|
|
30
|
+
export declare const optionalField: (values: Values, name: StringKey, field: string, read: (v: Values, n: StringKey) => unknown) => {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
export declare function https(text: string, key: string): string;
|
|
34
|
+
export declare function mintAmounts(text: string | undefined, name: "relay-fee" | "min-profit"): ReadonlyMap<Address, bigint>;
|
|
35
|
+
export declare const MAX_SOL_COST_FORMAT = "--max-sol-cost is SOL above 0 with at most 9 decimals, such as 0.01";
|
|
36
|
+
export declare const MAX_RENT_FORMAT = "--max-rent is SOL above 0 with at most 9 decimals, such as 0.01";
|
|
37
|
+
export declare function parseSolCost(text: string): bigint;
|
|
38
|
+
export declare function parseMaxRent(text: string): bigint;
|
|
39
|
+
export declare function parsePriority(text: string | undefined): Priority;
|
|
40
|
+
export declare function named(values: Values, url: string): void;
|
|
41
|
+
export declare function mintList(text: string): Address[];
|
|
42
|
+
export declare function addressList(text: string, name: "mints" | "lookup-table"): Address[];
|
|
43
|
+
export declare const SHA256_NEEDED = "--sha256 must be the work's sha256 as 64 hex digits";
|
|
44
|
+
export declare function sha256Of(text: string, refusal?: string): string;
|
|
45
|
+
export declare function memoUrlOf(text: string, key: "work-url" | "spec-url"): string;
|
|
46
|
+
export declare function noSub(sub: string | undefined): void;
|
|
47
|
+
export declare function outputOf(argv: readonly string[]): "json" | "text";
|