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