diff options
Diffstat (limited to 'plugins/caffeinate/hooks/hooks.json')
| -rw-r--r-- | plugins/caffeinate/hooks/hooks.json | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/caffeinate/hooks/hooks.json b/plugins/caffeinate/hooks/hooks.json new file mode 100644 index 00000000..e4418276 --- /dev/null +++ b/plugins/caffeinate/hooks/hooks.json @@ -0,0 +1,17 @@ +{ + "description": "Blocks sleep commands and reminds Claude to use background tasks", + "hooks": { + "PreToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-sleep.sh", + "timeout": 5 + } + ] + } + ] + } +} |
