zk-agent-cli 0.1.0-beta.1 → 0.1.0-beta.2

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 (28) hide show
  1. package/README.md +15 -6
  2. package/dist/builtin-account-profiles/artifacts/daily-spend-limit/Account.json +693 -0
  3. package/dist/builtin-account-profiles/artifacts/sed-lite/Account.json +970 -0
  4. package/dist/builtin-account-profiles/artifacts/sed-lite/EOAValidator.json +50 -0
  5. package/dist/builtin-account-profiles/artifacts/sed-lite/NativePerTxLimitHook.json +267 -0
  6. package/dist/builtin-account-profiles/artifacts/sed-lite/TargetAllowlistHook.json +346 -0
  7. package/dist/builtin-account-profiles/artifacts/sed-lite/TargetSelectorAllowlistHook.json +643 -0
  8. package/dist/builtin-account-profiles/contracts/daily-spend-limit/AAFactory.sol +28 -0
  9. package/dist/builtin-account-profiles/contracts/daily-spend-limit/Account.sol +179 -0
  10. package/dist/builtin-account-profiles/contracts/daily-spend-limit/SpendLimit.sol +85 -0
  11. package/dist/builtin-account-profiles/contracts/sed-lite/Account.sol +230 -0
  12. package/dist/builtin-account-profiles/contracts/sed-lite/Auth.sol +16 -0
  13. package/dist/builtin-account-profiles/contracts/sed-lite/BootloaderAuth.sol +11 -0
  14. package/dist/builtin-account-profiles/contracts/sed-lite/EOAValidator.sol +23 -0
  15. package/dist/builtin-account-profiles/contracts/sed-lite/IValidationHook.sol +20 -0
  16. package/dist/builtin-account-profiles/contracts/sed-lite/IValidator.sol +11 -0
  17. package/dist/builtin-account-profiles/contracts/sed-lite/ModuleAuth.sol +11 -0
  18. package/dist/builtin-account-profiles/contracts/sed-lite/ModuleManager.sol +46 -0
  19. package/dist/builtin-account-profiles/contracts/sed-lite/NativePerTxLimitHook.sol +67 -0
  20. package/dist/builtin-account-profiles/contracts/sed-lite/OwnerManager.sol +25 -0
  21. package/dist/builtin-account-profiles/contracts/sed-lite/SelfAuth.sol +9 -0
  22. package/dist/builtin-account-profiles/contracts/sed-lite/TargetAllowlistHook.sol +110 -0
  23. package/dist/builtin-account-profiles/contracts/sed-lite/TargetSelectorAllowlistHook.sol +263 -0
  24. package/dist/builtin-account-profiles/contracts/sed-lite/ValidationHookManager.sol +76 -0
  25. package/dist/builtin-account-profiles/contracts/sed-lite/ValidatorManager.sol +31 -0
  26. package/dist/builtin-account-profiles/package.json +5 -0
  27. package/dist/index.js +4 -3
  28. package/package.json +1 -1
package/README.md CHANGED
@@ -34,7 +34,9 @@ zksync-agent --help
34
34
 
35
35
  ## Prerequisites
36
36
 
37
- - Node.js `>=24` if you install globally.
37
+ - Node.js `>=24` for either `npx zk-agent-cli ...` or global install.
38
+ Older Node versions may still start the CLI, but the current package is not
39
+ supported there and npm will emit `EBADENGINE` warnings.
38
40
  - The default local approval path expects the connector UI to be reachable at
39
41
  `http://localhost:4444`. Override it with
40
42
  `zk-agent setup --connector-url <url>` when needed.
@@ -124,18 +126,25 @@ Common files created by the default path:
124
126
 
125
127
  ## Smart-Account Profiles
126
128
 
127
- The published package can inspect built-in profiles:
129
+ The published package ships built-in profile artifacts for the first-party
130
+ smart-account presets:
128
131
 
129
132
  ```bash
130
133
  zk-agent wallet smart-account profiles --json
131
134
  ```
132
135
 
136
+ That means the packaged CLI can use:
137
+
138
+ - `zk-agent wallet smart-account predict --profile sed-lite`
139
+ - `zk-agent wallet smart-account deploy --profile sed-lite`
140
+ - the same built-in path for `daily-spend-limit`
141
+
133
142
  Current boundary:
134
143
 
135
- - profile inspection works from the packaged CLI
136
- - built-in profile deploys still require
137
- `ZK_AGENT_ACCOUNT_PROFILES_ROOT=<checked-out account-profiles package dir>`
138
- because the npm tarball does not ship the EraVM profile artifacts
144
+ - built-in profiles work from the packaged CLI
145
+ - custom profile artifacts still use `--artifact <json|@file>`
146
+ - `ZK_AGENT_ACCOUNT_PROFILES_ROOT` is now only a source-checkout override for
147
+ development or custom runtime layouts
139
148
 
140
149
  ## Common Failures
141
150