Layer advisory Cursor hooks and skills on the PI executor, shrink the test-report rule to the validation contract, and fix MCP relative paths.
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"version": 1,
|
|
"hooks": {
|
|
"beforeShellExecution": [
|
|
{
|
|
"command": ".cursor/hooks/guard-git.sh",
|
|
"matcher": "^git ",
|
|
"timeout": 10,
|
|
"failClosed": true
|
|
},
|
|
{
|
|
"command": ".cursor/hooks/guard-pi-shell.sh",
|
|
"matcher": "pi_subagents\\.py|pkill",
|
|
"timeout": 10,
|
|
"failClosed": true
|
|
}
|
|
],
|
|
"beforeMCPExecution": [
|
|
{
|
|
"command": ".cursor/hooks/guard-pi-dispatch.sh",
|
|
"matcher": "pi-subagents|pi_subagent_",
|
|
"timeout": 10,
|
|
"failClosed": true
|
|
}
|
|
],
|
|
"postToolUse": [
|
|
{
|
|
"command": ".cursor/hooks/pi-receipt-context.sh",
|
|
"matcher": "MCP: pi-subagents|pi_subagent_",
|
|
"timeout": 10,
|
|
"failClosed": false
|
|
}
|
|
],
|
|
"sessionStart": [
|
|
{
|
|
"command": ".cursor/hooks/audit-session.sh",
|
|
"timeout": 20,
|
|
"failClosed": false
|
|
}
|
|
],
|
|
"stop": [
|
|
{
|
|
"command": ".cursor/hooks/audit-session.sh",
|
|
"timeout": 10,
|
|
"failClosed": false
|
|
}
|
|
]
|
|
}
|
|
}
|