|
| 1 | +# Jules for macOS |
| 2 | + |
| 3 | +A native macOS menu bar application for interacting with the Jules AI coding assistant API. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **Menu Bar Integration**: Quick access from your menu bar or centered floating panel |
| 8 | +- **Session Management**: Create, view, and manage coding sessions |
| 9 | +- **Real-time Updates**: Live polling for session status and activity updates |
| 10 | +- **Diff Viewing**: High-performance Metal-accelerated diff visualization |
| 11 | +- **Merge Conflict Resolution**: Visual merge conflict handling |
| 12 | +- **Offline Support**: Queue sessions when offline, sync when connectivity returns |
| 13 | +- **Keyboard Shortcuts**: Global hotkeys for quick access |
| 14 | +- **Auto-updates**: Built-in update mechanism via Sparkle |
| 15 | + |
| 16 | +## Requirements |
| 17 | + |
| 18 | +- macOS 13.0 or later |
| 19 | +- Xcode 15.0 or later (for building) |
| 20 | +- A Jules API key (obtain from [jules.google.com](https://jules.google.com)) |
| 21 | + |
| 22 | +## Building |
| 23 | + |
| 24 | +1. Clone the repository: |
| 25 | + ```bash |
| 26 | + git clone https://github.com/your-username/jules-osx.git |
| 27 | + cd jules-osx |
| 28 | + ``` |
| 29 | + |
| 30 | +2. Open the project in Xcode: |
| 31 | + ```bash |
| 32 | + open jules.xcodeproj |
| 33 | + ``` |
| 34 | + |
| 35 | +3. Build and run (Cmd+R) |
| 36 | + |
| 37 | +## Configuration |
| 38 | + |
| 39 | +### API Key |
| 40 | + |
| 41 | +Enter your Jules API key in the app's Settings to start using the application. |
| 42 | + |
| 43 | +### Firebase/Gemini (Optional) |
| 44 | + |
| 45 | +The app includes optional Firebase integration for AI-generated activity descriptions using Gemini. This feature is **disabled by default** and the app works perfectly without it. |
| 46 | + |
| 47 | +To enable Firebase/Gemini: |
| 48 | + |
| 49 | +1. Create a Firebase project at [console.firebase.google.com](https://console.firebase.google.com) |
| 50 | +2. Add a macOS app with your bundle ID |
| 51 | +3. Download `GoogleService-Info.plist` and replace the placeholder file in `jules/` |
| 52 | +4. Open `jules/AppDelegate.swift` and set: |
| 53 | + ```swift |
| 54 | + let ENABLE_FIREBASE = true |
| 55 | + ``` |
| 56 | + |
| 57 | +### Auto-Updates (Optional) |
| 58 | + |
| 59 | +To enable auto-updates for your distribution: |
| 60 | + |
| 61 | +1. Set up a Sparkle appcast feed |
| 62 | +2. Update `SPARKLE_APPCAST_URL` in `AppDelegate.swift` |
| 63 | +3. Configure your signing keys in the project settings |
| 64 | + |
| 65 | +## Project Structure |
| 66 | + |
| 67 | +``` |
| 68 | +jules/ |
| 69 | +├── AppDelegate.swift # App lifecycle, menu bar, hotkeys |
| 70 | +├── DataManager.swift # Core data management and API coordination |
| 71 | +├── APIService.swift # REST API client for Jules backend |
| 72 | +├── SessionRepository.swift # Session persistence (GRDB/SQLite) |
| 73 | +├── Flux/ # Metal-based diff rendering |
| 74 | +├── MergeConflictWindow/ # Merge conflict UI |
| 75 | +├── Canvas/ # Drawing/annotation features |
| 76 | +└── ... |
| 77 | +``` |
| 78 | + |
| 79 | +## Keyboard Shortcuts |
| 80 | + |
| 81 | +Default shortcuts (configurable in Settings): |
| 82 | + |
| 83 | +- **Control+Option+J**: Toggle Jules menu |
| 84 | +- **Control+Option+S**: Capture screenshot |
| 85 | +- **Control+Option+V**: Voice input (macOS 26.0+) |
| 86 | + |
| 87 | +## Architecture |
| 88 | + |
| 89 | +- **UI Framework**: SwiftUI with AppKit integration |
| 90 | +- **Database**: SQLite via GRDB |
| 91 | +- **Networking**: URLSession with offline queue support |
| 92 | +- **Graphics**: Metal for high-performance diff rendering |
| 93 | +- **Updates**: Sparkle framework |
| 94 | + |
| 95 | +## Dependencies |
| 96 | + |
| 97 | +- [GRDB](https://github.com/groue/GRDB.swift) - SQLite toolkit |
| 98 | +- [Sparkle](https://github.com/sparkle-project/Sparkle) - Auto-updates |
| 99 | +- [HotKey](https://github.com/soffes/HotKey) - Global keyboard shortcuts |
| 100 | +- [SwiftTreeSitter](https://github.com/ChimeHQ/SwiftTreeSitter) - Syntax parsing |
| 101 | +- [Lottie](https://github.com/airbnb/lottie-ios) - Animations |
| 102 | +- [Firebase iOS SDK](https://github.com/firebase/firebase-ios-sdk) - Optional AI features |
| 103 | + |
| 104 | +## Contributing |
| 105 | + |
| 106 | +Contributions are welcome! Please feel free to submit issues and pull requests. |
| 107 | + |
| 108 | +## License |
| 109 | + |
| 110 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 111 | + |
| 112 | +## Trademarks |
| 113 | + |
| 114 | +"Jules" name, logo, and branding are trademarks of Alphabet Inc. and are used with permission. |
0 commit comments