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
-1
View File
@@ -6,6 +6,5 @@
"name": "Asep Haryana Saputra",
"email": "asepharyana@users.noreply.github.com"
},
"hooks": "./hooks/hooks.json",
"keywords": ["best-practice", "clean-code", "engineering-guide", "programming-standards", "architecture"]
}
+2 -4
View File
@@ -1,17 +1,15 @@
{
"hooks": {
"SessionStart": [{
"hooks": [{
"type": "command",
"command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-project.sh\"",
"timeout": 10
}]
}],
"PreToolUse": [{
"matcher": "Write|Edit",
"hooks": [{
"type": "command",
"command": "bash \"$CLAUDE_PLUGIN_ROOT/hooks/scripts/detect-file-type.sh\" \"$TOOL_INPUT\"",
"timeout": 10
}]
}]
}
}