refactor: restructure repo layout

This commit is contained in:
2026-03-27 10:24:55 +01:00
parent 1a6d5a7dda
commit 648fef9929
95 changed files with 33 additions and 44 deletions

8
hooks/pre-bash-guard.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Bloque les commandes destructives sans confirmation
CMD=$(echo "$CLAUDE_TOOL_INPUT" | python3 -c "import json,sys; print(json.load(sys.stdin).get('command',''))")
if echo "$CMD" | grep -qE 'rm -rf|DROP TABLE|git push --force'; then
echo "BLOQUÉ : commande dangereuse détectée. Confirmez explicitement."
exit 2 # exit 2 = deny dans Claude Code
fi