Files
asepharyana-hub-guide/hooks/hooks.json
T
asepharyana 80feaf2f16 fix(hub-guide): add nested hooks array in hooks.json entries
Each event entry needs hooks: [{ type, command, timeout }] inside it.
2026-07-25 11:59:34 +07:00

20 lines
447 B
JSON

{
"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
}]
}]
}
}