feat: add native Grok hook integration

This commit is contained in:
ZacharyZhang-NY committed 2026-07-19 07:23:49 -04:00
1 parent 05f3aa1f0b
commit b2c4b4cdb4
6 files changed
+921

No files matched your search

+3
View File
@@ -68,6 +68,7 @@ npx elydora install \
| Claude Code | `claudecode` |
| OpenAI Codex | `codex` |
| Kimi Code | `kimi` |
| Grok Build | `grok` |
| Cursor | `cursor` |
| Gemini CLI | `gemini` |
| Kiro CLI | `kirocli` |
@@ -80,6 +81,8 @@ Codex performs a one-time trust review for user hooks. Run `/hooks` in Codex aft
Kimi installation writes the strict hook contract to each detected runtime: Kimi Code's `$KIMI_CODE_HOME/config.toml` (default `~/.kimi-code/config.toml`) and the migrating Python CLI's `~/.kimi/config.toml`. A fresh installation targets current Kimi Code, avoiding cross-runtime migration markers. Both runtimes load the hooks globally; run `/hooks` to inspect them.
Grok Build installation writes native global hooks to `$GROK_HOME/hooks/elydora-audit.json` (default `~/.grok/hooks/elydora-audit.json`). Project hooks still follow Grok's `/hooks-trust` workflow; Elydora leaves project, Claude Code, and Cursor compatibility files unchanged.
Kiro CLI installation covers both runtime contracts. Kiro CLI v2 uses the generated custom agent through `kiro-cli --agent elydora-audit`. Kiro CLI v3 loads the global standalone hooks when started with `kiro-cli --v3`.
## API Reference