chore(hooks): remove config-protection edit-block guardrail
Full removal per user request: the PreToolUse hook that blocked model Edit/Write on quality-gate files (settings.json, gitflow.sh, .githooks, doctor.sh, hooks, lib/tests, lint configs) plus its one-shot sentinel. - delete hooks/config-protection.sh - delete lib/tests/config-protection.test.sh - deregister the hook from settings.json (rtk-rewrite PreToolUse kept) - drop the README mention Residual protection unchanged: gitflow pre-commit guard + Gitea branch protection still block direct code commits to main/develop.
This commit is contained in:
@@ -271,16 +271,6 @@
|
||||
"command": "bash ~/.claude/hooks/rtk-rewrite.sh"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Edit|Write|MultiEdit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash ~/.claude/hooks/config-protection.sh",
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
|
||||
Reference in New Issue
Block a user