@sweny-ai/core 0.1.180 → 0.1.182

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/schema.d.ts CHANGED
@@ -18,15 +18,7 @@ export declare const configFieldZ: z.ZodObject<{
18
18
  description: z.ZodString;
19
19
  required: z.ZodOptional<z.ZodBoolean>;
20
20
  env: z.ZodOptional<z.ZodString>;
21
- }, "strict", z.ZodTypeAny, {
22
- description: string;
23
- required?: boolean | undefined;
24
- env?: string | undefined;
25
- }, {
26
- description: string;
27
- required?: boolean | undefined;
28
- env?: string | undefined;
29
- }>;
21
+ }, z.core.$strict>;
30
22
  /**
31
23
  * Zod schema for tool metadata (name, description, input_schema).
32
24
  * Note: `handler` is intentionally omitted — Zod schemas validate
@@ -38,745 +30,189 @@ export declare const toolZ: z.ZodObject<{
38
30
  name: z.ZodString;
39
31
  description: z.ZodString;
40
32
  input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
41
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
42
- }, "strict", z.ZodTypeAny, {
43
- description: string;
44
- name: string;
45
- input_schema: Record<string, unknown>;
46
- access?: "write" | "read" | undefined;
47
- }, {
48
- description: string;
49
- name: string;
50
- input_schema: Record<string, unknown>;
51
- access?: "write" | "read" | undefined;
33
+ access: z.ZodOptional<z.ZodEnum<{
34
+ write: "write";
35
+ read: "read";
36
+ }>>;
37
+ }, z.core.$strict>;
38
+ export declare const skillCategoryZ: z.ZodEnum<{
39
+ data: "data";
40
+ general: "general";
41
+ git: "git";
42
+ tasks: "tasks";
43
+ notification: "notification";
44
+ observability: "observability";
52
45
  }>;
53
- export declare const skillCategoryZ: z.ZodEnum<["general", "git", "tasks", "notification", "observability", "data"]>;
54
- export declare const mcpServerConfigZ: z.ZodEffects<z.ZodObject<{
55
- type: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
46
+ export declare const mcpServerConfigZ: z.ZodObject<{
47
+ type: z.ZodOptional<z.ZodEnum<{
48
+ stdio: "stdio";
49
+ http: "http";
50
+ }>>;
56
51
  command: z.ZodOptional<z.ZodString>;
57
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
53
  url: z.ZodOptional<z.ZodString>;
59
54
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
60
55
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
61
- }, "strict", z.ZodTypeAny, {
62
- url?: string | undefined;
63
- type?: "stdio" | "http" | undefined;
64
- headers?: Record<string, string> | undefined;
65
- args?: string[] | undefined;
66
- command?: string | undefined;
67
- env?: Record<string, string> | undefined;
68
- }, {
69
- url?: string | undefined;
70
- type?: "stdio" | "http" | undefined;
71
- headers?: Record<string, string> | undefined;
72
- args?: string[] | undefined;
73
- command?: string | undefined;
74
- env?: Record<string, string> | undefined;
75
- }>, {
76
- url?: string | undefined;
77
- type?: "stdio" | "http" | undefined;
78
- headers?: Record<string, string> | undefined;
79
- args?: string[] | undefined;
80
- command?: string | undefined;
81
- env?: Record<string, string> | undefined;
82
- }, {
83
- url?: string | undefined;
84
- type?: "stdio" | "http" | undefined;
85
- headers?: Record<string, string> | undefined;
86
- args?: string[] | undefined;
87
- command?: string | undefined;
88
- env?: Record<string, string> | undefined;
89
- }>;
90
- export declare const skillDefinitionZ: z.ZodEffects<z.ZodObject<{
56
+ }, z.core.$strict>;
57
+ export declare const skillDefinitionZ: z.ZodObject<{
91
58
  name: z.ZodOptional<z.ZodString>;
92
59
  description: z.ZodOptional<z.ZodString>;
93
60
  instruction: z.ZodOptional<z.ZodString>;
94
- mcp: z.ZodOptional<z.ZodEffects<z.ZodObject<{
95
- type: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
61
+ mcp: z.ZodOptional<z.ZodObject<{
62
+ type: z.ZodOptional<z.ZodEnum<{
63
+ stdio: "stdio";
64
+ http: "http";
65
+ }>>;
96
66
  command: z.ZodOptional<z.ZodString>;
97
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
68
  url: z.ZodOptional<z.ZodString>;
99
69
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
100
70
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
- }, "strict", z.ZodTypeAny, {
102
- url?: string | undefined;
103
- type?: "stdio" | "http" | undefined;
104
- headers?: Record<string, string> | undefined;
105
- args?: string[] | undefined;
106
- command?: string | undefined;
107
- env?: Record<string, string> | undefined;
108
- }, {
109
- url?: string | undefined;
110
- type?: "stdio" | "http" | undefined;
111
- headers?: Record<string, string> | undefined;
112
- args?: string[] | undefined;
113
- command?: string | undefined;
114
- env?: Record<string, string> | undefined;
115
- }>, {
116
- url?: string | undefined;
117
- type?: "stdio" | "http" | undefined;
118
- headers?: Record<string, string> | undefined;
119
- args?: string[] | undefined;
120
- command?: string | undefined;
121
- env?: Record<string, string> | undefined;
122
- }, {
123
- url?: string | undefined;
124
- type?: "stdio" | "http" | undefined;
125
- headers?: Record<string, string> | undefined;
126
- args?: string[] | undefined;
127
- command?: string | undefined;
128
- env?: Record<string, string> | undefined;
129
- }>>;
130
- }, "strict", z.ZodTypeAny, {
131
- description?: string | undefined;
132
- name?: string | undefined;
133
- instruction?: string | undefined;
134
- mcp?: {
135
- url?: string | undefined;
136
- type?: "stdio" | "http" | undefined;
137
- headers?: Record<string, string> | undefined;
138
- args?: string[] | undefined;
139
- command?: string | undefined;
140
- env?: Record<string, string> | undefined;
141
- } | undefined;
142
- }, {
143
- description?: string | undefined;
144
- name?: string | undefined;
145
- instruction?: string | undefined;
146
- mcp?: {
147
- url?: string | undefined;
148
- type?: "stdio" | "http" | undefined;
149
- headers?: Record<string, string> | undefined;
150
- args?: string[] | undefined;
151
- command?: string | undefined;
152
- env?: Record<string, string> | undefined;
153
- } | undefined;
154
- }>, {
155
- description?: string | undefined;
156
- name?: string | undefined;
157
- instruction?: string | undefined;
158
- mcp?: {
159
- url?: string | undefined;
160
- type?: "stdio" | "http" | undefined;
161
- headers?: Record<string, string> | undefined;
162
- args?: string[] | undefined;
163
- command?: string | undefined;
164
- env?: Record<string, string> | undefined;
165
- } | undefined;
166
- }, {
167
- description?: string | undefined;
168
- name?: string | undefined;
169
- instruction?: string | undefined;
170
- mcp?: {
171
- url?: string | undefined;
172
- type?: "stdio" | "http" | undefined;
173
- headers?: Record<string, string> | undefined;
174
- args?: string[] | undefined;
175
- command?: string | undefined;
176
- env?: Record<string, string> | undefined;
177
- } | undefined;
178
- }>;
179
- export declare const skillZ: z.ZodEffects<z.ZodObject<{
71
+ }, z.core.$strict>>;
72
+ }, z.core.$strict>;
73
+ export declare const skillZ: z.ZodObject<{
180
74
  id: z.ZodString;
181
75
  name: z.ZodString;
182
76
  description: z.ZodString;
183
- category: z.ZodEnum<["general", "git", "tasks", "notification", "observability", "data"]>;
77
+ category: z.ZodEnum<{
78
+ data: "data";
79
+ general: "general";
80
+ git: "git";
81
+ tasks: "tasks";
82
+ notification: "notification";
83
+ observability: "observability";
84
+ }>;
184
85
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
185
86
  description: z.ZodString;
186
87
  required: z.ZodOptional<z.ZodBoolean>;
187
88
  env: z.ZodOptional<z.ZodString>;
188
- }, "strict", z.ZodTypeAny, {
189
- description: string;
190
- required?: boolean | undefined;
191
- env?: string | undefined;
192
- }, {
193
- description: string;
194
- required?: boolean | undefined;
195
- env?: string | undefined;
196
- }>>>;
89
+ }, z.core.$strict>>>;
197
90
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
198
91
  name: z.ZodString;
199
92
  description: z.ZodString;
200
93
  input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
201
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
202
- }, "strict", z.ZodTypeAny, {
203
- description: string;
204
- name: string;
205
- input_schema: Record<string, unknown>;
206
- access?: "write" | "read" | undefined;
207
- }, {
208
- description: string;
209
- name: string;
210
- input_schema: Record<string, unknown>;
211
- access?: "write" | "read" | undefined;
212
- }>, "many">>;
94
+ access: z.ZodOptional<z.ZodEnum<{
95
+ write: "write";
96
+ read: "read";
97
+ }>>;
98
+ }, z.core.$strict>>>;
213
99
  instruction: z.ZodOptional<z.ZodString>;
214
- mcp: z.ZodOptional<z.ZodEffects<z.ZodObject<{
215
- type: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
100
+ mcp: z.ZodOptional<z.ZodObject<{
101
+ type: z.ZodOptional<z.ZodEnum<{
102
+ stdio: "stdio";
103
+ http: "http";
104
+ }>>;
216
105
  command: z.ZodOptional<z.ZodString>;
217
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
218
107
  url: z.ZodOptional<z.ZodString>;
219
108
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
220
109
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
- }, "strict", z.ZodTypeAny, {
222
- url?: string | undefined;
223
- type?: "stdio" | "http" | undefined;
224
- headers?: Record<string, string> | undefined;
225
- args?: string[] | undefined;
226
- command?: string | undefined;
227
- env?: Record<string, string> | undefined;
228
- }, {
229
- url?: string | undefined;
230
- type?: "stdio" | "http" | undefined;
231
- headers?: Record<string, string> | undefined;
232
- args?: string[] | undefined;
233
- command?: string | undefined;
234
- env?: Record<string, string> | undefined;
235
- }>, {
236
- url?: string | undefined;
237
- type?: "stdio" | "http" | undefined;
238
- headers?: Record<string, string> | undefined;
239
- args?: string[] | undefined;
240
- command?: string | undefined;
241
- env?: Record<string, string> | undefined;
242
- }, {
243
- url?: string | undefined;
244
- type?: "stdio" | "http" | undefined;
245
- headers?: Record<string, string> | undefined;
246
- args?: string[] | undefined;
247
- command?: string | undefined;
248
- env?: Record<string, string> | undefined;
249
- }>>;
250
- mcpAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
251
- }, "strict", z.ZodTypeAny, {
252
- description: string;
253
- name: string;
254
- config: Record<string, {
255
- description: string;
256
- required?: boolean | undefined;
257
- env?: string | undefined;
258
- }>;
259
- id: string;
260
- tools: {
261
- description: string;
262
- name: string;
263
- input_schema: Record<string, unknown>;
264
- access?: "write" | "read" | undefined;
265
- }[];
266
- category: "data" | "general" | "git" | "tasks" | "notification" | "observability";
267
- instruction?: string | undefined;
268
- mcp?: {
269
- url?: string | undefined;
270
- type?: "stdio" | "http" | undefined;
271
- headers?: Record<string, string> | undefined;
272
- args?: string[] | undefined;
273
- command?: string | undefined;
274
- env?: Record<string, string> | undefined;
275
- } | undefined;
276
- mcpAliases?: Record<string, string[]> | undefined;
277
- }, {
278
- description: string;
279
- name: string;
280
- id: string;
281
- category: "data" | "general" | "git" | "tasks" | "notification" | "observability";
282
- config?: Record<string, {
283
- description: string;
284
- required?: boolean | undefined;
285
- env?: string | undefined;
286
- }> | undefined;
287
- instruction?: string | undefined;
288
- tools?: {
289
- description: string;
290
- name: string;
291
- input_schema: Record<string, unknown>;
292
- access?: "write" | "read" | undefined;
293
- }[] | undefined;
294
- mcp?: {
295
- url?: string | undefined;
296
- type?: "stdio" | "http" | undefined;
297
- headers?: Record<string, string> | undefined;
298
- args?: string[] | undefined;
299
- command?: string | undefined;
300
- env?: Record<string, string> | undefined;
301
- } | undefined;
302
- mcpAliases?: Record<string, string[]> | undefined;
303
- }>, {
304
- description: string;
305
- name: string;
306
- config: Record<string, {
307
- description: string;
308
- required?: boolean | undefined;
309
- env?: string | undefined;
310
- }>;
311
- id: string;
312
- tools: {
313
- description: string;
314
- name: string;
315
- input_schema: Record<string, unknown>;
316
- access?: "write" | "read" | undefined;
317
- }[];
318
- category: "data" | "general" | "git" | "tasks" | "notification" | "observability";
319
- instruction?: string | undefined;
320
- mcp?: {
321
- url?: string | undefined;
322
- type?: "stdio" | "http" | undefined;
323
- headers?: Record<string, string> | undefined;
324
- args?: string[] | undefined;
325
- command?: string | undefined;
326
- env?: Record<string, string> | undefined;
327
- } | undefined;
328
- mcpAliases?: Record<string, string[]> | undefined;
329
- }, {
330
- description: string;
331
- name: string;
332
- id: string;
333
- category: "data" | "general" | "git" | "tasks" | "notification" | "observability";
334
- config?: Record<string, {
335
- description: string;
336
- required?: boolean | undefined;
337
- env?: string | undefined;
338
- }> | undefined;
339
- instruction?: string | undefined;
340
- tools?: {
341
- description: string;
342
- name: string;
343
- input_schema: Record<string, unknown>;
344
- access?: "write" | "read" | undefined;
345
- }[] | undefined;
346
- mcp?: {
347
- url?: string | undefined;
348
- type?: "stdio" | "http" | undefined;
349
- headers?: Record<string, string> | undefined;
350
- args?: string[] | undefined;
351
- command?: string | undefined;
352
- env?: Record<string, string> | undefined;
353
- } | undefined;
354
- mcpAliases?: Record<string, string[]> | undefined;
355
- }>;
110
+ }, z.core.$strict>>;
111
+ mcpAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
112
+ }, z.core.$strict>;
356
113
  /**
357
114
  * NodeSources: either an array of Sources (additive — inherits cascade)
358
115
  * or an object `{ only?: boolean, sources: Source[] }` where `only: true`
359
116
  * blocks the cascade for that field.
360
117
  */
361
- export declare const nodeSourcesZ: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
118
+ export declare const nodeSourcesZ: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
362
119
  inline: z.ZodString;
363
- }, "strict", z.ZodTypeAny, {
364
- inline: string;
365
- }, {
366
- inline: string;
367
- }>, z.ZodObject<{
120
+ }, z.core.$strict>, z.ZodObject<{
368
121
  file: z.ZodString;
369
- }, "strict", z.ZodTypeAny, {
370
- file: string;
371
- }, {
372
- file: string;
373
- }>, z.ZodObject<{
122
+ }, z.core.$strict>, z.ZodObject<{
374
123
  url: z.ZodString;
375
124
  type: z.ZodOptional<z.ZodString>;
376
- }, "strict", z.ZodTypeAny, {
377
- url: string;
378
- type?: string | undefined;
379
- }, {
380
- url: string;
381
- type?: string | undefined;
382
- }>]>, "many">, z.ZodObject<{
125
+ }, z.core.$strict>]>>, z.ZodObject<{
383
126
  only: z.ZodOptional<z.ZodBoolean>;
384
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
127
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
385
128
  inline: z.ZodString;
386
- }, "strict", z.ZodTypeAny, {
387
- inline: string;
388
- }, {
389
- inline: string;
390
- }>, z.ZodObject<{
129
+ }, z.core.$strict>, z.ZodObject<{
391
130
  file: z.ZodString;
392
- }, "strict", z.ZodTypeAny, {
393
- file: string;
394
- }, {
395
- file: string;
396
- }>, z.ZodObject<{
131
+ }, z.core.$strict>, z.ZodObject<{
397
132
  url: z.ZodString;
398
133
  type: z.ZodOptional<z.ZodString>;
399
- }, "strict", z.ZodTypeAny, {
400
- url: string;
401
- type?: string | undefined;
402
- }, {
403
- url: string;
404
- type?: string | undefined;
405
- }>]>, "many">;
406
- }, "strip", z.ZodTypeAny, {
407
- sources: (string | {
408
- inline: string;
409
- } | {
410
- file: string;
411
- } | {
412
- url: string;
413
- type?: string | undefined;
414
- })[];
415
- only?: boolean | undefined;
416
- }, {
417
- sources: (string | {
418
- inline: string;
419
- } | {
420
- file: string;
421
- } | {
422
- url: string;
423
- type?: string | undefined;
424
- })[];
425
- only?: boolean | undefined;
426
- }>]>;
427
- export declare const outputMatchZ: z.ZodEffects<z.ZodObject<{
134
+ }, z.core.$strict>]>>;
135
+ }, z.core.$strip>]>;
136
+ export declare const outputMatchZ: z.ZodObject<{
428
137
  path: z.ZodString;
429
138
  equals: z.ZodOptional<z.ZodUnknown>;
430
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
139
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
431
140
  matches: z.ZodOptional<z.ZodString>;
432
- }, "strict", z.ZodTypeAny, {
433
- path: string;
434
- in?: unknown[] | undefined;
435
- equals?: unknown;
436
- matches?: string | undefined;
437
- }, {
438
- path: string;
439
- in?: unknown[] | undefined;
440
- equals?: unknown;
441
- matches?: string | undefined;
442
- }>, {
443
- path: string;
444
- in?: unknown[] | undefined;
445
- equals?: unknown;
446
- matches?: string | undefined;
447
- }, {
448
- path: string;
449
- in?: unknown[] | undefined;
450
- equals?: unknown;
451
- matches?: string | undefined;
141
+ }, z.core.$strict>;
142
+ export declare const evaluatorKindZ: z.ZodEnum<{
143
+ function: "function";
144
+ value: "value";
145
+ judge: "judge";
452
146
  }>;
453
- export declare const evaluatorKindZ: z.ZodEnum<["value", "function", "judge"]>;
454
- export declare const evalPolicyZ: z.ZodEnum<["all_pass", "any_pass", "weighted"]>;
455
- export declare const evaluatorRuleZ: z.ZodEffects<z.ZodObject<{
456
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
457
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
459
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
460
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
147
+ export declare const evalPolicyZ: z.ZodEnum<{
148
+ all_pass: "all_pass";
149
+ any_pass: "any_pass";
150
+ weighted: "weighted";
151
+ }>;
152
+ export declare const evaluatorRuleZ: z.ZodObject<{
153
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
461
158
  path: z.ZodString;
462
159
  equals: z.ZodOptional<z.ZodUnknown>;
463
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
160
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
464
161
  matches: z.ZodOptional<z.ZodString>;
465
- }, "strict", z.ZodTypeAny, {
466
- path: string;
467
- in?: unknown[] | undefined;
468
- equals?: unknown;
469
- matches?: string | undefined;
470
- }, {
471
- path: string;
472
- in?: unknown[] | undefined;
473
- equals?: unknown;
474
- matches?: string | undefined;
475
- }>, {
476
- path: string;
477
- in?: unknown[] | undefined;
478
- equals?: unknown;
479
- matches?: string | undefined;
480
- }, {
481
- path: string;
482
- in?: unknown[] | undefined;
483
- equals?: unknown;
484
- matches?: string | undefined;
485
- }>, "many">>;
486
- }, "strict", z.ZodTypeAny, {
487
- any_tool_called?: string[] | undefined;
488
- all_tools_called?: string[] | undefined;
489
- no_tool_called?: string[] | undefined;
490
- output_required?: string[] | undefined;
491
- output_matches?: {
492
- path: string;
493
- in?: unknown[] | undefined;
494
- equals?: unknown;
495
- matches?: string | undefined;
496
- }[] | undefined;
497
- }, {
498
- any_tool_called?: string[] | undefined;
499
- all_tools_called?: string[] | undefined;
500
- no_tool_called?: string[] | undefined;
501
- output_required?: string[] | undefined;
502
- output_matches?: {
503
- path: string;
504
- in?: unknown[] | undefined;
505
- equals?: unknown;
506
- matches?: string | undefined;
507
- }[] | undefined;
508
- }>, {
509
- any_tool_called?: string[] | undefined;
510
- all_tools_called?: string[] | undefined;
511
- no_tool_called?: string[] | undefined;
512
- output_required?: string[] | undefined;
513
- output_matches?: {
514
- path: string;
515
- in?: unknown[] | undefined;
516
- equals?: unknown;
517
- matches?: string | undefined;
518
- }[] | undefined;
519
- }, {
520
- any_tool_called?: string[] | undefined;
521
- all_tools_called?: string[] | undefined;
522
- no_tool_called?: string[] | undefined;
523
- output_required?: string[] | undefined;
524
- output_matches?: {
525
- path: string;
526
- in?: unknown[] | undefined;
527
- equals?: unknown;
528
- matches?: string | undefined;
529
- }[] | undefined;
530
- }>;
162
+ }, z.core.$strict>>>;
163
+ }, z.core.$strict>;
531
164
  /**
532
165
  * A single evaluator. The `kind` field discriminates required-fields:
533
166
  * `value` and `function` need `rule`; `judge` needs `rubric`.
534
167
  *
535
168
  * Strict object: unknown keys are rejected to match the public JSON Schema.
536
169
  */
537
- export declare const evaluatorZ: z.ZodEffects<z.ZodObject<{
170
+ export declare const evaluatorZ: z.ZodObject<{
538
171
  name: z.ZodString;
539
- kind: z.ZodEnum<["value", "function", "judge"]>;
540
- rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
541
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
542
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
543
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
545
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
172
+ kind: z.ZodEnum<{
173
+ function: "function";
174
+ value: "value";
175
+ judge: "judge";
176
+ }>;
177
+ rule: z.ZodOptional<z.ZodObject<{
178
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
183
  path: z.ZodString;
547
184
  equals: z.ZodOptional<z.ZodUnknown>;
548
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
185
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
549
186
  matches: z.ZodOptional<z.ZodString>;
550
- }, "strict", z.ZodTypeAny, {
551
- path: string;
552
- in?: unknown[] | undefined;
553
- equals?: unknown;
554
- matches?: string | undefined;
555
- }, {
556
- path: string;
557
- in?: unknown[] | undefined;
558
- equals?: unknown;
559
- matches?: string | undefined;
560
- }>, {
561
- path: string;
562
- in?: unknown[] | undefined;
563
- equals?: unknown;
564
- matches?: string | undefined;
565
- }, {
566
- path: string;
567
- in?: unknown[] | undefined;
568
- equals?: unknown;
569
- matches?: string | undefined;
570
- }>, "many">>;
571
- }, "strict", z.ZodTypeAny, {
572
- any_tool_called?: string[] | undefined;
573
- all_tools_called?: string[] | undefined;
574
- no_tool_called?: string[] | undefined;
575
- output_required?: string[] | undefined;
576
- output_matches?: {
577
- path: string;
578
- in?: unknown[] | undefined;
579
- equals?: unknown;
580
- matches?: string | undefined;
581
- }[] | undefined;
582
- }, {
583
- any_tool_called?: string[] | undefined;
584
- all_tools_called?: string[] | undefined;
585
- no_tool_called?: string[] | undefined;
586
- output_required?: string[] | undefined;
587
- output_matches?: {
588
- path: string;
589
- in?: unknown[] | undefined;
590
- equals?: unknown;
591
- matches?: string | undefined;
592
- }[] | undefined;
593
- }>, {
594
- any_tool_called?: string[] | undefined;
595
- all_tools_called?: string[] | undefined;
596
- no_tool_called?: string[] | undefined;
597
- output_required?: string[] | undefined;
598
- output_matches?: {
599
- path: string;
600
- in?: unknown[] | undefined;
601
- equals?: unknown;
602
- matches?: string | undefined;
603
- }[] | undefined;
604
- }, {
605
- any_tool_called?: string[] | undefined;
606
- all_tools_called?: string[] | undefined;
607
- no_tool_called?: string[] | undefined;
608
- output_required?: string[] | undefined;
609
- output_matches?: {
610
- path: string;
611
- in?: unknown[] | undefined;
612
- equals?: unknown;
613
- matches?: string | undefined;
614
- }[] | undefined;
615
- }>>;
187
+ }, z.core.$strict>>>;
188
+ }, z.core.$strict>>;
616
189
  rubric: z.ZodOptional<z.ZodString>;
617
- pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
190
+ pass_when: z.ZodOptional<z.ZodString>;
618
191
  model: z.ZodOptional<z.ZodString>;
619
- }, "strict", z.ZodTypeAny, {
620
- name: string;
621
- kind: "function" | "value" | "judge";
622
- model?: string | undefined;
623
- rule?: {
624
- any_tool_called?: string[] | undefined;
625
- all_tools_called?: string[] | undefined;
626
- no_tool_called?: string[] | undefined;
627
- output_required?: string[] | undefined;
628
- output_matches?: {
629
- path: string;
630
- in?: unknown[] | undefined;
631
- equals?: unknown;
632
- matches?: string | undefined;
633
- }[] | undefined;
634
- } | undefined;
635
- rubric?: string | undefined;
636
- pass_when?: string | undefined;
637
- }, {
638
- name: string;
639
- kind: "function" | "value" | "judge";
640
- model?: string | undefined;
641
- rule?: {
642
- any_tool_called?: string[] | undefined;
643
- all_tools_called?: string[] | undefined;
644
- no_tool_called?: string[] | undefined;
645
- output_required?: string[] | undefined;
646
- output_matches?: {
647
- path: string;
648
- in?: unknown[] | undefined;
649
- equals?: unknown;
650
- matches?: string | undefined;
651
- }[] | undefined;
652
- } | undefined;
653
- rubric?: string | undefined;
654
- pass_when?: string | undefined;
655
- }>, {
656
- name: string;
657
- kind: "function" | "value" | "judge";
658
- model?: string | undefined;
659
- rule?: {
660
- any_tool_called?: string[] | undefined;
661
- all_tools_called?: string[] | undefined;
662
- no_tool_called?: string[] | undefined;
663
- output_required?: string[] | undefined;
664
- output_matches?: {
665
- path: string;
666
- in?: unknown[] | undefined;
667
- equals?: unknown;
668
- matches?: string | undefined;
669
- }[] | undefined;
670
- } | undefined;
671
- rubric?: string | undefined;
672
- pass_when?: string | undefined;
673
- }, {
674
- name: string;
675
- kind: "function" | "value" | "judge";
676
- model?: string | undefined;
677
- rule?: {
678
- any_tool_called?: string[] | undefined;
679
- all_tools_called?: string[] | undefined;
680
- no_tool_called?: string[] | undefined;
681
- output_required?: string[] | undefined;
682
- output_matches?: {
683
- path: string;
684
- in?: unknown[] | undefined;
685
- equals?: unknown;
686
- matches?: string | undefined;
687
- }[] | undefined;
688
- } | undefined;
689
- rubric?: string | undefined;
690
- pass_when?: string | undefined;
691
- }>;
692
- export declare const nodeRequiresZ: z.ZodEffects<z.ZodObject<{
693
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
694
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
192
+ }, z.core.$strict>;
193
+ export declare const nodeRequiresZ: z.ZodObject<{
194
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
695
196
  path: z.ZodString;
696
197
  equals: z.ZodOptional<z.ZodUnknown>;
697
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
198
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
698
199
  matches: z.ZodOptional<z.ZodString>;
699
- }, "strict", z.ZodTypeAny, {
700
- path: string;
701
- in?: unknown[] | undefined;
702
- equals?: unknown;
703
- matches?: string | undefined;
704
- }, {
705
- path: string;
706
- in?: unknown[] | undefined;
707
- equals?: unknown;
708
- matches?: string | undefined;
709
- }>, {
710
- path: string;
711
- in?: unknown[] | undefined;
712
- equals?: unknown;
713
- matches?: string | undefined;
714
- }, {
715
- path: string;
716
- in?: unknown[] | undefined;
717
- equals?: unknown;
718
- matches?: string | undefined;
719
- }>, "many">>;
720
- on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
721
- }, "strict", z.ZodTypeAny, {
722
- on_fail?: "fail" | "skip" | undefined;
723
- output_required?: string[] | undefined;
724
- output_matches?: {
725
- path: string;
726
- in?: unknown[] | undefined;
727
- equals?: unknown;
728
- matches?: string | undefined;
729
- }[] | undefined;
730
- }, {
731
- on_fail?: "fail" | "skip" | undefined;
732
- output_required?: string[] | undefined;
733
- output_matches?: {
734
- path: string;
735
- in?: unknown[] | undefined;
736
- equals?: unknown;
737
- matches?: string | undefined;
738
- }[] | undefined;
739
- }>, {
740
- on_fail?: "fail" | "skip" | undefined;
741
- output_required?: string[] | undefined;
742
- output_matches?: {
743
- path: string;
744
- in?: unknown[] | undefined;
745
- equals?: unknown;
746
- matches?: string | undefined;
747
- }[] | undefined;
748
- }, {
749
- on_fail?: "fail" | "skip" | undefined;
750
- output_required?: string[] | undefined;
751
- output_matches?: {
752
- path: string;
753
- in?: unknown[] | undefined;
754
- equals?: unknown;
755
- matches?: string | undefined;
756
- }[] | undefined;
757
- }>;
200
+ }, z.core.$strict>>>;
201
+ on_fail: z.ZodOptional<z.ZodEnum<{
202
+ fail: "fail";
203
+ skip: "skip";
204
+ }>>;
205
+ }, z.core.$strict>;
758
206
  /**
759
207
  * Per-node skill-tool filter. `allow` keeps only the listed skill tools;
760
208
  * `deny` removes the listed skill tools (applied after `allow`). At least
761
209
  * one of the two must be declared. Complements `disallowed_tools`, which
762
210
  * covers built-in agent tools only.
763
211
  */
764
- export declare const nodeToolsZ: z.ZodEffects<z.ZodObject<{
765
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
766
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
767
- }, "strict", z.ZodTypeAny, {
768
- allow?: string[] | undefined;
769
- deny?: string[] | undefined;
770
- }, {
771
- allow?: string[] | undefined;
772
- deny?: string[] | undefined;
773
- }>, {
774
- allow?: string[] | undefined;
775
- deny?: string[] | undefined;
776
- }, {
777
- allow?: string[] | undefined;
778
- deny?: string[] | undefined;
779
- }>;
212
+ export declare const nodeToolsZ: z.ZodObject<{
213
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
215
+ }, z.core.$strict>;
780
216
  /**
781
217
  * Ceiling on `retry.max`. Each retry attempt re-invokes the agent on the
782
218
  * node (full model spend), so an unbounded value here is an unbounded spend
@@ -795,85 +231,46 @@ export declare const NODE_RETRY_MAX_CEILING = 10;
795
231
  export declare const EDGE_MAX_ITERATIONS_CEILING = 100;
796
232
  export declare const nodeRetryZ: z.ZodObject<{
797
233
  max: z.ZodNumber;
798
- instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
234
+ instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
799
235
  auto: z.ZodLiteral<true>;
800
- }, "strict", z.ZodTypeAny, {
801
- auto: true;
802
- }, {
803
- auto: true;
804
- }>, z.ZodObject<{
236
+ }, z.core.$strict>, z.ZodObject<{
805
237
  reflect: z.ZodString;
806
- }, "strict", z.ZodTypeAny, {
807
- reflect: string;
808
- }, {
809
- reflect: string;
810
- }>]>>;
811
- }, "strict", z.ZodTypeAny, {
812
- max: number;
813
- instruction?: string | {
814
- auto: true;
815
- } | {
816
- reflect: string;
817
- } | undefined;
818
- }, {
819
- max: number;
820
- instruction?: string | {
821
- auto: true;
822
- } | {
823
- reflect: string;
824
- } | undefined;
825
- }>;
238
+ }, z.core.$strict>]>>;
239
+ }, z.core.$strict>;
826
240
  /**
827
241
  * Node / workflow permissions (#365): `read` | `write`, or an object with
828
242
  * `access`, `deny` (portable tool classes) and `strict`. The object form must
829
243
  * declare at least one key.
830
244
  */
831
- export declare const nodePermissionsZ: z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
832
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
833
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
245
+ export declare const nodePermissionsZ: z.ZodUnion<readonly [z.ZodEnum<{
246
+ write: "write";
247
+ read: "read";
248
+ }>, z.ZodObject<{
249
+ access: z.ZodOptional<z.ZodEnum<{
250
+ write: "write";
251
+ read: "read";
252
+ }>>;
253
+ deny: z.ZodOptional<z.ZodArray<z.ZodEnum<{
254
+ shell: "shell";
255
+ write: "write";
256
+ edit: "edit";
257
+ net: "net";
258
+ subagent: "subagent";
259
+ }>>>;
834
260
  strict: z.ZodOptional<z.ZodBoolean>;
835
- native: z.ZodOptional<z.ZodEnum<["default", "none"]>>;
836
- }, "strict", z.ZodTypeAny, {
837
- strict?: boolean | undefined;
838
- native?: "default" | "none" | undefined;
839
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
840
- access?: "write" | "read" | undefined;
841
- }, {
842
- strict?: boolean | undefined;
843
- native?: "default" | "none" | undefined;
844
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
845
- access?: "write" | "read" | undefined;
846
- }>, {
847
- strict?: boolean | undefined;
848
- native?: "default" | "none" | undefined;
849
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
850
- access?: "write" | "read" | undefined;
851
- }, {
852
- strict?: boolean | undefined;
853
- native?: "default" | "none" | undefined;
854
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
855
- access?: "write" | "read" | undefined;
856
- }>]>;
261
+ native: z.ZodOptional<z.ZodEnum<{
262
+ default: "default";
263
+ none: "none";
264
+ }>>;
265
+ }, z.core.$strict>]>;
857
266
  /**
858
267
  * Spend ceiling (#449): input + output tokens and/or reported USD. The object
859
268
  * must declare at least one of the two.
860
269
  */
861
- export declare const budgetZ: z.ZodEffects<z.ZodObject<{
270
+ export declare const budgetZ: z.ZodObject<{
862
271
  tokens: z.ZodOptional<z.ZodNumber>;
863
272
  cost_usd: z.ZodOptional<z.ZodNumber>;
864
- }, "strict", z.ZodTypeAny, {
865
- tokens?: number | undefined;
866
- cost_usd?: number | undefined;
867
- }, {
868
- tokens?: number | undefined;
869
- cost_usd?: number | undefined;
870
- }>, {
871
- tokens?: number | undefined;
872
- cost_usd?: number | undefined;
873
- }, {
874
- tokens?: number | undefined;
875
- cost_usd?: number | undefined;
876
- }>;
273
+ }, z.core.$strict>;
877
274
  /**
878
275
  * Decision model thresholds (#357) for the nodes that set `route_by:
879
276
  * decider`. Thresholds may be raised, and lowered no further than the floors.
@@ -884,2340 +281,543 @@ export declare const budgetZ: z.ZodEffects<z.ZodObject<{
884
281
  * `provider` ({@link DECIDER_PROVIDER_MOVED}).
885
282
  */
886
283
  export declare const deciderZ: z.ZodObject<{
887
- mode: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
888
- provider: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
284
+ mode: z.ZodOptional<z.ZodCustom<never, never>>;
285
+ provider: z.ZodOptional<z.ZodCustom<never, never>>;
889
286
  min_confidence: z.ZodOptional<z.ZodNumber>;
890
287
  min_margin: z.ZodOptional<z.ZodNumber>;
891
- }, "strict", z.ZodTypeAny, {
892
- min_confidence?: number | undefined;
893
- mode?: undefined;
894
- provider?: undefined;
895
- min_margin?: number | undefined;
896
- }, {
897
- min_confidence?: number | undefined;
898
- mode?: undefined;
899
- provider?: undefined;
900
- min_margin?: number | undefined;
901
- }>;
288
+ }, z.core.$strict>;
902
289
  /** One typed write intent a node may emit (#365). */
903
290
  export declare const safeOutputDeclarationZ: z.ZodObject<{
904
- type: z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>;
291
+ type: z.ZodEnum<{
292
+ label: "label";
293
+ comment: "comment";
294
+ issue: "issue";
295
+ pr: "pr";
296
+ issue_state: "issue_state";
297
+ }>;
905
298
  via: z.ZodOptional<z.ZodString>;
906
299
  max: z.ZodOptional<z.ZodNumber>;
907
300
  target: z.ZodOptional<z.ZodString>;
908
301
  title_prefix: z.ZodOptional<z.ZodString>;
909
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
302
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
910
303
  expires: z.ZodOptional<z.ZodString>;
911
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
304
+ number: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
912
305
  input: z.ZodString;
913
- }, "strict", z.ZodTypeAny, {
914
- input: string;
915
- }, {
916
- input: string;
917
- }>]>>;
918
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
919
- }, "strict", z.ZodTypeAny, {
920
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
921
- number?: string | number | {
922
- input: string;
923
- } | undefined;
924
- labels?: string[] | undefined;
925
- state?: "close" | "reopen" | undefined;
926
- via?: string | undefined;
927
- target?: string | undefined;
928
- title_prefix?: string | undefined;
929
- max?: number | undefined;
930
- expires?: string | undefined;
931
- }, {
932
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
933
- number?: string | number | {
934
- input: string;
935
- } | undefined;
936
- labels?: string[] | undefined;
937
- state?: "close" | "reopen" | undefined;
938
- via?: string | undefined;
939
- target?: string | undefined;
940
- title_prefix?: string | undefined;
941
- max?: number | undefined;
942
- expires?: string | undefined;
943
- }>;
306
+ }, z.core.$strict>]>>;
307
+ state: z.ZodOptional<z.ZodEnum<{
308
+ close: "close";
309
+ reopen: "reopen";
310
+ }>>;
311
+ }, z.core.$strict>;
944
312
  /** Workflow-level safe-output policy (#365): the ceiling and run-wide limits. */
945
313
  export declare const safeOutputsPolicyZ: z.ZodObject<{
946
- allow: z.ZodOptional<z.ZodArray<z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>, "many">>;
314
+ allow: z.ZodOptional<z.ZodArray<z.ZodEnum<{
315
+ label: "label";
316
+ comment: "comment";
317
+ issue: "issue";
318
+ pr: "pr";
319
+ issue_state: "issue_state";
320
+ }>>>;
947
321
  max: z.ZodOptional<z.ZodNumber>;
948
322
  staged: z.ZodOptional<z.ZodBoolean>;
949
- trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
950
- trusted_associations: z.ZodOptional<z.ZodArray<z.ZodEnum<["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIME_CONTRIBUTOR", "FIRST_TIMER", "NONE"]>, "many">>;
323
+ trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString>>;
324
+ trusted_associations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
325
+ OWNER: "OWNER";
326
+ MEMBER: "MEMBER";
327
+ COLLABORATOR: "COLLABORATOR";
328
+ CONTRIBUTOR: "CONTRIBUTOR";
329
+ FIRST_TIME_CONTRIBUTOR: "FIRST_TIME_CONTRIBUTOR";
330
+ FIRST_TIMER: "FIRST_TIMER";
331
+ NONE: "NONE";
332
+ }>>>;
951
333
  screen: z.ZodOptional<z.ZodBoolean>;
952
- }, "strict", z.ZodTypeAny, {
953
- staged?: boolean | undefined;
954
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
955
- max?: number | undefined;
956
- trusted_actors?: string[] | undefined;
957
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
958
- screen?: boolean | undefined;
959
- }, {
960
- staged?: boolean | undefined;
961
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
962
- max?: number | undefined;
963
- trusted_actors?: string[] | undefined;
964
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
965
- screen?: boolean | undefined;
966
- }>;
334
+ }, z.core.$strict>;
967
335
  /** An environment variable name (`agent_env` entries). */
968
336
  export declare const ENV_VAR_NAME_PATTERN: RegExp;
969
337
  export declare const nodeZ: z.ZodObject<{
970
338
  name: z.ZodString;
971
- instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
339
+ instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
972
340
  inline: z.ZodString;
973
- }, "strict", z.ZodTypeAny, {
974
- inline: string;
975
- }, {
976
- inline: string;
977
- }>, z.ZodObject<{
341
+ }, z.core.$strict>, z.ZodObject<{
978
342
  file: z.ZodString;
979
- }, "strict", z.ZodTypeAny, {
980
- file: string;
981
- }, {
982
- file: string;
983
- }>, z.ZodObject<{
343
+ }, z.core.$strict>, z.ZodObject<{
984
344
  url: z.ZodString;
985
345
  type: z.ZodOptional<z.ZodString>;
986
- }, "strict", z.ZodTypeAny, {
987
- url: string;
988
- type?: string | undefined;
989
- }, {
990
- url: string;
991
- type?: string | undefined;
992
- }>]>;
993
- skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
346
+ }, z.core.$strict>]>;
347
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
994
348
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
995
349
  max_turns: z.ZodOptional<z.ZodNumber>;
996
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
350
+ budget: z.ZodOptional<z.ZodObject<{
997
351
  tokens: z.ZodOptional<z.ZodNumber>;
998
352
  cost_usd: z.ZodOptional<z.ZodNumber>;
999
- }, "strict", z.ZodTypeAny, {
1000
- tokens?: number | undefined;
1001
- cost_usd?: number | undefined;
1002
- }, {
1003
- tokens?: number | undefined;
1004
- cost_usd?: number | undefined;
1005
- }>, {
1006
- tokens?: number | undefined;
1007
- cost_usd?: number | undefined;
1008
- }, {
1009
- tokens?: number | undefined;
1010
- cost_usd?: number | undefined;
353
+ }, z.core.$strict>>;
354
+ disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ agent_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
+ tools: z.ZodOptional<z.ZodObject<{
357
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
358
+ deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
359
+ }, z.core.$strict>>;
360
+ fail_soft: z.ZodOptional<z.ZodBoolean>;
361
+ on_fail: z.ZodOptional<z.ZodEnum<{
362
+ continue: "continue";
363
+ halt: "halt";
1011
364
  }>>;
1012
- disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1013
- agent_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1014
- tools: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1015
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1016
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
- }, "strict", z.ZodTypeAny, {
1018
- allow?: string[] | undefined;
1019
- deny?: string[] | undefined;
1020
- }, {
1021
- allow?: string[] | undefined;
1022
- deny?: string[] | undefined;
1023
- }>, {
1024
- allow?: string[] | undefined;
1025
- deny?: string[] | undefined;
1026
- }, {
1027
- allow?: string[] | undefined;
1028
- deny?: string[] | undefined;
365
+ route_by: z.ZodOptional<z.ZodEnum<{
366
+ decider: "decider";
367
+ agent: "agent";
1029
368
  }>>;
1030
- fail_soft: z.ZodOptional<z.ZodBoolean>;
1031
- on_fail: z.ZodOptional<z.ZodEnum<["halt", "continue"]>>;
1032
- route_by: z.ZodOptional<z.ZodEnum<["agent", "decider"]>>;
1033
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
1034
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
1035
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
369
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
370
+ write: "write";
371
+ read: "read";
372
+ }>, z.ZodObject<{
373
+ access: z.ZodOptional<z.ZodEnum<{
374
+ write: "write";
375
+ read: "read";
376
+ }>>;
377
+ deny: z.ZodOptional<z.ZodArray<z.ZodEnum<{
378
+ shell: "shell";
379
+ write: "write";
380
+ edit: "edit";
381
+ net: "net";
382
+ subagent: "subagent";
383
+ }>>>;
1036
384
  strict: z.ZodOptional<z.ZodBoolean>;
1037
- native: z.ZodOptional<z.ZodEnum<["default", "none"]>>;
1038
- }, "strict", z.ZodTypeAny, {
1039
- strict?: boolean | undefined;
1040
- native?: "default" | "none" | undefined;
1041
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1042
- access?: "write" | "read" | undefined;
1043
- }, {
1044
- strict?: boolean | undefined;
1045
- native?: "default" | "none" | undefined;
1046
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1047
- access?: "write" | "read" | undefined;
1048
- }>, {
1049
- strict?: boolean | undefined;
1050
- native?: "default" | "none" | undefined;
1051
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1052
- access?: "write" | "read" | undefined;
1053
- }, {
1054
- strict?: boolean | undefined;
1055
- native?: "default" | "none" | undefined;
1056
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1057
- access?: "write" | "read" | undefined;
1058
- }>]>>;
385
+ native: z.ZodOptional<z.ZodEnum<{
386
+ default: "default";
387
+ none: "none";
388
+ }>>;
389
+ }, z.core.$strict>]>>;
1059
390
  outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1060
- type: z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>;
391
+ type: z.ZodEnum<{
392
+ label: "label";
393
+ comment: "comment";
394
+ issue: "issue";
395
+ pr: "pr";
396
+ issue_state: "issue_state";
397
+ }>;
1061
398
  via: z.ZodOptional<z.ZodString>;
1062
399
  max: z.ZodOptional<z.ZodNumber>;
1063
400
  target: z.ZodOptional<z.ZodString>;
1064
401
  title_prefix: z.ZodOptional<z.ZodString>;
1065
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
402
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1066
403
  expires: z.ZodOptional<z.ZodString>;
1067
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
404
+ number: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1068
405
  input: z.ZodString;
1069
- }, "strict", z.ZodTypeAny, {
1070
- input: string;
1071
- }, {
1072
- input: string;
1073
- }>]>>;
1074
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
1075
- }, "strict", z.ZodTypeAny, {
1076
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1077
- number?: string | number | {
1078
- input: string;
1079
- } | undefined;
1080
- labels?: string[] | undefined;
1081
- state?: "close" | "reopen" | undefined;
1082
- via?: string | undefined;
1083
- target?: string | undefined;
1084
- title_prefix?: string | undefined;
1085
- max?: number | undefined;
1086
- expires?: string | undefined;
1087
- }, {
1088
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1089
- number?: string | number | {
1090
- input: string;
1091
- } | undefined;
1092
- labels?: string[] | undefined;
1093
- state?: "close" | "reopen" | undefined;
1094
- via?: string | undefined;
1095
- target?: string | undefined;
1096
- title_prefix?: string | undefined;
1097
- max?: number | undefined;
1098
- expires?: string | undefined;
1099
- }>, "many">>;
1100
- rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
406
+ }, z.core.$strict>]>>;
407
+ state: z.ZodOptional<z.ZodEnum<{
408
+ close: "close";
409
+ reopen: "reopen";
410
+ }>>;
411
+ }, z.core.$strict>>>;
412
+ rules: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1101
413
  inline: z.ZodString;
1102
- }, "strict", z.ZodTypeAny, {
1103
- inline: string;
1104
- }, {
1105
- inline: string;
1106
- }>, z.ZodObject<{
414
+ }, z.core.$strict>, z.ZodObject<{
1107
415
  file: z.ZodString;
1108
- }, "strict", z.ZodTypeAny, {
1109
- file: string;
1110
- }, {
1111
- file: string;
1112
- }>, z.ZodObject<{
416
+ }, z.core.$strict>, z.ZodObject<{
1113
417
  url: z.ZodString;
1114
418
  type: z.ZodOptional<z.ZodString>;
1115
- }, "strict", z.ZodTypeAny, {
1116
- url: string;
1117
- type?: string | undefined;
1118
- }, {
1119
- url: string;
1120
- type?: string | undefined;
1121
- }>]>, "many">, z.ZodObject<{
419
+ }, z.core.$strict>]>>, z.ZodObject<{
1122
420
  only: z.ZodOptional<z.ZodBoolean>;
1123
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
421
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1124
422
  inline: z.ZodString;
1125
- }, "strict", z.ZodTypeAny, {
1126
- inline: string;
1127
- }, {
1128
- inline: string;
1129
- }>, z.ZodObject<{
423
+ }, z.core.$strict>, z.ZodObject<{
1130
424
  file: z.ZodString;
1131
- }, "strict", z.ZodTypeAny, {
1132
- file: string;
1133
- }, {
1134
- file: string;
1135
- }>, z.ZodObject<{
425
+ }, z.core.$strict>, z.ZodObject<{
1136
426
  url: z.ZodString;
1137
427
  type: z.ZodOptional<z.ZodString>;
1138
- }, "strict", z.ZodTypeAny, {
1139
- url: string;
1140
- type?: string | undefined;
1141
- }, {
1142
- url: string;
1143
- type?: string | undefined;
1144
- }>]>, "many">;
1145
- }, "strip", z.ZodTypeAny, {
1146
- sources: (string | {
1147
- inline: string;
1148
- } | {
1149
- file: string;
1150
- } | {
1151
- url: string;
1152
- type?: string | undefined;
1153
- })[];
1154
- only?: boolean | undefined;
1155
- }, {
1156
- sources: (string | {
1157
- inline: string;
1158
- } | {
1159
- file: string;
1160
- } | {
1161
- url: string;
1162
- type?: string | undefined;
1163
- })[];
1164
- only?: boolean | undefined;
1165
- }>]>>;
1166
- context: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
428
+ }, z.core.$strict>]>>;
429
+ }, z.core.$strip>]>>;
430
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1167
431
  inline: z.ZodString;
1168
- }, "strict", z.ZodTypeAny, {
1169
- inline: string;
1170
- }, {
1171
- inline: string;
1172
- }>, z.ZodObject<{
432
+ }, z.core.$strict>, z.ZodObject<{
1173
433
  file: z.ZodString;
1174
- }, "strict", z.ZodTypeAny, {
1175
- file: string;
1176
- }, {
1177
- file: string;
1178
- }>, z.ZodObject<{
434
+ }, z.core.$strict>, z.ZodObject<{
1179
435
  url: z.ZodString;
1180
436
  type: z.ZodOptional<z.ZodString>;
1181
- }, "strict", z.ZodTypeAny, {
1182
- url: string;
1183
- type?: string | undefined;
1184
- }, {
1185
- url: string;
1186
- type?: string | undefined;
1187
- }>]>, "many">, z.ZodObject<{
437
+ }, z.core.$strict>]>>, z.ZodObject<{
1188
438
  only: z.ZodOptional<z.ZodBoolean>;
1189
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
439
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1190
440
  inline: z.ZodString;
1191
- }, "strict", z.ZodTypeAny, {
1192
- inline: string;
1193
- }, {
1194
- inline: string;
1195
- }>, z.ZodObject<{
441
+ }, z.core.$strict>, z.ZodObject<{
1196
442
  file: z.ZodString;
1197
- }, "strict", z.ZodTypeAny, {
1198
- file: string;
1199
- }, {
1200
- file: string;
1201
- }>, z.ZodObject<{
443
+ }, z.core.$strict>, z.ZodObject<{
1202
444
  url: z.ZodString;
1203
445
  type: z.ZodOptional<z.ZodString>;
1204
- }, "strict", z.ZodTypeAny, {
1205
- url: string;
1206
- type?: string | undefined;
1207
- }, {
1208
- url: string;
1209
- type?: string | undefined;
1210
- }>]>, "many">;
1211
- }, "strip", z.ZodTypeAny, {
1212
- sources: (string | {
1213
- inline: string;
1214
- } | {
1215
- file: string;
1216
- } | {
1217
- url: string;
1218
- type?: string | undefined;
1219
- })[];
1220
- only?: boolean | undefined;
1221
- }, {
1222
- sources: (string | {
1223
- inline: string;
1224
- } | {
1225
- file: string;
1226
- } | {
1227
- url: string;
1228
- type?: string | undefined;
1229
- })[];
1230
- only?: boolean | undefined;
1231
- }>]>>;
1232
- eval: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
446
+ }, z.core.$strict>]>>;
447
+ }, z.core.$strip>]>>;
448
+ eval: z.ZodOptional<z.ZodArray<z.ZodObject<{
1233
449
  name: z.ZodString;
1234
- kind: z.ZodEnum<["value", "function", "judge"]>;
1235
- rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1236
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1237
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1238
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1239
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1240
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
450
+ kind: z.ZodEnum<{
451
+ function: "function";
452
+ value: "value";
453
+ judge: "judge";
454
+ }>;
455
+ rule: z.ZodOptional<z.ZodObject<{
456
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
457
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
1241
461
  path: z.ZodString;
1242
462
  equals: z.ZodOptional<z.ZodUnknown>;
1243
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
463
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1244
464
  matches: z.ZodOptional<z.ZodString>;
1245
- }, "strict", z.ZodTypeAny, {
1246
- path: string;
1247
- in?: unknown[] | undefined;
1248
- equals?: unknown;
1249
- matches?: string | undefined;
1250
- }, {
1251
- path: string;
1252
- in?: unknown[] | undefined;
1253
- equals?: unknown;
1254
- matches?: string | undefined;
1255
- }>, {
1256
- path: string;
1257
- in?: unknown[] | undefined;
1258
- equals?: unknown;
1259
- matches?: string | undefined;
1260
- }, {
1261
- path: string;
1262
- in?: unknown[] | undefined;
1263
- equals?: unknown;
1264
- matches?: string | undefined;
1265
- }>, "many">>;
1266
- }, "strict", z.ZodTypeAny, {
1267
- any_tool_called?: string[] | undefined;
1268
- all_tools_called?: string[] | undefined;
1269
- no_tool_called?: string[] | undefined;
1270
- output_required?: string[] | undefined;
1271
- output_matches?: {
1272
- path: string;
1273
- in?: unknown[] | undefined;
1274
- equals?: unknown;
1275
- matches?: string | undefined;
1276
- }[] | undefined;
1277
- }, {
1278
- any_tool_called?: string[] | undefined;
1279
- all_tools_called?: string[] | undefined;
1280
- no_tool_called?: string[] | undefined;
1281
- output_required?: string[] | undefined;
1282
- output_matches?: {
1283
- path: string;
1284
- in?: unknown[] | undefined;
1285
- equals?: unknown;
1286
- matches?: string | undefined;
1287
- }[] | undefined;
1288
- }>, {
1289
- any_tool_called?: string[] | undefined;
1290
- all_tools_called?: string[] | undefined;
1291
- no_tool_called?: string[] | undefined;
1292
- output_required?: string[] | undefined;
1293
- output_matches?: {
1294
- path: string;
1295
- in?: unknown[] | undefined;
1296
- equals?: unknown;
1297
- matches?: string | undefined;
1298
- }[] | undefined;
1299
- }, {
1300
- any_tool_called?: string[] | undefined;
1301
- all_tools_called?: string[] | undefined;
1302
- no_tool_called?: string[] | undefined;
1303
- output_required?: string[] | undefined;
1304
- output_matches?: {
1305
- path: string;
1306
- in?: unknown[] | undefined;
1307
- equals?: unknown;
1308
- matches?: string | undefined;
1309
- }[] | undefined;
1310
- }>>;
465
+ }, z.core.$strict>>>;
466
+ }, z.core.$strict>>;
1311
467
  rubric: z.ZodOptional<z.ZodString>;
1312
- pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
468
+ pass_when: z.ZodOptional<z.ZodString>;
1313
469
  model: z.ZodOptional<z.ZodString>;
1314
- }, "strict", z.ZodTypeAny, {
1315
- name: string;
1316
- kind: "function" | "value" | "judge";
1317
- model?: string | undefined;
1318
- rule?: {
1319
- any_tool_called?: string[] | undefined;
1320
- all_tools_called?: string[] | undefined;
1321
- no_tool_called?: string[] | undefined;
1322
- output_required?: string[] | undefined;
1323
- output_matches?: {
1324
- path: string;
1325
- in?: unknown[] | undefined;
1326
- equals?: unknown;
1327
- matches?: string | undefined;
1328
- }[] | undefined;
1329
- } | undefined;
1330
- rubric?: string | undefined;
1331
- pass_when?: string | undefined;
1332
- }, {
1333
- name: string;
1334
- kind: "function" | "value" | "judge";
1335
- model?: string | undefined;
1336
- rule?: {
1337
- any_tool_called?: string[] | undefined;
1338
- all_tools_called?: string[] | undefined;
1339
- no_tool_called?: string[] | undefined;
1340
- output_required?: string[] | undefined;
1341
- output_matches?: {
1342
- path: string;
1343
- in?: unknown[] | undefined;
1344
- equals?: unknown;
1345
- matches?: string | undefined;
1346
- }[] | undefined;
1347
- } | undefined;
1348
- rubric?: string | undefined;
1349
- pass_when?: string | undefined;
1350
- }>, {
1351
- name: string;
1352
- kind: "function" | "value" | "judge";
1353
- model?: string | undefined;
1354
- rule?: {
1355
- any_tool_called?: string[] | undefined;
1356
- all_tools_called?: string[] | undefined;
1357
- no_tool_called?: string[] | undefined;
1358
- output_required?: string[] | undefined;
1359
- output_matches?: {
1360
- path: string;
1361
- in?: unknown[] | undefined;
1362
- equals?: unknown;
1363
- matches?: string | undefined;
1364
- }[] | undefined;
1365
- } | undefined;
1366
- rubric?: string | undefined;
1367
- pass_when?: string | undefined;
1368
- }, {
1369
- name: string;
1370
- kind: "function" | "value" | "judge";
1371
- model?: string | undefined;
1372
- rule?: {
1373
- any_tool_called?: string[] | undefined;
1374
- all_tools_called?: string[] | undefined;
1375
- no_tool_called?: string[] | undefined;
1376
- output_required?: string[] | undefined;
1377
- output_matches?: {
1378
- path: string;
1379
- in?: unknown[] | undefined;
1380
- equals?: unknown;
1381
- matches?: string | undefined;
1382
- }[] | undefined;
1383
- } | undefined;
1384
- rubric?: string | undefined;
1385
- pass_when?: string | undefined;
1386
- }>, "many">>;
1387
- eval_policy: z.ZodOptional<z.ZodEnum<["all_pass", "any_pass", "weighted"]>>;
470
+ }, z.core.$strict>>>;
471
+ eval_policy: z.ZodOptional<z.ZodEnum<{
472
+ all_pass: "all_pass";
473
+ any_pass: "any_pass";
474
+ weighted: "weighted";
475
+ }>>;
1388
476
  judge_model: z.ZodOptional<z.ZodString>;
1389
477
  model: z.ZodOptional<z.ZodString>;
1390
- requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1391
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
478
+ requires: z.ZodOptional<z.ZodObject<{
479
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
1393
481
  path: z.ZodString;
1394
482
  equals: z.ZodOptional<z.ZodUnknown>;
1395
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
483
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1396
484
  matches: z.ZodOptional<z.ZodString>;
1397
- }, "strict", z.ZodTypeAny, {
1398
- path: string;
1399
- in?: unknown[] | undefined;
1400
- equals?: unknown;
1401
- matches?: string | undefined;
1402
- }, {
1403
- path: string;
1404
- in?: unknown[] | undefined;
1405
- equals?: unknown;
1406
- matches?: string | undefined;
1407
- }>, {
1408
- path: string;
1409
- in?: unknown[] | undefined;
1410
- equals?: unknown;
1411
- matches?: string | undefined;
1412
- }, {
1413
- path: string;
1414
- in?: unknown[] | undefined;
1415
- equals?: unknown;
1416
- matches?: string | undefined;
1417
- }>, "many">>;
1418
- on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
1419
- }, "strict", z.ZodTypeAny, {
1420
- on_fail?: "fail" | "skip" | undefined;
1421
- output_required?: string[] | undefined;
1422
- output_matches?: {
1423
- path: string;
1424
- in?: unknown[] | undefined;
1425
- equals?: unknown;
1426
- matches?: string | undefined;
1427
- }[] | undefined;
1428
- }, {
1429
- on_fail?: "fail" | "skip" | undefined;
1430
- output_required?: string[] | undefined;
1431
- output_matches?: {
1432
- path: string;
1433
- in?: unknown[] | undefined;
1434
- equals?: unknown;
1435
- matches?: string | undefined;
1436
- }[] | undefined;
1437
- }>, {
1438
- on_fail?: "fail" | "skip" | undefined;
1439
- output_required?: string[] | undefined;
1440
- output_matches?: {
1441
- path: string;
1442
- in?: unknown[] | undefined;
1443
- equals?: unknown;
1444
- matches?: string | undefined;
1445
- }[] | undefined;
1446
- }, {
1447
- on_fail?: "fail" | "skip" | undefined;
1448
- output_required?: string[] | undefined;
1449
- output_matches?: {
1450
- path: string;
1451
- in?: unknown[] | undefined;
1452
- equals?: unknown;
1453
- matches?: string | undefined;
1454
- }[] | undefined;
1455
- }>>;
485
+ }, z.core.$strict>>>;
486
+ on_fail: z.ZodOptional<z.ZodEnum<{
487
+ fail: "fail";
488
+ skip: "skip";
489
+ }>>;
490
+ }, z.core.$strict>>;
1456
491
  retry: z.ZodOptional<z.ZodObject<{
1457
492
  max: z.ZodNumber;
1458
- instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
493
+ instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1459
494
  auto: z.ZodLiteral<true>;
1460
- }, "strict", z.ZodTypeAny, {
1461
- auto: true;
1462
- }, {
1463
- auto: true;
1464
- }>, z.ZodObject<{
495
+ }, z.core.$strict>, z.ZodObject<{
1465
496
  reflect: z.ZodString;
1466
- }, "strict", z.ZodTypeAny, {
1467
- reflect: string;
1468
- }, {
1469
- reflect: string;
1470
- }>]>>;
1471
- }, "strict", z.ZodTypeAny, {
1472
- max: number;
1473
- instruction?: string | {
1474
- auto: true;
1475
- } | {
1476
- reflect: string;
1477
- } | undefined;
1478
- }, {
1479
- max: number;
1480
- instruction?: string | {
1481
- auto: true;
1482
- } | {
1483
- reflect: string;
1484
- } | undefined;
1485
- }>>;
1486
- }, "strict", z.ZodTypeAny, {
1487
- name: string;
1488
- instruction: string | {
1489
- inline: string;
1490
- } | {
1491
- file: string;
1492
- } | {
1493
- url: string;
1494
- type?: string | undefined;
1495
- };
1496
- skills: string[];
1497
- model?: string | undefined;
1498
- permissions?: "write" | "read" | {
1499
- strict?: boolean | undefined;
1500
- native?: "default" | "none" | undefined;
1501
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1502
- access?: "write" | "read" | undefined;
1503
- } | undefined;
1504
- outputs?: {
1505
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1506
- number?: string | number | {
1507
- input: string;
1508
- } | undefined;
1509
- labels?: string[] | undefined;
1510
- state?: "close" | "reopen" | undefined;
1511
- via?: string | undefined;
1512
- target?: string | undefined;
1513
- title_prefix?: string | undefined;
1514
- max?: number | undefined;
1515
- expires?: string | undefined;
1516
- }[] | undefined;
1517
- output?: Record<string, unknown> | undefined;
1518
- max_turns?: number | undefined;
1519
- budget?: {
1520
- tokens?: number | undefined;
1521
- cost_usd?: number | undefined;
1522
- } | undefined;
1523
- rules?: (string | {
1524
- inline: string;
1525
- } | {
1526
- file: string;
1527
- } | {
1528
- url: string;
1529
- type?: string | undefined;
1530
- })[] | {
1531
- sources: (string | {
1532
- inline: string;
1533
- } | {
1534
- file: string;
1535
- } | {
1536
- url: string;
1537
- type?: string | undefined;
1538
- })[];
1539
- only?: boolean | undefined;
1540
- } | undefined;
1541
- context?: (string | {
1542
- inline: string;
1543
- } | {
1544
- file: string;
1545
- } | {
1546
- url: string;
1547
- type?: string | undefined;
1548
- })[] | {
1549
- sources: (string | {
1550
- inline: string;
1551
- } | {
1552
- file: string;
1553
- } | {
1554
- url: string;
1555
- type?: string | undefined;
1556
- })[];
1557
- only?: boolean | undefined;
1558
- } | undefined;
1559
- eval?: {
1560
- name: string;
1561
- kind: "function" | "value" | "judge";
1562
- model?: string | undefined;
1563
- rule?: {
1564
- any_tool_called?: string[] | undefined;
1565
- all_tools_called?: string[] | undefined;
1566
- no_tool_called?: string[] | undefined;
1567
- output_required?: string[] | undefined;
1568
- output_matches?: {
1569
- path: string;
1570
- in?: unknown[] | undefined;
1571
- equals?: unknown;
1572
- matches?: string | undefined;
1573
- }[] | undefined;
1574
- } | undefined;
1575
- rubric?: string | undefined;
1576
- pass_when?: string | undefined;
1577
- }[] | undefined;
1578
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1579
- judge_model?: string | undefined;
1580
- requires?: {
1581
- on_fail?: "fail" | "skip" | undefined;
1582
- output_required?: string[] | undefined;
1583
- output_matches?: {
1584
- path: string;
1585
- in?: unknown[] | undefined;
1586
- equals?: unknown;
1587
- matches?: string | undefined;
1588
- }[] | undefined;
1589
- } | undefined;
1590
- retry?: {
1591
- max: number;
1592
- instruction?: string | {
1593
- auto: true;
1594
- } | {
1595
- reflect: string;
1596
- } | undefined;
1597
- } | undefined;
1598
- disallowed_tools?: string[] | undefined;
1599
- agent_env?: string[] | undefined;
1600
- tools?: {
1601
- allow?: string[] | undefined;
1602
- deny?: string[] | undefined;
1603
- } | undefined;
1604
- fail_soft?: boolean | undefined;
1605
- on_fail?: "continue" | "halt" | undefined;
1606
- route_by?: "decider" | "agent" | undefined;
1607
- }, {
1608
- name: string;
1609
- instruction: string | {
1610
- inline: string;
1611
- } | {
1612
- file: string;
1613
- } | {
1614
- url: string;
1615
- type?: string | undefined;
1616
- };
1617
- model?: string | undefined;
1618
- permissions?: "write" | "read" | {
1619
- strict?: boolean | undefined;
1620
- native?: "default" | "none" | undefined;
1621
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1622
- access?: "write" | "read" | undefined;
1623
- } | undefined;
1624
- outputs?: {
1625
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1626
- number?: string | number | {
1627
- input: string;
1628
- } | undefined;
1629
- labels?: string[] | undefined;
1630
- state?: "close" | "reopen" | undefined;
1631
- via?: string | undefined;
1632
- target?: string | undefined;
1633
- title_prefix?: string | undefined;
1634
- max?: number | undefined;
1635
- expires?: string | undefined;
1636
- }[] | undefined;
1637
- skills?: string[] | undefined;
1638
- output?: Record<string, unknown> | undefined;
1639
- max_turns?: number | undefined;
1640
- budget?: {
1641
- tokens?: number | undefined;
1642
- cost_usd?: number | undefined;
1643
- } | undefined;
1644
- rules?: (string | {
1645
- inline: string;
1646
- } | {
1647
- file: string;
1648
- } | {
1649
- url: string;
1650
- type?: string | undefined;
1651
- })[] | {
1652
- sources: (string | {
1653
- inline: string;
1654
- } | {
1655
- file: string;
1656
- } | {
1657
- url: string;
1658
- type?: string | undefined;
1659
- })[];
1660
- only?: boolean | undefined;
1661
- } | undefined;
1662
- context?: (string | {
1663
- inline: string;
1664
- } | {
1665
- file: string;
1666
- } | {
1667
- url: string;
1668
- type?: string | undefined;
1669
- })[] | {
1670
- sources: (string | {
1671
- inline: string;
1672
- } | {
1673
- file: string;
1674
- } | {
1675
- url: string;
1676
- type?: string | undefined;
1677
- })[];
1678
- only?: boolean | undefined;
1679
- } | undefined;
1680
- eval?: {
1681
- name: string;
1682
- kind: "function" | "value" | "judge";
1683
- model?: string | undefined;
1684
- rule?: {
1685
- any_tool_called?: string[] | undefined;
1686
- all_tools_called?: string[] | undefined;
1687
- no_tool_called?: string[] | undefined;
1688
- output_required?: string[] | undefined;
1689
- output_matches?: {
1690
- path: string;
1691
- in?: unknown[] | undefined;
1692
- equals?: unknown;
1693
- matches?: string | undefined;
1694
- }[] | undefined;
1695
- } | undefined;
1696
- rubric?: string | undefined;
1697
- pass_when?: string | undefined;
1698
- }[] | undefined;
1699
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1700
- judge_model?: string | undefined;
1701
- requires?: {
1702
- on_fail?: "fail" | "skip" | undefined;
1703
- output_required?: string[] | undefined;
1704
- output_matches?: {
1705
- path: string;
1706
- in?: unknown[] | undefined;
1707
- equals?: unknown;
1708
- matches?: string | undefined;
1709
- }[] | undefined;
1710
- } | undefined;
1711
- retry?: {
1712
- max: number;
1713
- instruction?: string | {
1714
- auto: true;
1715
- } | {
1716
- reflect: string;
1717
- } | undefined;
1718
- } | undefined;
1719
- disallowed_tools?: string[] | undefined;
1720
- agent_env?: string[] | undefined;
1721
- tools?: {
1722
- allow?: string[] | undefined;
1723
- deny?: string[] | undefined;
1724
- } | undefined;
1725
- fail_soft?: boolean | undefined;
1726
- on_fail?: "continue" | "halt" | undefined;
1727
- route_by?: "decider" | "agent" | undefined;
1728
- }>;
497
+ }, z.core.$strict>]>>;
498
+ }, z.core.$strict>>;
499
+ }, z.core.$strict>;
1729
500
  export declare const edgeZ: z.ZodObject<{
1730
501
  from: z.ZodString;
1731
- to: z.ZodString;
1732
- when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1733
- expr: z.ZodString;
1734
- }, "strict", z.ZodTypeAny, {
1735
- expr: string;
1736
- }, {
1737
- expr: string;
1738
- }>]>>;
1739
- description: z.ZodOptional<z.ZodString>;
1740
- max_iterations: z.ZodOptional<z.ZodNumber>;
1741
- }, "strict", z.ZodTypeAny, {
1742
- from: string;
1743
- to: string;
1744
- description?: string | undefined;
1745
- max_iterations?: number | undefined;
1746
- when?: string | {
1747
- expr: string;
1748
- } | undefined;
1749
- }, {
1750
- from: string;
1751
- to: string;
1752
- description?: string | undefined;
1753
- max_iterations?: number | undefined;
1754
- when?: string | {
1755
- expr: string;
1756
- } | undefined;
1757
- }>;
1758
- /**
1759
- * Workflow type discriminator. Cloud uses this to route runs to a
1760
- * type-specific renderer (Caught/Calibration/Missed for `pr_review`, flake
1761
- * heatmap for `e2e_test`, source coverage delta for `monitor`, etc.).
1762
- *
1763
- * The field is optional on the workflow YAML; absence defaults to `generic`,
1764
- * which gets a baseline renderer. Marketplace templates published in v1+
1765
- * are required to declare it.
1766
- *
1767
- * Adding a new value here is a deliberate spec change: it requires a new
1768
- * cloud renderer + metric schema. Don't extend casually.
1769
- */
1770
- export declare const workflowTypeZ: z.ZodEnum<["pr_review", "e2e_test", "content_generation", "monitor", "data_sync", "generic"]>;
1771
- export type { WorkflowType };
1772
- export declare const workflowZ: z.ZodObject<{
1773
- id: z.ZodString;
1774
- name: z.ZodString;
1775
- description: z.ZodDefault<z.ZodString>;
1776
- spec_version: z.ZodOptional<z.ZodString>;
1777
- workflow_type: z.ZodOptional<z.ZodEnum<["pr_review", "e2e_test", "content_generation", "monitor", "data_sync", "generic"]>>;
1778
- nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
1779
- name: z.ZodString;
1780
- instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
1781
- inline: z.ZodString;
1782
- }, "strict", z.ZodTypeAny, {
1783
- inline: string;
1784
- }, {
1785
- inline: string;
1786
- }>, z.ZodObject<{
1787
- file: z.ZodString;
1788
- }, "strict", z.ZodTypeAny, {
1789
- file: string;
1790
- }, {
1791
- file: string;
1792
- }>, z.ZodObject<{
1793
- url: z.ZodString;
1794
- type: z.ZodOptional<z.ZodString>;
1795
- }, "strict", z.ZodTypeAny, {
1796
- url: string;
1797
- type?: string | undefined;
1798
- }, {
1799
- url: string;
1800
- type?: string | undefined;
1801
- }>]>;
1802
- skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1803
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1804
- max_turns: z.ZodOptional<z.ZodNumber>;
1805
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1806
- tokens: z.ZodOptional<z.ZodNumber>;
1807
- cost_usd: z.ZodOptional<z.ZodNumber>;
1808
- }, "strict", z.ZodTypeAny, {
1809
- tokens?: number | undefined;
1810
- cost_usd?: number | undefined;
1811
- }, {
1812
- tokens?: number | undefined;
1813
- cost_usd?: number | undefined;
1814
- }>, {
1815
- tokens?: number | undefined;
1816
- cost_usd?: number | undefined;
1817
- }, {
1818
- tokens?: number | undefined;
1819
- cost_usd?: number | undefined;
1820
- }>>;
1821
- disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1822
- agent_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1823
- tools: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1824
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1825
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1826
- }, "strict", z.ZodTypeAny, {
1827
- allow?: string[] | undefined;
1828
- deny?: string[] | undefined;
1829
- }, {
1830
- allow?: string[] | undefined;
1831
- deny?: string[] | undefined;
1832
- }>, {
1833
- allow?: string[] | undefined;
1834
- deny?: string[] | undefined;
1835
- }, {
1836
- allow?: string[] | undefined;
1837
- deny?: string[] | undefined;
1838
- }>>;
1839
- fail_soft: z.ZodOptional<z.ZodBoolean>;
1840
- on_fail: z.ZodOptional<z.ZodEnum<["halt", "continue"]>>;
1841
- route_by: z.ZodOptional<z.ZodEnum<["agent", "decider"]>>;
1842
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
1843
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
1844
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
1845
- strict: z.ZodOptional<z.ZodBoolean>;
1846
- native: z.ZodOptional<z.ZodEnum<["default", "none"]>>;
1847
- }, "strict", z.ZodTypeAny, {
1848
- strict?: boolean | undefined;
1849
- native?: "default" | "none" | undefined;
1850
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1851
- access?: "write" | "read" | undefined;
1852
- }, {
1853
- strict?: boolean | undefined;
1854
- native?: "default" | "none" | undefined;
1855
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1856
- access?: "write" | "read" | undefined;
1857
- }>, {
1858
- strict?: boolean | undefined;
1859
- native?: "default" | "none" | undefined;
1860
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1861
- access?: "write" | "read" | undefined;
1862
- }, {
1863
- strict?: boolean | undefined;
1864
- native?: "default" | "none" | undefined;
1865
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1866
- access?: "write" | "read" | undefined;
1867
- }>]>>;
1868
- outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1869
- type: z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>;
1870
- via: z.ZodOptional<z.ZodString>;
1871
- max: z.ZodOptional<z.ZodNumber>;
1872
- target: z.ZodOptional<z.ZodString>;
1873
- title_prefix: z.ZodOptional<z.ZodString>;
1874
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1875
- expires: z.ZodOptional<z.ZodString>;
1876
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
1877
- input: z.ZodString;
1878
- }, "strict", z.ZodTypeAny, {
1879
- input: string;
1880
- }, {
1881
- input: string;
1882
- }>]>>;
1883
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
1884
- }, "strict", z.ZodTypeAny, {
1885
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1886
- number?: string | number | {
1887
- input: string;
1888
- } | undefined;
1889
- labels?: string[] | undefined;
1890
- state?: "close" | "reopen" | undefined;
1891
- via?: string | undefined;
1892
- target?: string | undefined;
1893
- title_prefix?: string | undefined;
1894
- max?: number | undefined;
1895
- expires?: string | undefined;
1896
- }, {
1897
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1898
- number?: string | number | {
1899
- input: string;
1900
- } | undefined;
1901
- labels?: string[] | undefined;
1902
- state?: "close" | "reopen" | undefined;
1903
- via?: string | undefined;
1904
- target?: string | undefined;
1905
- title_prefix?: string | undefined;
1906
- max?: number | undefined;
1907
- expires?: string | undefined;
1908
- }>, "many">>;
1909
- rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1910
- inline: z.ZodString;
1911
- }, "strict", z.ZodTypeAny, {
1912
- inline: string;
1913
- }, {
1914
- inline: string;
1915
- }>, z.ZodObject<{
1916
- file: z.ZodString;
1917
- }, "strict", z.ZodTypeAny, {
1918
- file: string;
1919
- }, {
1920
- file: string;
1921
- }>, z.ZodObject<{
1922
- url: z.ZodString;
1923
- type: z.ZodOptional<z.ZodString>;
1924
- }, "strict", z.ZodTypeAny, {
1925
- url: string;
1926
- type?: string | undefined;
1927
- }, {
1928
- url: string;
1929
- type?: string | undefined;
1930
- }>]>, "many">, z.ZodObject<{
1931
- only: z.ZodOptional<z.ZodBoolean>;
1932
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1933
- inline: z.ZodString;
1934
- }, "strict", z.ZodTypeAny, {
1935
- inline: string;
1936
- }, {
1937
- inline: string;
1938
- }>, z.ZodObject<{
1939
- file: z.ZodString;
1940
- }, "strict", z.ZodTypeAny, {
1941
- file: string;
1942
- }, {
1943
- file: string;
1944
- }>, z.ZodObject<{
1945
- url: z.ZodString;
1946
- type: z.ZodOptional<z.ZodString>;
1947
- }, "strict", z.ZodTypeAny, {
1948
- url: string;
1949
- type?: string | undefined;
1950
- }, {
1951
- url: string;
1952
- type?: string | undefined;
1953
- }>]>, "many">;
1954
- }, "strip", z.ZodTypeAny, {
1955
- sources: (string | {
1956
- inline: string;
1957
- } | {
1958
- file: string;
1959
- } | {
1960
- url: string;
1961
- type?: string | undefined;
1962
- })[];
1963
- only?: boolean | undefined;
1964
- }, {
1965
- sources: (string | {
1966
- inline: string;
1967
- } | {
1968
- file: string;
1969
- } | {
1970
- url: string;
1971
- type?: string | undefined;
1972
- })[];
1973
- only?: boolean | undefined;
1974
- }>]>>;
1975
- context: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1976
- inline: z.ZodString;
1977
- }, "strict", z.ZodTypeAny, {
1978
- inline: string;
1979
- }, {
1980
- inline: string;
1981
- }>, z.ZodObject<{
1982
- file: z.ZodString;
1983
- }, "strict", z.ZodTypeAny, {
1984
- file: string;
1985
- }, {
1986
- file: string;
1987
- }>, z.ZodObject<{
1988
- url: z.ZodString;
1989
- type: z.ZodOptional<z.ZodString>;
1990
- }, "strict", z.ZodTypeAny, {
1991
- url: string;
1992
- type?: string | undefined;
1993
- }, {
1994
- url: string;
1995
- type?: string | undefined;
1996
- }>]>, "many">, z.ZodObject<{
1997
- only: z.ZodOptional<z.ZodBoolean>;
1998
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1999
- inline: z.ZodString;
2000
- }, "strict", z.ZodTypeAny, {
2001
- inline: string;
2002
- }, {
2003
- inline: string;
2004
- }>, z.ZodObject<{
2005
- file: z.ZodString;
2006
- }, "strict", z.ZodTypeAny, {
2007
- file: string;
2008
- }, {
2009
- file: string;
2010
- }>, z.ZodObject<{
2011
- url: z.ZodString;
2012
- type: z.ZodOptional<z.ZodString>;
2013
- }, "strict", z.ZodTypeAny, {
2014
- url: string;
2015
- type?: string | undefined;
2016
- }, {
2017
- url: string;
2018
- type?: string | undefined;
2019
- }>]>, "many">;
2020
- }, "strip", z.ZodTypeAny, {
2021
- sources: (string | {
2022
- inline: string;
2023
- } | {
2024
- file: string;
2025
- } | {
2026
- url: string;
2027
- type?: string | undefined;
2028
- })[];
2029
- only?: boolean | undefined;
2030
- }, {
2031
- sources: (string | {
2032
- inline: string;
2033
- } | {
2034
- file: string;
2035
- } | {
2036
- url: string;
2037
- type?: string | undefined;
2038
- })[];
2039
- only?: boolean | undefined;
2040
- }>]>>;
2041
- eval: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2042
- name: z.ZodString;
2043
- kind: z.ZodEnum<["value", "function", "judge"]>;
2044
- rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2045
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2046
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2047
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2048
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2049
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2050
- path: z.ZodString;
2051
- equals: z.ZodOptional<z.ZodUnknown>;
2052
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2053
- matches: z.ZodOptional<z.ZodString>;
2054
- }, "strict", z.ZodTypeAny, {
2055
- path: string;
2056
- in?: unknown[] | undefined;
2057
- equals?: unknown;
2058
- matches?: string | undefined;
2059
- }, {
2060
- path: string;
2061
- in?: unknown[] | undefined;
2062
- equals?: unknown;
2063
- matches?: string | undefined;
2064
- }>, {
2065
- path: string;
2066
- in?: unknown[] | undefined;
2067
- equals?: unknown;
2068
- matches?: string | undefined;
2069
- }, {
2070
- path: string;
2071
- in?: unknown[] | undefined;
2072
- equals?: unknown;
2073
- matches?: string | undefined;
2074
- }>, "many">>;
2075
- }, "strict", z.ZodTypeAny, {
2076
- any_tool_called?: string[] | undefined;
2077
- all_tools_called?: string[] | undefined;
2078
- no_tool_called?: string[] | undefined;
2079
- output_required?: string[] | undefined;
2080
- output_matches?: {
2081
- path: string;
2082
- in?: unknown[] | undefined;
2083
- equals?: unknown;
2084
- matches?: string | undefined;
2085
- }[] | undefined;
2086
- }, {
2087
- any_tool_called?: string[] | undefined;
2088
- all_tools_called?: string[] | undefined;
2089
- no_tool_called?: string[] | undefined;
2090
- output_required?: string[] | undefined;
2091
- output_matches?: {
2092
- path: string;
2093
- in?: unknown[] | undefined;
2094
- equals?: unknown;
2095
- matches?: string | undefined;
2096
- }[] | undefined;
2097
- }>, {
2098
- any_tool_called?: string[] | undefined;
2099
- all_tools_called?: string[] | undefined;
2100
- no_tool_called?: string[] | undefined;
2101
- output_required?: string[] | undefined;
2102
- output_matches?: {
2103
- path: string;
2104
- in?: unknown[] | undefined;
2105
- equals?: unknown;
2106
- matches?: string | undefined;
2107
- }[] | undefined;
2108
- }, {
2109
- any_tool_called?: string[] | undefined;
2110
- all_tools_called?: string[] | undefined;
2111
- no_tool_called?: string[] | undefined;
2112
- output_required?: string[] | undefined;
2113
- output_matches?: {
2114
- path: string;
2115
- in?: unknown[] | undefined;
2116
- equals?: unknown;
2117
- matches?: string | undefined;
2118
- }[] | undefined;
2119
- }>>;
2120
- rubric: z.ZodOptional<z.ZodString>;
2121
- pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2122
- model: z.ZodOptional<z.ZodString>;
2123
- }, "strict", z.ZodTypeAny, {
2124
- name: string;
2125
- kind: "function" | "value" | "judge";
2126
- model?: string | undefined;
2127
- rule?: {
2128
- any_tool_called?: string[] | undefined;
2129
- all_tools_called?: string[] | undefined;
2130
- no_tool_called?: string[] | undefined;
2131
- output_required?: string[] | undefined;
2132
- output_matches?: {
2133
- path: string;
2134
- in?: unknown[] | undefined;
2135
- equals?: unknown;
2136
- matches?: string | undefined;
2137
- }[] | undefined;
2138
- } | undefined;
2139
- rubric?: string | undefined;
2140
- pass_when?: string | undefined;
2141
- }, {
2142
- name: string;
2143
- kind: "function" | "value" | "judge";
2144
- model?: string | undefined;
2145
- rule?: {
2146
- any_tool_called?: string[] | undefined;
2147
- all_tools_called?: string[] | undefined;
2148
- no_tool_called?: string[] | undefined;
2149
- output_required?: string[] | undefined;
2150
- output_matches?: {
2151
- path: string;
2152
- in?: unknown[] | undefined;
2153
- equals?: unknown;
2154
- matches?: string | undefined;
2155
- }[] | undefined;
2156
- } | undefined;
2157
- rubric?: string | undefined;
2158
- pass_when?: string | undefined;
2159
- }>, {
2160
- name: string;
2161
- kind: "function" | "value" | "judge";
2162
- model?: string | undefined;
2163
- rule?: {
2164
- any_tool_called?: string[] | undefined;
2165
- all_tools_called?: string[] | undefined;
2166
- no_tool_called?: string[] | undefined;
2167
- output_required?: string[] | undefined;
2168
- output_matches?: {
2169
- path: string;
2170
- in?: unknown[] | undefined;
2171
- equals?: unknown;
2172
- matches?: string | undefined;
2173
- }[] | undefined;
2174
- } | undefined;
2175
- rubric?: string | undefined;
2176
- pass_when?: string | undefined;
2177
- }, {
2178
- name: string;
2179
- kind: "function" | "value" | "judge";
2180
- model?: string | undefined;
2181
- rule?: {
2182
- any_tool_called?: string[] | undefined;
2183
- all_tools_called?: string[] | undefined;
2184
- no_tool_called?: string[] | undefined;
2185
- output_required?: string[] | undefined;
2186
- output_matches?: {
2187
- path: string;
2188
- in?: unknown[] | undefined;
2189
- equals?: unknown;
2190
- matches?: string | undefined;
2191
- }[] | undefined;
2192
- } | undefined;
2193
- rubric?: string | undefined;
2194
- pass_when?: string | undefined;
2195
- }>, "many">>;
2196
- eval_policy: z.ZodOptional<z.ZodEnum<["all_pass", "any_pass", "weighted"]>>;
2197
- judge_model: z.ZodOptional<z.ZodString>;
2198
- model: z.ZodOptional<z.ZodString>;
2199
- requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2200
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2201
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2202
- path: z.ZodString;
2203
- equals: z.ZodOptional<z.ZodUnknown>;
2204
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2205
- matches: z.ZodOptional<z.ZodString>;
2206
- }, "strict", z.ZodTypeAny, {
2207
- path: string;
2208
- in?: unknown[] | undefined;
2209
- equals?: unknown;
2210
- matches?: string | undefined;
2211
- }, {
2212
- path: string;
2213
- in?: unknown[] | undefined;
2214
- equals?: unknown;
2215
- matches?: string | undefined;
2216
- }>, {
2217
- path: string;
2218
- in?: unknown[] | undefined;
2219
- equals?: unknown;
2220
- matches?: string | undefined;
2221
- }, {
2222
- path: string;
2223
- in?: unknown[] | undefined;
2224
- equals?: unknown;
2225
- matches?: string | undefined;
2226
- }>, "many">>;
2227
- on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
2228
- }, "strict", z.ZodTypeAny, {
2229
- on_fail?: "fail" | "skip" | undefined;
2230
- output_required?: string[] | undefined;
2231
- output_matches?: {
2232
- path: string;
2233
- in?: unknown[] | undefined;
2234
- equals?: unknown;
2235
- matches?: string | undefined;
2236
- }[] | undefined;
2237
- }, {
2238
- on_fail?: "fail" | "skip" | undefined;
2239
- output_required?: string[] | undefined;
2240
- output_matches?: {
2241
- path: string;
2242
- in?: unknown[] | undefined;
2243
- equals?: unknown;
2244
- matches?: string | undefined;
2245
- }[] | undefined;
2246
- }>, {
2247
- on_fail?: "fail" | "skip" | undefined;
2248
- output_required?: string[] | undefined;
2249
- output_matches?: {
2250
- path: string;
2251
- in?: unknown[] | undefined;
2252
- equals?: unknown;
2253
- matches?: string | undefined;
2254
- }[] | undefined;
2255
- }, {
2256
- on_fail?: "fail" | "skip" | undefined;
2257
- output_required?: string[] | undefined;
2258
- output_matches?: {
2259
- path: string;
2260
- in?: unknown[] | undefined;
2261
- equals?: unknown;
2262
- matches?: string | undefined;
2263
- }[] | undefined;
2264
- }>>;
2265
- retry: z.ZodOptional<z.ZodObject<{
2266
- max: z.ZodNumber;
2267
- instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2268
- auto: z.ZodLiteral<true>;
2269
- }, "strict", z.ZodTypeAny, {
2270
- auto: true;
2271
- }, {
2272
- auto: true;
2273
- }>, z.ZodObject<{
2274
- reflect: z.ZodString;
2275
- }, "strict", z.ZodTypeAny, {
2276
- reflect: string;
2277
- }, {
2278
- reflect: string;
2279
- }>]>>;
2280
- }, "strict", z.ZodTypeAny, {
2281
- max: number;
2282
- instruction?: string | {
2283
- auto: true;
2284
- } | {
2285
- reflect: string;
2286
- } | undefined;
2287
- }, {
2288
- max: number;
2289
- instruction?: string | {
2290
- auto: true;
2291
- } | {
2292
- reflect: string;
2293
- } | undefined;
2294
- }>>;
2295
- }, "strict", z.ZodTypeAny, {
2296
- name: string;
2297
- instruction: string | {
2298
- inline: string;
2299
- } | {
2300
- file: string;
2301
- } | {
2302
- url: string;
2303
- type?: string | undefined;
2304
- };
2305
- skills: string[];
2306
- model?: string | undefined;
2307
- permissions?: "write" | "read" | {
2308
- strict?: boolean | undefined;
2309
- native?: "default" | "none" | undefined;
2310
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2311
- access?: "write" | "read" | undefined;
2312
- } | undefined;
2313
- outputs?: {
2314
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2315
- number?: string | number | {
2316
- input: string;
2317
- } | undefined;
2318
- labels?: string[] | undefined;
2319
- state?: "close" | "reopen" | undefined;
2320
- via?: string | undefined;
2321
- target?: string | undefined;
2322
- title_prefix?: string | undefined;
2323
- max?: number | undefined;
2324
- expires?: string | undefined;
2325
- }[] | undefined;
2326
- output?: Record<string, unknown> | undefined;
2327
- max_turns?: number | undefined;
2328
- budget?: {
2329
- tokens?: number | undefined;
2330
- cost_usd?: number | undefined;
2331
- } | undefined;
2332
- rules?: (string | {
2333
- inline: string;
2334
- } | {
2335
- file: string;
2336
- } | {
2337
- url: string;
2338
- type?: string | undefined;
2339
- })[] | {
2340
- sources: (string | {
2341
- inline: string;
2342
- } | {
2343
- file: string;
2344
- } | {
2345
- url: string;
2346
- type?: string | undefined;
2347
- })[];
2348
- only?: boolean | undefined;
2349
- } | undefined;
2350
- context?: (string | {
2351
- inline: string;
2352
- } | {
2353
- file: string;
2354
- } | {
2355
- url: string;
2356
- type?: string | undefined;
2357
- })[] | {
2358
- sources: (string | {
2359
- inline: string;
2360
- } | {
2361
- file: string;
2362
- } | {
2363
- url: string;
2364
- type?: string | undefined;
2365
- })[];
2366
- only?: boolean | undefined;
2367
- } | undefined;
2368
- eval?: {
2369
- name: string;
2370
- kind: "function" | "value" | "judge";
2371
- model?: string | undefined;
2372
- rule?: {
2373
- any_tool_called?: string[] | undefined;
2374
- all_tools_called?: string[] | undefined;
2375
- no_tool_called?: string[] | undefined;
2376
- output_required?: string[] | undefined;
2377
- output_matches?: {
2378
- path: string;
2379
- in?: unknown[] | undefined;
2380
- equals?: unknown;
2381
- matches?: string | undefined;
2382
- }[] | undefined;
2383
- } | undefined;
2384
- rubric?: string | undefined;
2385
- pass_when?: string | undefined;
2386
- }[] | undefined;
2387
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2388
- judge_model?: string | undefined;
2389
- requires?: {
2390
- on_fail?: "fail" | "skip" | undefined;
2391
- output_required?: string[] | undefined;
2392
- output_matches?: {
2393
- path: string;
2394
- in?: unknown[] | undefined;
2395
- equals?: unknown;
2396
- matches?: string | undefined;
2397
- }[] | undefined;
2398
- } | undefined;
2399
- retry?: {
2400
- max: number;
2401
- instruction?: string | {
2402
- auto: true;
2403
- } | {
2404
- reflect: string;
2405
- } | undefined;
2406
- } | undefined;
2407
- disallowed_tools?: string[] | undefined;
2408
- agent_env?: string[] | undefined;
2409
- tools?: {
2410
- allow?: string[] | undefined;
2411
- deny?: string[] | undefined;
2412
- } | undefined;
2413
- fail_soft?: boolean | undefined;
2414
- on_fail?: "continue" | "halt" | undefined;
2415
- route_by?: "decider" | "agent" | undefined;
2416
- }, {
2417
- name: string;
2418
- instruction: string | {
2419
- inline: string;
2420
- } | {
2421
- file: string;
2422
- } | {
2423
- url: string;
2424
- type?: string | undefined;
2425
- };
2426
- model?: string | undefined;
2427
- permissions?: "write" | "read" | {
2428
- strict?: boolean | undefined;
2429
- native?: "default" | "none" | undefined;
2430
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2431
- access?: "write" | "read" | undefined;
2432
- } | undefined;
2433
- outputs?: {
2434
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2435
- number?: string | number | {
2436
- input: string;
2437
- } | undefined;
2438
- labels?: string[] | undefined;
2439
- state?: "close" | "reopen" | undefined;
2440
- via?: string | undefined;
2441
- target?: string | undefined;
2442
- title_prefix?: string | undefined;
2443
- max?: number | undefined;
2444
- expires?: string | undefined;
2445
- }[] | undefined;
2446
- skills?: string[] | undefined;
2447
- output?: Record<string, unknown> | undefined;
2448
- max_turns?: number | undefined;
2449
- budget?: {
2450
- tokens?: number | undefined;
2451
- cost_usd?: number | undefined;
2452
- } | undefined;
2453
- rules?: (string | {
2454
- inline: string;
2455
- } | {
2456
- file: string;
2457
- } | {
2458
- url: string;
2459
- type?: string | undefined;
2460
- })[] | {
2461
- sources: (string | {
2462
- inline: string;
2463
- } | {
2464
- file: string;
2465
- } | {
2466
- url: string;
2467
- type?: string | undefined;
2468
- })[];
2469
- only?: boolean | undefined;
2470
- } | undefined;
2471
- context?: (string | {
2472
- inline: string;
2473
- } | {
2474
- file: string;
2475
- } | {
2476
- url: string;
2477
- type?: string | undefined;
2478
- })[] | {
2479
- sources: (string | {
2480
- inline: string;
2481
- } | {
2482
- file: string;
2483
- } | {
2484
- url: string;
2485
- type?: string | undefined;
2486
- })[];
2487
- only?: boolean | undefined;
2488
- } | undefined;
2489
- eval?: {
2490
- name: string;
2491
- kind: "function" | "value" | "judge";
2492
- model?: string | undefined;
2493
- rule?: {
2494
- any_tool_called?: string[] | undefined;
2495
- all_tools_called?: string[] | undefined;
2496
- no_tool_called?: string[] | undefined;
2497
- output_required?: string[] | undefined;
2498
- output_matches?: {
2499
- path: string;
2500
- in?: unknown[] | undefined;
2501
- equals?: unknown;
2502
- matches?: string | undefined;
2503
- }[] | undefined;
2504
- } | undefined;
2505
- rubric?: string | undefined;
2506
- pass_when?: string | undefined;
2507
- }[] | undefined;
2508
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2509
- judge_model?: string | undefined;
2510
- requires?: {
2511
- on_fail?: "fail" | "skip" | undefined;
2512
- output_required?: string[] | undefined;
2513
- output_matches?: {
2514
- path: string;
2515
- in?: unknown[] | undefined;
2516
- equals?: unknown;
2517
- matches?: string | undefined;
2518
- }[] | undefined;
2519
- } | undefined;
2520
- retry?: {
2521
- max: number;
2522
- instruction?: string | {
2523
- auto: true;
2524
- } | {
2525
- reflect: string;
2526
- } | undefined;
2527
- } | undefined;
2528
- disallowed_tools?: string[] | undefined;
2529
- agent_env?: string[] | undefined;
2530
- tools?: {
2531
- allow?: string[] | undefined;
2532
- deny?: string[] | undefined;
2533
- } | undefined;
2534
- fail_soft?: boolean | undefined;
2535
- on_fail?: "continue" | "halt" | undefined;
2536
- route_by?: "decider" | "agent" | undefined;
2537
- }>>;
2538
- edges: z.ZodArray<z.ZodObject<{
2539
- from: z.ZodString;
2540
- to: z.ZodString;
2541
- when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2542
- expr: z.ZodString;
2543
- }, "strict", z.ZodTypeAny, {
2544
- expr: string;
2545
- }, {
2546
- expr: string;
2547
- }>]>>;
2548
- description: z.ZodOptional<z.ZodString>;
2549
- max_iterations: z.ZodOptional<z.ZodNumber>;
2550
- }, "strict", z.ZodTypeAny, {
2551
- from: string;
2552
- to: string;
2553
- description?: string | undefined;
2554
- max_iterations?: number | undefined;
2555
- when?: string | {
2556
- expr: string;
2557
- } | undefined;
2558
- }, {
2559
- from: string;
2560
- to: string;
2561
- description?: string | undefined;
2562
- max_iterations?: number | undefined;
2563
- when?: string | {
2564
- expr: string;
2565
- } | undefined;
2566
- }>, "many">;
2567
- entry: z.ZodString;
2568
- skills: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2569
- name: z.ZodOptional<z.ZodString>;
2570
- description: z.ZodOptional<z.ZodString>;
2571
- instruction: z.ZodOptional<z.ZodString>;
2572
- mcp: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2573
- type: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
2574
- command: z.ZodOptional<z.ZodString>;
2575
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2576
- url: z.ZodOptional<z.ZodString>;
2577
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2578
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2579
- }, "strict", z.ZodTypeAny, {
2580
- url?: string | undefined;
2581
- type?: "stdio" | "http" | undefined;
2582
- headers?: Record<string, string> | undefined;
2583
- args?: string[] | undefined;
2584
- command?: string | undefined;
2585
- env?: Record<string, string> | undefined;
2586
- }, {
2587
- url?: string | undefined;
2588
- type?: "stdio" | "http" | undefined;
2589
- headers?: Record<string, string> | undefined;
2590
- args?: string[] | undefined;
2591
- command?: string | undefined;
2592
- env?: Record<string, string> | undefined;
2593
- }>, {
2594
- url?: string | undefined;
2595
- type?: "stdio" | "http" | undefined;
2596
- headers?: Record<string, string> | undefined;
2597
- args?: string[] | undefined;
2598
- command?: string | undefined;
2599
- env?: Record<string, string> | undefined;
2600
- }, {
2601
- url?: string | undefined;
2602
- type?: "stdio" | "http" | undefined;
2603
- headers?: Record<string, string> | undefined;
2604
- args?: string[] | undefined;
2605
- command?: string | undefined;
2606
- env?: Record<string, string> | undefined;
2607
- }>>;
2608
- }, "strict", z.ZodTypeAny, {
2609
- description?: string | undefined;
2610
- name?: string | undefined;
2611
- instruction?: string | undefined;
2612
- mcp?: {
2613
- url?: string | undefined;
2614
- type?: "stdio" | "http" | undefined;
2615
- headers?: Record<string, string> | undefined;
2616
- args?: string[] | undefined;
2617
- command?: string | undefined;
2618
- env?: Record<string, string> | undefined;
2619
- } | undefined;
2620
- }, {
2621
- description?: string | undefined;
2622
- name?: string | undefined;
2623
- instruction?: string | undefined;
2624
- mcp?: {
2625
- url?: string | undefined;
2626
- type?: "stdio" | "http" | undefined;
2627
- headers?: Record<string, string> | undefined;
2628
- args?: string[] | undefined;
2629
- command?: string | undefined;
2630
- env?: Record<string, string> | undefined;
2631
- } | undefined;
2632
- }>, {
2633
- description?: string | undefined;
2634
- name?: string | undefined;
2635
- instruction?: string | undefined;
2636
- mcp?: {
2637
- url?: string | undefined;
2638
- type?: "stdio" | "http" | undefined;
2639
- headers?: Record<string, string> | undefined;
2640
- args?: string[] | undefined;
2641
- command?: string | undefined;
2642
- env?: Record<string, string> | undefined;
2643
- } | undefined;
2644
- }, {
2645
- description?: string | undefined;
2646
- name?: string | undefined;
2647
- instruction?: string | undefined;
2648
- mcp?: {
2649
- url?: string | undefined;
2650
- type?: "stdio" | "http" | undefined;
2651
- headers?: Record<string, string> | undefined;
2652
- args?: string[] | undefined;
2653
- command?: string | undefined;
2654
- env?: Record<string, string> | undefined;
2655
- } | undefined;
2656
- }>>>;
2657
- rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2658
- inline: z.ZodString;
2659
- }, "strict", z.ZodTypeAny, {
2660
- inline: string;
2661
- }, {
2662
- inline: string;
2663
- }>, z.ZodObject<{
2664
- file: z.ZodString;
2665
- }, "strict", z.ZodTypeAny, {
2666
- file: string;
2667
- }, {
2668
- file: string;
2669
- }>, z.ZodObject<{
2670
- url: z.ZodString;
2671
- type: z.ZodOptional<z.ZodString>;
2672
- }, "strict", z.ZodTypeAny, {
2673
- url: string;
2674
- type?: string | undefined;
2675
- }, {
2676
- url: string;
2677
- type?: string | undefined;
2678
- }>]>, "many">>;
2679
- context: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2680
- inline: z.ZodString;
2681
- }, "strict", z.ZodTypeAny, {
2682
- inline: string;
2683
- }, {
2684
- inline: string;
2685
- }>, z.ZodObject<{
2686
- file: z.ZodString;
2687
- }, "strict", z.ZodTypeAny, {
2688
- file: string;
2689
- }, {
2690
- file: string;
2691
- }>, z.ZodObject<{
2692
- url: z.ZodString;
2693
- type: z.ZodOptional<z.ZodString>;
2694
- }, "strict", z.ZodTypeAny, {
2695
- url: string;
2696
- type?: string | undefined;
2697
- }, {
2698
- url: string;
2699
- type?: string | undefined;
2700
- }>]>, "many">>;
2701
- judge_model: z.ZodOptional<z.ZodString>;
2702
- model: z.ZodOptional<z.ZodString>;
2703
- judge_budget: z.ZodOptional<z.ZodNumber>;
2704
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2705
- tokens: z.ZodOptional<z.ZodNumber>;
2706
- cost_usd: z.ZodOptional<z.ZodNumber>;
2707
- }, "strict", z.ZodTypeAny, {
2708
- tokens?: number | undefined;
2709
- cost_usd?: number | undefined;
2710
- }, {
2711
- tokens?: number | undefined;
2712
- cost_usd?: number | undefined;
2713
- }>, {
2714
- tokens?: number | undefined;
2715
- cost_usd?: number | undefined;
2716
- }, {
2717
- tokens?: number | undefined;
2718
- cost_usd?: number | undefined;
2719
- }>>;
2720
- decider: z.ZodOptional<z.ZodObject<{
2721
- mode: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
2722
- provider: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
2723
- min_confidence: z.ZodOptional<z.ZodNumber>;
2724
- min_margin: z.ZodOptional<z.ZodNumber>;
2725
- }, "strict", z.ZodTypeAny, {
2726
- min_confidence?: number | undefined;
2727
- mode?: undefined;
2728
- provider?: undefined;
2729
- min_margin?: number | undefined;
2730
- }, {
2731
- min_confidence?: number | undefined;
2732
- mode?: undefined;
2733
- provider?: undefined;
2734
- min_margin?: number | undefined;
2735
- }>>;
2736
- context_mode: z.ZodOptional<z.ZodEnum<["bounded", "full"]>>;
2737
- inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2738
- type: z.ZodEnum<["string", "number", "boolean", "string[]"]>;
2739
- description: z.ZodOptional<z.ZodString>;
2740
- required: z.ZodOptional<z.ZodBoolean>;
2741
- default: z.ZodOptional<z.ZodUnknown>;
2742
- enum: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2743
- }, "strict", z.ZodTypeAny, {
2744
- type: "string" | "number" | "boolean" | "string[]";
2745
- description?: string | undefined;
2746
- required?: boolean | undefined;
2747
- default?: unknown;
2748
- enum?: unknown[] | undefined;
2749
- }, {
2750
- type: "string" | "number" | "boolean" | "string[]";
2751
- description?: string | undefined;
2752
- required?: boolean | undefined;
2753
- default?: unknown;
2754
- enum?: unknown[] | undefined;
2755
- }>, {
2756
- type: "string" | "number" | "boolean" | "string[]";
2757
- description?: string | undefined;
2758
- required?: boolean | undefined;
2759
- default?: unknown;
2760
- enum?: unknown[] | undefined;
2761
- }, {
2762
- type: "string" | "number" | "boolean" | "string[]";
2763
- description?: string | undefined;
2764
- required?: boolean | undefined;
2765
- default?: unknown;
2766
- enum?: unknown[] | undefined;
2767
- }>>>;
2768
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
2769
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
2770
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
2771
- strict: z.ZodOptional<z.ZodBoolean>;
2772
- native: z.ZodOptional<z.ZodEnum<["default", "none"]>>;
2773
- }, "strict", z.ZodTypeAny, {
2774
- strict?: boolean | undefined;
2775
- native?: "default" | "none" | undefined;
2776
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2777
- access?: "write" | "read" | undefined;
2778
- }, {
2779
- strict?: boolean | undefined;
2780
- native?: "default" | "none" | undefined;
2781
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2782
- access?: "write" | "read" | undefined;
2783
- }>, {
2784
- strict?: boolean | undefined;
2785
- native?: "default" | "none" | undefined;
2786
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2787
- access?: "write" | "read" | undefined;
2788
- }, {
2789
- strict?: boolean | undefined;
2790
- native?: "default" | "none" | undefined;
2791
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2792
- access?: "write" | "read" | undefined;
2793
- }>]>>;
2794
- safe_outputs: z.ZodOptional<z.ZodObject<{
2795
- allow: z.ZodOptional<z.ZodArray<z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>, "many">>;
2796
- max: z.ZodOptional<z.ZodNumber>;
2797
- staged: z.ZodOptional<z.ZodBoolean>;
2798
- trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2799
- trusted_associations: z.ZodOptional<z.ZodArray<z.ZodEnum<["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIME_CONTRIBUTOR", "FIRST_TIMER", "NONE"]>, "many">>;
2800
- screen: z.ZodOptional<z.ZodBoolean>;
2801
- }, "strict", z.ZodTypeAny, {
2802
- staged?: boolean | undefined;
2803
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
2804
- max?: number | undefined;
2805
- trusted_actors?: string[] | undefined;
2806
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
2807
- screen?: boolean | undefined;
2808
- }, {
2809
- staged?: boolean | undefined;
2810
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
2811
- max?: number | undefined;
2812
- trusted_actors?: string[] | undefined;
2813
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
2814
- screen?: boolean | undefined;
2815
- }>>;
2816
- }, "strip", z.ZodTypeAny, {
2817
- description: string;
2818
- name: string;
2819
- id: string;
2820
- skills: Record<string, {
2821
- description?: string | undefined;
2822
- name?: string | undefined;
2823
- instruction?: string | undefined;
2824
- mcp?: {
2825
- url?: string | undefined;
2826
- type?: "stdio" | "http" | undefined;
2827
- headers?: Record<string, string> | undefined;
2828
- args?: string[] | undefined;
2829
- command?: string | undefined;
2830
- env?: Record<string, string> | undefined;
2831
- } | undefined;
2832
- }>;
2833
- nodes: Record<string, {
2834
- name: string;
2835
- instruction: string | {
2836
- inline: string;
2837
- } | {
2838
- file: string;
2839
- } | {
2840
- url: string;
2841
- type?: string | undefined;
2842
- };
2843
- skills: string[];
2844
- model?: string | undefined;
2845
- permissions?: "write" | "read" | {
2846
- strict?: boolean | undefined;
2847
- native?: "default" | "none" | undefined;
2848
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2849
- access?: "write" | "read" | undefined;
2850
- } | undefined;
2851
- outputs?: {
2852
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2853
- number?: string | number | {
2854
- input: string;
2855
- } | undefined;
2856
- labels?: string[] | undefined;
2857
- state?: "close" | "reopen" | undefined;
2858
- via?: string | undefined;
2859
- target?: string | undefined;
2860
- title_prefix?: string | undefined;
2861
- max?: number | undefined;
2862
- expires?: string | undefined;
2863
- }[] | undefined;
2864
- output?: Record<string, unknown> | undefined;
2865
- max_turns?: number | undefined;
2866
- budget?: {
2867
- tokens?: number | undefined;
2868
- cost_usd?: number | undefined;
2869
- } | undefined;
2870
- rules?: (string | {
2871
- inline: string;
2872
- } | {
2873
- file: string;
2874
- } | {
2875
- url: string;
2876
- type?: string | undefined;
2877
- })[] | {
2878
- sources: (string | {
2879
- inline: string;
2880
- } | {
2881
- file: string;
2882
- } | {
2883
- url: string;
2884
- type?: string | undefined;
2885
- })[];
2886
- only?: boolean | undefined;
2887
- } | undefined;
2888
- context?: (string | {
2889
- inline: string;
2890
- } | {
2891
- file: string;
2892
- } | {
2893
- url: string;
2894
- type?: string | undefined;
2895
- })[] | {
2896
- sources: (string | {
2897
- inline: string;
2898
- } | {
2899
- file: string;
2900
- } | {
2901
- url: string;
2902
- type?: string | undefined;
2903
- })[];
2904
- only?: boolean | undefined;
2905
- } | undefined;
2906
- eval?: {
2907
- name: string;
2908
- kind: "function" | "value" | "judge";
2909
- model?: string | undefined;
2910
- rule?: {
2911
- any_tool_called?: string[] | undefined;
2912
- all_tools_called?: string[] | undefined;
2913
- no_tool_called?: string[] | undefined;
2914
- output_required?: string[] | undefined;
2915
- output_matches?: {
2916
- path: string;
2917
- in?: unknown[] | undefined;
2918
- equals?: unknown;
2919
- matches?: string | undefined;
2920
- }[] | undefined;
2921
- } | undefined;
2922
- rubric?: string | undefined;
2923
- pass_when?: string | undefined;
2924
- }[] | undefined;
2925
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2926
- judge_model?: string | undefined;
2927
- requires?: {
2928
- on_fail?: "fail" | "skip" | undefined;
2929
- output_required?: string[] | undefined;
2930
- output_matches?: {
2931
- path: string;
2932
- in?: unknown[] | undefined;
2933
- equals?: unknown;
2934
- matches?: string | undefined;
2935
- }[] | undefined;
2936
- } | undefined;
2937
- retry?: {
2938
- max: number;
2939
- instruction?: string | {
2940
- auto: true;
2941
- } | {
2942
- reflect: string;
2943
- } | undefined;
2944
- } | undefined;
2945
- disallowed_tools?: string[] | undefined;
2946
- agent_env?: string[] | undefined;
2947
- tools?: {
2948
- allow?: string[] | undefined;
2949
- deny?: string[] | undefined;
2950
- } | undefined;
2951
- fail_soft?: boolean | undefined;
2952
- on_fail?: "continue" | "halt" | undefined;
2953
- route_by?: "decider" | "agent" | undefined;
2954
- }>;
2955
- edges: {
2956
- from: string;
2957
- to: string;
2958
- description?: string | undefined;
2959
- max_iterations?: number | undefined;
2960
- when?: string | {
2961
- expr: string;
2962
- } | undefined;
2963
- }[];
2964
- entry: string;
2965
- model?: string | undefined;
2966
- decider?: {
2967
- min_confidence?: number | undefined;
2968
- mode?: undefined;
2969
- provider?: undefined;
2970
- min_margin?: number | undefined;
2971
- } | undefined;
2972
- permissions?: "write" | "read" | {
2973
- strict?: boolean | undefined;
2974
- native?: "default" | "none" | undefined;
2975
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2976
- access?: "write" | "read" | undefined;
2977
- } | undefined;
2978
- budget?: {
2979
- tokens?: number | undefined;
2980
- cost_usd?: number | undefined;
2981
- } | undefined;
2982
- rules?: (string | {
2983
- inline: string;
2984
- } | {
2985
- file: string;
2986
- } | {
2987
- url: string;
2988
- type?: string | undefined;
2989
- })[] | undefined;
2990
- context?: (string | {
2991
- inline: string;
2992
- } | {
2993
- file: string;
2994
- } | {
2995
- url: string;
2996
- type?: string | undefined;
2997
- })[] | undefined;
2998
- judge_model?: string | undefined;
2999
- spec_version?: string | undefined;
3000
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
3001
- judge_budget?: number | undefined;
3002
- context_mode?: "full" | "bounded" | undefined;
3003
- inputs?: Record<string, {
3004
- type: "string" | "number" | "boolean" | "string[]";
3005
- description?: string | undefined;
3006
- required?: boolean | undefined;
3007
- default?: unknown;
3008
- enum?: unknown[] | undefined;
3009
- }> | undefined;
3010
- safe_outputs?: {
3011
- staged?: boolean | undefined;
3012
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
3013
- max?: number | undefined;
3014
- trusted_actors?: string[] | undefined;
3015
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
3016
- screen?: boolean | undefined;
3017
- } | undefined;
3018
- }, {
3019
- name: string;
3020
- id: string;
3021
- nodes: Record<string, {
3022
- name: string;
3023
- instruction: string | {
3024
- inline: string;
3025
- } | {
3026
- file: string;
3027
- } | {
3028
- url: string;
3029
- type?: string | undefined;
3030
- };
3031
- model?: string | undefined;
3032
- permissions?: "write" | "read" | {
3033
- strict?: boolean | undefined;
3034
- native?: "default" | "none" | undefined;
3035
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3036
- access?: "write" | "read" | undefined;
3037
- } | undefined;
3038
- outputs?: {
3039
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
3040
- number?: string | number | {
3041
- input: string;
3042
- } | undefined;
3043
- labels?: string[] | undefined;
3044
- state?: "close" | "reopen" | undefined;
3045
- via?: string | undefined;
3046
- target?: string | undefined;
3047
- title_prefix?: string | undefined;
3048
- max?: number | undefined;
3049
- expires?: string | undefined;
3050
- }[] | undefined;
3051
- skills?: string[] | undefined;
3052
- output?: Record<string, unknown> | undefined;
3053
- max_turns?: number | undefined;
3054
- budget?: {
3055
- tokens?: number | undefined;
3056
- cost_usd?: number | undefined;
3057
- } | undefined;
3058
- rules?: (string | {
3059
- inline: string;
3060
- } | {
3061
- file: string;
3062
- } | {
3063
- url: string;
3064
- type?: string | undefined;
3065
- })[] | {
3066
- sources: (string | {
3067
- inline: string;
3068
- } | {
3069
- file: string;
3070
- } | {
3071
- url: string;
3072
- type?: string | undefined;
3073
- })[];
3074
- only?: boolean | undefined;
3075
- } | undefined;
3076
- context?: (string | {
3077
- inline: string;
3078
- } | {
3079
- file: string;
3080
- } | {
3081
- url: string;
3082
- type?: string | undefined;
3083
- })[] | {
3084
- sources: (string | {
3085
- inline: string;
3086
- } | {
3087
- file: string;
3088
- } | {
3089
- url: string;
3090
- type?: string | undefined;
3091
- })[];
3092
- only?: boolean | undefined;
3093
- } | undefined;
3094
- eval?: {
3095
- name: string;
3096
- kind: "function" | "value" | "judge";
3097
- model?: string | undefined;
3098
- rule?: {
3099
- any_tool_called?: string[] | undefined;
3100
- all_tools_called?: string[] | undefined;
3101
- no_tool_called?: string[] | undefined;
3102
- output_required?: string[] | undefined;
3103
- output_matches?: {
3104
- path: string;
3105
- in?: unknown[] | undefined;
3106
- equals?: unknown;
3107
- matches?: string | undefined;
3108
- }[] | undefined;
3109
- } | undefined;
3110
- rubric?: string | undefined;
3111
- pass_when?: string | undefined;
3112
- }[] | undefined;
3113
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
3114
- judge_model?: string | undefined;
3115
- requires?: {
3116
- on_fail?: "fail" | "skip" | undefined;
3117
- output_required?: string[] | undefined;
3118
- output_matches?: {
3119
- path: string;
3120
- in?: unknown[] | undefined;
3121
- equals?: unknown;
3122
- matches?: string | undefined;
3123
- }[] | undefined;
3124
- } | undefined;
3125
- retry?: {
3126
- max: number;
3127
- instruction?: string | {
3128
- auto: true;
3129
- } | {
3130
- reflect: string;
3131
- } | undefined;
3132
- } | undefined;
3133
- disallowed_tools?: string[] | undefined;
3134
- agent_env?: string[] | undefined;
3135
- tools?: {
3136
- allow?: string[] | undefined;
3137
- deny?: string[] | undefined;
3138
- } | undefined;
3139
- fail_soft?: boolean | undefined;
3140
- on_fail?: "continue" | "halt" | undefined;
3141
- route_by?: "decider" | "agent" | undefined;
3142
- }>;
3143
- edges: {
3144
- from: string;
3145
- to: string;
3146
- description?: string | undefined;
3147
- max_iterations?: number | undefined;
3148
- when?: string | {
3149
- expr: string;
3150
- } | undefined;
3151
- }[];
3152
- entry: string;
3153
- description?: string | undefined;
3154
- model?: string | undefined;
3155
- decider?: {
3156
- min_confidence?: number | undefined;
3157
- mode?: undefined;
3158
- provider?: undefined;
3159
- min_margin?: number | undefined;
3160
- } | undefined;
3161
- permissions?: "write" | "read" | {
3162
- strict?: boolean | undefined;
3163
- native?: "default" | "none" | undefined;
3164
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3165
- access?: "write" | "read" | undefined;
3166
- } | undefined;
3167
- skills?: Record<string, {
3168
- description?: string | undefined;
3169
- name?: string | undefined;
3170
- instruction?: string | undefined;
3171
- mcp?: {
3172
- url?: string | undefined;
3173
- type?: "stdio" | "http" | undefined;
3174
- headers?: Record<string, string> | undefined;
3175
- args?: string[] | undefined;
3176
- command?: string | undefined;
3177
- env?: Record<string, string> | undefined;
3178
- } | undefined;
3179
- }> | undefined;
3180
- budget?: {
3181
- tokens?: number | undefined;
3182
- cost_usd?: number | undefined;
3183
- } | undefined;
3184
- rules?: (string | {
3185
- inline: string;
3186
- } | {
3187
- file: string;
3188
- } | {
3189
- url: string;
3190
- type?: string | undefined;
3191
- })[] | undefined;
3192
- context?: (string | {
3193
- inline: string;
3194
- } | {
3195
- file: string;
3196
- } | {
3197
- url: string;
3198
- type?: string | undefined;
3199
- })[] | undefined;
3200
- judge_model?: string | undefined;
3201
- spec_version?: string | undefined;
3202
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
3203
- judge_budget?: number | undefined;
3204
- context_mode?: "full" | "bounded" | undefined;
3205
- inputs?: Record<string, {
3206
- type: "string" | "number" | "boolean" | "string[]";
3207
- description?: string | undefined;
3208
- required?: boolean | undefined;
3209
- default?: unknown;
3210
- enum?: unknown[] | undefined;
3211
- }> | undefined;
3212
- safe_outputs?: {
3213
- staged?: boolean | undefined;
3214
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
3215
- max?: number | undefined;
3216
- trusted_actors?: string[] | undefined;
3217
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
3218
- screen?: boolean | undefined;
3219
- } | undefined;
502
+ to: z.ZodString;
503
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
504
+ expr: z.ZodString;
505
+ }, z.core.$strict>]>>;
506
+ description: z.ZodOptional<z.ZodString>;
507
+ max_iterations: z.ZodOptional<z.ZodNumber>;
508
+ }, z.core.$strict>;
509
+ /**
510
+ * Workflow type discriminator. Cloud uses this to route runs to a
511
+ * type-specific renderer (Caught/Calibration/Missed for `pr_review`, flake
512
+ * heatmap for `e2e_test`, source coverage delta for `monitor`, etc.).
513
+ *
514
+ * The field is optional on the workflow YAML; absence defaults to `generic`,
515
+ * which gets a baseline renderer. Marketplace templates published in v1+
516
+ * are required to declare it.
517
+ *
518
+ * Adding a new value here is a deliberate spec change: it requires a new
519
+ * cloud renderer + metric schema. Don't extend casually.
520
+ */
521
+ export declare const workflowTypeZ: z.ZodEnum<{
522
+ pr_review: "pr_review";
523
+ e2e_test: "e2e_test";
524
+ content_generation: "content_generation";
525
+ monitor: "monitor";
526
+ data_sync: "data_sync";
527
+ generic: "generic";
3220
528
  }>;
529
+ export type { WorkflowType };
530
+ export declare const workflowZ: z.ZodObject<{
531
+ id: z.ZodString;
532
+ name: z.ZodString;
533
+ description: z.ZodDefault<z.ZodString>;
534
+ spec_version: z.ZodOptional<z.ZodString>;
535
+ workflow_type: z.ZodOptional<z.ZodEnum<{
536
+ pr_review: "pr_review";
537
+ e2e_test: "e2e_test";
538
+ content_generation: "content_generation";
539
+ monitor: "monitor";
540
+ data_sync: "data_sync";
541
+ generic: "generic";
542
+ }>>;
543
+ nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
544
+ name: z.ZodString;
545
+ instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
546
+ inline: z.ZodString;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ file: z.ZodString;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ url: z.ZodString;
551
+ type: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>]>;
553
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
554
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
555
+ max_turns: z.ZodOptional<z.ZodNumber>;
556
+ budget: z.ZodOptional<z.ZodObject<{
557
+ tokens: z.ZodOptional<z.ZodNumber>;
558
+ cost_usd: z.ZodOptional<z.ZodNumber>;
559
+ }, z.core.$strict>>;
560
+ disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
561
+ agent_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
562
+ tools: z.ZodOptional<z.ZodObject<{
563
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
564
+ deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
565
+ }, z.core.$strict>>;
566
+ fail_soft: z.ZodOptional<z.ZodBoolean>;
567
+ on_fail: z.ZodOptional<z.ZodEnum<{
568
+ continue: "continue";
569
+ halt: "halt";
570
+ }>>;
571
+ route_by: z.ZodOptional<z.ZodEnum<{
572
+ decider: "decider";
573
+ agent: "agent";
574
+ }>>;
575
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
576
+ write: "write";
577
+ read: "read";
578
+ }>, z.ZodObject<{
579
+ access: z.ZodOptional<z.ZodEnum<{
580
+ write: "write";
581
+ read: "read";
582
+ }>>;
583
+ deny: z.ZodOptional<z.ZodArray<z.ZodEnum<{
584
+ shell: "shell";
585
+ write: "write";
586
+ edit: "edit";
587
+ net: "net";
588
+ subagent: "subagent";
589
+ }>>>;
590
+ strict: z.ZodOptional<z.ZodBoolean>;
591
+ native: z.ZodOptional<z.ZodEnum<{
592
+ default: "default";
593
+ none: "none";
594
+ }>>;
595
+ }, z.core.$strict>]>>;
596
+ outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
597
+ type: z.ZodEnum<{
598
+ label: "label";
599
+ comment: "comment";
600
+ issue: "issue";
601
+ pr: "pr";
602
+ issue_state: "issue_state";
603
+ }>;
604
+ via: z.ZodOptional<z.ZodString>;
605
+ max: z.ZodOptional<z.ZodNumber>;
606
+ target: z.ZodOptional<z.ZodString>;
607
+ title_prefix: z.ZodOptional<z.ZodString>;
608
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
609
+ expires: z.ZodOptional<z.ZodString>;
610
+ number: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
611
+ input: z.ZodString;
612
+ }, z.core.$strict>]>>;
613
+ state: z.ZodOptional<z.ZodEnum<{
614
+ close: "close";
615
+ reopen: "reopen";
616
+ }>>;
617
+ }, z.core.$strict>>>;
618
+ rules: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
619
+ inline: z.ZodString;
620
+ }, z.core.$strict>, z.ZodObject<{
621
+ file: z.ZodString;
622
+ }, z.core.$strict>, z.ZodObject<{
623
+ url: z.ZodString;
624
+ type: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strict>]>>, z.ZodObject<{
626
+ only: z.ZodOptional<z.ZodBoolean>;
627
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
628
+ inline: z.ZodString;
629
+ }, z.core.$strict>, z.ZodObject<{
630
+ file: z.ZodString;
631
+ }, z.core.$strict>, z.ZodObject<{
632
+ url: z.ZodString;
633
+ type: z.ZodOptional<z.ZodString>;
634
+ }, z.core.$strict>]>>;
635
+ }, z.core.$strip>]>>;
636
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
637
+ inline: z.ZodString;
638
+ }, z.core.$strict>, z.ZodObject<{
639
+ file: z.ZodString;
640
+ }, z.core.$strict>, z.ZodObject<{
641
+ url: z.ZodString;
642
+ type: z.ZodOptional<z.ZodString>;
643
+ }, z.core.$strict>]>>, z.ZodObject<{
644
+ only: z.ZodOptional<z.ZodBoolean>;
645
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
646
+ inline: z.ZodString;
647
+ }, z.core.$strict>, z.ZodObject<{
648
+ file: z.ZodString;
649
+ }, z.core.$strict>, z.ZodObject<{
650
+ url: z.ZodString;
651
+ type: z.ZodOptional<z.ZodString>;
652
+ }, z.core.$strict>]>>;
653
+ }, z.core.$strip>]>>;
654
+ eval: z.ZodOptional<z.ZodArray<z.ZodObject<{
655
+ name: z.ZodString;
656
+ kind: z.ZodEnum<{
657
+ function: "function";
658
+ value: "value";
659
+ judge: "judge";
660
+ }>;
661
+ rule: z.ZodOptional<z.ZodObject<{
662
+ any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
663
+ all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
664
+ no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
666
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
667
+ path: z.ZodString;
668
+ equals: z.ZodOptional<z.ZodUnknown>;
669
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
670
+ matches: z.ZodOptional<z.ZodString>;
671
+ }, z.core.$strict>>>;
672
+ }, z.core.$strict>>;
673
+ rubric: z.ZodOptional<z.ZodString>;
674
+ pass_when: z.ZodOptional<z.ZodString>;
675
+ model: z.ZodOptional<z.ZodString>;
676
+ }, z.core.$strict>>>;
677
+ eval_policy: z.ZodOptional<z.ZodEnum<{
678
+ all_pass: "all_pass";
679
+ any_pass: "any_pass";
680
+ weighted: "weighted";
681
+ }>>;
682
+ judge_model: z.ZodOptional<z.ZodString>;
683
+ model: z.ZodOptional<z.ZodString>;
684
+ requires: z.ZodOptional<z.ZodObject<{
685
+ output_required: z.ZodOptional<z.ZodArray<z.ZodString>>;
686
+ output_matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
687
+ path: z.ZodString;
688
+ equals: z.ZodOptional<z.ZodUnknown>;
689
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
690
+ matches: z.ZodOptional<z.ZodString>;
691
+ }, z.core.$strict>>>;
692
+ on_fail: z.ZodOptional<z.ZodEnum<{
693
+ fail: "fail";
694
+ skip: "skip";
695
+ }>>;
696
+ }, z.core.$strict>>;
697
+ retry: z.ZodOptional<z.ZodObject<{
698
+ max: z.ZodNumber;
699
+ instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
700
+ auto: z.ZodLiteral<true>;
701
+ }, z.core.$strict>, z.ZodObject<{
702
+ reflect: z.ZodString;
703
+ }, z.core.$strict>]>>;
704
+ }, z.core.$strict>>;
705
+ }, z.core.$strict>>;
706
+ edges: z.ZodArray<z.ZodObject<{
707
+ from: z.ZodString;
708
+ to: z.ZodString;
709
+ when: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
710
+ expr: z.ZodString;
711
+ }, z.core.$strict>]>>;
712
+ description: z.ZodOptional<z.ZodString>;
713
+ max_iterations: z.ZodOptional<z.ZodNumber>;
714
+ }, z.core.$strict>>;
715
+ entry: z.ZodString;
716
+ skills: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
717
+ name: z.ZodOptional<z.ZodString>;
718
+ description: z.ZodOptional<z.ZodString>;
719
+ instruction: z.ZodOptional<z.ZodString>;
720
+ mcp: z.ZodOptional<z.ZodObject<{
721
+ type: z.ZodOptional<z.ZodEnum<{
722
+ stdio: "stdio";
723
+ http: "http";
724
+ }>>;
725
+ command: z.ZodOptional<z.ZodString>;
726
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
727
+ url: z.ZodOptional<z.ZodString>;
728
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
729
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
730
+ }, z.core.$strict>>;
731
+ }, z.core.$strict>>>;
732
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
733
+ inline: z.ZodString;
734
+ }, z.core.$strict>, z.ZodObject<{
735
+ file: z.ZodString;
736
+ }, z.core.$strict>, z.ZodObject<{
737
+ url: z.ZodString;
738
+ type: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strict>]>>>;
740
+ context: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
741
+ inline: z.ZodString;
742
+ }, z.core.$strict>, z.ZodObject<{
743
+ file: z.ZodString;
744
+ }, z.core.$strict>, z.ZodObject<{
745
+ url: z.ZodString;
746
+ type: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$strict>]>>>;
748
+ judge_model: z.ZodOptional<z.ZodString>;
749
+ model: z.ZodOptional<z.ZodString>;
750
+ judge_budget: z.ZodOptional<z.ZodNumber>;
751
+ budget: z.ZodOptional<z.ZodObject<{
752
+ tokens: z.ZodOptional<z.ZodNumber>;
753
+ cost_usd: z.ZodOptional<z.ZodNumber>;
754
+ }, z.core.$strict>>;
755
+ decider: z.ZodOptional<z.ZodObject<{
756
+ mode: z.ZodOptional<z.ZodCustom<never, never>>;
757
+ provider: z.ZodOptional<z.ZodCustom<never, never>>;
758
+ min_confidence: z.ZodOptional<z.ZodNumber>;
759
+ min_margin: z.ZodOptional<z.ZodNumber>;
760
+ }, z.core.$strict>>;
761
+ context_mode: z.ZodOptional<z.ZodEnum<{
762
+ full: "full";
763
+ bounded: "bounded";
764
+ }>>;
765
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
766
+ type: z.ZodEnum<{
767
+ string: "string";
768
+ number: "number";
769
+ boolean: "boolean";
770
+ "string[]": "string[]";
771
+ }>;
772
+ description: z.ZodOptional<z.ZodString>;
773
+ required: z.ZodOptional<z.ZodBoolean>;
774
+ default: z.ZodOptional<z.ZodUnknown>;
775
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
776
+ }, z.core.$strict>>>;
777
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
778
+ write: "write";
779
+ read: "read";
780
+ }>, z.ZodObject<{
781
+ access: z.ZodOptional<z.ZodEnum<{
782
+ write: "write";
783
+ read: "read";
784
+ }>>;
785
+ deny: z.ZodOptional<z.ZodArray<z.ZodEnum<{
786
+ shell: "shell";
787
+ write: "write";
788
+ edit: "edit";
789
+ net: "net";
790
+ subagent: "subagent";
791
+ }>>>;
792
+ strict: z.ZodOptional<z.ZodBoolean>;
793
+ native: z.ZodOptional<z.ZodEnum<{
794
+ default: "default";
795
+ none: "none";
796
+ }>>;
797
+ }, z.core.$strict>]>>;
798
+ safe_outputs: z.ZodOptional<z.ZodObject<{
799
+ allow: z.ZodOptional<z.ZodArray<z.ZodEnum<{
800
+ label: "label";
801
+ comment: "comment";
802
+ issue: "issue";
803
+ pr: "pr";
804
+ issue_state: "issue_state";
805
+ }>>>;
806
+ max: z.ZodOptional<z.ZodNumber>;
807
+ staged: z.ZodOptional<z.ZodBoolean>;
808
+ trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString>>;
809
+ trusted_associations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
810
+ OWNER: "OWNER";
811
+ MEMBER: "MEMBER";
812
+ COLLABORATOR: "COLLABORATOR";
813
+ CONTRIBUTOR: "CONTRIBUTOR";
814
+ FIRST_TIME_CONTRIBUTOR: "FIRST_TIME_CONTRIBUTOR";
815
+ FIRST_TIMER: "FIRST_TIMER";
816
+ NONE: "NONE";
817
+ }>>>;
818
+ screen: z.ZodOptional<z.ZodBoolean>;
819
+ }, z.core.$strict>>;
820
+ }, z.core.$strip>;
3221
821
  /**
3222
822
  * Detect legacy `verify:` blocks before parse and throw a clear migration
3223
823
  * error. Without this preflight, the user gets Zod's generic "Unrecognized
@@ -3232,22 +832,9 @@ export declare const workflowZ: z.ZodObject<{
3232
832
  export declare function preflightLegacyVerify(raw: unknown): void;
3233
833
  /** Parse + validate a raw object as a Workflow. Throws on invalid input. */
3234
834
  export declare function parseWorkflow(raw: unknown): {
3235
- description: string;
3236
- name: string;
3237
835
  id: string;
3238
- skills: Record<string, {
3239
- description?: string | undefined;
3240
- name?: string | undefined;
3241
- instruction?: string | undefined;
3242
- mcp?: {
3243
- url?: string | undefined;
3244
- type?: "stdio" | "http" | undefined;
3245
- headers?: Record<string, string> | undefined;
3246
- args?: string[] | undefined;
3247
- command?: string | undefined;
3248
- env?: Record<string, string> | undefined;
3249
- } | undefined;
3250
- }>;
836
+ name: string;
837
+ description: string;
3251
838
  nodes: Record<string, {
3252
839
  name: string;
3253
840
  instruction: string | {
@@ -3259,32 +846,40 @@ export declare function parseWorkflow(raw: unknown): {
3259
846
  type?: string | undefined;
3260
847
  };
3261
848
  skills: string[];
3262
- model?: string | undefined;
849
+ output?: Record<string, unknown> | undefined;
850
+ max_turns?: number | undefined;
851
+ budget?: {
852
+ tokens?: number | undefined;
853
+ cost_usd?: number | undefined;
854
+ } | undefined;
855
+ disallowed_tools?: string[] | undefined;
856
+ agent_env?: string[] | undefined;
857
+ tools?: {
858
+ allow?: string[] | undefined;
859
+ deny?: string[] | undefined;
860
+ } | undefined;
861
+ fail_soft?: boolean | undefined;
862
+ on_fail?: "continue" | "halt" | undefined;
863
+ route_by?: "decider" | "agent" | undefined;
3263
864
  permissions?: "write" | "read" | {
865
+ access?: "write" | "read" | undefined;
866
+ deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3264
867
  strict?: boolean | undefined;
3265
868
  native?: "default" | "none" | undefined;
3266
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3267
- access?: "write" | "read" | undefined;
3268
869
  } | undefined;
3269
870
  outputs?: {
3270
871
  type: "label" | "comment" | "issue" | "pr" | "issue_state";
3271
- number?: string | number | {
3272
- input: string;
3273
- } | undefined;
3274
- labels?: string[] | undefined;
3275
- state?: "close" | "reopen" | undefined;
3276
872
  via?: string | undefined;
873
+ max?: number | undefined;
3277
874
  target?: string | undefined;
3278
875
  title_prefix?: string | undefined;
3279
- max?: number | undefined;
876
+ labels?: string[] | undefined;
3280
877
  expires?: string | undefined;
878
+ number?: string | number | {
879
+ input: string;
880
+ } | undefined;
881
+ state?: "close" | "reopen" | undefined;
3281
882
  }[] | undefined;
3282
- output?: Record<string, unknown> | undefined;
3283
- max_turns?: number | undefined;
3284
- budget?: {
3285
- tokens?: number | undefined;
3286
- cost_usd?: number | undefined;
3287
- } | undefined;
3288
883
  rules?: (string | {
3289
884
  inline: string;
3290
885
  } | {
@@ -3324,7 +919,6 @@ export declare function parseWorkflow(raw: unknown): {
3324
919
  eval?: {
3325
920
  name: string;
3326
921
  kind: "function" | "value" | "judge";
3327
- model?: string | undefined;
3328
922
  rule?: {
3329
923
  any_tool_called?: string[] | undefined;
3330
924
  all_tools_called?: string[] | undefined;
@@ -3332,25 +926,27 @@ export declare function parseWorkflow(raw: unknown): {
3332
926
  output_required?: string[] | undefined;
3333
927
  output_matches?: {
3334
928
  path: string;
3335
- in?: unknown[] | undefined;
3336
929
  equals?: unknown;
930
+ in?: unknown[] | undefined;
3337
931
  matches?: string | undefined;
3338
932
  }[] | undefined;
3339
933
  } | undefined;
3340
934
  rubric?: string | undefined;
3341
935
  pass_when?: string | undefined;
936
+ model?: string | undefined;
3342
937
  }[] | undefined;
3343
938
  eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
3344
939
  judge_model?: string | undefined;
940
+ model?: string | undefined;
3345
941
  requires?: {
3346
- on_fail?: "fail" | "skip" | undefined;
3347
942
  output_required?: string[] | undefined;
3348
943
  output_matches?: {
3349
944
  path: string;
3350
- in?: unknown[] | undefined;
3351
945
  equals?: unknown;
946
+ in?: unknown[] | undefined;
3352
947
  matches?: string | undefined;
3353
948
  }[] | undefined;
949
+ on_fail?: "fail" | "skip" | undefined;
3354
950
  } | undefined;
3355
951
  retry?: {
3356
952
  max: number;
@@ -3360,43 +956,32 @@ export declare function parseWorkflow(raw: unknown): {
3360
956
  reflect: string;
3361
957
  } | undefined;
3362
958
  } | undefined;
3363
- disallowed_tools?: string[] | undefined;
3364
- agent_env?: string[] | undefined;
3365
- tools?: {
3366
- allow?: string[] | undefined;
3367
- deny?: string[] | undefined;
3368
- } | undefined;
3369
- fail_soft?: boolean | undefined;
3370
- on_fail?: "continue" | "halt" | undefined;
3371
- route_by?: "decider" | "agent" | undefined;
3372
959
  }>;
3373
960
  edges: {
3374
961
  from: string;
3375
962
  to: string;
3376
- description?: string | undefined;
3377
- max_iterations?: number | undefined;
3378
963
  when?: string | {
3379
964
  expr: string;
3380
965
  } | undefined;
966
+ description?: string | undefined;
967
+ max_iterations?: number | undefined;
3381
968
  }[];
3382
969
  entry: string;
3383
- model?: string | undefined;
3384
- decider?: {
3385
- min_confidence?: number | undefined;
3386
- mode?: undefined;
3387
- provider?: undefined;
3388
- min_margin?: number | undefined;
3389
- } | undefined;
3390
- permissions?: "write" | "read" | {
3391
- strict?: boolean | undefined;
3392
- native?: "default" | "none" | undefined;
3393
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3394
- access?: "write" | "read" | undefined;
3395
- } | undefined;
3396
- budget?: {
3397
- tokens?: number | undefined;
3398
- cost_usd?: number | undefined;
3399
- } | undefined;
970
+ skills: Record<string, {
971
+ name?: string | undefined;
972
+ description?: string | undefined;
973
+ instruction?: string | undefined;
974
+ mcp?: {
975
+ type?: "stdio" | "http" | undefined;
976
+ command?: string | undefined;
977
+ args?: string[] | undefined;
978
+ url?: string | undefined;
979
+ headers?: Record<string, string> | undefined;
980
+ env?: Record<string, string> | undefined;
981
+ } | undefined;
982
+ }>;
983
+ spec_version?: string | undefined;
984
+ workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
3400
985
  rules?: (string | {
3401
986
  inline: string;
3402
987
  } | {
@@ -3414,9 +999,18 @@ export declare function parseWorkflow(raw: unknown): {
3414
999
  type?: string | undefined;
3415
1000
  })[] | undefined;
3416
1001
  judge_model?: string | undefined;
3417
- spec_version?: string | undefined;
3418
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
1002
+ model?: string | undefined;
3419
1003
  judge_budget?: number | undefined;
1004
+ budget?: {
1005
+ tokens?: number | undefined;
1006
+ cost_usd?: number | undefined;
1007
+ } | undefined;
1008
+ decider?: {
1009
+ mode?: undefined;
1010
+ provider?: undefined;
1011
+ min_confidence?: number | undefined;
1012
+ min_margin?: number | undefined;
1013
+ } | undefined;
3420
1014
  context_mode?: "full" | "bounded" | undefined;
3421
1015
  inputs?: Record<string, {
3422
1016
  type: "string" | "number" | "boolean" | "string[]";
@@ -3425,10 +1019,16 @@ export declare function parseWorkflow(raw: unknown): {
3425
1019
  default?: unknown;
3426
1020
  enum?: unknown[] | undefined;
3427
1021
  }> | undefined;
1022
+ permissions?: "write" | "read" | {
1023
+ access?: "write" | "read" | undefined;
1024
+ deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1025
+ strict?: boolean | undefined;
1026
+ native?: "default" | "none" | undefined;
1027
+ } | undefined;
3428
1028
  safe_outputs?: {
3429
- staged?: boolean | undefined;
3430
1029
  allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
3431
1030
  max?: number | undefined;
1031
+ staged?: boolean | undefined;
3432
1032
  trusted_actors?: string[] | undefined;
3433
1033
  trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
3434
1034
  screen?: boolean | undefined;