fix(hub-guide): correct hooks.json format and remove redundant manifest field

- hooks.json needs 'hooks' wrapper key at top level
- Remove 'hooks' field from plugin.json (auto-discovered from hooks/hooks.json)
- Simplify hook entries (no nested hooks array)
This commit is contained in:
asepharyana
2026-07-25 11:58:44 +07:00
parent 2d05b8a9e0
commit 7435566498
2 changed files with 6 additions and 9 deletions
+6 -8
View File
@@ -1,17 +1,15 @@
{
"SessionStart": [{
"hooks": [{
"hooks": {
"SessionStart": [{
"type": "command",
"command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-project.sh\"",
"timeout": 10
}]
}],
"PreToolUse": [{
"matcher": "Write|Edit",
"hooks": [{
}],
"PreToolUse": [{
"matcher": "Write|Edit",
"type": "command",
"command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-file-type.sh\" \"$TOOL_INPUT\"",
"timeout": 10
}]
}]
}
}