Defined in ./hooks/hooks.json
{
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "pkill -f 'node.*server.js.*3333' || lsof -ti:3333 | xargs kill -9 || true"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/server/dist/update-progress.js"
}
],
"matcher": "Write|Edit|Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "cd ${CLAUDE_PLUGIN_ROOT}/server && npm install --silent 2>&1 && npm run build 2>&1",
"timeout": 60
},
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/server/dist/server.js > ${CLAUDE_PROJECT_DIR}/.claude/claude-track-server.log 2>&1 &"
},
{
"type": "command",
"command": "sleep 3 && (command -v open && open http://localhost:3333 || command -v xdg-open && xdg-open http://localhost:3333 || echo 'Open http://localhost:3333')"
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 5
},
"eventStats": {
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 3
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 3,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}