/plugin marketplace add Z-M-Huang/cc-obsidian-mem/plugin install cc-obsidian-mem@cc-obsidian-memDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end.ts\" --type=stop",
"timeout": 60
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact.ts\"",
"timeout": 60
}
],
"matcher": "auto|manual"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end.ts\" --type=end",
"timeout": 60
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post-tool-use.ts\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.ts\"",
"timeout": 30
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/user-prompt-submit.ts\"",
"timeout": 5
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 6
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}