60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"description": "CASAN lifecycle hooks. Review with /hooks; the project bootstrap resolves and verifies the pinned Core runtime.",
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \".casan/casan-hook.py\" --client codex --event UserPromptSubmit",
|
|
"commandWindows": "py -3 \".casan\\casan-hook.py\" --client codex --event UserPromptSubmit",
|
|
"timeout": 15,
|
|
"statusMessage": "CASAN admission"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \".casan/casan-hook.py\" --client codex --event PreToolUse",
|
|
"commandWindows": "py -3 \".casan\\casan-hook.py\" --client codex --event PreToolUse",
|
|
"timeout": 15,
|
|
"statusMessage": "CASAN policy gate"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \".casan/casan-hook.py\" --client codex --event PostToolUse",
|
|
"commandWindows": "py -3 \".casan\\casan-hook.py\" --client codex --event PostToolUse",
|
|
"timeout": 15,
|
|
"statusMessage": "CASAN evidence"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \".casan/casan-hook.py\" --client codex --event Stop",
|
|
"commandWindows": "py -3 \".casan\\casan-hook.py\" --client codex --event Stop",
|
|
"timeout": 15,
|
|
"statusMessage": "CASAN finalize"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|