hooks.json 1011 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "description": "Lightweight webnovel-writer runtime guardrails: short project status on session start and best-effort blocking for direct writes to Story System/read-model files.",
  3. "hooks": {
  4. "SessionStart": [
  5. {
  6. "matcher": "*",
  7. "hooks": [
  8. {
  9. "type": "command",
  10. "command": "python -X utf8 \"${CLAUDE_PLUGIN_ROOT}/hooks/session_start.py\"",
  11. "timeout": 5
  12. }
  13. ]
  14. }
  15. ],
  16. "PreToolUse": [
  17. {
  18. "matcher": "Write|Edit|MultiEdit",
  19. "hooks": [
  20. {
  21. "type": "command",
  22. "command": "python -X utf8 \"${CLAUDE_PLUGIN_ROOT}/hooks/guard_runtime_write.py\"",
  23. "timeout": 5
  24. }
  25. ]
  26. },
  27. {
  28. "matcher": "Bash",
  29. "hooks": [
  30. {
  31. "type": "command",
  32. "command": "python -X utf8 \"${CLAUDE_PLUGIN_ROOT}/hooks/guard_runtime_write.py\"",
  33. "timeout": 5
  34. }
  35. ]
  36. }
  37. ]
  38. }
  39. }