|
1 | 1 | { |
2 | 2 | "description": "Claude-mem memory system hooks", |
3 | 3 | "hooks": { |
| 4 | + "Setup": [ |
| 5 | + { |
| 6 | + "matcher": "*", |
| 7 | + "hooks": [ |
| 8 | + { |
| 9 | + "type": "command", |
| 10 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; \"$_R/scripts/setup.sh\"", |
| 11 | + "timeout": 300 |
| 12 | + } |
| 13 | + ] |
| 14 | + } |
| 15 | + ], |
4 | 16 | "SessionStart": [ |
5 | 17 | { |
6 | 18 | "matcher": "startup|clear|compact", |
7 | 19 | "hooks": [ |
8 | 20 | { |
9 | 21 | "type": "command", |
10 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/smart-install.js\"", |
| 22 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/smart-install.js\"", |
11 | 23 | "timeout": 300 |
| 24 | + } |
| 25 | + ] |
| 26 | + }, |
| 27 | + { |
| 28 | + "matcher": "startup|clear|compact", |
| 29 | + "hooks": [ |
| 30 | + { |
| 31 | + "type": "command", |
| 32 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" start", |
| 33 | + "timeout": 60 |
12 | 34 | }, |
13 | 35 | { |
14 | 36 | "type": "command", |
15 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code context", |
| 37 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code context", |
16 | 38 | "timeout": 60 |
17 | 39 | } |
18 | 40 | ] |
|
23 | 45 | "hooks": [ |
24 | 46 | { |
25 | 47 | "type": "command", |
26 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-init", |
| 48 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-init", |
27 | 49 | "timeout": 60 |
28 | 50 | } |
29 | 51 | ] |
30 | 52 | } |
31 | 53 | ], |
32 | 54 | "PostToolUse": [ |
33 | 55 | { |
| 56 | + "matcher": "*", |
34 | 57 | "hooks": [ |
35 | 58 | { |
36 | 59 | "type": "command", |
37 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code observation", |
| 60 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code observation", |
38 | 61 | "timeout": 120 |
39 | 62 | } |
40 | 63 | ] |
|
45 | 68 | "hooks": [ |
46 | 69 | { |
47 | 70 | "type": "command", |
48 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code summarize", |
| 71 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code summarize", |
49 | 72 | "timeout": 120 |
50 | 73 | }, |
51 | 74 | { |
52 | 75 | "type": "command", |
53 | | - "command": "_R=\"${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/thedotmack/plugin}\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-complete", |
54 | | - "timeout": 120 |
| 76 | + "command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-complete", |
| 77 | + "timeout": 30 |
55 | 78 | } |
56 | 79 | ] |
57 | 80 | } |
|
0 commit comments