@sweny-ai/core 0.1.179 → 0.1.181

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,80 +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
- }, "strict", z.ZodTypeAny, {
836
- strict?: boolean | undefined;
837
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
838
- access?: "write" | "read" | undefined;
839
- }, {
840
- strict?: boolean | undefined;
841
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
842
- access?: "write" | "read" | undefined;
843
- }>, {
844
- strict?: boolean | undefined;
845
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
846
- access?: "write" | "read" | undefined;
847
- }, {
848
- strict?: boolean | undefined;
849
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
850
- access?: "write" | "read" | undefined;
851
- }>]>;
261
+ native: z.ZodOptional<z.ZodEnum<{
262
+ default: "default";
263
+ none: "none";
264
+ }>>;
265
+ }, z.core.$strict>]>;
852
266
  /**
853
267
  * Spend ceiling (#449): input + output tokens and/or reported USD. The object
854
268
  * must declare at least one of the two.
855
269
  */
856
- export declare const budgetZ: z.ZodEffects<z.ZodObject<{
270
+ export declare const budgetZ: z.ZodObject<{
857
271
  tokens: z.ZodOptional<z.ZodNumber>;
858
272
  cost_usd: z.ZodOptional<z.ZodNumber>;
859
- }, "strict", z.ZodTypeAny, {
860
- tokens?: number | undefined;
861
- cost_usd?: number | undefined;
862
- }, {
863
- tokens?: number | undefined;
864
- cost_usd?: number | undefined;
865
- }>, {
866
- tokens?: number | undefined;
867
- cost_usd?: number | undefined;
868
- }, {
869
- tokens?: number | undefined;
870
- cost_usd?: number | undefined;
871
- }>;
273
+ }, z.core.$strict>;
872
274
  /**
873
275
  * Decision model thresholds (#357) for the nodes that set `route_by:
874
276
  * decider`. Thresholds may be raised, and lowered no further than the floors.
@@ -879,2317 +281,543 @@ export declare const budgetZ: z.ZodEffects<z.ZodObject<{
879
281
  * `provider` ({@link DECIDER_PROVIDER_MOVED}).
880
282
  */
881
283
  export declare const deciderZ: z.ZodObject<{
882
- mode: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
883
- 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>>;
884
286
  min_confidence: z.ZodOptional<z.ZodNumber>;
885
287
  min_margin: z.ZodOptional<z.ZodNumber>;
886
- }, "strict", z.ZodTypeAny, {
887
- min_confidence?: number | undefined;
888
- mode?: undefined;
889
- provider?: undefined;
890
- min_margin?: number | undefined;
891
- }, {
892
- min_confidence?: number | undefined;
893
- mode?: undefined;
894
- provider?: undefined;
895
- min_margin?: number | undefined;
896
- }>;
288
+ }, z.core.$strict>;
897
289
  /** One typed write intent a node may emit (#365). */
898
290
  export declare const safeOutputDeclarationZ: z.ZodObject<{
899
- 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
+ }>;
900
298
  via: z.ZodOptional<z.ZodString>;
901
299
  max: z.ZodOptional<z.ZodNumber>;
902
300
  target: z.ZodOptional<z.ZodString>;
903
301
  title_prefix: z.ZodOptional<z.ZodString>;
904
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
302
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
905
303
  expires: z.ZodOptional<z.ZodString>;
906
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
304
+ number: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
907
305
  input: z.ZodString;
908
- }, "strict", z.ZodTypeAny, {
909
- input: string;
910
- }, {
911
- input: string;
912
- }>]>>;
913
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
914
- }, "strict", z.ZodTypeAny, {
915
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
916
- number?: string | number | {
917
- input: string;
918
- } | undefined;
919
- labels?: string[] | undefined;
920
- state?: "close" | "reopen" | undefined;
921
- via?: string | undefined;
922
- target?: string | undefined;
923
- title_prefix?: string | undefined;
924
- max?: number | undefined;
925
- expires?: string | undefined;
926
- }, {
927
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
928
- number?: string | number | {
929
- input: string;
930
- } | undefined;
931
- labels?: string[] | undefined;
932
- state?: "close" | "reopen" | undefined;
933
- via?: string | undefined;
934
- target?: string | undefined;
935
- title_prefix?: string | undefined;
936
- max?: number | undefined;
937
- expires?: string | undefined;
938
- }>;
306
+ }, z.core.$strict>]>>;
307
+ state: z.ZodOptional<z.ZodEnum<{
308
+ close: "close";
309
+ reopen: "reopen";
310
+ }>>;
311
+ }, z.core.$strict>;
939
312
  /** Workflow-level safe-output policy (#365): the ceiling and run-wide limits. */
940
313
  export declare const safeOutputsPolicyZ: z.ZodObject<{
941
- 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
+ }>>>;
942
321
  max: z.ZodOptional<z.ZodNumber>;
943
322
  staged: z.ZodOptional<z.ZodBoolean>;
944
- trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
- 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
+ }>>>;
946
333
  screen: z.ZodOptional<z.ZodBoolean>;
947
- }, "strict", z.ZodTypeAny, {
948
- staged?: boolean | undefined;
949
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
950
- max?: number | undefined;
951
- trusted_actors?: string[] | undefined;
952
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
953
- screen?: boolean | undefined;
954
- }, {
955
- staged?: boolean | undefined;
956
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
957
- max?: number | undefined;
958
- trusted_actors?: string[] | undefined;
959
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
960
- screen?: boolean | undefined;
961
- }>;
334
+ }, z.core.$strict>;
962
335
  /** An environment variable name (`agent_env` entries). */
963
336
  export declare const ENV_VAR_NAME_PATTERN: RegExp;
964
337
  export declare const nodeZ: z.ZodObject<{
965
338
  name: z.ZodString;
966
- instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
339
+ instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
967
340
  inline: z.ZodString;
968
- }, "strict", z.ZodTypeAny, {
969
- inline: string;
970
- }, {
971
- inline: string;
972
- }>, z.ZodObject<{
341
+ }, z.core.$strict>, z.ZodObject<{
973
342
  file: z.ZodString;
974
- }, "strict", z.ZodTypeAny, {
975
- file: string;
976
- }, {
977
- file: string;
978
- }>, z.ZodObject<{
343
+ }, z.core.$strict>, z.ZodObject<{
979
344
  url: z.ZodString;
980
345
  type: z.ZodOptional<z.ZodString>;
981
- }, "strict", z.ZodTypeAny, {
982
- url: string;
983
- type?: string | undefined;
984
- }, {
985
- url: string;
986
- type?: string | undefined;
987
- }>]>;
988
- skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
346
+ }, z.core.$strict>]>;
347
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
989
348
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
990
349
  max_turns: z.ZodOptional<z.ZodNumber>;
991
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
350
+ budget: z.ZodOptional<z.ZodObject<{
992
351
  tokens: z.ZodOptional<z.ZodNumber>;
993
352
  cost_usd: z.ZodOptional<z.ZodNumber>;
994
- }, "strict", z.ZodTypeAny, {
995
- tokens?: number | undefined;
996
- cost_usd?: number | undefined;
997
- }, {
998
- tokens?: number | undefined;
999
- cost_usd?: number | undefined;
1000
- }>, {
1001
- tokens?: number | undefined;
1002
- cost_usd?: number | undefined;
1003
- }, {
1004
- tokens?: number | undefined;
1005
- 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";
1006
364
  }>>;
1007
- disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1008
- agent_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1009
- tools: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1010
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1011
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1012
- }, "strict", z.ZodTypeAny, {
1013
- allow?: string[] | undefined;
1014
- deny?: string[] | undefined;
1015
- }, {
1016
- allow?: string[] | undefined;
1017
- deny?: string[] | undefined;
1018
- }>, {
1019
- allow?: string[] | undefined;
1020
- deny?: string[] | undefined;
1021
- }, {
1022
- allow?: string[] | undefined;
1023
- deny?: string[] | undefined;
365
+ route_by: z.ZodOptional<z.ZodEnum<{
366
+ decider: "decider";
367
+ agent: "agent";
1024
368
  }>>;
1025
- fail_soft: z.ZodOptional<z.ZodBoolean>;
1026
- on_fail: z.ZodOptional<z.ZodEnum<["halt", "continue"]>>;
1027
- route_by: z.ZodOptional<z.ZodEnum<["agent", "decider"]>>;
1028
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
1029
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
1030
- 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
+ }>>>;
1031
384
  strict: z.ZodOptional<z.ZodBoolean>;
1032
- }, "strict", z.ZodTypeAny, {
1033
- strict?: boolean | undefined;
1034
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1035
- access?: "write" | "read" | undefined;
1036
- }, {
1037
- strict?: boolean | undefined;
1038
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1039
- access?: "write" | "read" | undefined;
1040
- }>, {
1041
- strict?: boolean | undefined;
1042
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1043
- access?: "write" | "read" | undefined;
1044
- }, {
1045
- strict?: boolean | undefined;
1046
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1047
- access?: "write" | "read" | undefined;
1048
- }>]>>;
385
+ native: z.ZodOptional<z.ZodEnum<{
386
+ default: "default";
387
+ none: "none";
388
+ }>>;
389
+ }, z.core.$strict>]>>;
1049
390
  outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1050
- 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
+ }>;
1051
398
  via: z.ZodOptional<z.ZodString>;
1052
399
  max: z.ZodOptional<z.ZodNumber>;
1053
400
  target: z.ZodOptional<z.ZodString>;
1054
401
  title_prefix: z.ZodOptional<z.ZodString>;
1055
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
402
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1056
403
  expires: z.ZodOptional<z.ZodString>;
1057
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
404
+ number: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1058
405
  input: z.ZodString;
1059
- }, "strict", z.ZodTypeAny, {
1060
- input: string;
1061
- }, {
1062
- input: string;
1063
- }>]>>;
1064
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
1065
- }, "strict", z.ZodTypeAny, {
1066
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1067
- number?: string | number | {
1068
- input: string;
1069
- } | undefined;
1070
- labels?: string[] | undefined;
1071
- state?: "close" | "reopen" | undefined;
1072
- via?: string | undefined;
1073
- target?: string | undefined;
1074
- title_prefix?: string | undefined;
1075
- max?: number | undefined;
1076
- expires?: string | undefined;
1077
- }, {
1078
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1079
- number?: string | number | {
1080
- input: string;
1081
- } | undefined;
1082
- labels?: string[] | undefined;
1083
- state?: "close" | "reopen" | undefined;
1084
- via?: string | undefined;
1085
- target?: string | undefined;
1086
- title_prefix?: string | undefined;
1087
- max?: number | undefined;
1088
- expires?: string | undefined;
1089
- }>, "many">>;
1090
- 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<{
1091
413
  inline: z.ZodString;
1092
- }, "strict", z.ZodTypeAny, {
1093
- inline: string;
1094
- }, {
1095
- inline: string;
1096
- }>, z.ZodObject<{
414
+ }, z.core.$strict>, z.ZodObject<{
1097
415
  file: z.ZodString;
1098
- }, "strict", z.ZodTypeAny, {
1099
- file: string;
1100
- }, {
1101
- file: string;
1102
- }>, z.ZodObject<{
416
+ }, z.core.$strict>, z.ZodObject<{
1103
417
  url: z.ZodString;
1104
418
  type: z.ZodOptional<z.ZodString>;
1105
- }, "strict", z.ZodTypeAny, {
1106
- url: string;
1107
- type?: string | undefined;
1108
- }, {
1109
- url: string;
1110
- type?: string | undefined;
1111
- }>]>, "many">, z.ZodObject<{
419
+ }, z.core.$strict>]>>, z.ZodObject<{
1112
420
  only: z.ZodOptional<z.ZodBoolean>;
1113
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
421
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1114
422
  inline: z.ZodString;
1115
- }, "strict", z.ZodTypeAny, {
1116
- inline: string;
1117
- }, {
1118
- inline: string;
1119
- }>, z.ZodObject<{
423
+ }, z.core.$strict>, z.ZodObject<{
1120
424
  file: z.ZodString;
1121
- }, "strict", z.ZodTypeAny, {
1122
- file: string;
1123
- }, {
1124
- file: string;
1125
- }>, z.ZodObject<{
425
+ }, z.core.$strict>, z.ZodObject<{
1126
426
  url: z.ZodString;
1127
427
  type: z.ZodOptional<z.ZodString>;
1128
- }, "strict", z.ZodTypeAny, {
1129
- url: string;
1130
- type?: string | undefined;
1131
- }, {
1132
- url: string;
1133
- type?: string | undefined;
1134
- }>]>, "many">;
1135
- }, "strip", z.ZodTypeAny, {
1136
- sources: (string | {
1137
- inline: string;
1138
- } | {
1139
- file: string;
1140
- } | {
1141
- url: string;
1142
- type?: string | undefined;
1143
- })[];
1144
- only?: boolean | undefined;
1145
- }, {
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
- 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<{
1157
431
  inline: z.ZodString;
1158
- }, "strict", z.ZodTypeAny, {
1159
- inline: string;
1160
- }, {
1161
- inline: string;
1162
- }>, z.ZodObject<{
432
+ }, z.core.$strict>, z.ZodObject<{
1163
433
  file: z.ZodString;
1164
- }, "strict", z.ZodTypeAny, {
1165
- file: string;
1166
- }, {
1167
- file: string;
1168
- }>, z.ZodObject<{
434
+ }, z.core.$strict>, z.ZodObject<{
1169
435
  url: z.ZodString;
1170
436
  type: z.ZodOptional<z.ZodString>;
1171
- }, "strict", z.ZodTypeAny, {
1172
- url: string;
1173
- type?: string | undefined;
1174
- }, {
1175
- url: string;
1176
- type?: string | undefined;
1177
- }>]>, "many">, z.ZodObject<{
437
+ }, z.core.$strict>]>>, z.ZodObject<{
1178
438
  only: z.ZodOptional<z.ZodBoolean>;
1179
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
439
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1180
440
  inline: z.ZodString;
1181
- }, "strict", z.ZodTypeAny, {
1182
- inline: string;
1183
- }, {
1184
- inline: string;
1185
- }>, z.ZodObject<{
441
+ }, z.core.$strict>, z.ZodObject<{
1186
442
  file: z.ZodString;
1187
- }, "strict", z.ZodTypeAny, {
1188
- file: string;
1189
- }, {
1190
- file: string;
1191
- }>, z.ZodObject<{
443
+ }, z.core.$strict>, z.ZodObject<{
1192
444
  url: z.ZodString;
1193
445
  type: z.ZodOptional<z.ZodString>;
1194
- }, "strict", z.ZodTypeAny, {
1195
- url: string;
1196
- type?: string | undefined;
1197
- }, {
1198
- url: string;
1199
- type?: string | undefined;
1200
- }>]>, "many">;
1201
- }, "strip", z.ZodTypeAny, {
1202
- sources: (string | {
1203
- inline: string;
1204
- } | {
1205
- file: string;
1206
- } | {
1207
- url: string;
1208
- type?: string | undefined;
1209
- })[];
1210
- only?: boolean | undefined;
1211
- }, {
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
- 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<{
1223
449
  name: z.ZodString;
1224
- kind: z.ZodEnum<["value", "function", "judge"]>;
1225
- rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1226
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1227
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1228
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1229
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1230
- 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<{
1231
461
  path: z.ZodString;
1232
462
  equals: z.ZodOptional<z.ZodUnknown>;
1233
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
463
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1234
464
  matches: z.ZodOptional<z.ZodString>;
1235
- }, "strict", z.ZodTypeAny, {
1236
- path: string;
1237
- in?: unknown[] | undefined;
1238
- equals?: unknown;
1239
- matches?: string | undefined;
1240
- }, {
1241
- path: string;
1242
- in?: unknown[] | undefined;
1243
- equals?: unknown;
1244
- matches?: string | undefined;
1245
- }>, {
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
- }>, "many">>;
1256
- }, "strict", z.ZodTypeAny, {
1257
- any_tool_called?: string[] | undefined;
1258
- all_tools_called?: string[] | undefined;
1259
- no_tool_called?: string[] | undefined;
1260
- output_required?: string[] | undefined;
1261
- output_matches?: {
1262
- path: string;
1263
- in?: unknown[] | undefined;
1264
- equals?: unknown;
1265
- matches?: string | undefined;
1266
- }[] | undefined;
1267
- }, {
1268
- any_tool_called?: string[] | undefined;
1269
- all_tools_called?: string[] | undefined;
1270
- no_tool_called?: string[] | undefined;
1271
- output_required?: string[] | undefined;
1272
- output_matches?: {
1273
- path: string;
1274
- in?: unknown[] | undefined;
1275
- equals?: unknown;
1276
- matches?: string | undefined;
1277
- }[] | undefined;
1278
- }>, {
1279
- any_tool_called?: string[] | undefined;
1280
- all_tools_called?: string[] | undefined;
1281
- no_tool_called?: string[] | undefined;
1282
- output_required?: string[] | undefined;
1283
- output_matches?: {
1284
- path: string;
1285
- in?: unknown[] | undefined;
1286
- equals?: unknown;
1287
- matches?: string | undefined;
1288
- }[] | undefined;
1289
- }, {
1290
- any_tool_called?: string[] | undefined;
1291
- all_tools_called?: string[] | undefined;
1292
- no_tool_called?: string[] | undefined;
1293
- output_required?: string[] | undefined;
1294
- output_matches?: {
1295
- path: string;
1296
- in?: unknown[] | undefined;
1297
- equals?: unknown;
1298
- matches?: string | undefined;
1299
- }[] | undefined;
1300
- }>>;
465
+ }, z.core.$strict>>>;
466
+ }, z.core.$strict>>;
1301
467
  rubric: z.ZodOptional<z.ZodString>;
1302
- pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
468
+ pass_when: z.ZodOptional<z.ZodString>;
1303
469
  model: z.ZodOptional<z.ZodString>;
1304
- }, "strict", z.ZodTypeAny, {
1305
- name: string;
1306
- kind: "function" | "value" | "judge";
1307
- model?: string | undefined;
1308
- rule?: {
1309
- any_tool_called?: string[] | undefined;
1310
- all_tools_called?: string[] | undefined;
1311
- no_tool_called?: string[] | undefined;
1312
- output_required?: string[] | undefined;
1313
- output_matches?: {
1314
- path: string;
1315
- in?: unknown[] | undefined;
1316
- equals?: unknown;
1317
- matches?: string | undefined;
1318
- }[] | undefined;
1319
- } | undefined;
1320
- rubric?: string | undefined;
1321
- pass_when?: string | undefined;
1322
- }, {
1323
- name: string;
1324
- kind: "function" | "value" | "judge";
1325
- model?: string | undefined;
1326
- rule?: {
1327
- any_tool_called?: string[] | undefined;
1328
- all_tools_called?: string[] | undefined;
1329
- no_tool_called?: string[] | undefined;
1330
- output_required?: string[] | undefined;
1331
- output_matches?: {
1332
- path: string;
1333
- in?: unknown[] | undefined;
1334
- equals?: unknown;
1335
- matches?: string | undefined;
1336
- }[] | undefined;
1337
- } | undefined;
1338
- rubric?: string | undefined;
1339
- pass_when?: string | undefined;
1340
- }>, {
1341
- name: string;
1342
- kind: "function" | "value" | "judge";
1343
- model?: string | undefined;
1344
- rule?: {
1345
- any_tool_called?: string[] | undefined;
1346
- all_tools_called?: string[] | undefined;
1347
- no_tool_called?: string[] | undefined;
1348
- output_required?: string[] | undefined;
1349
- output_matches?: {
1350
- path: string;
1351
- in?: unknown[] | undefined;
1352
- equals?: unknown;
1353
- matches?: string | undefined;
1354
- }[] | undefined;
1355
- } | undefined;
1356
- rubric?: string | undefined;
1357
- pass_when?: string | undefined;
1358
- }, {
1359
- name: string;
1360
- kind: "function" | "value" | "judge";
1361
- model?: string | undefined;
1362
- rule?: {
1363
- any_tool_called?: string[] | undefined;
1364
- all_tools_called?: string[] | undefined;
1365
- no_tool_called?: string[] | undefined;
1366
- output_required?: string[] | undefined;
1367
- output_matches?: {
1368
- path: string;
1369
- in?: unknown[] | undefined;
1370
- equals?: unknown;
1371
- matches?: string | undefined;
1372
- }[] | undefined;
1373
- } | undefined;
1374
- rubric?: string | undefined;
1375
- pass_when?: string | undefined;
1376
- }>, "many">>;
1377
- 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
+ }>>;
1378
476
  judge_model: z.ZodOptional<z.ZodString>;
1379
477
  model: z.ZodOptional<z.ZodString>;
1380
- requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1381
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1382
- 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<{
1383
481
  path: z.ZodString;
1384
482
  equals: z.ZodOptional<z.ZodUnknown>;
1385
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
483
+ in: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1386
484
  matches: z.ZodOptional<z.ZodString>;
1387
- }, "strict", z.ZodTypeAny, {
1388
- path: string;
1389
- in?: unknown[] | undefined;
1390
- equals?: unknown;
1391
- matches?: string | undefined;
1392
- }, {
1393
- path: string;
1394
- in?: unknown[] | undefined;
1395
- equals?: unknown;
1396
- matches?: string | undefined;
1397
- }>, {
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
- }>, "many">>;
1408
- on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
1409
- }, "strict", z.ZodTypeAny, {
1410
- on_fail?: "fail" | "skip" | undefined;
1411
- output_required?: string[] | undefined;
1412
- output_matches?: {
1413
- path: string;
1414
- in?: unknown[] | undefined;
1415
- equals?: unknown;
1416
- matches?: string | undefined;
1417
- }[] | undefined;
1418
- }, {
1419
- on_fail?: "fail" | "skip" | undefined;
1420
- output_required?: string[] | undefined;
1421
- output_matches?: {
1422
- path: string;
1423
- in?: unknown[] | undefined;
1424
- equals?: unknown;
1425
- matches?: string | undefined;
1426
- }[] | undefined;
1427
- }>, {
1428
- on_fail?: "fail" | "skip" | undefined;
1429
- output_required?: string[] | undefined;
1430
- output_matches?: {
1431
- path: string;
1432
- in?: unknown[] | undefined;
1433
- equals?: unknown;
1434
- matches?: string | undefined;
1435
- }[] | undefined;
1436
- }, {
1437
- on_fail?: "fail" | "skip" | undefined;
1438
- output_required?: string[] | undefined;
1439
- output_matches?: {
1440
- path: string;
1441
- in?: unknown[] | undefined;
1442
- equals?: unknown;
1443
- matches?: string | undefined;
1444
- }[] | undefined;
1445
- }>>;
485
+ }, z.core.$strict>>>;
486
+ on_fail: z.ZodOptional<z.ZodEnum<{
487
+ fail: "fail";
488
+ skip: "skip";
489
+ }>>;
490
+ }, z.core.$strict>>;
1446
491
  retry: z.ZodOptional<z.ZodObject<{
1447
492
  max: z.ZodNumber;
1448
- instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
493
+ instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1449
494
  auto: z.ZodLiteral<true>;
1450
- }, "strict", z.ZodTypeAny, {
1451
- auto: true;
1452
- }, {
1453
- auto: true;
1454
- }>, z.ZodObject<{
495
+ }, z.core.$strict>, z.ZodObject<{
1455
496
  reflect: z.ZodString;
1456
- }, "strict", z.ZodTypeAny, {
1457
- reflect: string;
1458
- }, {
1459
- reflect: string;
1460
- }>]>>;
1461
- }, "strict", z.ZodTypeAny, {
1462
- max: number;
1463
- instruction?: string | {
1464
- auto: true;
1465
- } | {
1466
- reflect: string;
1467
- } | undefined;
1468
- }, {
1469
- max: number;
1470
- instruction?: string | {
1471
- auto: true;
1472
- } | {
1473
- reflect: string;
1474
- } | undefined;
1475
- }>>;
1476
- }, "strict", z.ZodTypeAny, {
1477
- name: string;
1478
- instruction: string | {
1479
- inline: string;
1480
- } | {
1481
- file: string;
1482
- } | {
1483
- url: string;
1484
- type?: string | undefined;
1485
- };
1486
- skills: string[];
1487
- model?: string | undefined;
1488
- permissions?: "write" | "read" | {
1489
- strict?: boolean | undefined;
1490
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1491
- access?: "write" | "read" | undefined;
1492
- } | undefined;
1493
- outputs?: {
1494
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1495
- number?: string | number | {
1496
- input: string;
1497
- } | undefined;
1498
- labels?: string[] | undefined;
1499
- state?: "close" | "reopen" | undefined;
1500
- via?: string | undefined;
1501
- target?: string | undefined;
1502
- title_prefix?: string | undefined;
1503
- max?: number | undefined;
1504
- expires?: string | undefined;
1505
- }[] | undefined;
1506
- output?: Record<string, unknown> | undefined;
1507
- max_turns?: number | undefined;
1508
- budget?: {
1509
- tokens?: number | undefined;
1510
- cost_usd?: number | undefined;
1511
- } | undefined;
1512
- rules?: (string | {
1513
- inline: string;
1514
- } | {
1515
- file: string;
1516
- } | {
1517
- url: string;
1518
- type?: string | undefined;
1519
- })[] | {
1520
- sources: (string | {
1521
- inline: string;
1522
- } | {
1523
- file: string;
1524
- } | {
1525
- url: string;
1526
- type?: string | undefined;
1527
- })[];
1528
- only?: boolean | undefined;
1529
- } | undefined;
1530
- context?: (string | {
1531
- inline: string;
1532
- } | {
1533
- file: string;
1534
- } | {
1535
- url: string;
1536
- type?: string | undefined;
1537
- })[] | {
1538
- sources: (string | {
1539
- inline: string;
1540
- } | {
1541
- file: string;
1542
- } | {
1543
- url: string;
1544
- type?: string | undefined;
1545
- })[];
1546
- only?: boolean | undefined;
1547
- } | undefined;
1548
- eval?: {
1549
- name: string;
1550
- kind: "function" | "value" | "judge";
1551
- model?: string | undefined;
1552
- rule?: {
1553
- any_tool_called?: string[] | undefined;
1554
- all_tools_called?: string[] | undefined;
1555
- no_tool_called?: string[] | undefined;
1556
- output_required?: string[] | undefined;
1557
- output_matches?: {
1558
- path: string;
1559
- in?: unknown[] | undefined;
1560
- equals?: unknown;
1561
- matches?: string | undefined;
1562
- }[] | undefined;
1563
- } | undefined;
1564
- rubric?: string | undefined;
1565
- pass_when?: string | undefined;
1566
- }[] | undefined;
1567
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1568
- judge_model?: string | undefined;
1569
- requires?: {
1570
- on_fail?: "fail" | "skip" | undefined;
1571
- output_required?: string[] | undefined;
1572
- output_matches?: {
1573
- path: string;
1574
- in?: unknown[] | undefined;
1575
- equals?: unknown;
1576
- matches?: string | undefined;
1577
- }[] | undefined;
1578
- } | undefined;
1579
- retry?: {
1580
- max: number;
1581
- instruction?: string | {
1582
- auto: true;
1583
- } | {
1584
- reflect: string;
1585
- } | undefined;
1586
- } | undefined;
1587
- disallowed_tools?: string[] | undefined;
1588
- agent_env?: string[] | undefined;
1589
- tools?: {
1590
- allow?: string[] | undefined;
1591
- deny?: string[] | undefined;
1592
- } | undefined;
1593
- fail_soft?: boolean | undefined;
1594
- on_fail?: "continue" | "halt" | undefined;
1595
- route_by?: "decider" | "agent" | undefined;
1596
- }, {
1597
- name: string;
1598
- instruction: string | {
1599
- inline: string;
1600
- } | {
1601
- file: string;
1602
- } | {
1603
- url: string;
1604
- type?: string | undefined;
1605
- };
1606
- model?: string | undefined;
1607
- permissions?: "write" | "read" | {
1608
- strict?: boolean | undefined;
1609
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1610
- access?: "write" | "read" | undefined;
1611
- } | undefined;
1612
- outputs?: {
1613
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1614
- number?: string | number | {
1615
- input: string;
1616
- } | undefined;
1617
- labels?: string[] | undefined;
1618
- state?: "close" | "reopen" | undefined;
1619
- via?: string | undefined;
1620
- target?: string | undefined;
1621
- title_prefix?: string | undefined;
1622
- max?: number | undefined;
1623
- expires?: string | undefined;
1624
- }[] | undefined;
1625
- skills?: string[] | undefined;
1626
- output?: Record<string, unknown> | undefined;
1627
- max_turns?: number | undefined;
1628
- budget?: {
1629
- tokens?: number | undefined;
1630
- cost_usd?: number | undefined;
1631
- } | undefined;
1632
- rules?: (string | {
1633
- inline: string;
1634
- } | {
1635
- file: string;
1636
- } | {
1637
- url: string;
1638
- type?: string | undefined;
1639
- })[] | {
1640
- sources: (string | {
1641
- inline: string;
1642
- } | {
1643
- file: string;
1644
- } | {
1645
- url: string;
1646
- type?: string | undefined;
1647
- })[];
1648
- only?: boolean | undefined;
1649
- } | undefined;
1650
- context?: (string | {
1651
- inline: string;
1652
- } | {
1653
- file: string;
1654
- } | {
1655
- url: string;
1656
- type?: string | undefined;
1657
- })[] | {
1658
- sources: (string | {
1659
- inline: string;
1660
- } | {
1661
- file: string;
1662
- } | {
1663
- url: string;
1664
- type?: string | undefined;
1665
- })[];
1666
- only?: boolean | undefined;
1667
- } | undefined;
1668
- eval?: {
1669
- name: string;
1670
- kind: "function" | "value" | "judge";
1671
- model?: string | undefined;
1672
- rule?: {
1673
- any_tool_called?: string[] | undefined;
1674
- all_tools_called?: string[] | undefined;
1675
- no_tool_called?: string[] | undefined;
1676
- output_required?: string[] | undefined;
1677
- output_matches?: {
1678
- path: string;
1679
- in?: unknown[] | undefined;
1680
- equals?: unknown;
1681
- matches?: string | undefined;
1682
- }[] | undefined;
1683
- } | undefined;
1684
- rubric?: string | undefined;
1685
- pass_when?: string | undefined;
1686
- }[] | undefined;
1687
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
1688
- judge_model?: string | undefined;
1689
- requires?: {
1690
- on_fail?: "fail" | "skip" | undefined;
1691
- output_required?: string[] | undefined;
1692
- output_matches?: {
1693
- path: string;
1694
- in?: unknown[] | undefined;
1695
- equals?: unknown;
1696
- matches?: string | undefined;
1697
- }[] | undefined;
1698
- } | undefined;
1699
- retry?: {
1700
- max: number;
1701
- instruction?: string | {
1702
- auto: true;
1703
- } | {
1704
- reflect: string;
1705
- } | undefined;
1706
- } | undefined;
1707
- disallowed_tools?: string[] | undefined;
1708
- agent_env?: string[] | undefined;
1709
- tools?: {
1710
- allow?: string[] | undefined;
1711
- deny?: string[] | undefined;
1712
- } | undefined;
1713
- fail_soft?: boolean | undefined;
1714
- on_fail?: "continue" | "halt" | undefined;
1715
- route_by?: "decider" | "agent" | undefined;
1716
- }>;
497
+ }, z.core.$strict>]>>;
498
+ }, z.core.$strict>>;
499
+ }, z.core.$strict>;
1717
500
  export declare const edgeZ: z.ZodObject<{
1718
501
  from: z.ZodString;
1719
- to: z.ZodString;
1720
- when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1721
- expr: z.ZodString;
1722
- }, "strict", z.ZodTypeAny, {
1723
- expr: string;
1724
- }, {
1725
- expr: string;
1726
- }>]>>;
1727
- description: z.ZodOptional<z.ZodString>;
1728
- max_iterations: z.ZodOptional<z.ZodNumber>;
1729
- }, "strict", z.ZodTypeAny, {
1730
- from: string;
1731
- to: string;
1732
- description?: string | undefined;
1733
- max_iterations?: number | undefined;
1734
- when?: string | {
1735
- expr: string;
1736
- } | undefined;
1737
- }, {
1738
- from: string;
1739
- to: string;
1740
- description?: string | undefined;
1741
- max_iterations?: number | undefined;
1742
- when?: string | {
1743
- expr: string;
1744
- } | undefined;
1745
- }>;
1746
- /**
1747
- * Workflow type discriminator. Cloud uses this to route runs to a
1748
- * type-specific renderer (Caught/Calibration/Missed for `pr_review`, flake
1749
- * heatmap for `e2e_test`, source coverage delta for `monitor`, etc.).
1750
- *
1751
- * The field is optional on the workflow YAML; absence defaults to `generic`,
1752
- * which gets a baseline renderer. Marketplace templates published in v1+
1753
- * are required to declare it.
1754
- *
1755
- * Adding a new value here is a deliberate spec change: it requires a new
1756
- * cloud renderer + metric schema. Don't extend casually.
1757
- */
1758
- export declare const workflowTypeZ: z.ZodEnum<["pr_review", "e2e_test", "content_generation", "monitor", "data_sync", "generic"]>;
1759
- export type { WorkflowType };
1760
- export declare const workflowZ: z.ZodObject<{
1761
- id: z.ZodString;
1762
- name: z.ZodString;
1763
- description: z.ZodDefault<z.ZodString>;
1764
- spec_version: z.ZodOptional<z.ZodString>;
1765
- workflow_type: z.ZodOptional<z.ZodEnum<["pr_review", "e2e_test", "content_generation", "monitor", "data_sync", "generic"]>>;
1766
- nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
1767
- name: z.ZodString;
1768
- instruction: z.ZodUnion<[z.ZodString, z.ZodObject<{
1769
- inline: z.ZodString;
1770
- }, "strict", z.ZodTypeAny, {
1771
- inline: string;
1772
- }, {
1773
- inline: string;
1774
- }>, z.ZodObject<{
1775
- file: z.ZodString;
1776
- }, "strict", z.ZodTypeAny, {
1777
- file: string;
1778
- }, {
1779
- file: string;
1780
- }>, z.ZodObject<{
1781
- url: z.ZodString;
1782
- type: z.ZodOptional<z.ZodString>;
1783
- }, "strict", z.ZodTypeAny, {
1784
- url: string;
1785
- type?: string | undefined;
1786
- }, {
1787
- url: string;
1788
- type?: string | undefined;
1789
- }>]>;
1790
- skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1791
- output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1792
- max_turns: z.ZodOptional<z.ZodNumber>;
1793
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1794
- tokens: z.ZodOptional<z.ZodNumber>;
1795
- cost_usd: z.ZodOptional<z.ZodNumber>;
1796
- }, "strict", z.ZodTypeAny, {
1797
- tokens?: number | undefined;
1798
- cost_usd?: number | undefined;
1799
- }, {
1800
- tokens?: number | undefined;
1801
- cost_usd?: number | undefined;
1802
- }>, {
1803
- tokens?: number | undefined;
1804
- cost_usd?: number | undefined;
1805
- }, {
1806
- tokens?: number | undefined;
1807
- cost_usd?: number | undefined;
1808
- }>>;
1809
- disallowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1810
- agent_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1811
- tools: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1812
- allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1813
- deny: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1814
- }, "strict", z.ZodTypeAny, {
1815
- allow?: string[] | undefined;
1816
- deny?: string[] | undefined;
1817
- }, {
1818
- allow?: string[] | undefined;
1819
- deny?: string[] | undefined;
1820
- }>, {
1821
- allow?: string[] | undefined;
1822
- deny?: string[] | undefined;
1823
- }, {
1824
- allow?: string[] | undefined;
1825
- deny?: string[] | undefined;
1826
- }>>;
1827
- fail_soft: z.ZodOptional<z.ZodBoolean>;
1828
- on_fail: z.ZodOptional<z.ZodEnum<["halt", "continue"]>>;
1829
- route_by: z.ZodOptional<z.ZodEnum<["agent", "decider"]>>;
1830
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
1831
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
1832
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
1833
- strict: z.ZodOptional<z.ZodBoolean>;
1834
- }, "strict", z.ZodTypeAny, {
1835
- strict?: boolean | undefined;
1836
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1837
- access?: "write" | "read" | undefined;
1838
- }, {
1839
- strict?: boolean | undefined;
1840
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1841
- access?: "write" | "read" | undefined;
1842
- }>, {
1843
- strict?: boolean | undefined;
1844
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1845
- access?: "write" | "read" | undefined;
1846
- }, {
1847
- strict?: boolean | undefined;
1848
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
1849
- access?: "write" | "read" | undefined;
1850
- }>]>>;
1851
- outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1852
- type: z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>;
1853
- via: z.ZodOptional<z.ZodString>;
1854
- max: z.ZodOptional<z.ZodNumber>;
1855
- target: z.ZodOptional<z.ZodString>;
1856
- title_prefix: z.ZodOptional<z.ZodString>;
1857
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1858
- expires: z.ZodOptional<z.ZodString>;
1859
- number: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
1860
- input: z.ZodString;
1861
- }, "strict", z.ZodTypeAny, {
1862
- input: string;
1863
- }, {
1864
- input: string;
1865
- }>]>>;
1866
- state: z.ZodOptional<z.ZodEnum<["reopen", "close"]>>;
1867
- }, "strict", z.ZodTypeAny, {
1868
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1869
- number?: string | number | {
1870
- input: string;
1871
- } | undefined;
1872
- labels?: string[] | undefined;
1873
- state?: "close" | "reopen" | undefined;
1874
- via?: string | undefined;
1875
- target?: string | undefined;
1876
- title_prefix?: string | undefined;
1877
- max?: number | undefined;
1878
- expires?: string | undefined;
1879
- }, {
1880
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
1881
- number?: string | number | {
1882
- input: string;
1883
- } | undefined;
1884
- labels?: string[] | undefined;
1885
- state?: "close" | "reopen" | undefined;
1886
- via?: string | undefined;
1887
- target?: string | undefined;
1888
- title_prefix?: string | undefined;
1889
- max?: number | undefined;
1890
- expires?: string | undefined;
1891
- }>, "many">>;
1892
- rules: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1893
- inline: z.ZodString;
1894
- }, "strict", z.ZodTypeAny, {
1895
- inline: string;
1896
- }, {
1897
- inline: string;
1898
- }>, z.ZodObject<{
1899
- file: z.ZodString;
1900
- }, "strict", z.ZodTypeAny, {
1901
- file: string;
1902
- }, {
1903
- file: string;
1904
- }>, z.ZodObject<{
1905
- url: z.ZodString;
1906
- type: z.ZodOptional<z.ZodString>;
1907
- }, "strict", z.ZodTypeAny, {
1908
- url: string;
1909
- type?: string | undefined;
1910
- }, {
1911
- url: string;
1912
- type?: string | undefined;
1913
- }>]>, "many">, z.ZodObject<{
1914
- only: z.ZodOptional<z.ZodBoolean>;
1915
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1916
- inline: z.ZodString;
1917
- }, "strict", z.ZodTypeAny, {
1918
- inline: string;
1919
- }, {
1920
- inline: string;
1921
- }>, z.ZodObject<{
1922
- file: z.ZodString;
1923
- }, "strict", z.ZodTypeAny, {
1924
- file: string;
1925
- }, {
1926
- file: string;
1927
- }>, z.ZodObject<{
1928
- url: z.ZodString;
1929
- type: z.ZodOptional<z.ZodString>;
1930
- }, "strict", z.ZodTypeAny, {
1931
- url: string;
1932
- type?: string | undefined;
1933
- }, {
1934
- url: string;
1935
- type?: string | undefined;
1936
- }>]>, "many">;
1937
- }, "strip", z.ZodTypeAny, {
1938
- sources: (string | {
1939
- inline: string;
1940
- } | {
1941
- file: string;
1942
- } | {
1943
- url: string;
1944
- type?: string | undefined;
1945
- })[];
1946
- only?: boolean | undefined;
1947
- }, {
1948
- sources: (string | {
1949
- inline: string;
1950
- } | {
1951
- file: string;
1952
- } | {
1953
- url: string;
1954
- type?: string | undefined;
1955
- })[];
1956
- only?: boolean | undefined;
1957
- }>]>>;
1958
- context: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1959
- inline: z.ZodString;
1960
- }, "strict", z.ZodTypeAny, {
1961
- inline: string;
1962
- }, {
1963
- inline: string;
1964
- }>, z.ZodObject<{
1965
- file: z.ZodString;
1966
- }, "strict", z.ZodTypeAny, {
1967
- file: string;
1968
- }, {
1969
- file: string;
1970
- }>, z.ZodObject<{
1971
- url: z.ZodString;
1972
- type: z.ZodOptional<z.ZodString>;
1973
- }, "strict", z.ZodTypeAny, {
1974
- url: string;
1975
- type?: string | undefined;
1976
- }, {
1977
- url: string;
1978
- type?: string | undefined;
1979
- }>]>, "many">, z.ZodObject<{
1980
- only: z.ZodOptional<z.ZodBoolean>;
1981
- sources: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1982
- inline: z.ZodString;
1983
- }, "strict", z.ZodTypeAny, {
1984
- inline: string;
1985
- }, {
1986
- inline: string;
1987
- }>, z.ZodObject<{
1988
- file: z.ZodString;
1989
- }, "strict", z.ZodTypeAny, {
1990
- file: string;
1991
- }, {
1992
- file: string;
1993
- }>, z.ZodObject<{
1994
- url: z.ZodString;
1995
- type: z.ZodOptional<z.ZodString>;
1996
- }, "strict", z.ZodTypeAny, {
1997
- url: string;
1998
- type?: string | undefined;
1999
- }, {
2000
- url: string;
2001
- type?: string | undefined;
2002
- }>]>, "many">;
2003
- }, "strip", z.ZodTypeAny, {
2004
- sources: (string | {
2005
- inline: string;
2006
- } | {
2007
- file: string;
2008
- } | {
2009
- url: string;
2010
- type?: string | undefined;
2011
- })[];
2012
- only?: boolean | undefined;
2013
- }, {
2014
- sources: (string | {
2015
- inline: string;
2016
- } | {
2017
- file: string;
2018
- } | {
2019
- url: string;
2020
- type?: string | undefined;
2021
- })[];
2022
- only?: boolean | undefined;
2023
- }>]>>;
2024
- eval: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2025
- name: z.ZodString;
2026
- kind: z.ZodEnum<["value", "function", "judge"]>;
2027
- rule: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2028
- any_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2029
- all_tools_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2030
- no_tool_called: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2031
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2032
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2033
- path: z.ZodString;
2034
- equals: z.ZodOptional<z.ZodUnknown>;
2035
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2036
- matches: z.ZodOptional<z.ZodString>;
2037
- }, "strict", z.ZodTypeAny, {
2038
- path: string;
2039
- in?: unknown[] | undefined;
2040
- equals?: unknown;
2041
- matches?: string | undefined;
2042
- }, {
2043
- path: string;
2044
- in?: unknown[] | undefined;
2045
- equals?: unknown;
2046
- matches?: string | undefined;
2047
- }>, {
2048
- path: string;
2049
- in?: unknown[] | undefined;
2050
- equals?: unknown;
2051
- matches?: string | undefined;
2052
- }, {
2053
- path: string;
2054
- in?: unknown[] | undefined;
2055
- equals?: unknown;
2056
- matches?: string | undefined;
2057
- }>, "many">>;
2058
- }, "strict", z.ZodTypeAny, {
2059
- any_tool_called?: string[] | undefined;
2060
- all_tools_called?: string[] | undefined;
2061
- no_tool_called?: string[] | undefined;
2062
- output_required?: string[] | undefined;
2063
- output_matches?: {
2064
- path: string;
2065
- in?: unknown[] | undefined;
2066
- equals?: unknown;
2067
- matches?: string | undefined;
2068
- }[] | undefined;
2069
- }, {
2070
- any_tool_called?: string[] | undefined;
2071
- all_tools_called?: string[] | undefined;
2072
- no_tool_called?: string[] | undefined;
2073
- output_required?: string[] | undefined;
2074
- output_matches?: {
2075
- path: string;
2076
- in?: unknown[] | undefined;
2077
- equals?: unknown;
2078
- matches?: string | undefined;
2079
- }[] | undefined;
2080
- }>, {
2081
- any_tool_called?: string[] | undefined;
2082
- all_tools_called?: string[] | undefined;
2083
- no_tool_called?: string[] | undefined;
2084
- output_required?: string[] | undefined;
2085
- output_matches?: {
2086
- path: string;
2087
- in?: unknown[] | undefined;
2088
- equals?: unknown;
2089
- matches?: string | undefined;
2090
- }[] | undefined;
2091
- }, {
2092
- any_tool_called?: string[] | undefined;
2093
- all_tools_called?: string[] | undefined;
2094
- no_tool_called?: string[] | undefined;
2095
- output_required?: string[] | undefined;
2096
- output_matches?: {
2097
- path: string;
2098
- in?: unknown[] | undefined;
2099
- equals?: unknown;
2100
- matches?: string | undefined;
2101
- }[] | undefined;
2102
- }>>;
2103
- rubric: z.ZodOptional<z.ZodString>;
2104
- pass_when: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2105
- model: z.ZodOptional<z.ZodString>;
2106
- }, "strict", z.ZodTypeAny, {
2107
- name: string;
2108
- kind: "function" | "value" | "judge";
2109
- model?: string | undefined;
2110
- rule?: {
2111
- any_tool_called?: string[] | undefined;
2112
- all_tools_called?: string[] | undefined;
2113
- no_tool_called?: string[] | undefined;
2114
- output_required?: string[] | undefined;
2115
- output_matches?: {
2116
- path: string;
2117
- in?: unknown[] | undefined;
2118
- equals?: unknown;
2119
- matches?: string | undefined;
2120
- }[] | undefined;
2121
- } | undefined;
2122
- rubric?: string | undefined;
2123
- pass_when?: string | undefined;
2124
- }, {
2125
- name: string;
2126
- kind: "function" | "value" | "judge";
2127
- model?: string | undefined;
2128
- rule?: {
2129
- any_tool_called?: string[] | undefined;
2130
- all_tools_called?: string[] | undefined;
2131
- no_tool_called?: string[] | undefined;
2132
- output_required?: string[] | undefined;
2133
- output_matches?: {
2134
- path: string;
2135
- in?: unknown[] | undefined;
2136
- equals?: unknown;
2137
- matches?: string | undefined;
2138
- }[] | undefined;
2139
- } | undefined;
2140
- rubric?: string | undefined;
2141
- pass_when?: string | undefined;
2142
- }>, {
2143
- name: string;
2144
- kind: "function" | "value" | "judge";
2145
- model?: string | undefined;
2146
- rule?: {
2147
- any_tool_called?: string[] | undefined;
2148
- all_tools_called?: string[] | undefined;
2149
- no_tool_called?: string[] | undefined;
2150
- output_required?: string[] | undefined;
2151
- output_matches?: {
2152
- path: string;
2153
- in?: unknown[] | undefined;
2154
- equals?: unknown;
2155
- matches?: string | undefined;
2156
- }[] | undefined;
2157
- } | undefined;
2158
- rubric?: string | undefined;
2159
- pass_when?: string | undefined;
2160
- }, {
2161
- name: string;
2162
- kind: "function" | "value" | "judge";
2163
- model?: string | undefined;
2164
- rule?: {
2165
- any_tool_called?: string[] | undefined;
2166
- all_tools_called?: string[] | undefined;
2167
- no_tool_called?: string[] | undefined;
2168
- output_required?: string[] | undefined;
2169
- output_matches?: {
2170
- path: string;
2171
- in?: unknown[] | undefined;
2172
- equals?: unknown;
2173
- matches?: string | undefined;
2174
- }[] | undefined;
2175
- } | undefined;
2176
- rubric?: string | undefined;
2177
- pass_when?: string | undefined;
2178
- }>, "many">>;
2179
- eval_policy: z.ZodOptional<z.ZodEnum<["all_pass", "any_pass", "weighted"]>>;
2180
- judge_model: z.ZodOptional<z.ZodString>;
2181
- model: z.ZodOptional<z.ZodString>;
2182
- requires: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2183
- output_required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2184
- output_matches: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2185
- path: z.ZodString;
2186
- equals: z.ZodOptional<z.ZodUnknown>;
2187
- in: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2188
- matches: z.ZodOptional<z.ZodString>;
2189
- }, "strict", z.ZodTypeAny, {
2190
- path: string;
2191
- in?: unknown[] | undefined;
2192
- equals?: unknown;
2193
- matches?: string | undefined;
2194
- }, {
2195
- path: string;
2196
- in?: unknown[] | undefined;
2197
- equals?: unknown;
2198
- matches?: string | undefined;
2199
- }>, {
2200
- path: string;
2201
- in?: unknown[] | undefined;
2202
- equals?: unknown;
2203
- matches?: string | undefined;
2204
- }, {
2205
- path: string;
2206
- in?: unknown[] | undefined;
2207
- equals?: unknown;
2208
- matches?: string | undefined;
2209
- }>, "many">>;
2210
- on_fail: z.ZodOptional<z.ZodEnum<["fail", "skip"]>>;
2211
- }, "strict", z.ZodTypeAny, {
2212
- on_fail?: "fail" | "skip" | undefined;
2213
- output_required?: string[] | undefined;
2214
- output_matches?: {
2215
- path: string;
2216
- in?: unknown[] | undefined;
2217
- equals?: unknown;
2218
- matches?: string | undefined;
2219
- }[] | undefined;
2220
- }, {
2221
- on_fail?: "fail" | "skip" | undefined;
2222
- output_required?: string[] | undefined;
2223
- output_matches?: {
2224
- path: string;
2225
- in?: unknown[] | undefined;
2226
- equals?: unknown;
2227
- matches?: string | undefined;
2228
- }[] | undefined;
2229
- }>, {
2230
- on_fail?: "fail" | "skip" | undefined;
2231
- output_required?: string[] | undefined;
2232
- output_matches?: {
2233
- path: string;
2234
- in?: unknown[] | undefined;
2235
- equals?: unknown;
2236
- matches?: string | undefined;
2237
- }[] | undefined;
2238
- }, {
2239
- on_fail?: "fail" | "skip" | undefined;
2240
- output_required?: string[] | undefined;
2241
- output_matches?: {
2242
- path: string;
2243
- in?: unknown[] | undefined;
2244
- equals?: unknown;
2245
- matches?: string | undefined;
2246
- }[] | undefined;
2247
- }>>;
2248
- retry: z.ZodOptional<z.ZodObject<{
2249
- max: z.ZodNumber;
2250
- instruction: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2251
- auto: z.ZodLiteral<true>;
2252
- }, "strict", z.ZodTypeAny, {
2253
- auto: true;
2254
- }, {
2255
- auto: true;
2256
- }>, z.ZodObject<{
2257
- reflect: z.ZodString;
2258
- }, "strict", z.ZodTypeAny, {
2259
- reflect: string;
2260
- }, {
2261
- reflect: string;
2262
- }>]>>;
2263
- }, "strict", z.ZodTypeAny, {
2264
- max: number;
2265
- instruction?: string | {
2266
- auto: true;
2267
- } | {
2268
- reflect: string;
2269
- } | undefined;
2270
- }, {
2271
- max: number;
2272
- instruction?: string | {
2273
- auto: true;
2274
- } | {
2275
- reflect: string;
2276
- } | undefined;
2277
- }>>;
2278
- }, "strict", z.ZodTypeAny, {
2279
- name: string;
2280
- instruction: string | {
2281
- inline: string;
2282
- } | {
2283
- file: string;
2284
- } | {
2285
- url: string;
2286
- type?: string | undefined;
2287
- };
2288
- skills: string[];
2289
- model?: string | undefined;
2290
- permissions?: "write" | "read" | {
2291
- strict?: boolean | undefined;
2292
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2293
- access?: "write" | "read" | undefined;
2294
- } | undefined;
2295
- outputs?: {
2296
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2297
- number?: string | number | {
2298
- input: string;
2299
- } | undefined;
2300
- labels?: string[] | undefined;
2301
- state?: "close" | "reopen" | undefined;
2302
- via?: string | undefined;
2303
- target?: string | undefined;
2304
- title_prefix?: string | undefined;
2305
- max?: number | undefined;
2306
- expires?: string | undefined;
2307
- }[] | undefined;
2308
- output?: Record<string, unknown> | undefined;
2309
- max_turns?: number | undefined;
2310
- budget?: {
2311
- tokens?: number | undefined;
2312
- cost_usd?: number | undefined;
2313
- } | undefined;
2314
- rules?: (string | {
2315
- inline: string;
2316
- } | {
2317
- file: string;
2318
- } | {
2319
- url: string;
2320
- type?: string | undefined;
2321
- })[] | {
2322
- sources: (string | {
2323
- inline: string;
2324
- } | {
2325
- file: string;
2326
- } | {
2327
- url: string;
2328
- type?: string | undefined;
2329
- })[];
2330
- only?: boolean | undefined;
2331
- } | undefined;
2332
- context?: (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
- eval?: {
2351
- name: string;
2352
- kind: "function" | "value" | "judge";
2353
- model?: string | undefined;
2354
- rule?: {
2355
- any_tool_called?: string[] | undefined;
2356
- all_tools_called?: string[] | undefined;
2357
- no_tool_called?: string[] | undefined;
2358
- output_required?: string[] | undefined;
2359
- output_matches?: {
2360
- path: string;
2361
- in?: unknown[] | undefined;
2362
- equals?: unknown;
2363
- matches?: string | undefined;
2364
- }[] | undefined;
2365
- } | undefined;
2366
- rubric?: string | undefined;
2367
- pass_when?: string | undefined;
2368
- }[] | undefined;
2369
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2370
- judge_model?: string | undefined;
2371
- requires?: {
2372
- on_fail?: "fail" | "skip" | undefined;
2373
- output_required?: string[] | undefined;
2374
- output_matches?: {
2375
- path: string;
2376
- in?: unknown[] | undefined;
2377
- equals?: unknown;
2378
- matches?: string | undefined;
2379
- }[] | undefined;
2380
- } | undefined;
2381
- retry?: {
2382
- max: number;
2383
- instruction?: string | {
2384
- auto: true;
2385
- } | {
2386
- reflect: string;
2387
- } | undefined;
2388
- } | undefined;
2389
- disallowed_tools?: string[] | undefined;
2390
- agent_env?: string[] | undefined;
2391
- tools?: {
2392
- allow?: string[] | undefined;
2393
- deny?: string[] | undefined;
2394
- } | undefined;
2395
- fail_soft?: boolean | undefined;
2396
- on_fail?: "continue" | "halt" | undefined;
2397
- route_by?: "decider" | "agent" | undefined;
2398
- }, {
2399
- name: string;
2400
- instruction: string | {
2401
- inline: string;
2402
- } | {
2403
- file: string;
2404
- } | {
2405
- url: string;
2406
- type?: string | undefined;
2407
- };
2408
- model?: string | undefined;
2409
- permissions?: "write" | "read" | {
2410
- strict?: boolean | undefined;
2411
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2412
- access?: "write" | "read" | undefined;
2413
- } | undefined;
2414
- outputs?: {
2415
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2416
- number?: string | number | {
2417
- input: string;
2418
- } | undefined;
2419
- labels?: string[] | undefined;
2420
- state?: "close" | "reopen" | undefined;
2421
- via?: string | undefined;
2422
- target?: string | undefined;
2423
- title_prefix?: string | undefined;
2424
- max?: number | undefined;
2425
- expires?: string | undefined;
2426
- }[] | undefined;
2427
- skills?: string[] | undefined;
2428
- output?: Record<string, unknown> | undefined;
2429
- max_turns?: number | undefined;
2430
- budget?: {
2431
- tokens?: number | undefined;
2432
- cost_usd?: number | undefined;
2433
- } | undefined;
2434
- rules?: (string | {
2435
- inline: string;
2436
- } | {
2437
- file: string;
2438
- } | {
2439
- url: string;
2440
- type?: string | undefined;
2441
- })[] | {
2442
- sources: (string | {
2443
- inline: string;
2444
- } | {
2445
- file: string;
2446
- } | {
2447
- url: string;
2448
- type?: string | undefined;
2449
- })[];
2450
- only?: boolean | undefined;
2451
- } | undefined;
2452
- context?: (string | {
2453
- inline: string;
2454
- } | {
2455
- file: string;
2456
- } | {
2457
- url: string;
2458
- type?: string | undefined;
2459
- })[] | {
2460
- sources: (string | {
2461
- inline: string;
2462
- } | {
2463
- file: string;
2464
- } | {
2465
- url: string;
2466
- type?: string | undefined;
2467
- })[];
2468
- only?: boolean | undefined;
2469
- } | undefined;
2470
- eval?: {
2471
- name: string;
2472
- kind: "function" | "value" | "judge";
2473
- model?: string | undefined;
2474
- rule?: {
2475
- any_tool_called?: string[] | undefined;
2476
- all_tools_called?: string[] | undefined;
2477
- no_tool_called?: string[] | undefined;
2478
- output_required?: string[] | undefined;
2479
- output_matches?: {
2480
- path: string;
2481
- in?: unknown[] | undefined;
2482
- equals?: unknown;
2483
- matches?: string | undefined;
2484
- }[] | undefined;
2485
- } | undefined;
2486
- rubric?: string | undefined;
2487
- pass_when?: string | undefined;
2488
- }[] | undefined;
2489
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2490
- judge_model?: string | undefined;
2491
- requires?: {
2492
- on_fail?: "fail" | "skip" | undefined;
2493
- output_required?: string[] | undefined;
2494
- output_matches?: {
2495
- path: string;
2496
- in?: unknown[] | undefined;
2497
- equals?: unknown;
2498
- matches?: string | undefined;
2499
- }[] | undefined;
2500
- } | undefined;
2501
- retry?: {
2502
- max: number;
2503
- instruction?: string | {
2504
- auto: true;
2505
- } | {
2506
- reflect: string;
2507
- } | undefined;
2508
- } | undefined;
2509
- disallowed_tools?: string[] | undefined;
2510
- agent_env?: string[] | undefined;
2511
- tools?: {
2512
- allow?: string[] | undefined;
2513
- deny?: string[] | undefined;
2514
- } | undefined;
2515
- fail_soft?: boolean | undefined;
2516
- on_fail?: "continue" | "halt" | undefined;
2517
- route_by?: "decider" | "agent" | undefined;
2518
- }>>;
2519
- edges: z.ZodArray<z.ZodObject<{
2520
- from: z.ZodString;
2521
- to: z.ZodString;
2522
- when: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2523
- expr: z.ZodString;
2524
- }, "strict", z.ZodTypeAny, {
2525
- expr: string;
2526
- }, {
2527
- expr: string;
2528
- }>]>>;
2529
- description: z.ZodOptional<z.ZodString>;
2530
- max_iterations: z.ZodOptional<z.ZodNumber>;
2531
- }, "strict", z.ZodTypeAny, {
2532
- from: string;
2533
- to: string;
2534
- description?: string | undefined;
2535
- max_iterations?: number | undefined;
2536
- when?: string | {
2537
- expr: string;
2538
- } | undefined;
2539
- }, {
2540
- from: string;
2541
- to: string;
2542
- description?: string | undefined;
2543
- max_iterations?: number | undefined;
2544
- when?: string | {
2545
- expr: string;
2546
- } | undefined;
2547
- }>, "many">;
2548
- entry: z.ZodString;
2549
- skills: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2550
- name: z.ZodOptional<z.ZodString>;
2551
- description: z.ZodOptional<z.ZodString>;
2552
- instruction: z.ZodOptional<z.ZodString>;
2553
- mcp: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2554
- type: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
2555
- command: z.ZodOptional<z.ZodString>;
2556
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2557
- url: z.ZodOptional<z.ZodString>;
2558
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2559
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2560
- }, "strict", z.ZodTypeAny, {
2561
- url?: string | undefined;
2562
- type?: "stdio" | "http" | undefined;
2563
- headers?: Record<string, string> | undefined;
2564
- args?: string[] | undefined;
2565
- command?: string | undefined;
2566
- env?: Record<string, string> | undefined;
2567
- }, {
2568
- url?: string | undefined;
2569
- type?: "stdio" | "http" | undefined;
2570
- headers?: Record<string, string> | undefined;
2571
- args?: string[] | undefined;
2572
- command?: string | undefined;
2573
- env?: Record<string, string> | undefined;
2574
- }>, {
2575
- url?: string | undefined;
2576
- type?: "stdio" | "http" | undefined;
2577
- headers?: Record<string, string> | undefined;
2578
- args?: string[] | undefined;
2579
- command?: string | undefined;
2580
- env?: Record<string, string> | undefined;
2581
- }, {
2582
- url?: string | undefined;
2583
- type?: "stdio" | "http" | undefined;
2584
- headers?: Record<string, string> | undefined;
2585
- args?: string[] | undefined;
2586
- command?: string | undefined;
2587
- env?: Record<string, string> | undefined;
2588
- }>>;
2589
- }, "strict", z.ZodTypeAny, {
2590
- description?: string | undefined;
2591
- name?: string | undefined;
2592
- instruction?: string | undefined;
2593
- mcp?: {
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
- } | undefined;
2601
- }, {
2602
- description?: string | undefined;
2603
- name?: string | undefined;
2604
- instruction?: string | undefined;
2605
- mcp?: {
2606
- url?: string | undefined;
2607
- type?: "stdio" | "http" | undefined;
2608
- headers?: Record<string, string> | undefined;
2609
- args?: string[] | undefined;
2610
- command?: string | undefined;
2611
- env?: Record<string, string> | undefined;
2612
- } | undefined;
2613
- }>, {
2614
- description?: string | undefined;
2615
- name?: string | undefined;
2616
- instruction?: string | undefined;
2617
- mcp?: {
2618
- url?: string | undefined;
2619
- type?: "stdio" | "http" | undefined;
2620
- headers?: Record<string, string> | undefined;
2621
- args?: string[] | undefined;
2622
- command?: string | undefined;
2623
- env?: Record<string, string> | undefined;
2624
- } | undefined;
2625
- }, {
2626
- description?: string | undefined;
2627
- name?: string | undefined;
2628
- instruction?: string | undefined;
2629
- mcp?: {
2630
- url?: string | undefined;
2631
- type?: "stdio" | "http" | undefined;
2632
- headers?: Record<string, string> | undefined;
2633
- args?: string[] | undefined;
2634
- command?: string | undefined;
2635
- env?: Record<string, string> | undefined;
2636
- } | undefined;
2637
- }>>>;
2638
- rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2639
- inline: z.ZodString;
2640
- }, "strict", z.ZodTypeAny, {
2641
- inline: string;
2642
- }, {
2643
- inline: string;
2644
- }>, z.ZodObject<{
2645
- file: z.ZodString;
2646
- }, "strict", z.ZodTypeAny, {
2647
- file: string;
2648
- }, {
2649
- file: string;
2650
- }>, z.ZodObject<{
2651
- url: z.ZodString;
2652
- type: z.ZodOptional<z.ZodString>;
2653
- }, "strict", z.ZodTypeAny, {
2654
- url: string;
2655
- type?: string | undefined;
2656
- }, {
2657
- url: string;
2658
- type?: string | undefined;
2659
- }>]>, "many">>;
2660
- context: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2661
- inline: z.ZodString;
2662
- }, "strict", z.ZodTypeAny, {
2663
- inline: string;
2664
- }, {
2665
- inline: string;
2666
- }>, z.ZodObject<{
2667
- file: z.ZodString;
2668
- }, "strict", z.ZodTypeAny, {
2669
- file: string;
2670
- }, {
2671
- file: string;
2672
- }>, z.ZodObject<{
2673
- url: z.ZodString;
2674
- type: z.ZodOptional<z.ZodString>;
2675
- }, "strict", z.ZodTypeAny, {
2676
- url: string;
2677
- type?: string | undefined;
2678
- }, {
2679
- url: string;
2680
- type?: string | undefined;
2681
- }>]>, "many">>;
2682
- judge_model: z.ZodOptional<z.ZodString>;
2683
- model: z.ZodOptional<z.ZodString>;
2684
- judge_budget: z.ZodOptional<z.ZodNumber>;
2685
- budget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2686
- tokens: z.ZodOptional<z.ZodNumber>;
2687
- cost_usd: z.ZodOptional<z.ZodNumber>;
2688
- }, "strict", z.ZodTypeAny, {
2689
- tokens?: number | undefined;
2690
- cost_usd?: number | undefined;
2691
- }, {
2692
- tokens?: number | undefined;
2693
- cost_usd?: number | undefined;
2694
- }>, {
2695
- tokens?: number | undefined;
2696
- cost_usd?: number | undefined;
2697
- }, {
2698
- tokens?: number | undefined;
2699
- cost_usd?: number | undefined;
2700
- }>>;
2701
- decider: z.ZodOptional<z.ZodObject<{
2702
- mode: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
2703
- provider: z.ZodOptional<z.ZodType<never, z.ZodTypeDef, never>>;
2704
- min_confidence: z.ZodOptional<z.ZodNumber>;
2705
- min_margin: z.ZodOptional<z.ZodNumber>;
2706
- }, "strict", z.ZodTypeAny, {
2707
- min_confidence?: number | undefined;
2708
- mode?: undefined;
2709
- provider?: undefined;
2710
- min_margin?: number | undefined;
2711
- }, {
2712
- min_confidence?: number | undefined;
2713
- mode?: undefined;
2714
- provider?: undefined;
2715
- min_margin?: number | undefined;
2716
- }>>;
2717
- context_mode: z.ZodOptional<z.ZodEnum<["bounded", "full"]>>;
2718
- inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2719
- type: z.ZodEnum<["string", "number", "boolean", "string[]"]>;
2720
- description: z.ZodOptional<z.ZodString>;
2721
- required: z.ZodOptional<z.ZodBoolean>;
2722
- default: z.ZodOptional<z.ZodUnknown>;
2723
- enum: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2724
- }, "strict", z.ZodTypeAny, {
2725
- type: "string" | "number" | "boolean" | "string[]";
2726
- description?: string | undefined;
2727
- required?: boolean | undefined;
2728
- default?: unknown;
2729
- enum?: unknown[] | undefined;
2730
- }, {
2731
- type: "string" | "number" | "boolean" | "string[]";
2732
- description?: string | undefined;
2733
- required?: boolean | undefined;
2734
- default?: unknown;
2735
- enum?: unknown[] | undefined;
2736
- }>, {
2737
- type: "string" | "number" | "boolean" | "string[]";
2738
- description?: string | undefined;
2739
- required?: boolean | undefined;
2740
- default?: unknown;
2741
- enum?: unknown[] | undefined;
2742
- }, {
2743
- type: "string" | "number" | "boolean" | "string[]";
2744
- description?: string | undefined;
2745
- required?: boolean | undefined;
2746
- default?: unknown;
2747
- enum?: unknown[] | undefined;
2748
- }>>>;
2749
- permissions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["read", "write"]>, z.ZodEffects<z.ZodObject<{
2750
- access: z.ZodOptional<z.ZodEnum<["read", "write"]>>;
2751
- deny: z.ZodOptional<z.ZodArray<z.ZodEnum<["shell", "write", "edit", "net", "subagent"]>, "many">>;
2752
- strict: z.ZodOptional<z.ZodBoolean>;
2753
- }, "strict", z.ZodTypeAny, {
2754
- strict?: boolean | undefined;
2755
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2756
- access?: "write" | "read" | undefined;
2757
- }, {
2758
- strict?: boolean | undefined;
2759
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2760
- access?: "write" | "read" | undefined;
2761
- }>, {
2762
- strict?: boolean | undefined;
2763
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2764
- access?: "write" | "read" | undefined;
2765
- }, {
2766
- strict?: boolean | undefined;
2767
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2768
- access?: "write" | "read" | undefined;
2769
- }>]>>;
2770
- safe_outputs: z.ZodOptional<z.ZodObject<{
2771
- allow: z.ZodOptional<z.ZodArray<z.ZodEnum<["comment", "issue", "pr", "label", "issue_state"]>, "many">>;
2772
- max: z.ZodOptional<z.ZodNumber>;
2773
- staged: z.ZodOptional<z.ZodBoolean>;
2774
- trusted_actors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2775
- trusted_associations: z.ZodOptional<z.ZodArray<z.ZodEnum<["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIME_CONTRIBUTOR", "FIRST_TIMER", "NONE"]>, "many">>;
2776
- screen: z.ZodOptional<z.ZodBoolean>;
2777
- }, "strict", z.ZodTypeAny, {
2778
- staged?: boolean | undefined;
2779
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
2780
- max?: number | undefined;
2781
- trusted_actors?: string[] | undefined;
2782
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
2783
- screen?: boolean | undefined;
2784
- }, {
2785
- staged?: boolean | undefined;
2786
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
2787
- max?: number | undefined;
2788
- trusted_actors?: string[] | undefined;
2789
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
2790
- screen?: boolean | undefined;
2791
- }>>;
2792
- }, "strip", z.ZodTypeAny, {
2793
- description: string;
2794
- name: string;
2795
- id: string;
2796
- skills: Record<string, {
2797
- description?: string | undefined;
2798
- name?: string | undefined;
2799
- instruction?: string | undefined;
2800
- mcp?: {
2801
- url?: string | undefined;
2802
- type?: "stdio" | "http" | undefined;
2803
- headers?: Record<string, string> | undefined;
2804
- args?: string[] | undefined;
2805
- command?: string | undefined;
2806
- env?: Record<string, string> | undefined;
2807
- } | undefined;
2808
- }>;
2809
- nodes: Record<string, {
2810
- name: string;
2811
- instruction: string | {
2812
- inline: string;
2813
- } | {
2814
- file: string;
2815
- } | {
2816
- url: string;
2817
- type?: string | undefined;
2818
- };
2819
- skills: string[];
2820
- model?: string | undefined;
2821
- permissions?: "write" | "read" | {
2822
- strict?: boolean | undefined;
2823
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2824
- access?: "write" | "read" | undefined;
2825
- } | undefined;
2826
- outputs?: {
2827
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
2828
- number?: string | number | {
2829
- input: string;
2830
- } | undefined;
2831
- labels?: string[] | undefined;
2832
- state?: "close" | "reopen" | undefined;
2833
- via?: string | undefined;
2834
- target?: string | undefined;
2835
- title_prefix?: string | undefined;
2836
- max?: number | undefined;
2837
- expires?: string | undefined;
2838
- }[] | undefined;
2839
- output?: Record<string, unknown> | undefined;
2840
- max_turns?: number | undefined;
2841
- budget?: {
2842
- tokens?: number | undefined;
2843
- cost_usd?: number | undefined;
2844
- } | undefined;
2845
- rules?: (string | {
2846
- inline: string;
2847
- } | {
2848
- file: string;
2849
- } | {
2850
- url: string;
2851
- type?: string | undefined;
2852
- })[] | {
2853
- sources: (string | {
2854
- inline: string;
2855
- } | {
2856
- file: string;
2857
- } | {
2858
- url: string;
2859
- type?: string | undefined;
2860
- })[];
2861
- only?: boolean | undefined;
2862
- } | undefined;
2863
- context?: (string | {
2864
- inline: string;
2865
- } | {
2866
- file: string;
2867
- } | {
2868
- url: string;
2869
- type?: string | undefined;
2870
- })[] | {
2871
- sources: (string | {
2872
- inline: string;
2873
- } | {
2874
- file: string;
2875
- } | {
2876
- url: string;
2877
- type?: string | undefined;
2878
- })[];
2879
- only?: boolean | undefined;
2880
- } | undefined;
2881
- eval?: {
2882
- name: string;
2883
- kind: "function" | "value" | "judge";
2884
- model?: string | undefined;
2885
- rule?: {
2886
- any_tool_called?: string[] | undefined;
2887
- all_tools_called?: string[] | undefined;
2888
- no_tool_called?: string[] | undefined;
2889
- output_required?: string[] | undefined;
2890
- output_matches?: {
2891
- path: string;
2892
- in?: unknown[] | undefined;
2893
- equals?: unknown;
2894
- matches?: string | undefined;
2895
- }[] | undefined;
2896
- } | undefined;
2897
- rubric?: string | undefined;
2898
- pass_when?: string | undefined;
2899
- }[] | undefined;
2900
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
2901
- judge_model?: string | undefined;
2902
- requires?: {
2903
- on_fail?: "fail" | "skip" | undefined;
2904
- output_required?: string[] | undefined;
2905
- output_matches?: {
2906
- path: string;
2907
- in?: unknown[] | undefined;
2908
- equals?: unknown;
2909
- matches?: string | undefined;
2910
- }[] | undefined;
2911
- } | undefined;
2912
- retry?: {
2913
- max: number;
2914
- instruction?: string | {
2915
- auto: true;
2916
- } | {
2917
- reflect: string;
2918
- } | undefined;
2919
- } | undefined;
2920
- disallowed_tools?: string[] | undefined;
2921
- agent_env?: string[] | undefined;
2922
- tools?: {
2923
- allow?: string[] | undefined;
2924
- deny?: string[] | undefined;
2925
- } | undefined;
2926
- fail_soft?: boolean | undefined;
2927
- on_fail?: "continue" | "halt" | undefined;
2928
- route_by?: "decider" | "agent" | undefined;
2929
- }>;
2930
- edges: {
2931
- from: string;
2932
- to: string;
2933
- description?: string | undefined;
2934
- max_iterations?: number | undefined;
2935
- when?: string | {
2936
- expr: string;
2937
- } | undefined;
2938
- }[];
2939
- entry: string;
2940
- model?: string | undefined;
2941
- decider?: {
2942
- min_confidence?: number | undefined;
2943
- mode?: undefined;
2944
- provider?: undefined;
2945
- min_margin?: number | undefined;
2946
- } | undefined;
2947
- permissions?: "write" | "read" | {
2948
- strict?: boolean | undefined;
2949
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
2950
- access?: "write" | "read" | undefined;
2951
- } | undefined;
2952
- budget?: {
2953
- tokens?: number | undefined;
2954
- cost_usd?: number | undefined;
2955
- } | undefined;
2956
- rules?: (string | {
2957
- inline: string;
2958
- } | {
2959
- file: string;
2960
- } | {
2961
- url: string;
2962
- type?: string | undefined;
2963
- })[] | undefined;
2964
- context?: (string | {
2965
- inline: string;
2966
- } | {
2967
- file: string;
2968
- } | {
2969
- url: string;
2970
- type?: string | undefined;
2971
- })[] | undefined;
2972
- judge_model?: string | undefined;
2973
- spec_version?: string | undefined;
2974
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
2975
- judge_budget?: number | undefined;
2976
- context_mode?: "full" | "bounded" | undefined;
2977
- inputs?: Record<string, {
2978
- type: "string" | "number" | "boolean" | "string[]";
2979
- description?: string | undefined;
2980
- required?: boolean | undefined;
2981
- default?: unknown;
2982
- enum?: unknown[] | undefined;
2983
- }> | undefined;
2984
- safe_outputs?: {
2985
- staged?: boolean | undefined;
2986
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
2987
- max?: number | undefined;
2988
- trusted_actors?: string[] | undefined;
2989
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
2990
- screen?: boolean | undefined;
2991
- } | undefined;
2992
- }, {
2993
- name: string;
2994
- id: string;
2995
- nodes: Record<string, {
2996
- name: string;
2997
- instruction: string | {
2998
- inline: string;
2999
- } | {
3000
- file: string;
3001
- } | {
3002
- url: string;
3003
- type?: string | undefined;
3004
- };
3005
- model?: string | undefined;
3006
- permissions?: "write" | "read" | {
3007
- strict?: boolean | undefined;
3008
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3009
- access?: "write" | "read" | undefined;
3010
- } | undefined;
3011
- outputs?: {
3012
- type: "label" | "comment" | "issue" | "pr" | "issue_state";
3013
- number?: string | number | {
3014
- input: string;
3015
- } | undefined;
3016
- labels?: string[] | undefined;
3017
- state?: "close" | "reopen" | undefined;
3018
- via?: string | undefined;
3019
- target?: string | undefined;
3020
- title_prefix?: string | undefined;
3021
- max?: number | undefined;
3022
- expires?: string | undefined;
3023
- }[] | undefined;
3024
- skills?: string[] | undefined;
3025
- output?: Record<string, unknown> | undefined;
3026
- max_turns?: number | undefined;
3027
- budget?: {
3028
- tokens?: number | undefined;
3029
- cost_usd?: number | undefined;
3030
- } | undefined;
3031
- rules?: (string | {
3032
- inline: string;
3033
- } | {
3034
- file: string;
3035
- } | {
3036
- url: string;
3037
- type?: string | undefined;
3038
- })[] | {
3039
- sources: (string | {
3040
- inline: string;
3041
- } | {
3042
- file: string;
3043
- } | {
3044
- url: string;
3045
- type?: string | undefined;
3046
- })[];
3047
- only?: boolean | undefined;
3048
- } | undefined;
3049
- context?: (string | {
3050
- inline: string;
3051
- } | {
3052
- file: string;
3053
- } | {
3054
- url: string;
3055
- type?: string | undefined;
3056
- })[] | {
3057
- sources: (string | {
3058
- inline: string;
3059
- } | {
3060
- file: string;
3061
- } | {
3062
- url: string;
3063
- type?: string | undefined;
3064
- })[];
3065
- only?: boolean | undefined;
3066
- } | undefined;
3067
- eval?: {
3068
- name: string;
3069
- kind: "function" | "value" | "judge";
3070
- model?: string | undefined;
3071
- rule?: {
3072
- any_tool_called?: string[] | undefined;
3073
- all_tools_called?: string[] | undefined;
3074
- no_tool_called?: string[] | undefined;
3075
- output_required?: string[] | undefined;
3076
- output_matches?: {
3077
- path: string;
3078
- in?: unknown[] | undefined;
3079
- equals?: unknown;
3080
- matches?: string | undefined;
3081
- }[] | undefined;
3082
- } | undefined;
3083
- rubric?: string | undefined;
3084
- pass_when?: string | undefined;
3085
- }[] | undefined;
3086
- eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
3087
- judge_model?: string | undefined;
3088
- requires?: {
3089
- on_fail?: "fail" | "skip" | undefined;
3090
- output_required?: string[] | undefined;
3091
- output_matches?: {
3092
- path: string;
3093
- in?: unknown[] | undefined;
3094
- equals?: unknown;
3095
- matches?: string | undefined;
3096
- }[] | undefined;
3097
- } | undefined;
3098
- retry?: {
3099
- max: number;
3100
- instruction?: string | {
3101
- auto: true;
3102
- } | {
3103
- reflect: string;
3104
- } | undefined;
3105
- } | undefined;
3106
- disallowed_tools?: string[] | undefined;
3107
- agent_env?: string[] | undefined;
3108
- tools?: {
3109
- allow?: string[] | undefined;
3110
- deny?: string[] | undefined;
3111
- } | undefined;
3112
- fail_soft?: boolean | undefined;
3113
- on_fail?: "continue" | "halt" | undefined;
3114
- route_by?: "decider" | "agent" | undefined;
3115
- }>;
3116
- edges: {
3117
- from: string;
3118
- to: string;
3119
- description?: string | undefined;
3120
- max_iterations?: number | undefined;
3121
- when?: string | {
3122
- expr: string;
3123
- } | undefined;
3124
- }[];
3125
- entry: string;
3126
- description?: string | undefined;
3127
- model?: string | undefined;
3128
- decider?: {
3129
- min_confidence?: number | undefined;
3130
- mode?: undefined;
3131
- provider?: undefined;
3132
- min_margin?: number | undefined;
3133
- } | undefined;
3134
- permissions?: "write" | "read" | {
3135
- strict?: boolean | undefined;
3136
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3137
- access?: "write" | "read" | undefined;
3138
- } | undefined;
3139
- skills?: Record<string, {
3140
- description?: string | undefined;
3141
- name?: string | undefined;
3142
- instruction?: string | undefined;
3143
- mcp?: {
3144
- url?: string | undefined;
3145
- type?: "stdio" | "http" | undefined;
3146
- headers?: Record<string, string> | undefined;
3147
- args?: string[] | undefined;
3148
- command?: string | undefined;
3149
- env?: Record<string, string> | undefined;
3150
- } | undefined;
3151
- }> | undefined;
3152
- budget?: {
3153
- tokens?: number | undefined;
3154
- cost_usd?: number | undefined;
3155
- } | undefined;
3156
- rules?: (string | {
3157
- inline: string;
3158
- } | {
3159
- file: string;
3160
- } | {
3161
- url: string;
3162
- type?: string | undefined;
3163
- })[] | undefined;
3164
- context?: (string | {
3165
- inline: string;
3166
- } | {
3167
- file: string;
3168
- } | {
3169
- url: string;
3170
- type?: string | undefined;
3171
- })[] | undefined;
3172
- judge_model?: string | undefined;
3173
- spec_version?: string | undefined;
3174
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
3175
- judge_budget?: number | undefined;
3176
- context_mode?: "full" | "bounded" | undefined;
3177
- inputs?: Record<string, {
3178
- type: "string" | "number" | "boolean" | "string[]";
3179
- description?: string | undefined;
3180
- required?: boolean | undefined;
3181
- default?: unknown;
3182
- enum?: unknown[] | undefined;
3183
- }> | undefined;
3184
- safe_outputs?: {
3185
- staged?: boolean | undefined;
3186
- allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
3187
- max?: number | undefined;
3188
- trusted_actors?: string[] | undefined;
3189
- trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
3190
- screen?: boolean | undefined;
3191
- } | 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";
3192
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>;
3193
821
  /**
3194
822
  * Detect legacy `verify:` blocks before parse and throw a clear migration
3195
823
  * error. Without this preflight, the user gets Zod's generic "Unrecognized
@@ -3204,22 +832,9 @@ export declare const workflowZ: z.ZodObject<{
3204
832
  export declare function preflightLegacyVerify(raw: unknown): void;
3205
833
  /** Parse + validate a raw object as a Workflow. Throws on invalid input. */
3206
834
  export declare function parseWorkflow(raw: unknown): {
3207
- description: string;
3208
- name: string;
3209
835
  id: string;
3210
- skills: Record<string, {
3211
- description?: string | undefined;
3212
- name?: string | undefined;
3213
- instruction?: string | undefined;
3214
- mcp?: {
3215
- url?: string | undefined;
3216
- type?: "stdio" | "http" | undefined;
3217
- headers?: Record<string, string> | undefined;
3218
- args?: string[] | undefined;
3219
- command?: string | undefined;
3220
- env?: Record<string, string> | undefined;
3221
- } | undefined;
3222
- }>;
836
+ name: string;
837
+ description: string;
3223
838
  nodes: Record<string, {
3224
839
  name: string;
3225
840
  instruction: string | {
@@ -3231,31 +846,40 @@ export declare function parseWorkflow(raw: unknown): {
3231
846
  type?: string | undefined;
3232
847
  };
3233
848
  skills: string[];
3234
- 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;
3235
864
  permissions?: "write" | "read" | {
3236
- strict?: boolean | undefined;
3237
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3238
865
  access?: "write" | "read" | undefined;
866
+ deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
867
+ strict?: boolean | undefined;
868
+ native?: "default" | "none" | undefined;
3239
869
  } | undefined;
3240
870
  outputs?: {
3241
871
  type: "label" | "comment" | "issue" | "pr" | "issue_state";
3242
- number?: string | number | {
3243
- input: string;
3244
- } | undefined;
3245
- labels?: string[] | undefined;
3246
- state?: "close" | "reopen" | undefined;
3247
872
  via?: string | undefined;
873
+ max?: number | undefined;
3248
874
  target?: string | undefined;
3249
875
  title_prefix?: string | undefined;
3250
- max?: number | undefined;
876
+ labels?: string[] | undefined;
3251
877
  expires?: string | undefined;
878
+ number?: string | number | {
879
+ input: string;
880
+ } | undefined;
881
+ state?: "close" | "reopen" | undefined;
3252
882
  }[] | undefined;
3253
- output?: Record<string, unknown> | undefined;
3254
- max_turns?: number | undefined;
3255
- budget?: {
3256
- tokens?: number | undefined;
3257
- cost_usd?: number | undefined;
3258
- } | undefined;
3259
883
  rules?: (string | {
3260
884
  inline: string;
3261
885
  } | {
@@ -3295,7 +919,6 @@ export declare function parseWorkflow(raw: unknown): {
3295
919
  eval?: {
3296
920
  name: string;
3297
921
  kind: "function" | "value" | "judge";
3298
- model?: string | undefined;
3299
922
  rule?: {
3300
923
  any_tool_called?: string[] | undefined;
3301
924
  all_tools_called?: string[] | undefined;
@@ -3303,25 +926,27 @@ export declare function parseWorkflow(raw: unknown): {
3303
926
  output_required?: string[] | undefined;
3304
927
  output_matches?: {
3305
928
  path: string;
3306
- in?: unknown[] | undefined;
3307
929
  equals?: unknown;
930
+ in?: unknown[] | undefined;
3308
931
  matches?: string | undefined;
3309
932
  }[] | undefined;
3310
933
  } | undefined;
3311
934
  rubric?: string | undefined;
3312
935
  pass_when?: string | undefined;
936
+ model?: string | undefined;
3313
937
  }[] | undefined;
3314
938
  eval_policy?: "all_pass" | "any_pass" | "weighted" | undefined;
3315
939
  judge_model?: string | undefined;
940
+ model?: string | undefined;
3316
941
  requires?: {
3317
- on_fail?: "fail" | "skip" | undefined;
3318
942
  output_required?: string[] | undefined;
3319
943
  output_matches?: {
3320
944
  path: string;
3321
- in?: unknown[] | undefined;
3322
945
  equals?: unknown;
946
+ in?: unknown[] | undefined;
3323
947
  matches?: string | undefined;
3324
948
  }[] | undefined;
949
+ on_fail?: "fail" | "skip" | undefined;
3325
950
  } | undefined;
3326
951
  retry?: {
3327
952
  max: number;
@@ -3331,42 +956,32 @@ export declare function parseWorkflow(raw: unknown): {
3331
956
  reflect: string;
3332
957
  } | undefined;
3333
958
  } | undefined;
3334
- disallowed_tools?: string[] | undefined;
3335
- agent_env?: string[] | undefined;
3336
- tools?: {
3337
- allow?: string[] | undefined;
3338
- deny?: string[] | undefined;
3339
- } | undefined;
3340
- fail_soft?: boolean | undefined;
3341
- on_fail?: "continue" | "halt" | undefined;
3342
- route_by?: "decider" | "agent" | undefined;
3343
959
  }>;
3344
960
  edges: {
3345
961
  from: string;
3346
962
  to: string;
3347
- description?: string | undefined;
3348
- max_iterations?: number | undefined;
3349
963
  when?: string | {
3350
964
  expr: string;
3351
965
  } | undefined;
966
+ description?: string | undefined;
967
+ max_iterations?: number | undefined;
3352
968
  }[];
3353
969
  entry: string;
3354
- model?: string | undefined;
3355
- decider?: {
3356
- min_confidence?: number | undefined;
3357
- mode?: undefined;
3358
- provider?: undefined;
3359
- min_margin?: number | undefined;
3360
- } | undefined;
3361
- permissions?: "write" | "read" | {
3362
- strict?: boolean | undefined;
3363
- deny?: ("shell" | "write" | "edit" | "net" | "subagent")[] | undefined;
3364
- access?: "write" | "read" | undefined;
3365
- } | undefined;
3366
- budget?: {
3367
- tokens?: number | undefined;
3368
- cost_usd?: number | undefined;
3369
- } | 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;
3370
985
  rules?: (string | {
3371
986
  inline: string;
3372
987
  } | {
@@ -3384,9 +999,18 @@ export declare function parseWorkflow(raw: unknown): {
3384
999
  type?: string | undefined;
3385
1000
  })[] | undefined;
3386
1001
  judge_model?: string | undefined;
3387
- spec_version?: string | undefined;
3388
- workflow_type?: "pr_review" | "e2e_test" | "content_generation" | "monitor" | "data_sync" | "generic" | undefined;
1002
+ model?: string | undefined;
3389
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;
3390
1014
  context_mode?: "full" | "bounded" | undefined;
3391
1015
  inputs?: Record<string, {
3392
1016
  type: "string" | "number" | "boolean" | "string[]";
@@ -3395,10 +1019,16 @@ export declare function parseWorkflow(raw: unknown): {
3395
1019
  default?: unknown;
3396
1020
  enum?: unknown[] | undefined;
3397
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;
3398
1028
  safe_outputs?: {
3399
- staged?: boolean | undefined;
3400
1029
  allow?: ("label" | "comment" | "issue" | "pr" | "issue_state")[] | undefined;
3401
1030
  max?: number | undefined;
1031
+ staged?: boolean | undefined;
3402
1032
  trusted_actors?: string[] | undefined;
3403
1033
  trusted_associations?: ("OWNER" | "MEMBER" | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIME_CONTRIBUTOR" | "FIRST_TIMER" | "NONE")[] | undefined;
3404
1034
  screen?: boolean | undefined;
@@ -3662,6 +1292,11 @@ export declare const workflowJsonSchema: {
3662
1292
  readonly type: "boolean";
3663
1293
  readonly description: "Exclusive MCP (only the servers sweny injects), and refuse the node on a harness that cannot enforce the policy.";
3664
1294
  };
1295
+ readonly native: {
1296
+ readonly type: "string";
1297
+ readonly enum: readonly ["default", "none"];
1298
+ readonly description: "'none' gives the agent no built-in tools and loads no settings, CLAUDE.md or skills from disk; only skill tools reach it. On the workflow it is a ceiling a node cannot lift. A harness that cannot honor it degrades, and refuses the node under strict.";
1299
+ };
3665
1300
  };
3666
1301
  }];
3667
1302
  };