fix: correct hooks.json structure with nested matcher objects #346

Merged
lmiranda merged 1 commits from fix/hooks-json-structure into development 2026-01-31 21:14:45 +00:00
8 changed files with 50 additions and 15 deletions

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"UserPromptSubmit": [ "UserPromptSubmit": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/vagueness-check.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/vagueness-check.sh"
}
]
} }
] ]
} }

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/enforce-rules.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/enforce-rules.sh"
}
]
} }
] ]
} }

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
}
]
} }
], ],
"PreToolUse": [ "PreToolUse": [

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/auto-validate.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/auto-validate.sh"
}
]
} }
], ],
"PostToolUse": [ "PostToolUse": [

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
}
]
} }
], ],
"PostToolUse": [ "PostToolUse": [

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
}
]
} }
] ]
} }

View File

@@ -2,8 +2,13 @@
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{ {
"type": "command", "matcher": "",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
}
]
} }
] ]
} }

View File

@@ -1,3 +1,3 @@
{ {
"hooks": [] "hooks": {}
} }