Project hooks: CRR-3 guard, adoption-pin and section resolvers, precompact permit, stop advisory

This commit is contained in:
Pavlo Ratushnyi
2026-11-23 09:34:34 +01:00
parent 7c000ce93f
commit 65bbabaa0b
+59
View File
@@ -0,0 +1,59 @@
{
"hooks": {
"PreCompact": [
{
"matcher": "auto",
"hooks": [
{
"type": "command",
"command": "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File \"$CLAUDE_PROJECT_DIR/.claude/hooks/precompact-permit.ps1\"",
"timeout": 30
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File \"$CLAUDE_PROJECT_DIR/.claude/hooks/stop-advisory.ps1\" > /dev/null 2>&1",
"timeout": 60
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File \"$CLAUDE_PROJECT_DIR/.claude/hooks/pretooluse-crr3-guard.ps1\"",
"timeout": 30
}
]
},
{
"matcher": "mcp__leasevibe__spec_delete|mcp__leasevibe__spec_import|mcp__leasevibe__memory_retire",
"hooks": [
{
"type": "command",
"command": "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File \"$CLAUDE_PROJECT_DIR/.claude/hooks/pretooluse-crr3-guard.ps1\"",
"timeout": 30
}
]
},
{
"matcher": "PowerShell",
"hooks": [
{
"type": "command",
"command": "powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File \"$CLAUDE_PROJECT_DIR/.claude/hooks/pretooluse-crr3-guard.ps1\"",
"timeout": 30
}
]
}
]
}
}