refactor: simplify yolo mode implementation by removing env vars

Remove HAPPY_GEMINI_ARGS and HAPPY_GEMINI_COMMAND environment variables.
Refactor gemini.ts to export registerGeminiAgent(yolo) function that
directly configures args instead of reading from environment.
This commit is contained in:
weishu
2025-12-27 21:24:16 +08:00
parent 58e61b3db9
commit 3bdcc14ed0
3 changed files with 11 additions and 34 deletions
-5
View File
@@ -81,11 +81,6 @@ See `src/configuration.ts` for all options.
- `HAPI_DAEMON_HEARTBEAT_INTERVAL` - Heartbeat interval in ms (default: 60000).
- `HAPI_DAEMON_HTTP_TIMEOUT` - HTTP timeout for daemon control in ms (default: 10000).
### Gemini/Agent
- `HAPPY_GEMINI_COMMAND` - Gemini executable command (default: gemini).
- `HAPPY_GEMINI_ARGS` - Gemini arguments (default: --experimental-acp).
## Storage
Data is stored in `~/.hapi/` (or `$HAPI_HOME`):