zk-agent-cli 0.1.0-rc.2 → 0.1.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -31
- package/dist/index.js +539 -75
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,8 @@ zk-agent suite
|
|
|
28
28
|
What each step is doing:
|
|
29
29
|
|
|
30
30
|
- `setup` writes local defaults
|
|
31
|
-
- `next` gives the shortest valid follow-up step
|
|
31
|
+
- `next` gives the shortest valid follow-up step and now labels the current
|
|
32
|
+
product question as `bootstrap`, `recover`, `operate`, or `workflow`
|
|
32
33
|
- `wallet create --await-local` is the preferred local approval path
|
|
33
34
|
- `workflow pay` is the flagship zkSync-native AA native-send path
|
|
34
35
|
- `suite` is the packaged surface
|
|
@@ -39,6 +40,29 @@ If readiness is unclear before you choose a fix, use:
|
|
|
39
40
|
zk-agent doctor
|
|
40
41
|
```
|
|
41
42
|
|
|
43
|
+
When `doctor` shows local readiness is clear and the question is broader than
|
|
44
|
+
one immediate next step, move to:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
zk-agent suite
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
If you want one packaged readout that includes both first-run onboarding and
|
|
51
|
+
the post-flagship operator surface, use:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
zk-agent suite --include-onboarding
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Use the surfaces this way:
|
|
58
|
+
|
|
59
|
+
- `next`: the CLI is still deciding the shortest path across setup, wallet
|
|
60
|
+
readiness, recovery, or workflow continuation
|
|
61
|
+
- `suite`: the wallet is already ready and you want the packaged operator
|
|
62
|
+
catalog after the flagship pay path
|
|
63
|
+
- `suite --include-onboarding`: you want one combined readout from first-run
|
|
64
|
+
bootstrap through the packaged post-flagship surface
|
|
65
|
+
|
|
42
66
|
## Install
|
|
43
67
|
|
|
44
68
|
One-shot execution:
|
|
@@ -83,7 +107,19 @@ ZK_AGENT_TOKEN_DIRECTORY_ROOT=
|
|
|
83
107
|
ZK_AGENT_STORAGE_DIR=
|
|
84
108
|
```
|
|
85
109
|
|
|
86
|
-
##
|
|
110
|
+
## Choose the right surface
|
|
111
|
+
|
|
112
|
+
- `zk-agent next`: the top-level product entrypoint when the CLI still needs to
|
|
113
|
+
choose the shortest path
|
|
114
|
+
- `zk-agent doctor`: local-only diagnosis before you choose a fix
|
|
115
|
+
- `zk-agent wallet status --name <wallet>` and
|
|
116
|
+
`zk-agent wallet next --name <wallet>`: wallet-scoped repair and readiness
|
|
117
|
+
- `zk-agent workflow ...`: explicit workflow planning, persistence, status, and
|
|
118
|
+
resume questions
|
|
119
|
+
- `zk-agent suite`: the packaged post-flagship catalog once wallet readiness is
|
|
120
|
+
no longer the blocker
|
|
121
|
+
|
|
122
|
+
## Repair locally first
|
|
87
123
|
|
|
88
124
|
If the wallet already exists and approval is missing or expired:
|
|
89
125
|
|
|
@@ -106,7 +142,7 @@ zk-agent wallet status --name main
|
|
|
106
142
|
zk-agent wallet next --name main
|
|
107
143
|
```
|
|
108
144
|
|
|
109
|
-
##
|
|
145
|
+
## Switch to remote approval only when needed
|
|
110
146
|
|
|
111
147
|
Use the relay-backed path only when the browser is not colocated with the
|
|
112
148
|
terminal:
|
|
@@ -146,7 +182,7 @@ path.
|
|
|
146
182
|
For the supported hosted operating contract, use
|
|
147
183
|
[`docs/16-hosted-approval-operated-baseline.md`](../../docs/16-hosted-approval-operated-baseline.md).
|
|
148
184
|
|
|
149
|
-
## After
|
|
185
|
+
## After the wallet is ready
|
|
150
186
|
|
|
151
187
|
Default flagship write path:
|
|
152
188
|
|
|
@@ -165,8 +201,29 @@ zk-agent suite
|
|
|
165
201
|
```
|
|
166
202
|
|
|
167
203
|
Use `suite` when the wallet is already ready and you want one packaged surface
|
|
168
|
-
for flagship pay, discovery/defaults, funding readiness,
|
|
169
|
-
paymaster readiness.
|
|
204
|
+
for flagship pay, discovery/defaults, funding readiness, approval-based
|
|
205
|
+
paymaster readiness, and hosted approval recovery.
|
|
206
|
+
|
|
207
|
+
Current `suite` catalog categories:
|
|
208
|
+
|
|
209
|
+
- `operate`
|
|
210
|
+
- `discover`
|
|
211
|
+
- `pay`
|
|
212
|
+
- `fund`
|
|
213
|
+
- `recover`
|
|
214
|
+
|
|
215
|
+
Current `suite` handoff surfaces:
|
|
216
|
+
|
|
217
|
+
- `workflow`: flagship pay, approval-based pay, and funding recovery
|
|
218
|
+
- `discovery`: assets/defaults/token inspection
|
|
219
|
+
- `relay`: hosted approval recovery
|
|
220
|
+
|
|
221
|
+
Current `suite` operator journeys:
|
|
222
|
+
|
|
223
|
+
- `send value now`
|
|
224
|
+
- `inspect before acting`
|
|
225
|
+
- `unstick a write`
|
|
226
|
+
- `recover remote approval`
|
|
170
227
|
|
|
171
228
|
Use `--wallet <name>` or `--chain <chain>` when the returned suite commands
|
|
172
229
|
should stay on a non-default wallet or chain.
|
|
@@ -181,11 +238,11 @@ zk-agent workflow fund --wallet main --amount <amount> --execute
|
|
|
181
238
|
Do not guess the route. Use the exact funding command suggested by `next`,
|
|
182
239
|
`doctor`, `wallet status`, a blocked workflow, or `suite`.
|
|
183
240
|
|
|
184
|
-
##
|
|
241
|
+
## Leave the default path only on purpose
|
|
185
242
|
|
|
186
243
|
Prefer `suite` first when you want the packaged discovery/defaults/funding/
|
|
187
|
-
paymaster surface.
|
|
188
|
-
narrower
|
|
244
|
+
paymaster surface. Drop to lower-level commands only when the question is
|
|
245
|
+
already narrower than the packaged catalog.
|
|
189
246
|
|
|
190
247
|
Preferred discovery order:
|
|
191
248
|
|
|
@@ -194,33 +251,25 @@ Preferred discovery order:
|
|
|
194
251
|
- `zk-agent defaults`
|
|
195
252
|
- `zk-agent resolve-token --chain zksync-sepolia --symbol <symbol>`
|
|
196
253
|
|
|
197
|
-
|
|
254
|
+
- direct token transfer or send path:
|
|
255
|
+
`zk-agent send-token --wallet main --symbol USDC --to <address> --amount <amount>`
|
|
256
|
+
- explicit workflow planning, swap, bridge, deposit, withdraw, or resume:
|
|
257
|
+
`zk-agent workflow --help`
|
|
258
|
+
- wallet lifecycle, recovery, approval requests, signer management, or
|
|
259
|
+
smart-account profile operations:
|
|
260
|
+
`zk-agent wallet --help`
|
|
261
|
+
- hosted relay inspection or built-in relay serving:
|
|
262
|
+
`zk-agent relay --help`
|
|
198
263
|
|
|
199
|
-
-
|
|
200
|
-
- `zk-agent swap --wallet main --token-in-symbol USDC --token-out-symbol ETH --amount-in <amount>`
|
|
201
|
-
- `zk-agent fund --wallet main --symbol USDC --amount <amount>`
|
|
202
|
-
- `zk-agent deposit --wallet main --symbol USDC --amount <amount>`
|
|
203
|
-
- `zk-agent withdraw --wallet main --symbol USDC --amount <amount>`
|
|
204
|
-
|
|
205
|
-
## Smart-account Profiles
|
|
206
|
-
|
|
207
|
-
Built-in profiles:
|
|
264
|
+
Built-in smart-account profiles remain:
|
|
208
265
|
|
|
209
266
|
- `sed-lite`
|
|
210
267
|
- `daily-spend-limit`
|
|
211
268
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Use the packaged path for:
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
zk-agent wallet smart-account predict --profile sed-lite
|
|
222
|
-
zk-agent wallet smart-account deploy --profile sed-lite
|
|
223
|
-
```
|
|
269
|
+
Keep `sed-lite` as the default product baseline. Use
|
|
270
|
+
`zk-agent wallet smart-account --help` when the task is specifically about
|
|
271
|
+
predict, deploy, or profile-level self-calls rather than the normal operator
|
|
272
|
+
path.
|
|
224
273
|
|
|
225
274
|
## Common failures
|
|
226
275
|
|
|
@@ -263,6 +312,7 @@ zk-agent doctor --help
|
|
|
263
312
|
zk-agent wallet --help
|
|
264
313
|
zk-agent workflow --help
|
|
265
314
|
zk-agent suite --help
|
|
315
|
+
zk-agent relay --help
|
|
266
316
|
```
|
|
267
317
|
|
|
268
318
|
## License
|