Add MCC wrappers and guards for build and publish

This commit is contained in:
BruceChen 2026-04-12 18:37:03 +00:00
parent 8e0db1402f
commit ab29180e39
8 changed files with 199 additions and 12 deletions

16
.codex/hooks.json Normal file
View file

@ -0,0 +1,16 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/.codex/hooks/pre_tool_use_mcc_build_guard.py\"",
"statusMessage": "Checking MCC build command policy"
}
]
}
]
}
}