feat(KB-142): fix CLI native module packaging with lazy loading

- Implement lazy native module loading with graceful degradation for standalone CLI

- Align release workflows with executable payload structure

- Update macOS signing script for single-executable bundles

- Add documentation for standalone CLI packaging (STANDALONE.md)

- Create changeset for patch release
This commit is contained in:
gsxdsm
2026-03-30 23:56:01 -07:00
parent 8d8ccef302
commit f2f2062dfb
8 changed files with 242 additions and 89 deletions

View File

@@ -0,0 +1,12 @@
---
"@dustinbyrne/kb": patch
---
Fix standalone CLI executable native module packaging
- Native module resolution is now lazy: only initializes when dashboard starts
- Lightweight commands (--help, task list) no longer trigger native module loading
- PTY terminal gracefully degrades to HTTP 503 when native assets unavailable
- Adds process.dlopen() fallback when /$bunfs/root symlink can't be created
- macOS signing script now signs native .node files in runtime/ directory
- Release workflows include runtime/ directory in artifacts