hooks.json 1.6 KB

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