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:
@@ -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
@@ -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
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user