hooks.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "hooks": {
  3. "PreToolUse": [
  4. {
  5. "matcher": "Bash",
  6. "hooks": [
  7. {
  8. "type": "command",
  9. "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-install-scan.sh\"",
  10. "timeout": 10
  11. },
  12. {
  13. "type": "command",
  14. "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/worktree-guard.sh\"",
  15. "timeout": 10
  16. }
  17. ]
  18. }
  19. ],
  20. "PostToolUse": [
  21. {
  22. "matcher": "Write|Edit",
  23. "hooks": [
  24. {
  25. "type": "command",
  26. "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/manifest-dep-scan.sh\"",
  27. "timeout": 10
  28. }
  29. ]
  30. }
  31. ],
  32. "SessionStart": [
  33. {
  34. "hooks": [
  35. {
  36. "type": "command",
  37. "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start-unicode-scan.sh\"",
  38. "timeout": 30
  39. }
  40. ]
  41. }
  42. ],
  43. "ConfigChange": [
  44. {
  45. "hooks": [
  46. {
  47. "type": "command",
  48. "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/config-change-guard.sh\"",
  49. "timeout": 10
  50. }
  51. ]
  52. }
  53. ]
  54. }
  55. }