zk-agent-cli 0.1.0-beta.9 → 0.1.0-rc.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.
- package/README.md +21 -1
- package/dist/index.js +1152 -140
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
`zk-agent-cli` is the packaged `zk-agent-cli` command surface for zkSync Era
|
|
4
4
|
and zkSync Sepolia.
|
|
5
5
|
|
|
6
|
+
This README is the canonical operator manual for the packaged CLI. If you want
|
|
7
|
+
repo architecture, contributor state, or project planning context, use the root
|
|
8
|
+
repository docs instead of this package manual.
|
|
9
|
+
|
|
6
10
|
Current strengths:
|
|
7
11
|
|
|
8
12
|
- local-first wallet/session storage
|
|
@@ -81,6 +85,13 @@ Use:
|
|
|
81
85
|
|
|
82
86
|
## Shortest Path
|
|
83
87
|
|
|
88
|
+
Current validated first-run baseline:
|
|
89
|
+
|
|
90
|
+
- `setup` defaults to `zksync-sepolia`
|
|
91
|
+
- the local approval path expects the connector UI at `http://localhost:4444`
|
|
92
|
+
- override `--default-chain` or `--connector-url` only when you intentionally
|
|
93
|
+
target another chain or connector deployment
|
|
94
|
+
|
|
84
95
|
Fresh setup:
|
|
85
96
|
|
|
86
97
|
```bash
|
|
@@ -100,6 +111,11 @@ zk-agent wallet create --relay-url <relay-url> --wait-relay --prompt-code
|
|
|
100
111
|
zk-agent next
|
|
101
112
|
```
|
|
102
113
|
|
|
114
|
+
If local setup or wallet readiness is unclear, start with `zk-agent doctor`.
|
|
115
|
+
It inspects saved config, wallet approval metadata, and local signer state
|
|
116
|
+
without live RPC reads, and `--relay-url` only makes the remote fallback
|
|
117
|
+
commands concrete.
|
|
118
|
+
|
|
103
119
|
If a wallet already exists, inspect the blocker first. Use `wallet reapprove`
|
|
104
120
|
when approval is missing or expired, then return to `zk-agent next`. Use
|
|
105
121
|
`wallet signer attach` when approval is still present but the local execution
|
|
@@ -229,7 +245,9 @@ published package now also ships the bundled connector UI build used by
|
|
|
229
245
|
source checkout just to serve the UI. `relay inspect` now also reports
|
|
230
246
|
`stateBackend`, `deploymentScope`, and `sameHostRestartPersists` so the
|
|
231
247
|
single-host local-filesystem constraint is explicit before you rely on a hosted
|
|
232
|
-
URL.
|
|
248
|
+
URL. For the current supported hosted operating contract and the remaining
|
|
249
|
+
`beta -> rc` blocker on this path, see
|
|
250
|
+
[`docs/16-hosted-approval-operated-baseline.md`](../../docs/16-hosted-approval-operated-baseline.md).
|
|
233
251
|
|
|
234
252
|
## Local Storage
|
|
235
253
|
|
|
@@ -279,6 +297,7 @@ Connector callback never arrives:
|
|
|
279
297
|
|
|
280
298
|
CLI says the wallet is missing a writable session:
|
|
281
299
|
|
|
300
|
+
- if the blocker is unclear, run `zk-agent doctor --wallet <wallet>` first
|
|
282
301
|
- inspect `zk-agent wallet status --name <wallet>`
|
|
283
302
|
- if approval is missing, run `zk-agent wallet reapprove --name <wallet> --await-local`
|
|
284
303
|
- if approval is present but the local signer is missing, run
|
|
@@ -301,6 +320,7 @@ For the canonical command surfaces:
|
|
|
301
320
|
|
|
302
321
|
```bash
|
|
303
322
|
zk-agent --help
|
|
323
|
+
zk-agent doctor --help
|
|
304
324
|
zk-agent wallet --help
|
|
305
325
|
zk-agent workflow --help
|
|
306
326
|
```
|