hookloom 0.0.0 → 1.0.1
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.
- package/.claude-plugin/plugin.json +11 -0
- package/.codex-plugin/plugin.json +12 -0
- package/LICENSE +21 -0
- package/README.md +125 -0
- package/dist/check-C4-tOQXQ.mjs +1 -0
- package/dist/check-DiQUS1CB.mjs +65 -0
- package/dist/cli.mjs +893 -0
- package/dist/command-line-ByzwzoIt.mjs +109 -0
- package/dist/dispatcher.mjs +838 -0
- package/dist/permission-rule-DXm-Jvfg.mjs +355 -0
- package/dist/registry.schema.json +25812 -0
- package/dist/schema-78xAlSN_.mjs +5816 -0
- package/dist/schema-DR7G3z1u.mjs +1 -0
- package/hooks/codex.json +172 -0
- package/hooks/hooks.json +345 -0
- package/launcher/hook.sh +10 -0
- package/package.json +66 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as handlersOf, n as parseRegistry, r as registryDocument } from "./schema-78xAlSN_.mjs";
|
package/hooks/codex.json
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"Interrupt": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
8
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
9
|
+
"timeout": 3,
|
|
10
|
+
"type": "command"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"PermissionRequest": [
|
|
16
|
+
{
|
|
17
|
+
"hooks": [
|
|
18
|
+
{
|
|
19
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
20
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
21
|
+
"timeout": 600,
|
|
22
|
+
"type": "command"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"PostCompact": [
|
|
28
|
+
{
|
|
29
|
+
"hooks": [
|
|
30
|
+
{
|
|
31
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
32
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
33
|
+
"timeout": 600,
|
|
34
|
+
"type": "command"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"PostModelRequest": [
|
|
40
|
+
{
|
|
41
|
+
"hooks": [
|
|
42
|
+
{
|
|
43
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
44
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
45
|
+
"timeout": 600,
|
|
46
|
+
"type": "command"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"PostToolUse": [
|
|
52
|
+
{
|
|
53
|
+
"hooks": [
|
|
54
|
+
{
|
|
55
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
56
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
57
|
+
"timeout": 600,
|
|
58
|
+
"type": "command"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"PreCompact": [
|
|
64
|
+
{
|
|
65
|
+
"hooks": [
|
|
66
|
+
{
|
|
67
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
68
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
69
|
+
"timeout": 600,
|
|
70
|
+
"type": "command"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"PreModelRequest": [
|
|
76
|
+
{
|
|
77
|
+
"hooks": [
|
|
78
|
+
{
|
|
79
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
80
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
81
|
+
"timeout": 600,
|
|
82
|
+
"type": "command"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"PreToolUse": [
|
|
88
|
+
{
|
|
89
|
+
"hooks": [
|
|
90
|
+
{
|
|
91
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
92
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
93
|
+
"timeout": 600,
|
|
94
|
+
"type": "command"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"SessionEnd": [
|
|
100
|
+
{
|
|
101
|
+
"hooks": [
|
|
102
|
+
{
|
|
103
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
104
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
105
|
+
"timeout": 3,
|
|
106
|
+
"type": "command"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"SessionStart": [
|
|
112
|
+
{
|
|
113
|
+
"hooks": [
|
|
114
|
+
{
|
|
115
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
116
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
117
|
+
"timeout": 600,
|
|
118
|
+
"type": "command"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"Stop": [
|
|
124
|
+
{
|
|
125
|
+
"hooks": [
|
|
126
|
+
{
|
|
127
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
128
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
129
|
+
"timeout": 600,
|
|
130
|
+
"type": "command"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"SubagentStart": [
|
|
136
|
+
{
|
|
137
|
+
"hooks": [
|
|
138
|
+
{
|
|
139
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
140
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
141
|
+
"timeout": 600,
|
|
142
|
+
"type": "command"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"SubagentStop": [
|
|
148
|
+
{
|
|
149
|
+
"hooks": [
|
|
150
|
+
{
|
|
151
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
152
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
153
|
+
"timeout": 600,
|
|
154
|
+
"type": "command"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"UserPromptSubmit": [
|
|
160
|
+
{
|
|
161
|
+
"hooks": [
|
|
162
|
+
{
|
|
163
|
+
"command": "sh \"$PLUGIN_ROOT/launcher/hook.sh\" codex",
|
|
164
|
+
"commandWindows": "node \"${PLUGIN_ROOT}/dist/dispatcher.mjs\" codex ; exit $LASTEXITCODE",
|
|
165
|
+
"timeout": 600,
|
|
166
|
+
"type": "command"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"ConfigChange": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
8
|
+
"timeout": 600,
|
|
9
|
+
"type": "command"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"CwdChanged": [
|
|
15
|
+
{
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
19
|
+
"timeout": 600,
|
|
20
|
+
"type": "command"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"DirectoryAdded": [
|
|
26
|
+
{
|
|
27
|
+
"hooks": [
|
|
28
|
+
{
|
|
29
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
30
|
+
"timeout": 600,
|
|
31
|
+
"type": "command"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"Elicitation": [
|
|
37
|
+
{
|
|
38
|
+
"hooks": [
|
|
39
|
+
{
|
|
40
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
41
|
+
"timeout": 600,
|
|
42
|
+
"type": "command"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"ElicitationResult": [
|
|
48
|
+
{
|
|
49
|
+
"hooks": [
|
|
50
|
+
{
|
|
51
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
52
|
+
"timeout": 600,
|
|
53
|
+
"type": "command"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"InstructionsLoaded": [
|
|
59
|
+
{
|
|
60
|
+
"hooks": [
|
|
61
|
+
{
|
|
62
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
63
|
+
"timeout": 600,
|
|
64
|
+
"type": "command"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"MessageDisplay": [
|
|
70
|
+
{
|
|
71
|
+
"hooks": [
|
|
72
|
+
{
|
|
73
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
74
|
+
"timeout": 600,
|
|
75
|
+
"type": "command"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"Notification": [
|
|
81
|
+
{
|
|
82
|
+
"hooks": [
|
|
83
|
+
{
|
|
84
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
85
|
+
"timeout": 600,
|
|
86
|
+
"type": "command"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"PermissionDenied": [
|
|
92
|
+
{
|
|
93
|
+
"hooks": [
|
|
94
|
+
{
|
|
95
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
96
|
+
"timeout": 600,
|
|
97
|
+
"type": "command"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"PermissionRequest": [
|
|
103
|
+
{
|
|
104
|
+
"hooks": [
|
|
105
|
+
{
|
|
106
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
107
|
+
"timeout": 600,
|
|
108
|
+
"type": "command"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"PostCompact": [
|
|
114
|
+
{
|
|
115
|
+
"hooks": [
|
|
116
|
+
{
|
|
117
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
118
|
+
"timeout": 600,
|
|
119
|
+
"type": "command"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"PostModelSwitch": [
|
|
125
|
+
{
|
|
126
|
+
"hooks": [
|
|
127
|
+
{
|
|
128
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
129
|
+
"timeout": 600,
|
|
130
|
+
"type": "command"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"PostToolBatch": [
|
|
136
|
+
{
|
|
137
|
+
"hooks": [
|
|
138
|
+
{
|
|
139
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
140
|
+
"timeout": 600,
|
|
141
|
+
"type": "command"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"PostToolUse": [
|
|
147
|
+
{
|
|
148
|
+
"hooks": [
|
|
149
|
+
{
|
|
150
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
151
|
+
"timeout": 600,
|
|
152
|
+
"type": "command"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"PostToolUseFailure": [
|
|
158
|
+
{
|
|
159
|
+
"hooks": [
|
|
160
|
+
{
|
|
161
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
162
|
+
"timeout": 600,
|
|
163
|
+
"type": "command"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"PreCompact": [
|
|
169
|
+
{
|
|
170
|
+
"hooks": [
|
|
171
|
+
{
|
|
172
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
173
|
+
"timeout": 600,
|
|
174
|
+
"type": "command"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"PreModelSwitch": [
|
|
180
|
+
{
|
|
181
|
+
"hooks": [
|
|
182
|
+
{
|
|
183
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
184
|
+
"timeout": 600,
|
|
185
|
+
"type": "command"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"PreSkillShellCommand": [
|
|
191
|
+
{
|
|
192
|
+
"hooks": [
|
|
193
|
+
{
|
|
194
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
195
|
+
"timeout": 600,
|
|
196
|
+
"type": "command"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"PreToolUse": [
|
|
202
|
+
{
|
|
203
|
+
"hooks": [
|
|
204
|
+
{
|
|
205
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
206
|
+
"timeout": 600,
|
|
207
|
+
"type": "command"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"SessionEnd": [
|
|
213
|
+
{
|
|
214
|
+
"hooks": [
|
|
215
|
+
{
|
|
216
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
217
|
+
"timeout": 600,
|
|
218
|
+
"type": "command"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"SessionStart": [
|
|
224
|
+
{
|
|
225
|
+
"hooks": [
|
|
226
|
+
{
|
|
227
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
228
|
+
"timeout": 600,
|
|
229
|
+
"type": "command"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"Setup": [
|
|
235
|
+
{
|
|
236
|
+
"hooks": [
|
|
237
|
+
{
|
|
238
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
239
|
+
"timeout": 600,
|
|
240
|
+
"type": "command"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"Stop": [
|
|
246
|
+
{
|
|
247
|
+
"hooks": [
|
|
248
|
+
{
|
|
249
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
250
|
+
"timeout": 600,
|
|
251
|
+
"type": "command"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"StopFailure": [
|
|
257
|
+
{
|
|
258
|
+
"hooks": [
|
|
259
|
+
{
|
|
260
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
261
|
+
"timeout": 600,
|
|
262
|
+
"type": "command"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"SubagentStart": [
|
|
268
|
+
{
|
|
269
|
+
"hooks": [
|
|
270
|
+
{
|
|
271
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
272
|
+
"timeout": 600,
|
|
273
|
+
"type": "command"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"SubagentStop": [
|
|
279
|
+
{
|
|
280
|
+
"hooks": [
|
|
281
|
+
{
|
|
282
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
283
|
+
"timeout": 600,
|
|
284
|
+
"type": "command"
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"TaskCompleted": [
|
|
290
|
+
{
|
|
291
|
+
"hooks": [
|
|
292
|
+
{
|
|
293
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
294
|
+
"timeout": 600,
|
|
295
|
+
"type": "command"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"TaskCreated": [
|
|
301
|
+
{
|
|
302
|
+
"hooks": [
|
|
303
|
+
{
|
|
304
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
305
|
+
"timeout": 600,
|
|
306
|
+
"type": "command"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"TeammateIdle": [
|
|
312
|
+
{
|
|
313
|
+
"hooks": [
|
|
314
|
+
{
|
|
315
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
316
|
+
"timeout": 600,
|
|
317
|
+
"type": "command"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"UserPromptExpansion": [
|
|
323
|
+
{
|
|
324
|
+
"hooks": [
|
|
325
|
+
{
|
|
326
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
327
|
+
"timeout": 600,
|
|
328
|
+
"type": "command"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"UserPromptSubmit": [
|
|
334
|
+
{
|
|
335
|
+
"hooks": [
|
|
336
|
+
{
|
|
337
|
+
"command": "echo --% >/dev/null;: ' | out-null\n<#'\nexec sh \"${CLAUDE_PLUGIN_ROOT}/launcher/hook.sh\" claude\n#>\nnode \"${CLAUDE_PLUGIN_ROOT}/dist/dispatcher.mjs\" claude; exit $LASTEXITCODE",
|
|
338
|
+
"timeout": 600,
|
|
339
|
+
"type": "command"
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
}
|
package/launcher/hook.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Starts the dispatcher for the harness named in the first argument.
|
|
3
|
+
# An application opened from the desktop may not have Node on its PATH, so the path recorded by `hookloom setup` is used when there is one.
|
|
4
|
+
root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd) || exit 1
|
|
5
|
+
recorded="${XDG_CONFIG_HOME:-$HOME/.config}/hookloom/node"
|
|
6
|
+
node=node
|
|
7
|
+
if [ -r "$recorded" ]; then
|
|
8
|
+
IFS= read -r node <"$recorded" || [ -n "$node" ] || exit 1
|
|
9
|
+
fi
|
|
10
|
+
exec "$node" "$root/dist/dispatcher.mjs" "$1"
|
package/package.json
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hookloom",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "One hook registry for Claude Code and Codex: a plugin that dispatches every lifecycle event to your hooks, with a CLI to set up, migrate and roll back",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|
|
6
|
+
"bin": {
|
|
7
|
+
"hookloom": "./dist/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@anthropic-ai/claude-code": "2.1.330",
|
|
11
|
+
"@commitlint/cli": "21.2.4",
|
|
12
|
+
"@commitlint/config-conventional": "21.2.4",
|
|
13
|
+
"@commitlint/types": "21.2.3",
|
|
14
|
+
"@eslint/js": "10.0.1",
|
|
15
|
+
"@eslint/json": "2.1.1",
|
|
16
|
+
"@eslint/markdown": "8.0.3",
|
|
17
|
+
"@exadev/eslint-config": "4.0.0",
|
|
18
|
+
"@openai/codex": "0.171.0",
|
|
19
|
+
"@semantic-release/exec": "7.1.0",
|
|
20
|
+
"@types/node": "22.20.5",
|
|
21
|
+
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
22
|
+
"eslint": "10.15.0",
|
|
23
|
+
"husky": "9.1.7",
|
|
24
|
+
"jiti": "2.7.0",
|
|
25
|
+
"lint-staged": "17.6.2",
|
|
26
|
+
"semantic-release": "26.0.1",
|
|
27
|
+
"tsdown": "0.23.7",
|
|
28
|
+
"typescript": "6.0.3",
|
|
29
|
+
"typescript-eslint": "8.73.0",
|
|
30
|
+
"vitest": "5.1.1",
|
|
31
|
+
"zod": "4.6.7"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=22"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"hooks",
|
|
39
|
+
"launcher",
|
|
40
|
+
".claude-plugin/plugin.json",
|
|
41
|
+
".codex-plugin"
|
|
42
|
+
],
|
|
43
|
+
"keywords": [
|
|
44
|
+
"claude-code",
|
|
45
|
+
"codex",
|
|
46
|
+
"hooks",
|
|
47
|
+
"plugin"
|
|
48
|
+
],
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"packageManager": "pnpm@12.4.1",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public",
|
|
53
|
+
"provenance": true
|
|
54
|
+
},
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/Mearman/hookloom.git"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsdown && node scripts/write-schema.ts && node scripts/stamp-manifests.ts",
|
|
61
|
+
"lint": "eslint . --fix --cache --max-warnings 0",
|
|
62
|
+
"lint:check": "eslint . --cache --max-warnings 0",
|
|
63
|
+
"prepare": "husky",
|
|
64
|
+
"test": "vitest run --project unit --project integration",
|
|
65
|
+
"test:e2e": "vitest run --project e2e",
|
|
66
|
+
"typecheck": "tsc -p tsconfig.json"
|
|
67
|
+
},
|
|
68
|
+
"type": "module"
|
|
5
69
|
}
|