66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"description": "GamePort quota guard: stop new workers at 20%; checkpoint and pause at 15%.",
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/tools/workflow/codex_quota_guard.py\" hook",
|
|
"timeout": 5,
|
|
"commandWindows": "cmd /c exit 0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreModelRequest": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/tools/workflow/codex_quota_guard.py\" hook",
|
|
"timeout": 5,
|
|
"commandWindows": "cmd /c exit 0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/tools/workflow/codex_quota_guard.py\" hook",
|
|
"timeout": 5,
|
|
"commandWindows": "cmd /c exit 0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/tools/workflow/codex_quota_guard.py\" hook",
|
|
"timeout": 5,
|
|
"commandWindows": "cmd /c exit 0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "/usr/bin/python3 \"$(git rev-parse --show-toplevel)/tools/workflow/codex_quota_guard.py\" hook",
|
|
"timeout": 5,
|
|
"commandWindows": "cmd /c exit 0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|