agent-zero
agent-zero copied to clipboard
feat(desktop): implement electron desktop shell integration
Description
This PR introduces a native Electron desktop shell for Agent Zero. It wraps the existing Docker-based setup in a desktop application, providing a connection wizard, native window management, and improved system integration.
Key Changes
-
Electron App: Created
desktop/electronwithmain.js,preload.js, andwizard.html. - Connection Wizard: A startup screen that checks if the Agent Zero Docker container is running and allows the user to start it.
-
Build System: Configured
electron-builderto generate native executables (DMG for macOS). -
IPC Bridge: Secure
contextBridgeimplementation to allow the frontend to communicate with the Docker daemon and backend API. - Assets: Added application icons and logo assets.
Testing
- Navigate to
desktop/electron. - Run
npm install. - Run
npm startto launch the development version. - Verify the connection wizard detects the Docker container (or offers to start it).
- Build the app using
npm run build:macand verify the.dmgworks.
Notes
- The app expects Docker to be installed and accessible on the host.
- DevTools are enabled by default in this build for debugging purposes.