51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"description": "Log every file mutation to CSV for demo prep. Records timestamp, tool, file path, action, and details for Edit, MultiEdit, Write, and Bash operations. Output: .claude/critical_log_changes.csv",
|
|
"supportingFiles": [
|
|
{
|
|
"source": "change-logger.py",
|
|
"destination": ".claude/hooks/change-logger.py",
|
|
"executable": true
|
|
}
|
|
],
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 .claude/hooks/change-logger.py"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 .claude/hooks/change-logger.py"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 .claude/hooks/change-logger.py"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 .claude/hooks/change-logger.py"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|