diff --git a/.claude/hooks/protect_secrets.py b/.claude/hooks/protect_secrets.py deleted file mode 100644 index 322df70..0000000 --- a/.claude/hooks/protect_secrets.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python3 -# .claude/hooks/protect_secrets.py -import json, sys - -BLOCKED = [".env", ".session", ".session-journal", "config.py"] - -data = json.load(sys.stdin) -tool = data.get("tool_name", "") -inp = data.get("tool_input", {}) - -# Get the file path depending on which tool fired -path = inp.get("file_path") or inp.get("path") or "" - -if any(path.endswith(b) for b in BLOCKED): - print(f"Blocked: {tool} on {path}", file=sys.stderr) - sys.exit(2) - -sys.exit(0) diff --git a/.claude/settings.json b/.claude/settings.json deleted file mode 100644 index 43e3750..0000000 --- a/.claude/settings.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "permissions": { - "deny": ["Read(.env)"] - }, - "hooks": { - "PreToolUse": [ - { - "matcher": "Read|Edit|Write", - "hooks": [ - { - "type": "command", - "command": "python3 .claude/hooks/protect_secrets.py" - } - ] - } - ] - } -} diff --git a/.gitignore b/.gitignore index 7e29a12..4a9017d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.session *.session-journal bot_session* +.claude/* # logs: keep the folder, ignore contents logs/*