Skip to content

Conversation

@TerminallyLazy
Copy link
Contributor

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/electron with main.js, preload.js, and wizard.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-builder to generate native executables (DMG for macOS).
  • IPC Bridge: Secure contextBridge implementation to allow the frontend to communicate with the Docker daemon and backend API.
  • Assets: Added application icons and logo assets.

Testing

  1. Navigate to desktop/electron.
  2. Run npm install.
  3. Run npm start to launch the development version.
  4. Verify the connection wizard detects the Docker container (or offers to start it).
  5. Build the app using npm run build:mac and verify the .dmg works.

Notes

  • The app expects Docker to be installed and accessible on the host.
  • DevTools are enabled by default in this build for debugging purposes.

- Add Electron main process and preload script
- Add connection wizard with Docker status checks
- Configure electron-builder for macOS, Windows, and Linux
- Add asset management and icons
- Implement IPC handlers for Docker control and Flask API proxy
…lock.json and package.json

- Upgrade Electron to version 33.2.0
- Update related dependencies in package-lock.json to ensure compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant