@a1st/aix-schema 0.1.0 → 0.2.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.
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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
53
+ command?: string | undefined;
54
+ env?: Record<string, string> | undefined;
55
+ cwd?: string | undefined;
56
+ shell?: "bash" | "powershell" | undefined;
57
+ url?: string | undefined;
58
+ headers?: Record<string, string> | undefined;
18
59
  timeout?: number | undefined;
60
+ description?: string | undefined;
61
+ mcp_tool?: string | undefined;
62
+ prompt?: string | undefined;
63
+ bash?: string | undefined;
64
+ powershell?: string | undefined;
19
65
  show_output?: boolean | undefined;
20
66
  working_directory?: string | undefined;
67
+ async?: boolean | undefined;
68
+ async_rewake?: boolean | undefined;
69
+ if?: string | undefined;
70
+ status_message?: string | undefined;
71
+ once?: boolean | undefined;
72
+ allowed_env_vars?: string[] | undefined;
73
+ mcp_server?: string | undefined;
74
+ mcp_input?: Record<string, unknown> | undefined;
75
+ model?: string | undefined;
76
+ name?: string | undefined;
77
+ fail_closed?: boolean | undefined;
78
+ loop_limit?: number | null | undefined;
21
79
  }, {
22
- command: string;
80
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
81
+ command?: string | undefined;
82
+ env?: Record<string, string> | undefined;
83
+ cwd?: string | undefined;
84
+ shell?: "bash" | "powershell" | undefined;
85
+ url?: string | undefined;
86
+ headers?: Record<string, string> | undefined;
23
87
  timeout?: number | undefined;
88
+ description?: string | undefined;
89
+ mcp_tool?: string | undefined;
90
+ prompt?: string | undefined;
91
+ bash?: string | undefined;
92
+ powershell?: string | undefined;
24
93
  show_output?: boolean | undefined;
25
94
  working_directory?: string | undefined;
95
+ async?: boolean | undefined;
96
+ async_rewake?: boolean | undefined;
97
+ if?: string | undefined;
98
+ status_message?: string | undefined;
99
+ once?: boolean | undefined;
100
+ allowed_env_vars?: string[] | undefined;
101
+ mcp_server?: string | undefined;
102
+ mcp_input?: Record<string, unknown> | undefined;
103
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
148
+ command?: string | undefined;
149
+ env?: Record<string, string> | undefined;
150
+ cwd?: string | undefined;
151
+ shell?: "bash" | "powershell" | undefined;
152
+ url?: string | undefined;
153
+ headers?: Record<string, string> | undefined;
40
154
  timeout?: number | undefined;
155
+ description?: string | undefined;
156
+ mcp_tool?: string | undefined;
157
+ prompt?: string | undefined;
158
+ bash?: string | undefined;
159
+ powershell?: string | undefined;
41
160
  show_output?: boolean | undefined;
42
161
  working_directory?: string | undefined;
162
+ async?: boolean | undefined;
163
+ async_rewake?: boolean | undefined;
164
+ if?: string | undefined;
165
+ status_message?: string | undefined;
166
+ once?: boolean | undefined;
167
+ allowed_env_vars?: string[] | undefined;
168
+ mcp_server?: string | undefined;
169
+ mcp_input?: Record<string, unknown> | undefined;
170
+ model?: string | undefined;
171
+ name?: string | undefined;
172
+ fail_closed?: boolean | undefined;
173
+ loop_limit?: number | null | undefined;
43
174
  }, {
44
- command: string;
175
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
176
+ command?: string | undefined;
177
+ env?: Record<string, string> | undefined;
178
+ cwd?: string | undefined;
179
+ shell?: "bash" | "powershell" | undefined;
180
+ url?: string | undefined;
181
+ headers?: Record<string, string> | undefined;
45
182
  timeout?: number | undefined;
183
+ description?: string | undefined;
184
+ mcp_tool?: string | undefined;
185
+ prompt?: string | undefined;
186
+ bash?: string | undefined;
187
+ powershell?: string | undefined;
46
188
  show_output?: boolean | undefined;
47
189
  working_directory?: string | undefined;
190
+ async?: boolean | undefined;
191
+ async_rewake?: boolean | undefined;
192
+ if?: string | undefined;
193
+ status_message?: string | undefined;
194
+ once?: boolean | undefined;
195
+ allowed_env_vars?: string[] | undefined;
196
+ mcp_server?: string | undefined;
197
+ mcp_input?: Record<string, unknown> | undefined;
198
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
206
+ command?: string | undefined;
207
+ env?: Record<string, string> | undefined;
208
+ cwd?: string | undefined;
209
+ shell?: "bash" | "powershell" | undefined;
210
+ url?: string | undefined;
211
+ headers?: Record<string, string> | undefined;
52
212
  timeout?: number | undefined;
213
+ description?: string | undefined;
214
+ mcp_tool?: string | undefined;
215
+ prompt?: string | undefined;
216
+ bash?: string | undefined;
217
+ powershell?: string | undefined;
53
218
  show_output?: boolean | undefined;
54
219
  working_directory?: string | undefined;
220
+ async?: boolean | undefined;
221
+ async_rewake?: boolean | undefined;
222
+ if?: string | undefined;
223
+ status_message?: string | undefined;
224
+ once?: boolean | undefined;
225
+ allowed_env_vars?: string[] | undefined;
226
+ mcp_server?: string | undefined;
227
+ mcp_input?: Record<string, unknown> | undefined;
228
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
239
+ command?: string | undefined;
240
+ env?: Record<string, string> | undefined;
241
+ cwd?: string | undefined;
242
+ shell?: "bash" | "powershell" | undefined;
243
+ url?: string | undefined;
244
+ headers?: Record<string, string> | undefined;
60
245
  timeout?: number | undefined;
246
+ description?: string | undefined;
247
+ mcp_tool?: string | undefined;
248
+ prompt?: string | undefined;
249
+ bash?: string | undefined;
250
+ powershell?: string | undefined;
61
251
  show_output?: boolean | undefined;
62
252
  working_directory?: string | undefined;
253
+ async?: boolean | undefined;
254
+ async_rewake?: boolean | undefined;
255
+ if?: string | undefined;
256
+ status_message?: string | undefined;
257
+ once?: boolean | undefined;
258
+ allowed_env_vars?: string[] | undefined;
259
+ mcp_server?: string | undefined;
260
+ mcp_input?: Record<string, unknown> | undefined;
261
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
308
+ command?: string | undefined;
309
+ env?: Record<string, string> | undefined;
310
+ cwd?: string | undefined;
311
+ shell?: "bash" | "powershell" | undefined;
312
+ url?: string | undefined;
313
+ headers?: Record<string, string> | undefined;
79
314
  timeout?: number | undefined;
315
+ description?: string | undefined;
316
+ mcp_tool?: string | undefined;
317
+ prompt?: string | undefined;
318
+ bash?: string | undefined;
319
+ powershell?: string | undefined;
80
320
  show_output?: boolean | undefined;
81
321
  working_directory?: string | undefined;
322
+ async?: boolean | undefined;
323
+ async_rewake?: boolean | undefined;
324
+ if?: string | undefined;
325
+ status_message?: string | undefined;
326
+ once?: boolean | undefined;
327
+ allowed_env_vars?: string[] | undefined;
328
+ mcp_server?: string | undefined;
329
+ mcp_input?: Record<string, unknown> | undefined;
330
+ model?: string | undefined;
331
+ name?: string | undefined;
332
+ fail_closed?: boolean | undefined;
333
+ loop_limit?: number | null | undefined;
82
334
  }, {
83
- command: string;
335
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
336
+ command?: string | undefined;
337
+ env?: Record<string, string> | undefined;
338
+ cwd?: string | undefined;
339
+ shell?: "bash" | "powershell" | undefined;
340
+ url?: string | undefined;
341
+ headers?: Record<string, string> | undefined;
84
342
  timeout?: number | undefined;
343
+ description?: string | undefined;
344
+ mcp_tool?: string | undefined;
345
+ prompt?: string | undefined;
346
+ bash?: string | undefined;
347
+ powershell?: string | undefined;
85
348
  show_output?: boolean | undefined;
86
349
  working_directory?: string | undefined;
350
+ async?: boolean | undefined;
351
+ async_rewake?: boolean | undefined;
352
+ if?: string | undefined;
353
+ status_message?: string | undefined;
354
+ once?: boolean | undefined;
355
+ allowed_env_vars?: string[] | undefined;
356
+ mcp_server?: string | undefined;
357
+ mcp_input?: Record<string, unknown> | undefined;
358
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
366
+ command?: string | undefined;
367
+ env?: Record<string, string> | undefined;
368
+ cwd?: string | undefined;
369
+ shell?: "bash" | "powershell" | undefined;
370
+ url?: string | undefined;
371
+ headers?: Record<string, string> | undefined;
91
372
  timeout?: number | undefined;
373
+ description?: string | undefined;
374
+ mcp_tool?: string | undefined;
375
+ prompt?: string | undefined;
376
+ bash?: string | undefined;
377
+ powershell?: string | undefined;
92
378
  show_output?: boolean | undefined;
93
379
  working_directory?: string | undefined;
380
+ async?: boolean | undefined;
381
+ async_rewake?: boolean | undefined;
382
+ if?: string | undefined;
383
+ status_message?: string | undefined;
384
+ once?: boolean | undefined;
385
+ allowed_env_vars?: string[] | undefined;
386
+ mcp_server?: string | undefined;
387
+ mcp_input?: Record<string, unknown> | undefined;
388
+ model?: string | 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
+ type?: "command" | "http" | "mcp_tool" | "prompt" | "agent" | undefined;
399
+ command?: string | undefined;
400
+ env?: Record<string, string> | undefined;
401
+ cwd?: string | undefined;
402
+ shell?: "bash" | "powershell" | undefined;
403
+ url?: string | undefined;
404
+ headers?: Record<string, string> | undefined;
99
405
  timeout?: number | undefined;
406
+ description?: string | undefined;
407
+ mcp_tool?: string | undefined;
408
+ prompt?: string | undefined;
409
+ bash?: string | undefined;
410
+ powershell?: string | undefined;
100
411
  show_output?: boolean | undefined;
101
412
  working_directory?: string | undefined;
413
+ async?: boolean | undefined;
414
+ async_rewake?: boolean | undefined;
415
+ if?: string | undefined;
416
+ status_message?: string | undefined;
417
+ once?: boolean | undefined;
418
+ allowed_env_vars?: string[] | undefined;
419
+ mcp_server?: string | undefined;
420
+ mcp_input?: Record<string, unknown> | undefined;
421
+ model?: string | 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,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAOY,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKY,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"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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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,YAAY;CACd,CAAC;KACD,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAIhC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC7B,MAAM,CAAC;IACL,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACxE,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACpF,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CACxF,CAAC;KACD,QAAQ,CAAC,2BAA2B,CAAC,CAAC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Q,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/skill.d.ts CHANGED
@@ -12,15 +12,15 @@ export declare const skillFrontmatterSchema: z.ZodObject<{
12
12
  'allowed-tools': z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  description?: string | undefined;
15
- compatibility?: string | undefined;
16
15
  name?: string | undefined;
16
+ compatibility?: string | undefined;
17
17
  license?: string | undefined;
18
18
  metadata?: Record<string, string> | undefined;
19
19
  'allowed-tools'?: string | undefined;
20
20
  }, {
21
21
  description?: string | undefined;
22
- compatibility?: string | undefined;
23
22
  name?: string | undefined;
23
+ compatibility?: string | undefined;
24
24
  license?: string | undefined;
25
25
  metadata?: Record<string, string> | undefined;
26
26
  'allowed-tools'?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a1st/aix-schema",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "JSON Schema and validation for aix configuration",
5
5
  "keywords": [
6
6
  "ai-config",