diff --git a/hooks/hooks.json b/hooks/hooks.json index abd960e..d40bde1 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -1,15 +1,19 @@ { "hooks": { "SessionStart": [{ - "type": "command", - "command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-project.sh\"", - "timeout": 10 + "hooks": [{ + "type": "command", + "command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-project.sh\"", + "timeout": 10 + }] }], "PreToolUse": [{ "matcher": "Write|Edit", - "type": "command", - "command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-file-type.sh\" \"$TOOL_INPUT\"", - "timeout": 10 + "hooks": [{ + "type": "command", + "command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-file-type.sh\" \"$TOOL_INPUT\"", + "timeout": 10 + }] }] } }