zk-agent-cli 0.1.0-beta.8 → 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 +24 -3
- package/dist/index.js +1783 -154
- 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
|
|
@@ -23,8 +27,9 @@ npx skills add https://github.com/AgiWeb3/zk-agent-cli
|
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
This repo currently ships a repository skill bundle for compatible harnesses.
|
|
26
|
-
|
|
27
|
-
`.codex-plugin/plugin.json
|
|
30
|
+
The repository root now also ships a native ChatGPT/Codex plugin manifest at
|
|
31
|
+
`.codex-plugin/plugin.json`, but that plugin source belongs to the repository
|
|
32
|
+
surface rather than this published npm tarball.
|
|
28
33
|
|
|
29
34
|
For direct terminal use, install the packaged CLI:
|
|
30
35
|
|
|
@@ -80,6 +85,13 @@ Use:
|
|
|
80
85
|
|
|
81
86
|
## Shortest Path
|
|
82
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
|
+
|
|
83
95
|
Fresh setup:
|
|
84
96
|
|
|
85
97
|
```bash
|
|
@@ -99,6 +111,11 @@ zk-agent wallet create --relay-url <relay-url> --wait-relay --prompt-code
|
|
|
99
111
|
zk-agent next
|
|
100
112
|
```
|
|
101
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
|
+
|
|
102
119
|
If a wallet already exists, inspect the blocker first. Use `wallet reapprove`
|
|
103
120
|
when approval is missing or expired, then return to `zk-agent next`. Use
|
|
104
121
|
`wallet signer attach` when approval is still present but the local execution
|
|
@@ -228,7 +245,9 @@ published package now also ships the bundled connector UI build used by
|
|
|
228
245
|
source checkout just to serve the UI. `relay inspect` now also reports
|
|
229
246
|
`stateBackend`, `deploymentScope`, and `sameHostRestartPersists` so the
|
|
230
247
|
single-host local-filesystem constraint is explicit before you rely on a hosted
|
|
231
|
-
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).
|
|
232
251
|
|
|
233
252
|
## Local Storage
|
|
234
253
|
|
|
@@ -278,6 +297,7 @@ Connector callback never arrives:
|
|
|
278
297
|
|
|
279
298
|
CLI says the wallet is missing a writable session:
|
|
280
299
|
|
|
300
|
+
- if the blocker is unclear, run `zk-agent doctor --wallet <wallet>` first
|
|
281
301
|
- inspect `zk-agent wallet status --name <wallet>`
|
|
282
302
|
- if approval is missing, run `zk-agent wallet reapprove --name <wallet> --await-local`
|
|
283
303
|
- if approval is present but the local signer is missing, run
|
|
@@ -300,6 +320,7 @@ For the canonical command surfaces:
|
|
|
300
320
|
|
|
301
321
|
```bash
|
|
302
322
|
zk-agent --help
|
|
323
|
+
zk-agent doctor --help
|
|
303
324
|
zk-agent wallet --help
|
|
304
325
|
zk-agent workflow --help
|
|
305
326
|
```
|