From cfb2ac7c5517fc97af87e9886c09d64323a1c3fb Mon Sep 17 00:00:00 2001 From: Shayan Rais Date: Sat, 4 Apr 2026 18:34:07 +0500 Subject: [PATCH] =?UTF-8?q?add=205=20new=20hook=20handlers=20=E2=80=94=20T?= =?UTF-8?q?askCreated,=20StopFailure,=20CwdChanged,=20FileChanged,=20Permi?= =?UTF-8?q?ssionDenied;=20fix=20indentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- .claude/settings.json | 69 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 06c68d5..b254454 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -38,7 +38,6 @@ "Bash(fdisk *)", "Bash(chmod *)", "Bash(chown *)", - "Bash(git *)", "Bash(npm *)", "Bash(pip *)", "Bash(pip3 *)", @@ -84,7 +83,7 @@ }, "enableAllProjectMcpServers": true, "disableAllHooks": false, -"hooks": { + "hooks": { "PreToolUse": [ { "hooks": [ @@ -283,6 +282,19 @@ ] } ], + "TaskCreated": [ + { + "hooks": [ + { + "type": "command", + "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py", + "timeout": 5000, + "async": true, + "statusMessage": "TaskCreated" + } + ] + } + ], "TaskCompleted": [ { "hooks": [ @@ -373,6 +385,59 @@ } ] } + ], + "StopFailure": [ + { + "hooks": [ + { + "type": "command", + "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py", + "timeout": 5000, + "async": true, + "statusMessage": "StopFailure" + } + ] + } + ], + "CwdChanged": [ + { + "hooks": [ + { + "type": "command", + "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py", + "timeout": 5000, + "async": true, + "statusMessage": "CwdChanged" + } + ] + } + ], + "FileChanged": [ + { + "matcher": ".envrc|.env|.env.local", + "hooks": [ + { + "type": "command", + "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py", + "timeout": 5000, + "async": true, + "statusMessage": "FileChanged" + } + ] + } + ], + "PermissionDenied": [ + { + "hooks": [ + { + "type": "command", + "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py", + "timeout": 5000, + "async": true, + "statusMessage": "PermissionDenied" + } + ] + } ] } }