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

@@ -17,7 +17,9 @@ NEUTRAL=$(echo "$INPUT" | jq -c '{
args: (.tool_input // {title: .title, message: .message}),
session_id: (.session_id // ""),
cwd: (.cwd // ""),
framework: "claude-code"
framework: "claude-code",
platform_dir: ".claude",
dispatcher_name: "CLAUDE.md"
}')
echo "$NEUTRAL" | bash "$HOOK_DIR/__HOOK_NAME__.sh"