zk-agent-cli 0.1.0-rc.2 → 0.1.0-rc.4

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 (3) hide show
  1. package/README.md +97 -31
  2. package/dist/index.js +1298 -137
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -28,17 +28,53 @@ 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
35
36
 
37
+ The packaged default story is payment-first: send native value now, stay on
38
+ the approval-based pay path when fee-token/default state matters, and recover
39
+ funding only when the workflow says the write path is blocked.
40
+
41
+ The first Agent Pay platform primitive now exists as a local-first payment
42
+ request surface:
43
+
44
+ ```bash
45
+ zk-agent payment create --wallet main --to <address> --amount <amount>
46
+ zk-agent payment list
47
+ ```
48
+
36
49
  If readiness is unclear before you choose a fix, use:
37
50
 
38
51
  ```bash
39
52
  zk-agent doctor
40
53
  ```
41
54
 
55
+ When `doctor` shows local readiness is clear and the question is broader than
56
+ one immediate next step, move to:
57
+
58
+ ```bash
59
+ zk-agent suite
60
+ ```
61
+
62
+ If you want one packaged readout that includes both first-run onboarding and
63
+ the post-flagship operator surface, use:
64
+
65
+ ```bash
66
+ zk-agent suite --include-onboarding
67
+ ```
68
+
69
+ Use the surfaces this way:
70
+
71
+ - `next`: the CLI is still deciding the shortest path across setup, wallet
72
+ readiness, recovery, or workflow continuation
73
+ - `suite`: the wallet is already ready and you want the packaged operator
74
+ catalog after the flagship pay path
75
+ - `suite --include-onboarding`: you want one combined readout from first-run
76
+ bootstrap through the packaged post-flagship surface
77
+
42
78
  ## Install
43
79
 
44
80
  One-shot execution:
@@ -83,7 +119,20 @@ ZK_AGENT_TOKEN_DIRECTORY_ROOT=
83
119
  ZK_AGENT_STORAGE_DIR=
84
120
  ```
85
121
 
86
- ## Repair Paths
122
+ ## Choose the right surface
123
+
124
+ - `zk-agent next`: the top-level product entrypoint when the CLI still needs to
125
+ choose the shortest path
126
+ - `zk-agent doctor`: local-only diagnosis before you choose a fix
127
+ - `zk-agent wallet status --name <wallet>` and
128
+ `zk-agent wallet next --name <wallet>`: wallet-scoped repair and readiness
129
+ - `zk-agent workflow ...`: explicit workflow planning, persistence, status, and
130
+ resume questions
131
+ - `zk-agent payment ...`: local-first payment request capture and settlement-state tracking for the Agent Pay platform layer
132
+ - `zk-agent suite`: the packaged post-flagship catalog once wallet readiness is
133
+ no longer the blocker
134
+
135
+ ## Repair locally first
87
136
 
88
137
  If the wallet already exists and approval is missing or expired:
89
138
 
@@ -106,7 +155,7 @@ zk-agent wallet status --name main
106
155
  zk-agent wallet next --name main
107
156
  ```
108
157
 
109
- ## Remote approval
158
+ ## Switch to remote approval only when needed
110
159
 
111
160
  Use the relay-backed path only when the browser is not colocated with the
112
161
  terminal:
@@ -146,7 +195,7 @@ path.
146
195
  For the supported hosted operating contract, use
147
196
  [`docs/16-hosted-approval-operated-baseline.md`](../../docs/16-hosted-approval-operated-baseline.md).
148
197
 
149
- ## After Wallet Ready
198
+ ## After the wallet is ready
150
199
 
151
200
  Default flagship write path:
152
201
 
@@ -165,8 +214,32 @@ zk-agent suite
165
214
  ```
166
215
 
167
216
  Use `suite` when the wallet is already ready and you want one packaged surface
168
- for flagship pay, discovery/defaults, funding readiness, and approval-based
169
- paymaster readiness.
217
+ for flagship pay, discovery/defaults, funding readiness, approval-based
218
+ paymaster readiness, and hosted approval recovery.
219
+
220
+ Current `suite` catalog categories:
221
+
222
+ - `operate`
223
+ - `discover`
224
+ - `pay`
225
+ - `fund`
226
+ - `recover`
227
+
228
+ Current `suite` handoff surfaces:
229
+
230
+ - `workflow`: flagship pay, approval-based pay, and funding recovery
231
+ - `discovery`: assets/defaults/token inspection
232
+ - `relay`: hosted approval recovery
233
+
234
+ Current `suite` operator journeys:
235
+
236
+ - `send value now`
237
+ - `inspect before acting`
238
+ - `unstick a write`
239
+ - `recover remote approval`
240
+
241
+ If you only need one default starting point inside `suite`, start with
242
+ `send value now`.
170
243
 
171
244
  Use `--wallet <name>` or `--chain <chain>` when the returned suite commands
172
245
  should stay on a non-default wallet or chain.
@@ -181,11 +254,11 @@ zk-agent workflow fund --wallet main --amount <amount> --execute
181
254
  Do not guess the route. Use the exact funding command suggested by `next`,
182
255
  `doctor`, `wallet status`, a blocked workflow, or `suite`.
183
256
 
184
- ## Direct Paths
257
+ ## Leave the default path only on purpose
185
258
 
186
259
  Prefer `suite` first when you want the packaged discovery/defaults/funding/
187
- paymaster surface. Use the commands below only when you intentionally want a
188
- narrower path.
260
+ paymaster surface. Drop to lower-level commands only when the question is
261
+ already narrower than the packaged catalog.
189
262
 
190
263
  Preferred discovery order:
191
264
 
@@ -194,33 +267,25 @@ Preferred discovery order:
194
267
  - `zk-agent defaults`
195
268
  - `zk-agent resolve-token --chain zksync-sepolia --symbol <symbol>`
196
269
 
197
- Bypass examples:
198
-
199
- - `zk-agent send-token --wallet main --symbol USDC --to <address> --amount <amount>`
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
270
+ - direct token transfer or send path:
271
+ `zk-agent send-token --wallet main --symbol USDC --to <address> --amount <amount>`
272
+ - explicit workflow planning, swap, bridge, deposit, withdraw, or resume:
273
+ `zk-agent workflow --help`
274
+ - wallet lifecycle, recovery, approval requests, signer management, or
275
+ smart-account profile operations:
276
+ `zk-agent wallet --help`
277
+ - hosted relay inspection or built-in relay serving:
278
+ `zk-agent relay --help`
206
279
 
207
- Built-in profiles:
280
+ Built-in smart-account profiles remain:
208
281
 
209
282
  - `sed-lite`
210
283
  - `daily-spend-limit`
211
284
 
212
- Inspect them with:
213
-
214
- ```bash
215
- zk-agent wallet smart-account profiles --json
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
- ```
285
+ Keep `sed-lite` as the default product baseline. Use
286
+ `zk-agent wallet smart-account --help` when the task is specifically about
287
+ predict, deploy, or profile-level self-calls rather than the normal operator
288
+ path.
224
289
 
225
290
  ## Common failures
226
291
 
@@ -263,6 +328,7 @@ zk-agent doctor --help
263
328
  zk-agent wallet --help
264
329
  zk-agent workflow --help
265
330
  zk-agent suite --help
331
+ zk-agent relay --help
266
332
  ```
267
333
 
268
334
  ## License