@tokamak-private-dapps/private-state-cli 2.4.3 → 3.0.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/CHANGELOG.md +94 -4
- package/README.md +230 -90
- package/agents.md +1476 -148
- package/assets/service-terms.md +294 -0
- package/assets/tx-fees.json +4 -4
- package/commands/account.mjs +5 -1
- package/commands/channel.mjs +14 -0
- package/commands/index.mjs +5 -0
- package/commands/notes.mjs +5 -0
- package/commands/secret.mjs +20 -0
- package/commands/system.mjs +7 -2
- package/commands/wallet.mjs +12 -2
- package/investigator/README.md +13 -11
- package/investigator/index.html +1 -1
- package/lib/private-state-browser-wallet-helpers.mjs +91 -0
- package/lib/private-state-cli-command-registry.mjs +222 -97
- package/lib/private-state-runtime-management.mjs +90 -10
- package/lib/private-state-terms.mjs +35 -0
- package/lib/runtime.mjs +3493 -399
- package/package.json +3 -3
- package/private-state-bridge-cli.mjs +1 -1
- package/cli-assistant.html +0 -1534
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,96 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.0.0 - 2026-06-16
|
|
4
|
+
|
|
5
|
+
- Expanded the installed-package E2E to cover raw evidence export ZIP validation, investigator asset smoke checks,
|
|
6
|
+
installed `help commands` and `help guide --json` checks, `channel get-meta`, `help observer`, and final
|
|
7
|
+
`channel abandon-operation` behavior.
|
|
8
|
+
- Updated README, command help, and investigator guidance to describe selected-network transaction submission and
|
|
9
|
+
mainnet-only evidence/key export confirmations.
|
|
10
|
+
- Simplified the packaged Service Terms for ordinary users and judicial or regulatory readers by removing excessive
|
|
11
|
+
implementation and operation details while preserving self-custody, public-record, risk, liability, and Channel policy
|
|
12
|
+
disclosures.
|
|
13
|
+
- Added human-mode install progress messages with step counts and elapsed time so users can see that installation is
|
|
14
|
+
still running after browser Terms acceptance.
|
|
15
|
+
- Changed the browser-based install Terms page to render the packaged Markdown Terms as styled HTML instead of showing
|
|
16
|
+
raw preformatted Markdown text.
|
|
17
|
+
- Changed human-mode CLI result formatting so `install` prints a concise installation summary and generic command
|
|
18
|
+
results render nested objects and arrays as readable indented text instead of raw JSON blobs.
|
|
19
|
+
- Changed managed runtime installation subprocesses to stay quiet on successful installs while preserving captured
|
|
20
|
+
stdout and stderr in failure diagnostics.
|
|
21
|
+
- Fixed `install --include-local-artifacts` to scan local `deployment/chain-id-*` artifacts for the selected DApp,
|
|
22
|
+
install local artifacts per chain, and let local artifacts override downloaded artifacts for the same chain.
|
|
23
|
+
- Added optional `install --network <NAME>` scoping. Mainnet install and install without `--network` remain Terms-gated,
|
|
24
|
+
while Sepolia and anvil installs can run without interactive Terms acceptance for test and E2E workflows.
|
|
25
|
+
- Changed consent-gated CLI commands to require Terms acceptance only for mainnet-targeted runs. Sepolia and anvil runs
|
|
26
|
+
skip Terms prompts while preserving mainnet protections.
|
|
27
|
+
- Added optional `--network` selectors to wallet backup/key import commands so Sepolia and anvil restore flows can run
|
|
28
|
+
non-interactively while mainnet and network-omitted imports remain Terms-gated.
|
|
29
|
+
- Updated the packaged Service Terms, public Terms, Privacy Notice, and Monitoring Packet wording for the corrected
|
|
30
|
+
Provider and Channel Provider responsibility model, including Channel-scoped observer and workspace mirror services.
|
|
31
|
+
- Added Channel observer URL output to the Monitoring Packet policy snapshot generator and current
|
|
32
|
+
`the-great-first-channel` policy snapshot.
|
|
33
|
+
- Changed `help observer` to require `--network` and `--channel-name`, read the selected Channel's observer URL from
|
|
34
|
+
on-chain Channel metadata, and fail clearly when no Channel observer URL is registered.
|
|
35
|
+
- Marked `help observer` as requiring read-only deployment artifacts and changed stale BridgeCore ABI detection to return
|
|
36
|
+
a clear reinstall-required error instead of an internal TypeError.
|
|
37
|
+
- Changed human `install` to open a nonce-protected local browser Terms page by default, require browser-based human
|
|
38
|
+
acceptance before installation proceeds, keep `--terminal-terms` as an explicit terminal fallback, print an immediate
|
|
39
|
+
acknowledgement before long-running install work begins, and persist the accepted Terms version, hash, timestamp, CLI
|
|
40
|
+
package version, acceptance source, acceptance method, and Terms coverage metadata in the install manifest.
|
|
41
|
+
- Added a packaged canonical Service Terms source and deterministic Terms metadata so install flows report the current
|
|
42
|
+
`termsVersion` and `termsHash` from the same source in human and JSON modes.
|
|
43
|
+
- Changed Terms-gated `install --json` to report that browser-based interactive Terms acceptance is required, include
|
|
44
|
+
Terms references, avoid installing artifacts, and provide agent guidance for Terms and safety-context explanation.
|
|
45
|
+
- Added renewed Terms acceptance enforcement for terms-gated commands, including JSON-mode refusal when the current
|
|
46
|
+
Terms version or hash has not been accepted by the human user.
|
|
47
|
+
- Aligned the CLI README RPC example with the recommended Ankr provider and removed chat-oriented wording from the
|
|
48
|
+
User-Controlled AI Agent guidance section.
|
|
49
|
+
- Clarified human-facing Terms, README, and command-reference wording for install-time Terms acceptance, no-recovery
|
|
50
|
+
limits, machine-readable fee output, and ordinary-user terminology.
|
|
51
|
+
- Strengthened `wallet get-notes --export-evidence` plaintext evidence export warnings, command help, README guidance,
|
|
52
|
+
investigator guidance, and evidence-scope documentation.
|
|
53
|
+
- Added Terms section references to `help guide --json` agent guidance so User-Controlled AI Agents can read the
|
|
54
|
+
canonical Terms before advising users.
|
|
55
|
+
- Included the Terms definitions section in `help guide --json` Terms references and clarified that `agents.md` readers
|
|
56
|
+
must read referenced Terms sections before advising users.
|
|
57
|
+
- Changed `uninstall` so the default interactive flow preserves wallet spending-key and viewing-key files, while
|
|
58
|
+
`--include-wallet-keys` deletes every local private-state CLI file.
|
|
59
|
+
- Fixed `uninstall` execution by awaiting the CLI runner entrypoint and importing the Tokamak zk-EVM runtime cache root
|
|
60
|
+
resolver used by the removal path.
|
|
61
|
+
- Changed wallet viewing-key and spending-key exports to require interactive secret-bearing export confirmation before
|
|
62
|
+
writing `.key` files on mainnet. Sepolia and anvil key exports can run non-interactively for test and E2E workflows.
|
|
63
|
+
- Updated human guide, command reference, README, and `agents.md` wording to align with install-time Terms acceptance and
|
|
64
|
+
interactive sensitive-action confirmations instead of per-command action-impact acknowledgement flags.
|
|
65
|
+
- Changed transaction-sending command warning handling to print warning summaries without requiring
|
|
66
|
+
`--acknowledge-action-impact`.
|
|
67
|
+
- Added the same non-blocking warning-summary handling to `channel exit`, and removed stale internal
|
|
68
|
+
action-impact acknowledgement checks from real-funds command validation.
|
|
69
|
+
- Removed deprecated acknowledgement options from the private-state CLI e2e runner so it follows the current prompt
|
|
70
|
+
policy.
|
|
71
|
+
- Revised user-facing CLI help, guide, README, fee, and agent wording to prefer "Ethereum mainnet", "Ethereum account",
|
|
72
|
+
"channel-local address", and "Join Toll" over developer shorthand except where command, option, contract, or JSON field
|
|
73
|
+
names require the original term.
|
|
74
|
+
- Added masked terminal helper commands for creating private-key and wallet-secret source files before
|
|
75
|
+
`account import` and `channel join`.
|
|
76
|
+
- Changed `help guide --json` to point AI agents at indexed `agents.md` setup recipes instead of embedding
|
|
77
|
+
human guidance prose in the JSON payload.
|
|
78
|
+
- Reworked private-state CLI agent instructions around action-first mainnet setup, Ankr RPC recommendation,
|
|
79
|
+
and user-typed wallet secrets by default.
|
|
80
|
+
- Changed human `help guide` output to use an action-first setup layout with one primary prefixed command,
|
|
81
|
+
plain-language status text, follow-up instructions, and no AI-only reference or diagnostic sections.
|
|
82
|
+
- Clarified the README's LLM-agent entrypoint so agents start from `help guide --json`, follow
|
|
83
|
+
`agentGuidance.refs`, and read the referenced `agents.md` recipes.
|
|
84
|
+
- Refined human `help guide` setup wording for RPC configuration, account import verification, wallet-secret masking,
|
|
85
|
+
channel creation, channel-data recovery, funding, note use, and channel exit.
|
|
86
|
+
- Refined the human `help guide` private-key/channel-policy wording and clarified the README `--json` purpose for
|
|
87
|
+
User-Controlled AI Agents.
|
|
88
|
+
- Added deterministic `help guide --json` coverage for post-RPC missing artifacts, missing account secrets, and missing
|
|
89
|
+
wallets before channel join.
|
|
90
|
+
- Clarified human channel-join guide text so users prepare the Ethereum account for any Join Toll and gas before
|
|
91
|
+
joining.
|
|
92
|
+
- Added ETA and scan-rate reporting to RPC recovery progress for channel and wallet workspace recovery, including
|
|
93
|
+
structured JSON progress details in `--json` mode.
|
|
4
94
|
|
|
5
95
|
## 2.4.3 - 2026-06-01
|
|
6
96
|
|
|
@@ -42,8 +132,8 @@
|
|
|
42
132
|
|
|
43
133
|
- Changed `help observer` and monitoring references to use the public observer URL
|
|
44
134
|
`https://observer.tonnel.io`.
|
|
45
|
-
- Clarified CLI help, guide output, and README guidance so channel
|
|
46
|
-
from the
|
|
135
|
+
- Clarified CLI help, guide output, and README guidance so channel Join Tolls are paid directly
|
|
136
|
+
from the Ethereum wallet, while `account deposit-bridge` is only for channel liquidity.
|
|
47
137
|
- Clarified README and `help commands` guidance so AI agents answer user gas, fee, and USD cost
|
|
48
138
|
questions by running `help transaction-fees --json` instead of escalating to developers.
|
|
49
139
|
|
|
@@ -109,7 +199,7 @@
|
|
|
109
199
|
- Fixed raw evidence spend linkage so nullifier observation transactions are used as the spend
|
|
110
200
|
transition references and included with their transaction, receipt, and event evidence.
|
|
111
201
|
- Redesigned the bundled investigator GUI around purpose-first disclosure requests, an interactive
|
|
112
|
-
SVG note-linkage graph, node detail overlays, and Markdown
|
|
202
|
+
SVG note-linkage graph, node detail overlays, and Markdown plain-text linkage report export.
|
|
113
203
|
- Updated private-state documentation to reflect `set rpc` as the only CLI RPC configuration path
|
|
114
204
|
for ordinary bridge-facing and wallet commands.
|
|
115
205
|
- Split the CLI entrypoint into command dispatch modules and moved the shared runtime implementation
|