auto-sync 2026-07-25 10:16:42
This commit is contained in:
+17
-2
@@ -1,9 +1,24 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"matcher": "Read|Write|Edit|NotebookEdit|Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "python3 \"$CLAUDE_PROJECT_DIR/scripts/claude_guard.py\""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"command": "mkdir -p $CLAUDE_PROJECT_DIR/cases/_logs && echo \"Session ended: $(date '+%d.%m.%Y %H:%M')\" >> $CLAUDE_PROJECT_DIR/cases/_logs/_session_history.txt",
|
||||
"description": "Log session end timestamp"
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "mkdir -p \"$CLAUDE_PROJECT_DIR/cases/_logs\" && echo \"Session ended: $(date '+%d.%m.%Y %H:%M')\" >> \"$CLAUDE_PROJECT_DIR/cases/_logs/_session_history.txt\""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user