@a1st/aix-schema 0.1.0 → 0.3.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,CAQnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,CASnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,CAE9D"}
package/dist/factory.js CHANGED
@@ -12,6 +12,7 @@ export function createEmptyConfig(scope) {
12
12
  mcp: {},
13
13
  rules: {},
14
14
  prompts: {},
15
+ agents: {},
15
16
  };
16
17
  }
17
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmB;IAClD,OAAO;QACJ,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;KACb,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC9C,OAAO,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmB;IAClD,OAAO;QACJ,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,EAAE;KACZ,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC9C,OAAO,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;AACpC,CAAC"}
package/dist/hooks.d.ts CHANGED
@@ -1,106 +1,431 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * Generic hook event types that map to editor-specific events.
4
- * These are normalized event names that adapters translate to native formats.
3
+ * Generic hook event types that map to editor-specific events. Adapters translate these
4
+ * normalized names into the editor's native event names.
5
+ *
6
+ * Events are grouped (lifecycle, prompt, tool, model, agent, system) but the enum is a
7
+ * flat list for ergonomic configuration.
5
8
  */
6
- export declare const hookEventSchema: z.ZodEnum<["pre_tool_use", "post_tool_use", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_prompt", "pre_compact", "post_compact", "subagent_start", "subagent_stop", "task_created", "task_completed", "worktree_setup", "session_start", "session_end", "agent_stop"]>;
9
+ export declare const hookEventSchema: z.ZodEnum<["session_start", "session_end", "setup", "pre_prompt", "user_prompt_expansion", "pre_tool_use", "post_tool_use", "post_tool_use_failure", "post_tool_batch", "pre_tool_selection", "permission_request", "permission_denied", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_tab_file_read", "post_tab_file_edit", "pre_model_request", "post_model_response", "pre_response_chunk", "pre_agent", "post_agent", "post_response", "post_response_with_transcript", "agent_stop", "subagent_start", "subagent_stop", "subagent_idle", "pre_compact", "post_compact", "task_created", "task_completed", "worktree_setup", "worktree_remove", "instructions_loaded", "config_change", "cwd_changed", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>;
7
10
  export type HookEvent = z.infer<typeof hookEventSchema>;
8
11
  /**
9
- * Individual hook action configuration.
12
+ * Hook action handler kind. `command` runs a shell command, `prompt` and `agent` defer
13
+ * to an LLM, `http` sends a POST request, and `mcp_tool` invokes a configured MCP tool.
14
+ * Adapters drop unsupported kinds with a warning instead of failing the install.
15
+ */
16
+ export declare const hookActionTypeSchema: z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>;
17
+ export type HookActionType = z.infer<typeof hookActionTypeSchema>;
18
+ /**
19
+ * Individual hook action configuration. The schema is intentionally permissive: every
20
+ * field except for the conceptual command is optional, and adapters report any field
21
+ * the target editor cannot express through `HooksStrategy.getUnsupportedFields`.
10
22
  */
11
23
  export declare const hookActionSchema: z.ZodObject<{
12
- command: z.ZodString;
24
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
25
+ command: z.ZodOptional<z.ZodString>;
26
+ bash: z.ZodOptional<z.ZodString>;
27
+ powershell: z.ZodOptional<z.ZodString>;
28
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
13
29
  timeout: z.ZodOptional<z.ZodNumber>;
14
30
  show_output: z.ZodOptional<z.ZodBoolean>;
15
31
  working_directory: z.ZodOptional<z.ZodString>;
32
+ cwd: z.ZodOptional<z.ZodString>;
33
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34
+ async: z.ZodOptional<z.ZodBoolean>;
35
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
36
+ if: z.ZodOptional<z.ZodString>;
37
+ status_message: z.ZodOptional<z.ZodString>;
38
+ once: z.ZodOptional<z.ZodBoolean>;
39
+ url: z.ZodOptional<z.ZodString>;
40
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ mcp_server: z.ZodOptional<z.ZodString>;
43
+ mcp_tool: z.ZodOptional<z.ZodString>;
44
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ prompt: z.ZodOptional<z.ZodString>;
46
+ model: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ name: z.ZodOptional<z.ZodString>;
49
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
50
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
51
  }, "strip", z.ZodTypeAny, {
17
- command: string;
52
+ url?: string | undefined;
53
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
54
+ description?: string | undefined;
55
+ command?: string | undefined;
56
+ env?: Record<string, string> | undefined;
57
+ cwd?: string | undefined;
58
+ shell?: "bash" | "powershell" | undefined;
59
+ headers?: Record<string, string> | undefined;
18
60
  timeout?: number | undefined;
61
+ model?: string | undefined;
62
+ mcp_tool?: string | undefined;
63
+ prompt?: string | undefined;
64
+ bash?: string | undefined;
65
+ powershell?: string | undefined;
19
66
  show_output?: boolean | undefined;
20
67
  working_directory?: string | undefined;
68
+ async?: boolean | undefined;
69
+ async_rewake?: boolean | undefined;
70
+ if?: string | undefined;
71
+ status_message?: string | undefined;
72
+ once?: boolean | undefined;
73
+ allowed_env_vars?: string[] | undefined;
74
+ mcp_server?: string | undefined;
75
+ mcp_input?: Record<string, unknown> | undefined;
76
+ name?: string | undefined;
77
+ fail_closed?: boolean | undefined;
78
+ loop_limit?: number | null | undefined;
21
79
  }, {
22
- command: string;
80
+ url?: string | undefined;
81
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
82
+ description?: string | undefined;
83
+ command?: string | undefined;
84
+ env?: Record<string, string> | undefined;
85
+ cwd?: string | undefined;
86
+ shell?: "bash" | "powershell" | undefined;
87
+ headers?: Record<string, string> | undefined;
23
88
  timeout?: number | undefined;
89
+ model?: string | undefined;
90
+ mcp_tool?: string | undefined;
91
+ prompt?: string | undefined;
92
+ bash?: string | undefined;
93
+ powershell?: string | undefined;
24
94
  show_output?: boolean | undefined;
25
95
  working_directory?: string | undefined;
96
+ async?: boolean | undefined;
97
+ async_rewake?: boolean | undefined;
98
+ if?: string | undefined;
99
+ status_message?: string | undefined;
100
+ once?: boolean | undefined;
101
+ allowed_env_vars?: string[] | undefined;
102
+ mcp_server?: string | undefined;
103
+ mcp_input?: Record<string, unknown> | undefined;
104
+ name?: string | undefined;
105
+ fail_closed?: boolean | undefined;
106
+ loop_limit?: number | null | undefined;
26
107
  }>;
27
108
  export type HookAction = z.infer<typeof hookActionSchema>;
28
109
  /**
29
- * Hook matcher with associated actions. The matcher is an optional regex pattern to filter events.
110
+ * Hook matcher with associated actions. `matcher` filters when the actions run; on
111
+ * editors that support it, `sequential` controls whether actions in the group fan out in
112
+ * parallel (default) or run one at a time. `description` is for documentation only.
30
113
  */
31
114
  export declare const hookMatcherSchema: z.ZodObject<{
32
115
  matcher: z.ZodOptional<z.ZodString>;
116
+ sequential: z.ZodOptional<z.ZodBoolean>;
117
+ description: z.ZodOptional<z.ZodString>;
33
118
  hooks: z.ZodArray<z.ZodObject<{
34
- command: z.ZodString;
119
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
120
+ command: z.ZodOptional<z.ZodString>;
121
+ bash: z.ZodOptional<z.ZodString>;
122
+ powershell: z.ZodOptional<z.ZodString>;
123
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
35
124
  timeout: z.ZodOptional<z.ZodNumber>;
36
125
  show_output: z.ZodOptional<z.ZodBoolean>;
37
126
  working_directory: z.ZodOptional<z.ZodString>;
127
+ cwd: z.ZodOptional<z.ZodString>;
128
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
129
+ async: z.ZodOptional<z.ZodBoolean>;
130
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
131
+ if: z.ZodOptional<z.ZodString>;
132
+ status_message: z.ZodOptional<z.ZodString>;
133
+ once: z.ZodOptional<z.ZodBoolean>;
134
+ url: z.ZodOptional<z.ZodString>;
135
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
136
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
+ mcp_server: z.ZodOptional<z.ZodString>;
138
+ mcp_tool: z.ZodOptional<z.ZodString>;
139
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
+ prompt: z.ZodOptional<z.ZodString>;
141
+ model: z.ZodOptional<z.ZodString>;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ name: z.ZodOptional<z.ZodString>;
144
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
145
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
146
  }, "strip", z.ZodTypeAny, {
39
- command: string;
147
+ url?: string | undefined;
148
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
149
+ description?: string | undefined;
150
+ command?: string | undefined;
151
+ env?: Record<string, string> | undefined;
152
+ cwd?: string | undefined;
153
+ shell?: "bash" | "powershell" | undefined;
154
+ headers?: Record<string, string> | undefined;
40
155
  timeout?: number | undefined;
156
+ model?: string | undefined;
157
+ mcp_tool?: string | undefined;
158
+ prompt?: string | undefined;
159
+ bash?: string | undefined;
160
+ powershell?: string | undefined;
41
161
  show_output?: boolean | undefined;
42
162
  working_directory?: string | undefined;
163
+ async?: boolean | undefined;
164
+ async_rewake?: boolean | undefined;
165
+ if?: string | undefined;
166
+ status_message?: string | undefined;
167
+ once?: boolean | undefined;
168
+ allowed_env_vars?: string[] | undefined;
169
+ mcp_server?: string | undefined;
170
+ mcp_input?: Record<string, unknown> | undefined;
171
+ name?: string | undefined;
172
+ fail_closed?: boolean | undefined;
173
+ loop_limit?: number | null | undefined;
43
174
  }, {
44
- command: string;
175
+ url?: string | undefined;
176
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
177
+ description?: string | undefined;
178
+ command?: string | undefined;
179
+ env?: Record<string, string> | undefined;
180
+ cwd?: string | undefined;
181
+ shell?: "bash" | "powershell" | undefined;
182
+ headers?: Record<string, string> | undefined;
45
183
  timeout?: number | undefined;
184
+ model?: string | undefined;
185
+ mcp_tool?: string | undefined;
186
+ prompt?: string | undefined;
187
+ bash?: string | undefined;
188
+ powershell?: string | undefined;
46
189
  show_output?: boolean | undefined;
47
190
  working_directory?: string | undefined;
191
+ async?: boolean | undefined;
192
+ async_rewake?: boolean | undefined;
193
+ if?: string | undefined;
194
+ status_message?: string | undefined;
195
+ once?: boolean | undefined;
196
+ allowed_env_vars?: string[] | undefined;
197
+ mcp_server?: string | undefined;
198
+ mcp_input?: Record<string, unknown> | undefined;
199
+ name?: string | undefined;
200
+ fail_closed?: boolean | undefined;
201
+ loop_limit?: number | null | undefined;
48
202
  }>, "many">;
49
203
  }, "strip", z.ZodTypeAny, {
50
204
  hooks: {
51
- command: string;
205
+ url?: string | undefined;
206
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
207
+ description?: string | undefined;
208
+ command?: string | undefined;
209
+ env?: Record<string, string> | undefined;
210
+ cwd?: string | undefined;
211
+ shell?: "bash" | "powershell" | undefined;
212
+ headers?: Record<string, string> | undefined;
52
213
  timeout?: number | undefined;
214
+ model?: string | undefined;
215
+ mcp_tool?: string | undefined;
216
+ prompt?: string | undefined;
217
+ bash?: string | undefined;
218
+ powershell?: string | undefined;
53
219
  show_output?: boolean | undefined;
54
220
  working_directory?: string | undefined;
221
+ async?: boolean | undefined;
222
+ async_rewake?: boolean | undefined;
223
+ if?: string | undefined;
224
+ status_message?: string | undefined;
225
+ once?: boolean | undefined;
226
+ allowed_env_vars?: string[] | undefined;
227
+ mcp_server?: string | undefined;
228
+ mcp_input?: Record<string, unknown> | undefined;
229
+ name?: string | undefined;
230
+ fail_closed?: boolean | undefined;
231
+ loop_limit?: number | null | undefined;
55
232
  }[];
233
+ description?: string | undefined;
56
234
  matcher?: string | undefined;
235
+ sequential?: boolean | undefined;
57
236
  }, {
58
237
  hooks: {
59
- command: string;
238
+ url?: string | undefined;
239
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
240
+ description?: string | undefined;
241
+ command?: string | undefined;
242
+ env?: Record<string, string> | undefined;
243
+ cwd?: string | undefined;
244
+ shell?: "bash" | "powershell" | undefined;
245
+ headers?: Record<string, string> | undefined;
60
246
  timeout?: number | undefined;
247
+ model?: string | undefined;
248
+ mcp_tool?: string | undefined;
249
+ prompt?: string | undefined;
250
+ bash?: string | undefined;
251
+ powershell?: string | undefined;
61
252
  show_output?: boolean | undefined;
62
253
  working_directory?: string | undefined;
254
+ async?: boolean | undefined;
255
+ async_rewake?: boolean | undefined;
256
+ if?: string | undefined;
257
+ status_message?: string | undefined;
258
+ once?: boolean | undefined;
259
+ allowed_env_vars?: string[] | undefined;
260
+ mcp_server?: string | undefined;
261
+ mcp_input?: Record<string, unknown> | undefined;
262
+ name?: string | undefined;
263
+ fail_closed?: boolean | undefined;
264
+ loop_limit?: number | null | undefined;
63
265
  }[];
266
+ description?: string | undefined;
64
267
  matcher?: string | undefined;
268
+ sequential?: boolean | undefined;
65
269
  }>;
66
270
  export type HookMatcher = z.infer<typeof hookMatcherSchema>;
67
271
  /**
68
272
  * Full hooks configuration - maps event types to arrays of matchers.
69
273
  */
70
- export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["pre_tool_use", "post_tool_use", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_prompt", "pre_compact", "post_compact", "subagent_start", "subagent_stop", "task_created", "task_completed", "worktree_setup", "session_start", "session_end", "agent_stop"]>, z.ZodArray<z.ZodObject<{
274
+ export declare const hooksSchema: z.ZodRecord<z.ZodEnum<["session_start", "session_end", "setup", "pre_prompt", "user_prompt_expansion", "pre_tool_use", "post_tool_use", "post_tool_use_failure", "post_tool_batch", "pre_tool_selection", "permission_request", "permission_denied", "pre_file_read", "post_file_read", "pre_file_write", "post_file_write", "pre_command", "post_command", "pre_mcp_tool", "post_mcp_tool", "pre_tab_file_read", "post_tab_file_edit", "pre_model_request", "post_model_response", "pre_response_chunk", "pre_agent", "post_agent", "post_response", "post_response_with_transcript", "agent_stop", "subagent_start", "subagent_stop", "subagent_idle", "pre_compact", "post_compact", "task_created", "task_completed", "worktree_setup", "worktree_remove", "instructions_loaded", "config_change", "cwd_changed", "file_changed", "notification", "elicitation", "elicitation_result", "error_occurred"]>, z.ZodArray<z.ZodObject<{
71
275
  matcher: z.ZodOptional<z.ZodString>;
276
+ sequential: z.ZodOptional<z.ZodBoolean>;
277
+ description: z.ZodOptional<z.ZodString>;
72
278
  hooks: z.ZodArray<z.ZodObject<{
73
- command: z.ZodString;
279
+ type: z.ZodOptional<z.ZodEnum<["command", "http", "mcp_tool", "prompt", "agent"]>>;
280
+ command: z.ZodOptional<z.ZodString>;
281
+ bash: z.ZodOptional<z.ZodString>;
282
+ powershell: z.ZodOptional<z.ZodString>;
283
+ shell: z.ZodOptional<z.ZodEnum<["bash", "powershell"]>>;
74
284
  timeout: z.ZodOptional<z.ZodNumber>;
75
285
  show_output: z.ZodOptional<z.ZodBoolean>;
76
286
  working_directory: z.ZodOptional<z.ZodString>;
287
+ cwd: z.ZodOptional<z.ZodString>;
288
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
+ async: z.ZodOptional<z.ZodBoolean>;
290
+ async_rewake: z.ZodOptional<z.ZodBoolean>;
291
+ if: z.ZodOptional<z.ZodString>;
292
+ status_message: z.ZodOptional<z.ZodString>;
293
+ once: z.ZodOptional<z.ZodBoolean>;
294
+ url: z.ZodOptional<z.ZodString>;
295
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
+ allowed_env_vars: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
+ mcp_server: z.ZodOptional<z.ZodString>;
298
+ mcp_tool: z.ZodOptional<z.ZodString>;
299
+ mcp_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
300
+ prompt: z.ZodOptional<z.ZodString>;
301
+ model: z.ZodOptional<z.ZodString>;
302
+ description: z.ZodOptional<z.ZodString>;
303
+ name: z.ZodOptional<z.ZodString>;
304
+ fail_closed: z.ZodOptional<z.ZodBoolean>;
305
+ loop_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
306
  }, "strip", z.ZodTypeAny, {
78
- command: string;
307
+ url?: string | undefined;
308
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
309
+ description?: string | undefined;
310
+ command?: string | undefined;
311
+ env?: Record<string, string> | undefined;
312
+ cwd?: string | undefined;
313
+ shell?: "bash" | "powershell" | undefined;
314
+ headers?: Record<string, string> | undefined;
79
315
  timeout?: number | undefined;
316
+ model?: string | undefined;
317
+ mcp_tool?: string | undefined;
318
+ prompt?: string | undefined;
319
+ bash?: string | undefined;
320
+ powershell?: string | undefined;
80
321
  show_output?: boolean | undefined;
81
322
  working_directory?: string | undefined;
323
+ async?: boolean | undefined;
324
+ async_rewake?: boolean | undefined;
325
+ if?: string | undefined;
326
+ status_message?: string | undefined;
327
+ once?: boolean | undefined;
328
+ allowed_env_vars?: string[] | undefined;
329
+ mcp_server?: string | undefined;
330
+ mcp_input?: Record<string, unknown> | undefined;
331
+ name?: string | undefined;
332
+ fail_closed?: boolean | undefined;
333
+ loop_limit?: number | null | undefined;
82
334
  }, {
83
- command: string;
335
+ url?: string | undefined;
336
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
337
+ description?: string | undefined;
338
+ command?: string | undefined;
339
+ env?: Record<string, string> | undefined;
340
+ cwd?: string | undefined;
341
+ shell?: "bash" | "powershell" | undefined;
342
+ headers?: Record<string, string> | undefined;
84
343
  timeout?: number | undefined;
344
+ model?: string | undefined;
345
+ mcp_tool?: string | undefined;
346
+ prompt?: string | undefined;
347
+ bash?: string | undefined;
348
+ powershell?: string | undefined;
85
349
  show_output?: boolean | undefined;
86
350
  working_directory?: string | undefined;
351
+ async?: boolean | undefined;
352
+ async_rewake?: boolean | undefined;
353
+ if?: string | undefined;
354
+ status_message?: string | undefined;
355
+ once?: boolean | undefined;
356
+ allowed_env_vars?: string[] | undefined;
357
+ mcp_server?: string | undefined;
358
+ mcp_input?: Record<string, unknown> | undefined;
359
+ name?: string | undefined;
360
+ fail_closed?: boolean | undefined;
361
+ loop_limit?: number | null | undefined;
87
362
  }>, "many">;
88
363
  }, "strip", z.ZodTypeAny, {
89
364
  hooks: {
90
- command: string;
365
+ url?: string | undefined;
366
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
367
+ description?: string | undefined;
368
+ command?: string | undefined;
369
+ env?: Record<string, string> | undefined;
370
+ cwd?: string | undefined;
371
+ shell?: "bash" | "powershell" | undefined;
372
+ headers?: Record<string, string> | undefined;
91
373
  timeout?: number | undefined;
374
+ model?: string | undefined;
375
+ mcp_tool?: string | undefined;
376
+ prompt?: string | undefined;
377
+ bash?: string | undefined;
378
+ powershell?: string | undefined;
92
379
  show_output?: boolean | undefined;
93
380
  working_directory?: string | undefined;
381
+ async?: boolean | undefined;
382
+ async_rewake?: boolean | undefined;
383
+ if?: string | undefined;
384
+ status_message?: string | undefined;
385
+ once?: boolean | undefined;
386
+ allowed_env_vars?: string[] | undefined;
387
+ mcp_server?: string | undefined;
388
+ mcp_input?: Record<string, unknown> | undefined;
389
+ name?: string | undefined;
390
+ fail_closed?: boolean | undefined;
391
+ loop_limit?: number | null | undefined;
94
392
  }[];
393
+ description?: string | undefined;
95
394
  matcher?: string | undefined;
395
+ sequential?: boolean | undefined;
96
396
  }, {
97
397
  hooks: {
98
- command: string;
398
+ url?: string | undefined;
399
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
400
+ description?: string | undefined;
401
+ command?: string | undefined;
402
+ env?: Record<string, string> | undefined;
403
+ cwd?: string | undefined;
404
+ shell?: "bash" | "powershell" | undefined;
405
+ headers?: Record<string, string> | undefined;
99
406
  timeout?: number | undefined;
407
+ model?: string | undefined;
408
+ mcp_tool?: string | undefined;
409
+ prompt?: string | undefined;
410
+ bash?: string | undefined;
411
+ powershell?: string | undefined;
100
412
  show_output?: boolean | undefined;
101
413
  working_directory?: string | undefined;
414
+ async?: boolean | undefined;
415
+ async_rewake?: boolean | undefined;
416
+ if?: string | undefined;
417
+ status_message?: string | undefined;
418
+ once?: boolean | undefined;
419
+ allowed_env_vars?: string[] | undefined;
420
+ mcp_server?: string | undefined;
421
+ mcp_input?: Record<string, unknown> | undefined;
422
+ name?: string | undefined;
423
+ fail_closed?: boolean | undefined;
424
+ loop_limit?: number | null | undefined;
102
425
  }[];
426
+ description?: string | undefined;
103
427
  matcher?: string | undefined;
428
+ sequential?: boolean | undefined;
104
429
  }>, "many">>;
105
430
  export type HooksConfig = z.infer<typeof hooksSchema>;
106
431
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,eAAe,wWAwBG,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWY,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAEgC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
package/dist/hooks.js CHANGED
@@ -1,12 +1,28 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * Generic hook event types that map to editor-specific events.
4
- * These are normalized event names that adapters translate to native formats.
3
+ * Generic hook event types that map to editor-specific events. Adapters translate these
4
+ * normalized names into the editor's native event names.
5
+ *
6
+ * Events are grouped (lifecycle, prompt, tool, model, agent, system) but the enum is a
7
+ * flat list for ergonomic configuration.
5
8
  */
6
9
  export const hookEventSchema = z
7
10
  .enum([
11
+ // Lifecycle.
12
+ 'session_start',
13
+ 'session_end',
14
+ 'setup',
15
+ // Prompt.
16
+ 'pre_prompt',
17
+ 'user_prompt_expansion',
18
+ // Tool execution.
8
19
  'pre_tool_use',
9
20
  'post_tool_use',
21
+ 'post_tool_use_failure',
22
+ 'post_tool_batch',
23
+ 'pre_tool_selection',
24
+ 'permission_request',
25
+ 'permission_denied',
10
26
  'pre_file_read',
11
27
  'post_file_read',
12
28
  'pre_file_write',
@@ -15,36 +31,100 @@ export const hookEventSchema = z
15
31
  'post_command',
16
32
  'pre_mcp_tool',
17
33
  'post_mcp_tool',
18
- 'pre_prompt',
19
- 'pre_compact',
20
- 'post_compact',
34
+ 'pre_tab_file_read',
35
+ 'post_tab_file_edit',
36
+ // Model.
37
+ 'pre_model_request',
38
+ 'post_model_response',
39
+ 'pre_response_chunk',
40
+ // Agent / response.
41
+ 'pre_agent',
42
+ 'post_agent',
43
+ 'post_response',
44
+ 'post_response_with_transcript',
45
+ 'agent_stop',
21
46
  'subagent_start',
22
47
  'subagent_stop',
48
+ 'subagent_idle',
49
+ // System / context.
50
+ 'pre_compact',
51
+ 'post_compact',
23
52
  'task_created',
24
53
  'task_completed',
25
54
  'worktree_setup',
26
- 'session_start',
27
- 'session_end',
28
- 'agent_stop',
55
+ 'worktree_remove',
56
+ 'instructions_loaded',
57
+ 'config_change',
58
+ 'cwd_changed',
59
+ 'file_changed',
60
+ 'notification',
61
+ 'elicitation',
62
+ 'elicitation_result',
63
+ 'error_occurred',
29
64
  ])
30
65
  .describe('Hook event type');
31
66
  /**
32
- * Individual hook action configuration.
67
+ * Hook action handler kind. `command` runs a shell command, `prompt` and `agent` defer
68
+ * to an LLM, `http` sends a POST request, and `mcp_tool` invokes a configured MCP tool.
69
+ * Adapters drop unsupported kinds with a warning instead of failing the install.
70
+ */
71
+ export const hookActionTypeSchema = z
72
+ .enum(['command', 'http', 'mcp_tool', 'prompt', 'agent'])
73
+ .describe('Hook action handler kind');
74
+ /**
75
+ * Individual hook action configuration. The schema is intentionally permissive: every
76
+ * field except for the conceptual command is optional, and adapters report any field
77
+ * the target editor cannot express through `HooksStrategy.getUnsupportedFields`.
33
78
  */
34
79
  export const hookActionSchema = z
35
80
  .object({
36
- command: z.string().describe('Shell command to execute'),
37
- timeout: z.number().positive().optional().describe('Timeout in seconds'),
38
- show_output: z.boolean().optional().describe('Whether to show command output in UI'),
39
- working_directory: z.string().optional().describe('Working directory for the command'),
81
+ type: hookActionTypeSchema.optional().describe('Action handler kind (default: "command").'),
82
+ // Command-style execution.
83
+ command: z.string().optional().describe('Shell command to execute.'),
84
+ bash: z.string().optional().describe('Bash command (macOS / Linux).'),
85
+ powershell: z.string().optional().describe('PowerShell command (Windows).'),
86
+ shell: z.enum(['bash', 'powershell']).optional().describe('Shell selector when only one of `command` / `bash` / `powershell` is set.'),
87
+ timeout: z.number().positive().optional().describe('Timeout in seconds. Adapters convert to native units (e.g. milliseconds).'),
88
+ show_output: z.boolean().optional().describe('Whether to surface command output in the editor UI (Windsurf-specific).'),
89
+ working_directory: z.string().optional().describe('Working directory for the command. Interchangeable with `cwd`; the strategy decides which native key to emit (Windsurf uses `working_directory`; Copilot, Gemini, and Claude Code use `cwd`).'),
90
+ cwd: z.string().optional().describe('Working directory for the command. Interchangeable with `working_directory`.'),
91
+ env: z.record(z.string(), z.string()).optional().describe('Environment variables to set when running the command.'),
92
+ // Async execution (Claude Code).
93
+ async: z.boolean().optional().describe('Run the command in the background without blocking the agent.'),
94
+ async_rewake: z.boolean().optional().describe('Run async; on exit code 2, wake the agent with stderr/stdout context.'),
95
+ // Conditional / metadata.
96
+ if: z.string().optional().describe('Permission-rule expression (Claude Code) gating execution.'),
97
+ status_message: z.string().optional().describe('Custom spinner message while the hook runs (Claude Code).'),
98
+ once: z.boolean().optional().describe('Run once per session, then unregister (Claude Code skill / agent frontmatter).'),
99
+ // HTTP webhook.
100
+ url: z.string().optional().describe('URL to POST hook input to (Claude Code HTTP).'),
101
+ headers: z.record(z.string(), z.string()).optional().describe('Additional HTTP headers, with env-var interpolation (Claude Code HTTP).'),
102
+ allowed_env_vars: z.array(z.string()).optional().describe('Env-var allowlist for header interpolation (Claude Code HTTP).'),
103
+ // MCP tool dispatch.
104
+ mcp_server: z.string().optional().describe('Configured MCP server name (Claude Code mcp_tool).'),
105
+ mcp_tool: z.string().optional().describe('Tool name on the MCP server (Claude Code mcp_tool).'),
106
+ mcp_input: z.record(z.string(), z.unknown()).optional().describe('Arguments for the MCP tool, with `${tool_input.x}` substitution (Claude Code).'),
107
+ // Prompt / agent (LLM-evaluated).
108
+ prompt: z.string().optional().describe('Prompt text (Claude Code, Cursor, Copilot).'),
109
+ model: z.string().optional().describe('Model override for prompt / agent hooks.'),
110
+ // Documentation / management.
111
+ description: z.string().optional().describe('Free-form description for logs / UI.'),
112
+ name: z.string().optional().describe('Friendly identifier for logs and CLI commands.'),
113
+ // Cursor-specific behaviors.
114
+ fail_closed: z.boolean().optional().describe('Block the action when the hook itself fails (Cursor).'),
115
+ loop_limit: z.number().int().nullable().optional().describe('Max auto-triggered follow-ups for stop-style events (Cursor).'),
40
116
  })
41
117
  .describe('Hook action configuration');
42
118
  /**
43
- * Hook matcher with associated actions. The matcher is an optional regex pattern to filter events.
119
+ * Hook matcher with associated actions. `matcher` filters when the actions run; on
120
+ * editors that support it, `sequential` controls whether actions in the group fan out in
121
+ * parallel (default) or run one at a time. `description` is for documentation only.
44
122
  */
45
123
  export const hookMatcherSchema = z
46
124
  .object({
47
- matcher: z.string().optional().describe('Pattern to match (regex supported, editor-specific)'),
125
+ matcher: z.string().optional().describe('Pattern to match (regex or pipe-separated literal, editor-specific).'),
126
+ sequential: z.boolean().optional().describe('Run hooks in this group sequentially instead of in parallel (Gemini).'),
127
+ description: z.string().optional().describe('Free-form description for the group.'),
48
128
  hooks: z.array(hookActionSchema).describe('Hooks to execute when matched'),
49
129
  })
50
130
  .describe('Hook matcher configuration');
package/dist/hooks.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC5B,IAAI,CAAC;IACH,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,Y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AAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IAEtF,6BAA6B;IAC7B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzC,uDAAuD,CACzD;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxD,+DAA+D,CACjE;CACH,CAAC;KACD,QAAQ,CAAC,2BAA2B,CAAC,CAAC;AAI1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACL,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpC,sEAAsE,CACxE;IACD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxC,uEAAuE,CACzE;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAC5E,CAAC;KACD,QAAQ,CAAC,4BAA4B,CAAC,CAAC;AAI3C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACxB,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACnD,QAAQ,CAAC,0CAA0C,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './skill.js';
6
6
  export * from './mcp.js';
7
7
  export * from './rules.js';
8
8
  export * from './prompts.js';
9
+ export * from './agents.js';
9
10
  export * from './hooks.js';
10
11
  export * from './editors.js';
11
12
  export * from './editor-support.js';