Fix: remove claude-specific reference from hooks.

build: add platform_dir and dispatcher_name to all hook wrapper/plugin templates

feat(hooks): platform-aware path checks using platform_dir and dispatcher_name from JSON input

test: update regression snapshot for platform-aware hook wrappers and scripts
This commit is contained in:
nunziati
2026-04-10 17:26:20 +00:00
parent bb5ef7c489
commit 0e66ce3efa
12 changed files with 55 additions and 27 deletions

View File

@@ -16,7 +16,9 @@ NEUTRAL=$(echo "$INPUT" | jq -c '{
args: (.tool_input // {}),
session_id: (env.GEMINI_SESSION_ID // ""),
cwd: (env.GEMINI_CWD // env.GEMINI_PROJECT_DIR // ""),
framework: "gemini-cli"
framework: "gemini-cli",
platform_dir: ".gemini",
dispatcher_name: "GEMINI.md"
}')
echo "$NEUTRAL" | bash "$HOOK_DIR/__HOOK_NAME__.sh"