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

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"UserPromptSubmit": [ "UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/vagueness-check.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/vagueness-check.sh"
} }
] ]
} }
]
}
} }

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/enforce-rules.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/enforce-rules.sh"
} }
] ]
} }
]
}
} }

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
} }
]
}
], ],
"PreToolUse": [ "PreToolUse": [
{ {

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/auto-validate.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/auto-validate.sh"
} }
]
}
], ],
"PostToolUse": [ "PostToolUse": [
{ {

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
} }
]
}
], ],
"PostToolUse": [ "PostToolUse": [
{ {

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
} }
] ]
} }
]
}
} }

View File

@@ -1,10 +1,15 @@
{ {
"hooks": { "hooks": {
"SessionStart": [ "SessionStart": [
{
"matcher": "",
"hooks": [
{ {
"type": "command", "type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh" "command": "${CLAUDE_PLUGIN_ROOT}/hooks/startup-check.sh"
} }
] ]
} }
]
}
} }

View File

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