Persist destructive/infra footgun hooks in the repo and teach install.sh to sync them without clobbering a local hooks.json unless overwritten.
22 lines
411 B
JSON
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
|
|
}
|
|
]
|
|
}
|
|
}
|