|
1 | 1 | # @offckb/cli |
2 | 2 |
|
| 3 | +## 0.4.5 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- 37189f7: fix(devnet): only show init hint for InitializationError |
| 8 | + |
| 9 | + The `offckb devnet config` command was showing the "run `offckb node` once to initialize devnet config files first" hint for ALL errors, including user input errors like invalid `--set` syntax or validation failures. |
| 10 | + |
| 11 | + Now the hint is only shown for actual initialization errors (missing config path, ckb.toml, or miner.toml), making error messages clearer and less misleading. |
| 12 | + |
| 13 | + - Added `InitializationError` class to distinguish initialization errors from user input errors |
| 14 | + - Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths |
| 15 | + - Modified `devnetConfig()` catch block to only show hint for `InitializationError` |
| 16 | + - Added type safety guard for error handling |
| 17 | + |
| 18 | + Fixes #406 |
| 19 | + |
| 20 | +- e90cfe5: fix(ckb-debugger): lazy-load WASI module to suppress ExperimentalWarning |
| 21 | + |
| 22 | + Convert static import of node:wasi to dynamic import with caching. |
| 23 | + This prevents the ExperimentalWarning from being emitted when running |
| 24 | + non-debugger commands like 'offckb accounts' or 'offckb config list'. |
| 25 | + |
| 26 | + The WASI module is now only loaded when debugger functionality is |
| 27 | + actually executed. |
| 28 | + |
| 29 | + Fixes #405 |
| 30 | + |
| 31 | +- 4a88eb6: fix(install): force x86_64 architecture on Windows |
| 32 | + |
| 33 | + CKB only provides x86_64 binaries for Windows, not aarch64. |
| 34 | + When Windows ARM devices reported 'arm64' via os.arch(), the code |
| 35 | + tried to download a non-existent 'aarch64-pc-windows-msvc' binary, |
| 36 | + resulting in a 404 error. |
| 37 | + |
| 38 | + This fix forces all Windows systems to use x86_64, which: |
| 39 | + |
| 40 | + - Works correctly on Windows x64 |
| 41 | + - Works via emulation on Windows ARM devices |
| 42 | + - Matches the only Windows binary CKB provides |
| 43 | + |
3 | 44 | ## Changelog |
4 | 45 |
|
5 | 46 | All notable changes to this project will be documented in this file. |
|
0 commit comments