Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .changeset/devnet-config-hint-fix.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/lazy-wasi-warning.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/perky-rooms-tan.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/tired-jobs-find.md

This file was deleted.

41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @offckb/cli

## 0.4.5

### Patch Changes

- 37189f7: fix(devnet): only show init hint for InitializationError

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.

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.

- Added `InitializationError` class to distinguish initialization errors from user input errors
- Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths
- Modified `devnetConfig()` catch block to only show hint for `InitializationError`
- Added type safety guard for error handling

Fixes #406

- e90cfe5: fix(ckb-debugger): lazy-load WASI module to suppress ExperimentalWarning

Convert static import of node:wasi to dynamic import with caching.
This prevents the ExperimentalWarning from being emitted when running
non-debugger commands like 'offckb accounts' or 'offckb config list'.

The WASI module is now only loaded when debugger functionality is
actually executed.

Fixes #405

- 4a88eb6: fix(install): force x86_64 architecture on Windows

CKB only provides x86_64 binaries for Windows, not aarch64.
When Windows ARM devices reported 'arm64' via os.arch(), the code
tried to download a non-existent 'aarch64-pc-windows-msvc' binary,
resulting in a 404 error.

This fix forces all Windows systems to use x86_64, which:

- Works correctly on Windows x64
- Works via emulation on Windows ARM devices
- Matches the only Windows binary CKB provides

## Changelog

All notable changes to this project will be documented in this file.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@offckb/cli",
"version": "0.4.4",
"version": "0.4.5",
"description": "ckb development network for your first try",
"author": "CKB EcoFund",
"license": "MIT",
Expand Down
Loading