Manage CODEX_HOME/hooks.json directly while covering the generated file in the existing TOML test.
28 lines
488 B
JSON
28 lines
488 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "/usr/local/bin/codex-pre-tool-use",
|
|
"statusMessage": "Checking Bash command",
|
|
"timeout": 30,
|
|
"type": "command"
|
|
}
|
|
],
|
|
"matcher": "^Bash$"
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "/usr/local/bin/codex-stop",
|
|
"type": "command"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|