feat(FN-1073): add desktop CLI workflow and packaging support

- Add new `fn desktop` CLI command with argument handling and comprehensive command/bin tests
- Implement desktop build and hot-reload dev scripts and wire package scripts/dependencies for Electron workflows
- Add electron-builder configuration and desktop main-process/integration test coverage to stabilize packaging behavior
- Document desktop development and usage in README files and include a changeset for the published CLI package
This commit is contained in:
gsxdsm
2026-04-08 01:40:05 -07:00
parent 025b60164d
commit be19cb974c
19 changed files with 1006 additions and 50 deletions

View File

@@ -212,6 +212,9 @@ fn dashboard # Start the web UI (default port 4040)
fn dashboard --interactive # Start with interactive port selection
fn dashboard --paused # Start with automation paused
fn dashboard --dev # Start web UI only (no AI engine)
fn desktop # Launch Electron desktop app with embedded dashboard server
fn desktop --dev # Launch desktop app against Vite dev renderer (hot-reload)
fn desktop --paused # Launch desktop app with automation paused
```
**Task Operations:**
@@ -746,6 +749,8 @@ pnpm install
pnpm dev:ui # Dashboard only; builds and typechecks first
pnpm dev dashboard # Board + AI engine
pnpm dev task list # CLI commands
pnpm --filter @fusion/desktop dev # Desktop hot-reload workflow (renderer + Electron)
pnpm build:desktop # Production desktop build pipeline
pnpm typecheck # Type-check all packages (no build required)
pnpm test # Run all tests
```