Initial commit
This commit is contained in:
59
hooks/hooks.json
Normal file
59
hooks/hooks.json
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"description": "Tracks all file operations during a Claude Code session and generates a summary report",
|
||||
"version": "1.1.1",
|
||||
"author": "Dev GOM",
|
||||
"lastUpdated": "2025-10-20",
|
||||
"hooks": {
|
||||
"SessionStart": [
|
||||
{
|
||||
"description": "Initialize plugin configuration at session start",
|
||||
"priority": 100,
|
||||
"enabled": true,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js",
|
||||
"description": "Creates default configuration file if it doesn't exist",
|
||||
"timeout": 5000,
|
||||
"continueOnError": true,
|
||||
"suppressOutput": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PostToolUse": [
|
||||
{
|
||||
"description": "Track file operations in real-time as they happen",
|
||||
"matcher": "Write|Edit|Read|NotebookEdit",
|
||||
"priority": 50,
|
||||
"enabled": true,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/track-operation.js",
|
||||
"description": "Records file operation to accumulated tracking file",
|
||||
"timeout": 5000,
|
||||
"continueOnError": true,
|
||||
"suppressOutput": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"description": "Generate session file operations summary when session ends",
|
||||
"priority": 70,
|
||||
"enabled": true,
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/session-summary.js",
|
||||
"description": "Reads accumulated file operations and generates directory tree visualization",
|
||||
"timeout": 10000,
|
||||
"continueOnError": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user