From 65bbabaa0b4e5706f111d3e5f7435f13080667aa Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Mon, 23 Nov 2026 09:34:34 +0100 Subject: [PATCH] Project hooks: CRR-3 guard, adoption-pin and section resolvers, precompact permit, stop advisory --- .claude/settings.json | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 00000000..9f4a2cc3 --- /dev/null +++ b/.claude/settings.json @@ -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 + } + ] + } + ] + } +}