opencode-command-hooks 0.3.0 → 0.5.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/dist/schemas.d.ts CHANGED
@@ -13,16 +13,78 @@ declare const ToolHookWhenSchema: z.ZodObject<{
13
13
  tool: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
14
14
  callingAgent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
15
15
  slashCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
16
+ toolArgs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  phase: "before" | "after";
18
19
  tool?: string | string[] | undefined;
19
20
  callingAgent?: string | string[] | undefined;
20
21
  slashCommand?: string | string[] | undefined;
22
+ toolArgs?: Record<string, string | string[]> | undefined;
21
23
  }, {
22
24
  phase: "before" | "after";
23
25
  tool?: string | string[] | undefined;
24
26
  callingAgent?: string | string[] | undefined;
25
27
  slashCommand?: string | string[] | undefined;
28
+ toolArgs?: Record<string, string | string[]> | undefined;
29
+ }>;
30
+ /**
31
+ * Simplified hook entry schema for markdown frontmatter `hooks` format
32
+ */
33
+ export declare const SimplifiedHookEntrySchema: z.ZodEffects<z.ZodObject<{
34
+ run: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
35
+ inject: z.ZodOptional<z.ZodString>;
36
+ toast: z.ZodOptional<z.ZodObject<{
37
+ title: z.ZodOptional<z.ZodString>;
38
+ message: z.ZodString;
39
+ variant: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
40
+ duration: z.ZodOptional<z.ZodNumber>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ message: string;
43
+ title?: string | undefined;
44
+ variant?: "info" | "success" | "warning" | "error" | undefined;
45
+ duration?: number | undefined;
46
+ }, {
47
+ message: string;
48
+ title?: string | undefined;
49
+ variant?: "info" | "success" | "warning" | "error" | undefined;
50
+ duration?: number | undefined;
51
+ }>>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ run?: string | string[] | undefined;
54
+ inject?: string | undefined;
55
+ toast?: {
56
+ message: string;
57
+ title?: string | undefined;
58
+ variant?: "info" | "success" | "warning" | "error" | undefined;
59
+ duration?: number | undefined;
60
+ } | undefined;
61
+ }, {
62
+ run?: string | string[] | undefined;
63
+ inject?: string | undefined;
64
+ toast?: {
65
+ message: string;
66
+ title?: string | undefined;
67
+ variant?: "info" | "success" | "warning" | "error" | undefined;
68
+ duration?: number | undefined;
69
+ } | undefined;
70
+ }>, {
71
+ run?: string | string[] | undefined;
72
+ inject?: string | undefined;
73
+ toast?: {
74
+ message: string;
75
+ title?: string | undefined;
76
+ variant?: "info" | "success" | "warning" | "error" | undefined;
77
+ duration?: number | undefined;
78
+ } | undefined;
79
+ }, {
80
+ run?: string | string[] | undefined;
81
+ inject?: string | undefined;
82
+ toast?: {
83
+ message: string;
84
+ title?: string | undefined;
85
+ variant?: "info" | "success" | "warning" | "error" | undefined;
86
+ duration?: number | undefined;
87
+ } | undefined;
26
88
  }>;
27
89
  /**
28
90
  * Tool hook configuration
@@ -31,25 +93,28 @@ declare const ToolHookWhenSchema: z.ZodObject<{
31
93
  * by tool name, calling agent, and slash command context. Results can optionally
32
94
  * be injected into the session as messages.
33
95
  */
34
- export declare const ToolHookSchema: z.ZodObject<{
96
+ export declare const ToolHookSchema: z.ZodEffects<z.ZodObject<{
35
97
  id: z.ZodString;
36
98
  when: z.ZodObject<{
37
99
  phase: z.ZodEnum<["before", "after"]>;
38
100
  tool: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
39
101
  callingAgent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
40
102
  slashCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
103
+ toolArgs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
41
104
  }, "strip", z.ZodTypeAny, {
42
105
  phase: "before" | "after";
43
106
  tool?: string | string[] | undefined;
44
107
  callingAgent?: string | string[] | undefined;
45
108
  slashCommand?: string | string[] | undefined;
109
+ toolArgs?: Record<string, string | string[]> | undefined;
46
110
  }, {
47
111
  phase: "before" | "after";
48
112
  tool?: string | string[] | undefined;
49
113
  callingAgent?: string | string[] | undefined;
50
114
  slashCommand?: string | string[] | undefined;
115
+ toolArgs?: Record<string, string | string[]> | undefined;
51
116
  }>;
52
- run: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
117
+ run: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
53
118
  inject: z.ZodOptional<z.ZodString>;
54
119
  toast: z.ZodOptional<z.ZodObject<{
55
120
  title: z.ZodOptional<z.ZodString>;
@@ -67,6 +132,7 @@ export declare const ToolHookSchema: z.ZodObject<{
67
132
  variant?: "info" | "success" | "warning" | "error" | undefined;
68
133
  duration?: number | undefined;
69
134
  }>>;
135
+ overrideGlobal: z.ZodOptional<z.ZodBoolean>;
70
136
  }, "strip", z.ZodTypeAny, {
71
137
  id: string;
72
138
  when: {
@@ -74,8 +140,45 @@ export declare const ToolHookSchema: z.ZodObject<{
74
140
  tool?: string | string[] | undefined;
75
141
  callingAgent?: string | string[] | undefined;
76
142
  slashCommand?: string | string[] | undefined;
143
+ toolArgs?: Record<string, string | string[]> | undefined;
144
+ };
145
+ run?: string | string[] | undefined;
146
+ inject?: string | undefined;
147
+ toast?: {
148
+ message: string;
149
+ title?: string | undefined;
150
+ variant?: "info" | "success" | "warning" | "error" | undefined;
151
+ duration?: number | undefined;
152
+ } | undefined;
153
+ overrideGlobal?: boolean | undefined;
154
+ }, {
155
+ id: string;
156
+ when: {
157
+ phase: "before" | "after";
158
+ tool?: string | string[] | undefined;
159
+ callingAgent?: string | string[] | undefined;
160
+ slashCommand?: string | string[] | undefined;
161
+ toolArgs?: Record<string, string | string[]> | undefined;
162
+ };
163
+ run?: string | string[] | undefined;
164
+ inject?: string | undefined;
165
+ toast?: {
166
+ message: string;
167
+ title?: string | undefined;
168
+ variant?: "info" | "success" | "warning" | "error" | undefined;
169
+ duration?: number | undefined;
170
+ } | undefined;
171
+ overrideGlobal?: boolean | undefined;
172
+ }>, {
173
+ id: string;
174
+ when: {
175
+ phase: "before" | "after";
176
+ tool?: string | string[] | undefined;
177
+ callingAgent?: string | string[] | undefined;
178
+ slashCommand?: string | string[] | undefined;
179
+ toolArgs?: Record<string, string | string[]> | undefined;
77
180
  };
78
- run: string | string[];
181
+ run?: string | string[] | undefined;
79
182
  inject?: string | undefined;
80
183
  toast?: {
81
184
  message: string;
@@ -83,6 +186,7 @@ export declare const ToolHookSchema: z.ZodObject<{
83
186
  variant?: "info" | "success" | "warning" | "error" | undefined;
84
187
  duration?: number | undefined;
85
188
  } | undefined;
189
+ overrideGlobal?: boolean | undefined;
86
190
  }, {
87
191
  id: string;
88
192
  when: {
@@ -90,8 +194,9 @@ export declare const ToolHookSchema: z.ZodObject<{
90
194
  tool?: string | string[] | undefined;
91
195
  callingAgent?: string | string[] | undefined;
92
196
  slashCommand?: string | string[] | undefined;
197
+ toolArgs?: Record<string, string | string[]> | undefined;
93
198
  };
94
- run: string | string[];
199
+ run?: string | string[] | undefined;
95
200
  inject?: string | undefined;
96
201
  toast?: {
97
202
  message: string;
@@ -99,6 +204,7 @@ export declare const ToolHookSchema: z.ZodObject<{
99
204
  variant?: "info" | "success" | "warning" | "error" | undefined;
100
205
  duration?: number | undefined;
101
206
  } | undefined;
207
+ overrideGlobal?: boolean | undefined;
102
208
  }>;
103
209
  /**
104
210
  * Matching conditions for session hooks
@@ -120,7 +226,7 @@ declare const SessionHookWhenSchema: z.ZodObject<{
120
226
  * Can be filtered by agent name. Results can optionally be injected into
121
227
  * the session as messages.
122
228
  */
123
- export declare const SessionHookSchema: z.ZodObject<{
229
+ export declare const SessionHookSchema: z.ZodEffects<z.ZodObject<{
124
230
  id: z.ZodString;
125
231
  when: z.ZodObject<{
126
232
  event: z.ZodEnum<["session.created", "session.idle", "session.end", "session.start"]>;
@@ -132,7 +238,7 @@ export declare const SessionHookSchema: z.ZodObject<{
132
238
  event: "session.created" | "session.idle" | "session.end" | "session.start";
133
239
  agent?: string | string[] | undefined;
134
240
  }>;
135
- run: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
241
+ run: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
136
242
  inject: z.ZodOptional<z.ZodString>;
137
243
  toast: z.ZodOptional<z.ZodObject<{
138
244
  title: z.ZodOptional<z.ZodString>;
@@ -150,13 +256,14 @@ export declare const SessionHookSchema: z.ZodObject<{
150
256
  variant?: "info" | "success" | "warning" | "error" | undefined;
151
257
  duration?: number | undefined;
152
258
  }>>;
259
+ overrideGlobal: z.ZodOptional<z.ZodBoolean>;
153
260
  }, "strip", z.ZodTypeAny, {
154
261
  id: string;
155
262
  when: {
156
263
  event: "session.created" | "session.idle" | "session.end" | "session.start";
157
264
  agent?: string | string[] | undefined;
158
265
  };
159
- run: string | string[];
266
+ run?: string | string[] | undefined;
160
267
  inject?: string | undefined;
161
268
  toast?: {
162
269
  message: string;
@@ -164,13 +271,14 @@ export declare const SessionHookSchema: z.ZodObject<{
164
271
  variant?: "info" | "success" | "warning" | "error" | undefined;
165
272
  duration?: number | undefined;
166
273
  } | undefined;
274
+ overrideGlobal?: boolean | undefined;
167
275
  }, {
168
276
  id: string;
169
277
  when: {
170
278
  event: "session.created" | "session.idle" | "session.end" | "session.start";
171
279
  agent?: string | string[] | undefined;
172
280
  };
173
- run: string | string[];
281
+ run?: string | string[] | undefined;
174
282
  inject?: string | undefined;
175
283
  toast?: {
176
284
  message: string;
@@ -178,6 +286,37 @@ export declare const SessionHookSchema: z.ZodObject<{
178
286
  variant?: "info" | "success" | "warning" | "error" | undefined;
179
287
  duration?: number | undefined;
180
288
  } | undefined;
289
+ overrideGlobal?: boolean | undefined;
290
+ }>, {
291
+ id: string;
292
+ when: {
293
+ event: "session.created" | "session.idle" | "session.end" | "session.start";
294
+ agent?: string | string[] | undefined;
295
+ };
296
+ run?: string | string[] | undefined;
297
+ inject?: string | undefined;
298
+ toast?: {
299
+ message: string;
300
+ title?: string | undefined;
301
+ variant?: "info" | "success" | "warning" | "error" | undefined;
302
+ duration?: number | undefined;
303
+ } | undefined;
304
+ overrideGlobal?: boolean | undefined;
305
+ }, {
306
+ id: string;
307
+ when: {
308
+ event: "session.created" | "session.idle" | "session.end" | "session.start";
309
+ agent?: string | string[] | undefined;
310
+ };
311
+ run?: string | string[] | undefined;
312
+ inject?: string | undefined;
313
+ toast?: {
314
+ message: string;
315
+ title?: string | undefined;
316
+ variant?: "info" | "success" | "warning" | "error" | undefined;
317
+ duration?: number | undefined;
318
+ } | undefined;
319
+ overrideGlobal?: boolean | undefined;
181
320
  }>;
182
321
  /**
183
322
  * Top-level command hooks configuration
@@ -187,25 +326,29 @@ export declare const SessionHookSchema: z.ZodObject<{
187
326
  */
188
327
  export declare const ConfigSchema: z.ZodObject<{
189
328
  truncationLimit: z.ZodOptional<z.ZodNumber>;
190
- tool: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ ignoreGlobalConfig: z.ZodOptional<z.ZodBoolean>;
330
+ tool: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
191
331
  id: z.ZodString;
192
332
  when: z.ZodObject<{
193
333
  phase: z.ZodEnum<["before", "after"]>;
194
334
  tool: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
195
335
  callingAgent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
196
336
  slashCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
337
+ toolArgs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
197
338
  }, "strip", z.ZodTypeAny, {
198
339
  phase: "before" | "after";
199
340
  tool?: string | string[] | undefined;
200
341
  callingAgent?: string | string[] | undefined;
201
342
  slashCommand?: string | string[] | undefined;
343
+ toolArgs?: Record<string, string | string[]> | undefined;
202
344
  }, {
203
345
  phase: "before" | "after";
204
346
  tool?: string | string[] | undefined;
205
347
  callingAgent?: string | string[] | undefined;
206
348
  slashCommand?: string | string[] | undefined;
349
+ toolArgs?: Record<string, string | string[]> | undefined;
207
350
  }>;
208
- run: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
351
+ run: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
209
352
  inject: z.ZodOptional<z.ZodString>;
210
353
  toast: z.ZodOptional<z.ZodObject<{
211
354
  title: z.ZodOptional<z.ZodString>;
@@ -223,6 +366,7 @@ export declare const ConfigSchema: z.ZodObject<{
223
366
  variant?: "info" | "success" | "warning" | "error" | undefined;
224
367
  duration?: number | undefined;
225
368
  }>>;
369
+ overrideGlobal: z.ZodOptional<z.ZodBoolean>;
226
370
  }, "strip", z.ZodTypeAny, {
227
371
  id: string;
228
372
  when: {
@@ -230,8 +374,9 @@ export declare const ConfigSchema: z.ZodObject<{
230
374
  tool?: string | string[] | undefined;
231
375
  callingAgent?: string | string[] | undefined;
232
376
  slashCommand?: string | string[] | undefined;
377
+ toolArgs?: Record<string, string | string[]> | undefined;
233
378
  };
234
- run: string | string[];
379
+ run?: string | string[] | undefined;
235
380
  inject?: string | undefined;
236
381
  toast?: {
237
382
  message: string;
@@ -239,6 +384,7 @@ export declare const ConfigSchema: z.ZodObject<{
239
384
  variant?: "info" | "success" | "warning" | "error" | undefined;
240
385
  duration?: number | undefined;
241
386
  } | undefined;
387
+ overrideGlobal?: boolean | undefined;
242
388
  }, {
243
389
  id: string;
244
390
  when: {
@@ -246,8 +392,27 @@ export declare const ConfigSchema: z.ZodObject<{
246
392
  tool?: string | string[] | undefined;
247
393
  callingAgent?: string | string[] | undefined;
248
394
  slashCommand?: string | string[] | undefined;
395
+ toolArgs?: Record<string, string | string[]> | undefined;
396
+ };
397
+ run?: string | string[] | undefined;
398
+ inject?: string | undefined;
399
+ toast?: {
400
+ message: string;
401
+ title?: string | undefined;
402
+ variant?: "info" | "success" | "warning" | "error" | undefined;
403
+ duration?: number | undefined;
404
+ } | undefined;
405
+ overrideGlobal?: boolean | undefined;
406
+ }>, {
407
+ id: string;
408
+ when: {
409
+ phase: "before" | "after";
410
+ tool?: string | string[] | undefined;
411
+ callingAgent?: string | string[] | undefined;
412
+ slashCommand?: string | string[] | undefined;
413
+ toolArgs?: Record<string, string | string[]> | undefined;
249
414
  };
250
- run: string | string[];
415
+ run?: string | string[] | undefined;
251
416
  inject?: string | undefined;
252
417
  toast?: {
253
418
  message: string;
@@ -255,8 +420,27 @@ export declare const ConfigSchema: z.ZodObject<{
255
420
  variant?: "info" | "success" | "warning" | "error" | undefined;
256
421
  duration?: number | undefined;
257
422
  } | undefined;
423
+ overrideGlobal?: boolean | undefined;
424
+ }, {
425
+ id: string;
426
+ when: {
427
+ phase: "before" | "after";
428
+ tool?: string | string[] | undefined;
429
+ callingAgent?: string | string[] | undefined;
430
+ slashCommand?: string | string[] | undefined;
431
+ toolArgs?: Record<string, string | string[]> | undefined;
432
+ };
433
+ run?: string | string[] | undefined;
434
+ inject?: string | undefined;
435
+ toast?: {
436
+ message: string;
437
+ title?: string | undefined;
438
+ variant?: "info" | "success" | "warning" | "error" | undefined;
439
+ duration?: number | undefined;
440
+ } | undefined;
441
+ overrideGlobal?: boolean | undefined;
258
442
  }>, "many">>;
259
- session: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ session: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
260
444
  id: z.ZodString;
261
445
  when: z.ZodObject<{
262
446
  event: z.ZodEnum<["session.created", "session.idle", "session.end", "session.start"]>;
@@ -268,7 +452,7 @@ export declare const ConfigSchema: z.ZodObject<{
268
452
  event: "session.created" | "session.idle" | "session.end" | "session.start";
269
453
  agent?: string | string[] | undefined;
270
454
  }>;
271
- run: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
455
+ run: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
272
456
  inject: z.ZodOptional<z.ZodString>;
273
457
  toast: z.ZodOptional<z.ZodObject<{
274
458
  title: z.ZodOptional<z.ZodString>;
@@ -286,13 +470,44 @@ export declare const ConfigSchema: z.ZodObject<{
286
470
  variant?: "info" | "success" | "warning" | "error" | undefined;
287
471
  duration?: number | undefined;
288
472
  }>>;
473
+ overrideGlobal: z.ZodOptional<z.ZodBoolean>;
289
474
  }, "strip", z.ZodTypeAny, {
290
475
  id: string;
291
476
  when: {
292
477
  event: "session.created" | "session.idle" | "session.end" | "session.start";
293
478
  agent?: string | string[] | undefined;
294
479
  };
295
- run: string | string[];
480
+ run?: string | string[] | undefined;
481
+ inject?: string | undefined;
482
+ toast?: {
483
+ message: string;
484
+ title?: string | undefined;
485
+ variant?: "info" | "success" | "warning" | "error" | undefined;
486
+ duration?: number | undefined;
487
+ } | undefined;
488
+ overrideGlobal?: boolean | undefined;
489
+ }, {
490
+ id: string;
491
+ when: {
492
+ event: "session.created" | "session.idle" | "session.end" | "session.start";
493
+ agent?: string | string[] | undefined;
494
+ };
495
+ run?: string | string[] | undefined;
496
+ inject?: string | undefined;
497
+ toast?: {
498
+ message: string;
499
+ title?: string | undefined;
500
+ variant?: "info" | "success" | "warning" | "error" | undefined;
501
+ duration?: number | undefined;
502
+ } | undefined;
503
+ overrideGlobal?: boolean | undefined;
504
+ }>, {
505
+ id: string;
506
+ when: {
507
+ event: "session.created" | "session.idle" | "session.end" | "session.start";
508
+ agent?: string | string[] | undefined;
509
+ };
510
+ run?: string | string[] | undefined;
296
511
  inject?: string | undefined;
297
512
  toast?: {
298
513
  message: string;
@@ -300,13 +515,14 @@ export declare const ConfigSchema: z.ZodObject<{
300
515
  variant?: "info" | "success" | "warning" | "error" | undefined;
301
516
  duration?: number | undefined;
302
517
  } | undefined;
518
+ overrideGlobal?: boolean | undefined;
303
519
  }, {
304
520
  id: string;
305
521
  when: {
306
522
  event: "session.created" | "session.idle" | "session.end" | "session.start";
307
523
  agent?: string | string[] | undefined;
308
524
  };
309
- run: string | string[];
525
+ run?: string | string[] | undefined;
310
526
  inject?: string | undefined;
311
527
  toast?: {
312
528
  message: string;
@@ -314,6 +530,7 @@ export declare const ConfigSchema: z.ZodObject<{
314
530
  variant?: "info" | "success" | "warning" | "error" | undefined;
315
531
  duration?: number | undefined;
316
532
  } | undefined;
533
+ overrideGlobal?: boolean | undefined;
317
534
  }>, "many">>;
318
535
  }, "strip", z.ZodTypeAny, {
319
536
  tool?: {
@@ -323,8 +540,9 @@ export declare const ConfigSchema: z.ZodObject<{
323
540
  tool?: string | string[] | undefined;
324
541
  callingAgent?: string | string[] | undefined;
325
542
  slashCommand?: string | string[] | undefined;
543
+ toolArgs?: Record<string, string | string[]> | undefined;
326
544
  };
327
- run: string | string[];
545
+ run?: string | string[] | undefined;
328
546
  inject?: string | undefined;
329
547
  toast?: {
330
548
  message: string;
@@ -332,6 +550,7 @@ export declare const ConfigSchema: z.ZodObject<{
332
550
  variant?: "info" | "success" | "warning" | "error" | undefined;
333
551
  duration?: number | undefined;
334
552
  } | undefined;
553
+ overrideGlobal?: boolean | undefined;
335
554
  }[] | undefined;
336
555
  session?: {
337
556
  id: string;
@@ -339,7 +558,7 @@ export declare const ConfigSchema: z.ZodObject<{
339
558
  event: "session.created" | "session.idle" | "session.end" | "session.start";
340
559
  agent?: string | string[] | undefined;
341
560
  };
342
- run: string | string[];
561
+ run?: string | string[] | undefined;
343
562
  inject?: string | undefined;
344
563
  toast?: {
345
564
  message: string;
@@ -347,8 +566,10 @@ export declare const ConfigSchema: z.ZodObject<{
347
566
  variant?: "info" | "success" | "warning" | "error" | undefined;
348
567
  duration?: number | undefined;
349
568
  } | undefined;
569
+ overrideGlobal?: boolean | undefined;
350
570
  }[] | undefined;
351
571
  truncationLimit?: number | undefined;
572
+ ignoreGlobalConfig?: boolean | undefined;
352
573
  }, {
353
574
  tool?: {
354
575
  id: string;
@@ -357,8 +578,9 @@ export declare const ConfigSchema: z.ZodObject<{
357
578
  tool?: string | string[] | undefined;
358
579
  callingAgent?: string | string[] | undefined;
359
580
  slashCommand?: string | string[] | undefined;
581
+ toolArgs?: Record<string, string | string[]> | undefined;
360
582
  };
361
- run: string | string[];
583
+ run?: string | string[] | undefined;
362
584
  inject?: string | undefined;
363
585
  toast?: {
364
586
  message: string;
@@ -366,6 +588,7 @@ export declare const ConfigSchema: z.ZodObject<{
366
588
  variant?: "info" | "success" | "warning" | "error" | undefined;
367
589
  duration?: number | undefined;
368
590
  } | undefined;
591
+ overrideGlobal?: boolean | undefined;
369
592
  }[] | undefined;
370
593
  session?: {
371
594
  id: string;
@@ -373,7 +596,7 @@ export declare const ConfigSchema: z.ZodObject<{
373
596
  event: "session.created" | "session.idle" | "session.end" | "session.start";
374
597
  agent?: string | string[] | undefined;
375
598
  };
376
- run: string | string[];
599
+ run?: string | string[] | undefined;
377
600
  inject?: string | undefined;
378
601
  toast?: {
379
602
  message: string;
@@ -381,8 +604,10 @@ export declare const ConfigSchema: z.ZodObject<{
381
604
  variant?: "info" | "success" | "warning" | "error" | undefined;
382
605
  duration?: number | undefined;
383
606
  } | undefined;
607
+ overrideGlobal?: boolean | undefined;
384
608
  }[] | undefined;
385
609
  truncationLimit?: number | undefined;
610
+ ignoreGlobalConfig?: boolean | undefined;
386
611
  }>;
387
612
  /**
388
613
  * Inferred TypeScript types from Zod schemas
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources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
12
12
  * String or array of strings - used for flexible matching fields
13
13
  */
14
14
  const StringOrArray = z.union([z.string(), z.array(z.string())]);
15
+ const RunSchema = z.union([z.string(), z.array(z.string())]);
15
16
  /**
16
17
  * Phase for tool hooks: "before" or "after"
17
18
  */
@@ -32,16 +33,31 @@ const ToolHookWhenSchema = z.object({
32
33
  tool: StringOrArray.optional(),
33
34
  callingAgent: StringOrArray.optional(),
34
35
  slashCommand: StringOrArray.optional(),
36
+ toolArgs: z.record(StringOrArray).optional(),
35
37
  });
36
38
  /**
37
39
  * Toast notification configuration
38
40
  */
39
- const ToastSchema = z.object({
41
+ const ToastBodySchema = z.object({
40
42
  title: z.string().optional(),
41
43
  message: z.string(),
42
44
  variant: z.enum(["info", "success", "warning", "error"]).optional(),
43
45
  duration: z.number().optional(),
44
- }).optional();
46
+ });
47
+ const ToastSchema = ToastBodySchema.optional();
48
+ /**
49
+ * Simplified hook entry schema for markdown frontmatter `hooks` format
50
+ */
51
+ export const SimplifiedHookEntrySchema = z
52
+ .object({
53
+ run: RunSchema.optional(),
54
+ inject: z.string().optional(),
55
+ toast: ToastBodySchema.optional(),
56
+ })
57
+ .strict()
58
+ .refine((hook) => hook.run !== undefined || hook.inject !== undefined || hook.toast !== undefined, {
59
+ message: "Hook must provide at least one of run, inject, or toast",
60
+ });
45
61
  /**
46
62
  * Tool hook configuration
47
63
  *
@@ -52,9 +68,12 @@ const ToastSchema = z.object({
52
68
  export const ToolHookSchema = z.object({
53
69
  id: z.string().min(1, "Hook ID must not be empty"),
54
70
  when: ToolHookWhenSchema,
55
- run: z.union([z.string(), z.array(z.string())]),
71
+ run: RunSchema.optional(),
56
72
  inject: z.string().optional(),
57
73
  toast: ToastSchema,
74
+ overrideGlobal: z.boolean().optional(),
75
+ }).refine((hook) => hook.run !== undefined || hook.inject !== undefined || hook.toast !== undefined, {
76
+ message: "Hook must provide at least one of run, inject, or toast",
58
77
  });
59
78
  // ============================================================================
60
79
  // SESSION HOOK SCHEMAS
@@ -76,9 +95,12 @@ const SessionHookWhenSchema = z.object({
76
95
  export const SessionHookSchema = z.object({
77
96
  id: z.string().min(1, "Hook ID must not be empty"),
78
97
  when: SessionHookWhenSchema,
79
- run: z.union([z.string(), z.array(z.string())]),
98
+ run: RunSchema.optional(),
80
99
  inject: z.string().optional(),
81
100
  toast: ToastSchema,
101
+ overrideGlobal: z.boolean().optional(),
102
+ }).refine((hook) => hook.run !== undefined || hook.inject !== undefined || hook.toast !== undefined, {
103
+ message: "Hook must provide at least one of run, inject, or toast",
82
104
  });
83
105
  // ============================================================================
84
106
  // CONFIGURATION SCHEMAS
@@ -91,6 +113,7 @@ export const SessionHookSchema = z.object({
91
113
  */
92
114
  export const ConfigSchema = z.object({
93
115
  truncationLimit: z.number().int().positive().optional(),
116
+ ignoreGlobalConfig: z.boolean().optional(),
94
117
  tool: z.array(ToolHookSchema).optional(),
95
118
  session: z.array(SessionHookSchema).optional(),
96
119
  });
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAEhD;;;GAGG;AACH,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC;AAEvG,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;GA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