claude-live 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,98 +4,98 @@
4
4
  "SessionStart": [{
5
5
  "hooks": [{
6
6
  "type": "command",
7
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
7
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
8
8
  "async": true
9
9
  }]
10
10
  }],
11
11
  "InstructionsLoaded": [{
12
12
  "hooks": [{
13
13
  "type": "command",
14
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
14
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
15
15
  "async": true
16
16
  }]
17
17
  }],
18
18
  "WorktreeCreate": [{
19
19
  "hooks": [{
20
20
  "type": "command",
21
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
21
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
22
22
  "async": true
23
23
  }]
24
24
  }],
25
25
  "WorktreeRemove": [{
26
26
  "hooks": [{
27
27
  "type": "command",
28
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
28
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
29
29
  "async": true
30
30
  }]
31
31
  }],
32
32
  "PreToolUse": [{
33
33
  "hooks": [{
34
34
  "type": "command",
35
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
35
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
36
36
  "async": true
37
37
  }]
38
38
  }],
39
39
  "PostToolUse": [{
40
40
  "hooks": [{
41
41
  "type": "command",
42
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
42
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
43
43
  "async": true
44
44
  }]
45
45
  }],
46
46
  "Stop": [{
47
47
  "hooks": [{
48
48
  "type": "command",
49
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
49
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
50
50
  "async": true
51
51
  }]
52
52
  }],
53
53
  "Notification": [{
54
54
  "hooks": [{
55
55
  "type": "command",
56
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
56
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
57
57
  "async": true
58
58
  }]
59
59
  }],
60
60
  "PermissionRequest": [{
61
61
  "hooks": [{
62
62
  "type": "command",
63
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
63
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
64
64
  "async": true
65
65
  }]
66
66
  }],
67
67
  "SubagentStart": [{
68
68
  "hooks": [{
69
69
  "type": "command",
70
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
70
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
71
71
  "async": true
72
72
  }]
73
73
  }],
74
74
  "SubagentStop": [{
75
75
  "hooks": [{
76
76
  "type": "command",
77
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
77
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
78
78
  "async": true
79
79
  }]
80
80
  }],
81
81
  "SessionEnd": [{
82
82
  "hooks": [{
83
83
  "type": "command",
84
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
84
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
85
85
  "async": true
86
86
  }]
87
87
  }],
88
88
  "PostToolUseFailure": [{
89
89
  "hooks": [{
90
90
  "type": "command",
91
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
91
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
92
92
  "async": true
93
93
  }]
94
94
  }],
95
95
  "UserPromptSubmit": [{
96
96
  "hooks": [{
97
97
  "type": "command",
98
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
98
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
99
99
  "async": true
100
100
  }]
101
101
  }],
@@ -103,7 +103,7 @@
103
103
  "match": { "trigger": ["manual", "auto"] },
104
104
  "hooks": [{
105
105
  "type": "command",
106
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
106
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
107
107
  "async": true
108
108
  }]
109
109
  }],
@@ -111,49 +111,49 @@
111
111
  "match": { "trigger": ["manual", "auto"] },
112
112
  "hooks": [{
113
113
  "type": "command",
114
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
114
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
115
115
  "async": true
116
116
  }]
117
117
  }],
118
118
  "StopFailure": [{
119
119
  "hooks": [{
120
120
  "type": "command",
121
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
121
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
122
122
  "async": true
123
123
  }]
124
124
  }],
125
125
  "TeammateIdle": [{
126
126
  "hooks": [{
127
127
  "type": "command",
128
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
128
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
129
129
  "async": true
130
130
  }]
131
131
  }],
132
132
  "TaskCompleted": [{
133
133
  "hooks": [{
134
134
  "type": "command",
135
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
135
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
136
136
  "async": true
137
137
  }]
138
138
  }],
139
139
  "ConfigChange": [{
140
140
  "hooks": [{
141
141
  "type": "command",
142
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
142
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
143
143
  "async": true
144
144
  }]
145
145
  }],
146
146
  "Elicitation": [{
147
147
  "hooks": [{
148
148
  "type": "command",
149
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
149
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
150
150
  "async": true
151
151
  }]
152
152
  }],
153
153
  "ElicitationResult": [{
154
154
  "hooks": [{
155
155
  "type": "command",
156
- "command": "node ${CLAUDE_PLUGIN_ROOT}/bin/hook.js",
156
+ "command": "node $HOME/.claude/plugins/marketplaces/claude-live/bin/hook.js",
157
157
  "async": true
158
158
  }]
159
159
  }]
package/README.md CHANGED
@@ -27,13 +27,13 @@ Then add hooks to your `~/.claude/settings.json`:
27
27
  ```json
28
28
  {
29
29
  "hooks": {
30
- "PreToolUse": [{ "hooks": [{ "type": "command", "command": "node /path/to/hook.js", "async": true }] }],
31
- "PostToolUse": [{ "hooks": [{ "type": "command", "command": "node /path/to/hook.js", "async": true }] }]
30
+ "PreToolUse": [{ "hooks": [{ "type": "command", "command": "node $(npm root -g)/claude-live/bin/hook.js", "async": true }] }],
31
+ "PostToolUse": [{ "hooks": [{ "type": "command", "command": "node $(npm root -g)/claude-live/bin/hook.js", "async": true }] }]
32
32
  }
33
33
  }
34
34
  ```
35
35
 
36
- Replace `/path/to/hook.js` with the result of `npm root -g`/`claude-live/bin/hook.js`.
36
+ Run `npm root -g` to find your global node_modules path if the above doesn't work on your shell.
37
37
 
38
38
  ## Use
39
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-live",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Realtime Claude Code activity visualizer",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/marisancans/claude-live",