dotfiles/cursor/hooks.json
ilia 9dc84bf8f5
All checks were successful
CI / skip-ci-check (pull_request) Successful in 23s
CI / secret-scan (pull_request) Successful in 22s
Add Cursor shell hooks for vault and ansible apply gates
Persist destructive/infra footgun hooks in the repo and teach install.sh
to sync them without clobbering a local hooks.json unless overwritten.
2026-07-30 16:50:56 -04:00

22 lines
411 B
JSON

{
"version": 1,
"hooks": {
"preToolUse": [
{
"command": "bash hooks/strip-cursor-coauthor-shell.sh",
"matcher": "Shell"
}
],
"beforeShellExecution": [
{
"command": "bash hooks/block-destructive-shell.sh",
"failClosed": true
},
{
"command": "bash hooks/block-infra-footguns.sh",
"failClosed": true
}
]
}
}