- Reintroduce the @fusion/desktop workspace package with Electron main, preload, and renderer entrypoints - Add desktop build/test tooling (TypeScript, Vitest, electron-builder) and update workspace build dependency settings for Electron - Wire secure IPC bridge APIs for app version/quit flows with exported preload typings - Add README usage docs and unit tests covering main-process window/tray behavior and preload API wiring
1.1 KiB
1.1 KiB
@fusion/desktop
Electron desktop shell for Fusion.
This package provides a native Electron wrapper around the existing Fusion dashboard web UI. The desktop shell currently connects to a running dashboard server and displays it inside a desktop window with tray integration.
Prerequisites
Start the Fusion dashboard server first:
fn dashboard
Then, in another terminal, start the desktop app:
pnpm --filter @fusion/desktop dev
Scripts
pnpm --filter @fusion/desktop dev— run the Electron main process in developmentpnpm --filter @fusion/desktop build— compile TypeScript sourcespnpm --filter @fusion/desktop test— run Vitest suitepnpm --filter @fusion/desktop typecheck— run TypeScript checks without emitting filespnpm --filter @fusion/desktop pack— build distributable package via electron-builderpnpm --filter @fusion/desktop dist— build distribution artifacts without publishing
Environment
FUSION_DASHBOARD_URL— override the default dashboard URL used by the desktop shell (http://localhost:4040)