/plugin marketplace add AZidan/codemap/plugin install codemap@azidan-pluginsDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "command -v codemap >/dev/null 2>&1 || { command -v pip >/dev/null 2>&1 && pip install -q git+https://github.com/AZidan/codemap.git || echo 'codemap requires Python/pip. Install Python 3.10+ first.' >&2; }"
}
],
"matcher": "Bash"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 1
},
"eventStats": {
"PreToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}