acpus 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +6 -90
  2. package/dist/catalog.d.ts +27 -0
  3. package/dist/catalog.d.ts.map +1 -0
  4. package/dist/catalog.js +189 -0
  5. package/dist/catalog.js.map +1 -0
  6. package/dist/follow.d.ts +23 -0
  7. package/dist/follow.d.ts.map +1 -0
  8. package/dist/follow.js +109 -0
  9. package/dist/follow.js.map +1 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +414 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/io.d.ts +4 -0
  15. package/dist/io.d.ts.map +1 -0
  16. package/dist/io.js +38 -0
  17. package/dist/io.js.map +1 -0
  18. package/dist/observations.d.ts +26 -0
  19. package/dist/observations.d.ts.map +1 -0
  20. package/dist/observations.js +60 -0
  21. package/dist/observations.js.map +1 -0
  22. package/dist/output.d.ts +9 -0
  23. package/dist/output.d.ts.map +1 -0
  24. package/dist/output.js +51 -0
  25. package/dist/output.js.map +1 -0
  26. package/dist/runs-show.d.ts +5 -0
  27. package/dist/runs-show.d.ts.map +1 -0
  28. package/dist/runs-show.js +83 -0
  29. package/dist/runs-show.js.map +1 -0
  30. package/dist/supervisor-client.d.ts +9 -0
  31. package/dist/supervisor-client.d.ts.map +1 -0
  32. package/dist/supervisor-client.js +8 -0
  33. package/dist/supervisor-client.js.map +1 -0
  34. package/dist/supervisor.d.ts +18 -0
  35. package/dist/supervisor.d.ts.map +1 -0
  36. package/dist/supervisor.js +24 -0
  37. package/dist/supervisor.js.map +1 -0
  38. package/package.json +31 -45
  39. package/dist/cli.d.mts +0 -1
  40. package/dist/cli.mjs +0 -3860
  41. package/dist/index.d.mts +0 -2742
  42. package/dist/index.mjs +0 -2
  43. package/dist/monitor-app-CSjUPe9j.mjs +0 -434
  44. package/dist/run-workflow-CbxKhAqF.mjs +0 -13586
  45. package/schemas/workflow-spec.schema.json +0 -2042
package/dist/index.d.mts DELETED
@@ -1,2742 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/schema/workflow-spec.d.ts
4
- declare const SCHEMA_VERSION = "acpus.workflow/v1";
5
- declare const InputTypeSchema: z.ZodEnum<{
6
- string: "string";
7
- number: "number";
8
- boolean: "boolean";
9
- path: "path";
10
- glob: "glob";
11
- json: "json";
12
- "array<string>": "array<string>";
13
- "array<path>": "array<path>";
14
- "array<json>": "array<json>";
15
- }>;
16
- declare const InputDeclarationSchema: z.ZodObject<{
17
- type: z.ZodEnum<{
18
- string: "string";
19
- number: "number";
20
- boolean: "boolean";
21
- path: "path";
22
- glob: "glob";
23
- json: "json";
24
- "array<string>": "array<string>";
25
- "array<path>": "array<path>";
26
- "array<json>": "array<json>";
27
- }>;
28
- default: z.ZodOptional<z.ZodUnknown>;
29
- description: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strip>;
31
- declare const RoleCategorySchema: z.ZodEnum<{
32
- planning: "planning";
33
- implementation: "implementation";
34
- validation: "validation";
35
- review: "review";
36
- research: "research";
37
- summarization: "summarization";
38
- coordination: "coordination";
39
- }>;
40
- declare const RoleModeSchema: z.ZodEnum<{
41
- denyAll: "denyAll";
42
- readOnly: "readOnly";
43
- edit: "edit";
44
- }>;
45
- declare const RoleSchema: z.ZodObject<{
46
- category: z.ZodEnum<{
47
- planning: "planning";
48
- implementation: "implementation";
49
- validation: "validation";
50
- review: "review";
51
- research: "research";
52
- summarization: "summarization";
53
- coordination: "coordination";
54
- }>;
55
- agent: z.ZodString;
56
- mode: z.ZodEnum<{
57
- denyAll: "denyAll";
58
- readOnly: "readOnly";
59
- edit: "edit";
60
- }>;
61
- }, z.core.$strip>;
62
- declare const TransformSchema: z.ZodObject<{
63
- fn: z.ZodEnum<{
64
- json: "json";
65
- default: "default";
66
- compact: "compact";
67
- tail: "tail";
68
- quoteBlock: "quoteBlock";
69
- pathList: "pathList";
70
- filterSeverity: "filterSeverity";
71
- severitySummary: "severitySummary";
72
- join: "join";
73
- }>;
74
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
75
- }, z.core.$strip>;
76
- declare const VariableSchema: z.ZodObject<{
77
- name: z.ZodString;
78
- source: z.ZodString;
79
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
- fn: z.ZodEnum<{
81
- json: "json";
82
- default: "default";
83
- compact: "compact";
84
- tail: "tail";
85
- quoteBlock: "quoteBlock";
86
- pathList: "pathList";
87
- filterSeverity: "filterSeverity";
88
- severitySummary: "severitySummary";
89
- join: "join";
90
- }>;
91
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
- }, z.core.$strip>>>;
93
- }, z.core.$strip>;
94
- declare const WorkflowLimitsSchema: z.ZodObject<{
95
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
96
- }, z.core.$strict>;
97
- declare const StageLimitsSchema: z.ZodObject<{
98
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
99
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
100
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
101
- }, z.core.$strict>;
102
- declare const ArtifactSchema: z.ZodObject<{
103
- kind: z.ZodOptional<z.ZodString>;
104
- path: z.ZodOptional<z.ZodString>;
105
- url: z.ZodOptional<z.ZodString>;
106
- label: z.ZodOptional<z.ZodString>;
107
- }, z.core.$strip>;
108
- declare const SeverityCountsSchema: z.ZodObject<{
109
- P0: z.ZodNumber;
110
- P1: z.ZodNumber;
111
- P2: z.ZodNumber;
112
- P3: z.ZodNumber;
113
- }, z.core.$strip>;
114
- declare const FindingSchema: z.ZodObject<{
115
- severity: z.ZodEnum<{
116
- P0: "P0";
117
- P1: "P1";
118
- P2: "P2";
119
- P3: "P3";
120
- }>;
121
- summary: z.ZodString;
122
- path: z.ZodOptional<z.ZodString>;
123
- details: z.ZodOptional<z.ZodString>;
124
- }, z.core.$strip>;
125
- declare const CheckSchema: z.ZodObject<{
126
- command: z.ZodOptional<z.ZodString>;
127
- name: z.ZodOptional<z.ZodString>;
128
- status: z.ZodEnum<{
129
- unknown: "unknown";
130
- pass: "pass";
131
- fail: "fail";
132
- skipped: "skipped";
133
- }>;
134
- summary: z.ZodOptional<z.ZodString>;
135
- }, z.core.$strip>;
136
- declare const BaseOutputSchema: z.ZodObject<{
137
- status: z.ZodEnum<{
138
- completed: "completed";
139
- blocked: "blocked";
140
- }>;
141
- summary: z.ZodString;
142
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
143
- kind: z.ZodOptional<z.ZodString>;
144
- path: z.ZodOptional<z.ZodString>;
145
- url: z.ZodOptional<z.ZodString>;
146
- label: z.ZodOptional<z.ZodString>;
147
- }, z.core.$strip>>>;
148
- nextFocus: z.ZodDefault<z.ZodString>;
149
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
- }, z.core.$strip>;
151
- declare const ValidationOutputSchema: z.ZodObject<{
152
- status: z.ZodEnum<{
153
- completed: "completed";
154
- blocked: "blocked";
155
- }>;
156
- summary: z.ZodString;
157
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
158
- kind: z.ZodOptional<z.ZodString>;
159
- path: z.ZodOptional<z.ZodString>;
160
- url: z.ZodOptional<z.ZodString>;
161
- label: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>>>;
163
- nextFocus: z.ZodDefault<z.ZodString>;
164
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
165
- verdict: z.ZodEnum<{
166
- unknown: "unknown";
167
- pass: "pass";
168
- blocked: "blocked";
169
- fix: "fix";
170
- }>;
171
- severityCounts: z.ZodObject<{
172
- P0: z.ZodNumber;
173
- P1: z.ZodNumber;
174
- P2: z.ZodNumber;
175
- P3: z.ZodNumber;
176
- }, z.core.$strip>;
177
- findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
178
- severity: z.ZodEnum<{
179
- P0: "P0";
180
- P1: "P1";
181
- P2: "P2";
182
- P3: "P3";
183
- }>;
184
- summary: z.ZodString;
185
- path: z.ZodOptional<z.ZodString>;
186
- details: z.ZodOptional<z.ZodString>;
187
- }, z.core.$strip>>>;
188
- checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
189
- command: z.ZodOptional<z.ZodString>;
190
- name: z.ZodOptional<z.ZodString>;
191
- status: z.ZodEnum<{
192
- unknown: "unknown";
193
- pass: "pass";
194
- fail: "fail";
195
- skipped: "skipped";
196
- }>;
197
- summary: z.ZodOptional<z.ZodString>;
198
- }, z.core.$strip>>>;
199
- }, z.core.$strip>;
200
- declare const ImplementationOutputSchema: z.ZodObject<{
201
- status: z.ZodEnum<{
202
- completed: "completed";
203
- blocked: "blocked";
204
- }>;
205
- summary: z.ZodString;
206
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
207
- kind: z.ZodOptional<z.ZodString>;
208
- path: z.ZodOptional<z.ZodString>;
209
- url: z.ZodOptional<z.ZodString>;
210
- label: z.ZodOptional<z.ZodString>;
211
- }, z.core.$strip>>>;
212
- nextFocus: z.ZodDefault<z.ZodString>;
213
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
- changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
215
- checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
216
- command: z.ZodOptional<z.ZodString>;
217
- name: z.ZodOptional<z.ZodString>;
218
- status: z.ZodEnum<{
219
- unknown: "unknown";
220
- pass: "pass";
221
- fail: "fail";
222
- skipped: "skipped";
223
- }>;
224
- summary: z.ZodOptional<z.ZodString>;
225
- }, z.core.$strip>>>;
226
- }, z.core.$strip>;
227
- declare const GateOutputSchema: z.ZodObject<{
228
- status: z.ZodEnum<{
229
- completed: "completed";
230
- blocked: "blocked";
231
- }>;
232
- summary: z.ZodString;
233
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
234
- kind: z.ZodOptional<z.ZodString>;
235
- path: z.ZodOptional<z.ZodString>;
236
- url: z.ZodOptional<z.ZodString>;
237
- label: z.ZodOptional<z.ZodString>;
238
- }, z.core.$strip>>>;
239
- nextFocus: z.ZodDefault<z.ZodString>;
240
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
- verdict: z.ZodEnum<{
242
- unknown: "unknown";
243
- pass: "pass";
244
- blocked: "blocked";
245
- pass_with_warnings: "pass_with_warnings";
246
- failed: "failed";
247
- }>;
248
- deliverables: z.ZodDefault<z.ZodArray<z.ZodString>>;
249
- changedFiles: z.ZodDefault<z.ZodArray<z.ZodString>>;
250
- checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
251
- command: z.ZodOptional<z.ZodString>;
252
- name: z.ZodOptional<z.ZodString>;
253
- status: z.ZodEnum<{
254
- unknown: "unknown";
255
- pass: "pass";
256
- fail: "fail";
257
- skipped: "skipped";
258
- }>;
259
- summary: z.ZodOptional<z.ZodString>;
260
- }, z.core.$strip>>>;
261
- warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
262
- risks: z.ZodDefault<z.ZodArray<z.ZodString>>;
263
- nextActions: z.ZodDefault<z.ZodArray<z.ZodString>>;
264
- }, z.core.$strip>;
265
- type Condition = {
266
- source?: string;
267
- op?: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "exists" | "empty";
268
- value?: unknown;
269
- all?: Condition[];
270
- any?: Condition[];
271
- not?: Condition;
272
- };
273
- declare const ConditionSchema: z.ZodType<Condition>;
274
- declare const DecisionRuleSchema: z.ZodObject<{
275
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
276
- to: z.ZodString;
277
- }, z.core.$strip>;
278
- declare const FanoutLaneSchema: z.ZodObject<{
279
- id: z.ZodString;
280
- role: z.ZodString;
281
- prompt: z.ZodOptional<z.ZodString>;
282
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
283
- default: z.ZodOptional<z.ZodBoolean>;
284
- }, z.core.$strip>;
285
- declare const FanoutLaneGroupSchema: z.ZodObject<{
286
- id: z.ZodString;
287
- mode: z.ZodEnum<{
288
- all: "all";
289
- oneOf: "oneOf";
290
- }>;
291
- lanes: z.ZodArray<z.ZodObject<{
292
- id: z.ZodString;
293
- role: z.ZodString;
294
- prompt: z.ZodOptional<z.ZodString>;
295
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
296
- default: z.ZodOptional<z.ZodBoolean>;
297
- }, z.core.$strip>>;
298
- }, z.core.$strip>;
299
- declare const AgentTaskStageSchema: z.ZodObject<{
300
- id: z.ZodString;
301
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
302
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
- name: z.ZodString;
304
- source: z.ZodString;
305
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
- fn: z.ZodEnum<{
307
- json: "json";
308
- default: "default";
309
- compact: "compact";
310
- tail: "tail";
311
- quoteBlock: "quoteBlock";
312
- pathList: "pathList";
313
- filterSeverity: "filterSeverity";
314
- severitySummary: "severitySummary";
315
- join: "join";
316
- }>;
317
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
318
- }, z.core.$strip>>>;
319
- }, z.core.$strip>>>;
320
- limits: z.ZodOptional<z.ZodObject<{
321
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
322
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
323
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
324
- }, z.core.$strict>>;
325
- kind: z.ZodLiteral<"agentTask">;
326
- role: z.ZodString;
327
- prompt: z.ZodString;
328
- }, z.core.$strip>;
329
- declare const DiscoverStageSchema: z.ZodObject<{
330
- id: z.ZodString;
331
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
- name: z.ZodString;
334
- source: z.ZodString;
335
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
336
- fn: z.ZodEnum<{
337
- json: "json";
338
- default: "default";
339
- compact: "compact";
340
- tail: "tail";
341
- quoteBlock: "quoteBlock";
342
- pathList: "pathList";
343
- filterSeverity: "filterSeverity";
344
- severitySummary: "severitySummary";
345
- join: "join";
346
- }>;
347
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
348
- }, z.core.$strip>>>;
349
- }, z.core.$strip>>>;
350
- limits: z.ZodOptional<z.ZodObject<{
351
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
352
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
353
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
354
- }, z.core.$strict>>;
355
- kind: z.ZodLiteral<"discover">;
356
- method: z.ZodEnum<{
357
- glob: "glob";
358
- agent: "agent";
359
- gitChangedFiles: "gitChangedFiles";
360
- }>;
361
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
362
- output: z.ZodDefault<z.ZodString>;
363
- role: z.ZodOptional<z.ZodString>;
364
- prompt: z.ZodOptional<z.ZodString>;
365
- }, z.core.$strip>;
366
- declare const FanoutStageSchema: z.ZodObject<{
367
- id: z.ZodString;
368
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
369
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
- name: z.ZodString;
371
- source: z.ZodString;
372
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
373
- fn: z.ZodEnum<{
374
- json: "json";
375
- default: "default";
376
- compact: "compact";
377
- tail: "tail";
378
- quoteBlock: "quoteBlock";
379
- pathList: "pathList";
380
- filterSeverity: "filterSeverity";
381
- severitySummary: "severitySummary";
382
- join: "join";
383
- }>;
384
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
385
- }, z.core.$strip>>>;
386
- }, z.core.$strip>>>;
387
- limits: z.ZodOptional<z.ZodObject<{
388
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
389
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
390
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
391
- }, z.core.$strict>>;
392
- kind: z.ZodLiteral<"fanout">;
393
- items: z.ZodObject<{
394
- source: z.ZodString;
395
- }, z.core.$strip>;
396
- prompt: z.ZodOptional<z.ZodString>;
397
- laneGroups: z.ZodArray<z.ZodObject<{
398
- id: z.ZodString;
399
- mode: z.ZodEnum<{
400
- all: "all";
401
- oneOf: "oneOf";
402
- }>;
403
- lanes: z.ZodArray<z.ZodObject<{
404
- id: z.ZodString;
405
- role: z.ZodString;
406
- prompt: z.ZodOptional<z.ZodString>;
407
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
408
- default: z.ZodOptional<z.ZodBoolean>;
409
- }, z.core.$strip>>;
410
- }, z.core.$strip>>;
411
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
412
- allowPartial: z.ZodDefault<z.ZodBoolean>;
413
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
414
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
415
- }, z.core.$strip>>;
416
- }, z.core.$strip>;
417
- declare const ReduceStageSchema: z.ZodObject<{
418
- id: z.ZodString;
419
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
420
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
421
- name: z.ZodString;
422
- source: z.ZodString;
423
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
- fn: z.ZodEnum<{
425
- json: "json";
426
- default: "default";
427
- compact: "compact";
428
- tail: "tail";
429
- quoteBlock: "quoteBlock";
430
- pathList: "pathList";
431
- filterSeverity: "filterSeverity";
432
- severitySummary: "severitySummary";
433
- join: "join";
434
- }>;
435
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
436
- }, z.core.$strip>>>;
437
- }, z.core.$strip>>>;
438
- limits: z.ZodOptional<z.ZodObject<{
439
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
440
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
441
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
442
- }, z.core.$strict>>;
443
- kind: z.ZodLiteral<"reduce">;
444
- mode: z.ZodDefault<z.ZodEnum<{
445
- agent: "agent";
446
- program: "program";
447
- }>>;
448
- from: z.ZodString;
449
- role: z.ZodOptional<z.ZodString>;
450
- prompt: z.ZodOptional<z.ZodString>;
451
- operation: z.ZodOptional<z.ZodEnum<{
452
- severitySummary: "severitySummary";
453
- mergeArrays: "mergeArrays";
454
- dedupeFindings: "dedupeFindings";
455
- sortBySeverity: "sortBySeverity";
456
- }>>;
457
- }, z.core.$strip>;
458
- declare const DecisionGateStageSchema: z.ZodObject<{
459
- id: z.ZodString;
460
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
461
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
462
- name: z.ZodString;
463
- source: z.ZodString;
464
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
465
- fn: z.ZodEnum<{
466
- json: "json";
467
- default: "default";
468
- compact: "compact";
469
- tail: "tail";
470
- quoteBlock: "quoteBlock";
471
- pathList: "pathList";
472
- filterSeverity: "filterSeverity";
473
- severitySummary: "severitySummary";
474
- join: "join";
475
- }>;
476
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
- }, z.core.$strip>>>;
478
- }, z.core.$strip>>>;
479
- limits: z.ZodOptional<z.ZodObject<{
480
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
481
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
482
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
483
- }, z.core.$strict>>;
484
- kind: z.ZodLiteral<"decisionGate">;
485
- mode: z.ZodDefault<z.ZodEnum<{
486
- agent: "agent";
487
- program: "program";
488
- }>>;
489
- rules: z.ZodArray<z.ZodObject<{
490
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
491
- to: z.ZodString;
492
- }, z.core.$strip>>;
493
- default: z.ZodString;
494
- role: z.ZodOptional<z.ZodString>;
495
- prompt: z.ZodOptional<z.ZodString>;
496
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
497
- }, z.core.$strip>;
498
- declare const GateStageSchema: z.ZodObject<{
499
- id: z.ZodString;
500
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
501
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
- name: z.ZodString;
503
- source: z.ZodString;
504
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
505
- fn: z.ZodEnum<{
506
- json: "json";
507
- default: "default";
508
- compact: "compact";
509
- tail: "tail";
510
- quoteBlock: "quoteBlock";
511
- pathList: "pathList";
512
- filterSeverity: "filterSeverity";
513
- severitySummary: "severitySummary";
514
- join: "join";
515
- }>;
516
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
- }, z.core.$strip>>>;
518
- }, z.core.$strip>>>;
519
- limits: z.ZodOptional<z.ZodObject<{
520
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
521
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
522
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
523
- }, z.core.$strict>>;
524
- kind: z.ZodLiteral<"gate">;
525
- mode: z.ZodDefault<z.ZodEnum<{
526
- agent: "agent";
527
- program: "program";
528
- }>>;
529
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
530
- role: z.ZodOptional<z.ZodString>;
531
- prompt: z.ZodOptional<z.ZodString>;
532
- }, z.core.$strip>;
533
- declare const SummarizeStageSchema: z.ZodObject<{
534
- id: z.ZodString;
535
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
536
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
537
- name: z.ZodString;
538
- source: z.ZodString;
539
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
540
- fn: z.ZodEnum<{
541
- json: "json";
542
- default: "default";
543
- compact: "compact";
544
- tail: "tail";
545
- quoteBlock: "quoteBlock";
546
- pathList: "pathList";
547
- filterSeverity: "filterSeverity";
548
- severitySummary: "severitySummary";
549
- join: "join";
550
- }>;
551
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
552
- }, z.core.$strip>>>;
553
- }, z.core.$strip>>>;
554
- limits: z.ZodOptional<z.ZodObject<{
555
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
556
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
557
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
558
- }, z.core.$strict>>;
559
- kind: z.ZodLiteral<"summarize">;
560
- role: z.ZodLiteral<"summarizer">;
561
- prompt: z.ZodString;
562
- }, z.core.$strip>;
563
- declare const LoopBodyStageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
564
- id: z.ZodString;
565
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
566
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
567
- name: z.ZodString;
568
- source: z.ZodString;
569
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
570
- fn: z.ZodEnum<{
571
- json: "json";
572
- default: "default";
573
- compact: "compact";
574
- tail: "tail";
575
- quoteBlock: "quoteBlock";
576
- pathList: "pathList";
577
- filterSeverity: "filterSeverity";
578
- severitySummary: "severitySummary";
579
- join: "join";
580
- }>;
581
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
582
- }, z.core.$strip>>>;
583
- }, z.core.$strip>>>;
584
- limits: z.ZodOptional<z.ZodObject<{
585
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
586
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
587
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
588
- }, z.core.$strict>>;
589
- kind: z.ZodLiteral<"agentTask">;
590
- role: z.ZodString;
591
- prompt: z.ZodString;
592
- }, z.core.$strip>, z.ZodObject<{
593
- id: z.ZodString;
594
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
- name: z.ZodString;
597
- source: z.ZodString;
598
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
- fn: z.ZodEnum<{
600
- json: "json";
601
- default: "default";
602
- compact: "compact";
603
- tail: "tail";
604
- quoteBlock: "quoteBlock";
605
- pathList: "pathList";
606
- filterSeverity: "filterSeverity";
607
- severitySummary: "severitySummary";
608
- join: "join";
609
- }>;
610
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
611
- }, z.core.$strip>>>;
612
- }, z.core.$strip>>>;
613
- limits: z.ZodOptional<z.ZodObject<{
614
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
615
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
616
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
617
- }, z.core.$strict>>;
618
- kind: z.ZodLiteral<"discover">;
619
- method: z.ZodEnum<{
620
- glob: "glob";
621
- agent: "agent";
622
- gitChangedFiles: "gitChangedFiles";
623
- }>;
624
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
- output: z.ZodDefault<z.ZodString>;
626
- role: z.ZodOptional<z.ZodString>;
627
- prompt: z.ZodOptional<z.ZodString>;
628
- }, z.core.$strip>, z.ZodObject<{
629
- id: z.ZodString;
630
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
631
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
632
- name: z.ZodString;
633
- source: z.ZodString;
634
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
- fn: z.ZodEnum<{
636
- json: "json";
637
- default: "default";
638
- compact: "compact";
639
- tail: "tail";
640
- quoteBlock: "quoteBlock";
641
- pathList: "pathList";
642
- filterSeverity: "filterSeverity";
643
- severitySummary: "severitySummary";
644
- join: "join";
645
- }>;
646
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
647
- }, z.core.$strip>>>;
648
- }, z.core.$strip>>>;
649
- limits: z.ZodOptional<z.ZodObject<{
650
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
651
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
652
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
653
- }, z.core.$strict>>;
654
- kind: z.ZodLiteral<"fanout">;
655
- items: z.ZodObject<{
656
- source: z.ZodString;
657
- }, z.core.$strip>;
658
- prompt: z.ZodOptional<z.ZodString>;
659
- laneGroups: z.ZodArray<z.ZodObject<{
660
- id: z.ZodString;
661
- mode: z.ZodEnum<{
662
- all: "all";
663
- oneOf: "oneOf";
664
- }>;
665
- lanes: z.ZodArray<z.ZodObject<{
666
- id: z.ZodString;
667
- role: z.ZodString;
668
- prompt: z.ZodOptional<z.ZodString>;
669
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
670
- default: z.ZodOptional<z.ZodBoolean>;
671
- }, z.core.$strip>>;
672
- }, z.core.$strip>>;
673
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
674
- allowPartial: z.ZodDefault<z.ZodBoolean>;
675
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
676
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
677
- }, z.core.$strip>>;
678
- }, z.core.$strip>, z.ZodObject<{
679
- id: z.ZodString;
680
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
681
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
682
- name: z.ZodString;
683
- source: z.ZodString;
684
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
- fn: z.ZodEnum<{
686
- json: "json";
687
- default: "default";
688
- compact: "compact";
689
- tail: "tail";
690
- quoteBlock: "quoteBlock";
691
- pathList: "pathList";
692
- filterSeverity: "filterSeverity";
693
- severitySummary: "severitySummary";
694
- join: "join";
695
- }>;
696
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
- }, z.core.$strip>>>;
698
- }, z.core.$strip>>>;
699
- limits: z.ZodOptional<z.ZodObject<{
700
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
701
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
702
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
703
- }, z.core.$strict>>;
704
- kind: z.ZodLiteral<"reduce">;
705
- mode: z.ZodDefault<z.ZodEnum<{
706
- agent: "agent";
707
- program: "program";
708
- }>>;
709
- from: z.ZodString;
710
- role: z.ZodOptional<z.ZodString>;
711
- prompt: z.ZodOptional<z.ZodString>;
712
- operation: z.ZodOptional<z.ZodEnum<{
713
- severitySummary: "severitySummary";
714
- mergeArrays: "mergeArrays";
715
- dedupeFindings: "dedupeFindings";
716
- sortBySeverity: "sortBySeverity";
717
- }>>;
718
- }, z.core.$strip>, z.ZodObject<{
719
- id: z.ZodString;
720
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
721
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
- name: z.ZodString;
723
- source: z.ZodString;
724
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
725
- fn: z.ZodEnum<{
726
- json: "json";
727
- default: "default";
728
- compact: "compact";
729
- tail: "tail";
730
- quoteBlock: "quoteBlock";
731
- pathList: "pathList";
732
- filterSeverity: "filterSeverity";
733
- severitySummary: "severitySummary";
734
- join: "join";
735
- }>;
736
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
737
- }, z.core.$strip>>>;
738
- }, z.core.$strip>>>;
739
- limits: z.ZodOptional<z.ZodObject<{
740
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
741
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
742
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
743
- }, z.core.$strict>>;
744
- kind: z.ZodLiteral<"decisionGate">;
745
- mode: z.ZodDefault<z.ZodEnum<{
746
- agent: "agent";
747
- program: "program";
748
- }>>;
749
- rules: z.ZodArray<z.ZodObject<{
750
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
751
- to: z.ZodString;
752
- }, z.core.$strip>>;
753
- default: z.ZodString;
754
- role: z.ZodOptional<z.ZodString>;
755
- prompt: z.ZodOptional<z.ZodString>;
756
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
757
- }, z.core.$strip>], "kind">;
758
- declare const LoopStageSchema: z.ZodObject<{
759
- id: z.ZodString;
760
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
761
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
762
- name: z.ZodString;
763
- source: z.ZodString;
764
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
765
- fn: z.ZodEnum<{
766
- json: "json";
767
- default: "default";
768
- compact: "compact";
769
- tail: "tail";
770
- quoteBlock: "quoteBlock";
771
- pathList: "pathList";
772
- filterSeverity: "filterSeverity";
773
- severitySummary: "severitySummary";
774
- join: "join";
775
- }>;
776
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
777
- }, z.core.$strip>>>;
778
- }, z.core.$strip>>>;
779
- prompt: z.ZodOptional<z.ZodString>;
780
- limits: z.ZodOptional<z.ZodObject<{
781
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
782
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
783
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
784
- }, z.core.$strict>>;
785
- kind: z.ZodLiteral<"loop">;
786
- maxRounds: z.ZodNumber;
787
- body: z.ZodObject<{
788
- root: z.ZodString;
789
- output: z.ZodString;
790
- stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
791
- id: z.ZodString;
792
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
794
- name: z.ZodString;
795
- source: z.ZodString;
796
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
797
- fn: z.ZodEnum<{
798
- json: "json";
799
- default: "default";
800
- compact: "compact";
801
- tail: "tail";
802
- quoteBlock: "quoteBlock";
803
- pathList: "pathList";
804
- filterSeverity: "filterSeverity";
805
- severitySummary: "severitySummary";
806
- join: "join";
807
- }>;
808
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
809
- }, z.core.$strip>>>;
810
- }, z.core.$strip>>>;
811
- limits: z.ZodOptional<z.ZodObject<{
812
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
813
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
814
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
815
- }, z.core.$strict>>;
816
- kind: z.ZodLiteral<"agentTask">;
817
- role: z.ZodString;
818
- prompt: z.ZodString;
819
- }, z.core.$strip>, z.ZodObject<{
820
- id: z.ZodString;
821
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
822
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
- name: z.ZodString;
824
- source: z.ZodString;
825
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
826
- fn: z.ZodEnum<{
827
- json: "json";
828
- default: "default";
829
- compact: "compact";
830
- tail: "tail";
831
- quoteBlock: "quoteBlock";
832
- pathList: "pathList";
833
- filterSeverity: "filterSeverity";
834
- severitySummary: "severitySummary";
835
- join: "join";
836
- }>;
837
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
838
- }, z.core.$strip>>>;
839
- }, z.core.$strip>>>;
840
- limits: z.ZodOptional<z.ZodObject<{
841
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
842
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
843
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
844
- }, z.core.$strict>>;
845
- kind: z.ZodLiteral<"discover">;
846
- method: z.ZodEnum<{
847
- glob: "glob";
848
- agent: "agent";
849
- gitChangedFiles: "gitChangedFiles";
850
- }>;
851
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
852
- output: z.ZodDefault<z.ZodString>;
853
- role: z.ZodOptional<z.ZodString>;
854
- prompt: z.ZodOptional<z.ZodString>;
855
- }, z.core.$strip>, z.ZodObject<{
856
- id: z.ZodString;
857
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
858
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
859
- name: z.ZodString;
860
- source: z.ZodString;
861
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
862
- fn: z.ZodEnum<{
863
- json: "json";
864
- default: "default";
865
- compact: "compact";
866
- tail: "tail";
867
- quoteBlock: "quoteBlock";
868
- pathList: "pathList";
869
- filterSeverity: "filterSeverity";
870
- severitySummary: "severitySummary";
871
- join: "join";
872
- }>;
873
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
- }, z.core.$strip>>>;
875
- }, z.core.$strip>>>;
876
- limits: z.ZodOptional<z.ZodObject<{
877
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
878
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
879
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
880
- }, z.core.$strict>>;
881
- kind: z.ZodLiteral<"fanout">;
882
- items: z.ZodObject<{
883
- source: z.ZodString;
884
- }, z.core.$strip>;
885
- prompt: z.ZodOptional<z.ZodString>;
886
- laneGroups: z.ZodArray<z.ZodObject<{
887
- id: z.ZodString;
888
- mode: z.ZodEnum<{
889
- all: "all";
890
- oneOf: "oneOf";
891
- }>;
892
- lanes: z.ZodArray<z.ZodObject<{
893
- id: z.ZodString;
894
- role: z.ZodString;
895
- prompt: z.ZodOptional<z.ZodString>;
896
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
897
- default: z.ZodOptional<z.ZodBoolean>;
898
- }, z.core.$strip>>;
899
- }, z.core.$strip>>;
900
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
901
- allowPartial: z.ZodDefault<z.ZodBoolean>;
902
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
903
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
904
- }, z.core.$strip>>;
905
- }, z.core.$strip>, z.ZodObject<{
906
- id: z.ZodString;
907
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
908
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
- name: z.ZodString;
910
- source: z.ZodString;
911
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
912
- fn: z.ZodEnum<{
913
- json: "json";
914
- default: "default";
915
- compact: "compact";
916
- tail: "tail";
917
- quoteBlock: "quoteBlock";
918
- pathList: "pathList";
919
- filterSeverity: "filterSeverity";
920
- severitySummary: "severitySummary";
921
- join: "join";
922
- }>;
923
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
924
- }, z.core.$strip>>>;
925
- }, z.core.$strip>>>;
926
- limits: z.ZodOptional<z.ZodObject<{
927
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
928
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
929
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
930
- }, z.core.$strict>>;
931
- kind: z.ZodLiteral<"reduce">;
932
- mode: z.ZodDefault<z.ZodEnum<{
933
- agent: "agent";
934
- program: "program";
935
- }>>;
936
- from: z.ZodString;
937
- role: z.ZodOptional<z.ZodString>;
938
- prompt: z.ZodOptional<z.ZodString>;
939
- operation: z.ZodOptional<z.ZodEnum<{
940
- severitySummary: "severitySummary";
941
- mergeArrays: "mergeArrays";
942
- dedupeFindings: "dedupeFindings";
943
- sortBySeverity: "sortBySeverity";
944
- }>>;
945
- }, z.core.$strip>, z.ZodObject<{
946
- id: z.ZodString;
947
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
948
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
949
- name: z.ZodString;
950
- source: z.ZodString;
951
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
952
- fn: z.ZodEnum<{
953
- json: "json";
954
- default: "default";
955
- compact: "compact";
956
- tail: "tail";
957
- quoteBlock: "quoteBlock";
958
- pathList: "pathList";
959
- filterSeverity: "filterSeverity";
960
- severitySummary: "severitySummary";
961
- join: "join";
962
- }>;
963
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
964
- }, z.core.$strip>>>;
965
- }, z.core.$strip>>>;
966
- limits: z.ZodOptional<z.ZodObject<{
967
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
968
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
969
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
970
- }, z.core.$strict>>;
971
- kind: z.ZodLiteral<"decisionGate">;
972
- mode: z.ZodDefault<z.ZodEnum<{
973
- agent: "agent";
974
- program: "program";
975
- }>>;
976
- rules: z.ZodArray<z.ZodObject<{
977
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
978
- to: z.ZodString;
979
- }, z.core.$strip>>;
980
- default: z.ZodString;
981
- role: z.ZodOptional<z.ZodString>;
982
- prompt: z.ZodOptional<z.ZodString>;
983
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
984
- }, z.core.$strip>], "kind">>;
985
- }, z.core.$strip>;
986
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
987
- onExhausted: z.ZodLiteral<"blocked">;
988
- }, z.core.$strip>;
989
- declare const StageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
990
- id: z.ZodString;
991
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
992
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
993
- name: z.ZodString;
994
- source: z.ZodString;
995
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
996
- fn: z.ZodEnum<{
997
- json: "json";
998
- default: "default";
999
- compact: "compact";
1000
- tail: "tail";
1001
- quoteBlock: "quoteBlock";
1002
- pathList: "pathList";
1003
- filterSeverity: "filterSeverity";
1004
- severitySummary: "severitySummary";
1005
- join: "join";
1006
- }>;
1007
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1008
- }, z.core.$strip>>>;
1009
- }, z.core.$strip>>>;
1010
- limits: z.ZodOptional<z.ZodObject<{
1011
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1012
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1013
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1014
- }, z.core.$strict>>;
1015
- kind: z.ZodLiteral<"agentTask">;
1016
- role: z.ZodString;
1017
- prompt: z.ZodString;
1018
- }, z.core.$strip>, z.ZodObject<{
1019
- id: z.ZodString;
1020
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1021
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1022
- name: z.ZodString;
1023
- source: z.ZodString;
1024
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1025
- fn: z.ZodEnum<{
1026
- json: "json";
1027
- default: "default";
1028
- compact: "compact";
1029
- tail: "tail";
1030
- quoteBlock: "quoteBlock";
1031
- pathList: "pathList";
1032
- filterSeverity: "filterSeverity";
1033
- severitySummary: "severitySummary";
1034
- join: "join";
1035
- }>;
1036
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1037
- }, z.core.$strip>>>;
1038
- }, z.core.$strip>>>;
1039
- limits: z.ZodOptional<z.ZodObject<{
1040
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1041
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1042
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1043
- }, z.core.$strict>>;
1044
- kind: z.ZodLiteral<"discover">;
1045
- method: z.ZodEnum<{
1046
- glob: "glob";
1047
- agent: "agent";
1048
- gitChangedFiles: "gitChangedFiles";
1049
- }>;
1050
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1051
- output: z.ZodDefault<z.ZodString>;
1052
- role: z.ZodOptional<z.ZodString>;
1053
- prompt: z.ZodOptional<z.ZodString>;
1054
- }, z.core.$strip>, z.ZodObject<{
1055
- id: z.ZodString;
1056
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1057
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
- name: z.ZodString;
1059
- source: z.ZodString;
1060
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1061
- fn: z.ZodEnum<{
1062
- json: "json";
1063
- default: "default";
1064
- compact: "compact";
1065
- tail: "tail";
1066
- quoteBlock: "quoteBlock";
1067
- pathList: "pathList";
1068
- filterSeverity: "filterSeverity";
1069
- severitySummary: "severitySummary";
1070
- join: "join";
1071
- }>;
1072
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
- }, z.core.$strip>>>;
1074
- }, z.core.$strip>>>;
1075
- limits: z.ZodOptional<z.ZodObject<{
1076
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1077
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1078
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1079
- }, z.core.$strict>>;
1080
- kind: z.ZodLiteral<"fanout">;
1081
- items: z.ZodObject<{
1082
- source: z.ZodString;
1083
- }, z.core.$strip>;
1084
- prompt: z.ZodOptional<z.ZodString>;
1085
- laneGroups: z.ZodArray<z.ZodObject<{
1086
- id: z.ZodString;
1087
- mode: z.ZodEnum<{
1088
- all: "all";
1089
- oneOf: "oneOf";
1090
- }>;
1091
- lanes: z.ZodArray<z.ZodObject<{
1092
- id: z.ZodString;
1093
- role: z.ZodString;
1094
- prompt: z.ZodOptional<z.ZodString>;
1095
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1096
- default: z.ZodOptional<z.ZodBoolean>;
1097
- }, z.core.$strip>>;
1098
- }, z.core.$strip>>;
1099
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
1100
- allowPartial: z.ZodDefault<z.ZodBoolean>;
1101
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
1102
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
1103
- }, z.core.$strip>>;
1104
- }, z.core.$strip>, z.ZodObject<{
1105
- id: z.ZodString;
1106
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1107
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
- name: z.ZodString;
1109
- source: z.ZodString;
1110
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1111
- fn: z.ZodEnum<{
1112
- json: "json";
1113
- default: "default";
1114
- compact: "compact";
1115
- tail: "tail";
1116
- quoteBlock: "quoteBlock";
1117
- pathList: "pathList";
1118
- filterSeverity: "filterSeverity";
1119
- severitySummary: "severitySummary";
1120
- join: "join";
1121
- }>;
1122
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1123
- }, z.core.$strip>>>;
1124
- }, z.core.$strip>>>;
1125
- limits: z.ZodOptional<z.ZodObject<{
1126
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1127
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1128
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1129
- }, z.core.$strict>>;
1130
- kind: z.ZodLiteral<"reduce">;
1131
- mode: z.ZodDefault<z.ZodEnum<{
1132
- agent: "agent";
1133
- program: "program";
1134
- }>>;
1135
- from: z.ZodString;
1136
- role: z.ZodOptional<z.ZodString>;
1137
- prompt: z.ZodOptional<z.ZodString>;
1138
- operation: z.ZodOptional<z.ZodEnum<{
1139
- severitySummary: "severitySummary";
1140
- mergeArrays: "mergeArrays";
1141
- dedupeFindings: "dedupeFindings";
1142
- sortBySeverity: "sortBySeverity";
1143
- }>>;
1144
- }, z.core.$strip>, z.ZodObject<{
1145
- id: z.ZodString;
1146
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1147
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1148
- name: z.ZodString;
1149
- source: z.ZodString;
1150
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1151
- fn: z.ZodEnum<{
1152
- json: "json";
1153
- default: "default";
1154
- compact: "compact";
1155
- tail: "tail";
1156
- quoteBlock: "quoteBlock";
1157
- pathList: "pathList";
1158
- filterSeverity: "filterSeverity";
1159
- severitySummary: "severitySummary";
1160
- join: "join";
1161
- }>;
1162
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1163
- }, z.core.$strip>>>;
1164
- }, z.core.$strip>>>;
1165
- prompt: z.ZodOptional<z.ZodString>;
1166
- limits: z.ZodOptional<z.ZodObject<{
1167
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1168
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1169
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1170
- }, z.core.$strict>>;
1171
- kind: z.ZodLiteral<"loop">;
1172
- maxRounds: z.ZodNumber;
1173
- body: z.ZodObject<{
1174
- root: z.ZodString;
1175
- output: z.ZodString;
1176
- stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1177
- id: z.ZodString;
1178
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1179
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1180
- name: z.ZodString;
1181
- source: z.ZodString;
1182
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1183
- fn: z.ZodEnum<{
1184
- json: "json";
1185
- default: "default";
1186
- compact: "compact";
1187
- tail: "tail";
1188
- quoteBlock: "quoteBlock";
1189
- pathList: "pathList";
1190
- filterSeverity: "filterSeverity";
1191
- severitySummary: "severitySummary";
1192
- join: "join";
1193
- }>;
1194
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1195
- }, z.core.$strip>>>;
1196
- }, z.core.$strip>>>;
1197
- limits: z.ZodOptional<z.ZodObject<{
1198
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1199
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1200
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1201
- }, z.core.$strict>>;
1202
- kind: z.ZodLiteral<"agentTask">;
1203
- role: z.ZodString;
1204
- prompt: z.ZodString;
1205
- }, z.core.$strip>, z.ZodObject<{
1206
- id: z.ZodString;
1207
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1208
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1209
- name: z.ZodString;
1210
- source: z.ZodString;
1211
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1212
- fn: z.ZodEnum<{
1213
- json: "json";
1214
- default: "default";
1215
- compact: "compact";
1216
- tail: "tail";
1217
- quoteBlock: "quoteBlock";
1218
- pathList: "pathList";
1219
- filterSeverity: "filterSeverity";
1220
- severitySummary: "severitySummary";
1221
- join: "join";
1222
- }>;
1223
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1224
- }, z.core.$strip>>>;
1225
- }, z.core.$strip>>>;
1226
- limits: z.ZodOptional<z.ZodObject<{
1227
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1228
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1229
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1230
- }, z.core.$strict>>;
1231
- kind: z.ZodLiteral<"discover">;
1232
- method: z.ZodEnum<{
1233
- glob: "glob";
1234
- agent: "agent";
1235
- gitChangedFiles: "gitChangedFiles";
1236
- }>;
1237
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1238
- output: z.ZodDefault<z.ZodString>;
1239
- role: z.ZodOptional<z.ZodString>;
1240
- prompt: z.ZodOptional<z.ZodString>;
1241
- }, z.core.$strip>, z.ZodObject<{
1242
- id: z.ZodString;
1243
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1244
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1245
- name: z.ZodString;
1246
- source: z.ZodString;
1247
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1248
- fn: z.ZodEnum<{
1249
- json: "json";
1250
- default: "default";
1251
- compact: "compact";
1252
- tail: "tail";
1253
- quoteBlock: "quoteBlock";
1254
- pathList: "pathList";
1255
- filterSeverity: "filterSeverity";
1256
- severitySummary: "severitySummary";
1257
- join: "join";
1258
- }>;
1259
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1260
- }, z.core.$strip>>>;
1261
- }, z.core.$strip>>>;
1262
- limits: z.ZodOptional<z.ZodObject<{
1263
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1264
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1265
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1266
- }, z.core.$strict>>;
1267
- kind: z.ZodLiteral<"fanout">;
1268
- items: z.ZodObject<{
1269
- source: z.ZodString;
1270
- }, z.core.$strip>;
1271
- prompt: z.ZodOptional<z.ZodString>;
1272
- laneGroups: z.ZodArray<z.ZodObject<{
1273
- id: z.ZodString;
1274
- mode: z.ZodEnum<{
1275
- all: "all";
1276
- oneOf: "oneOf";
1277
- }>;
1278
- lanes: z.ZodArray<z.ZodObject<{
1279
- id: z.ZodString;
1280
- role: z.ZodString;
1281
- prompt: z.ZodOptional<z.ZodString>;
1282
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1283
- default: z.ZodOptional<z.ZodBoolean>;
1284
- }, z.core.$strip>>;
1285
- }, z.core.$strip>>;
1286
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
1287
- allowPartial: z.ZodDefault<z.ZodBoolean>;
1288
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
1289
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
1290
- }, z.core.$strip>>;
1291
- }, z.core.$strip>, z.ZodObject<{
1292
- id: z.ZodString;
1293
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1294
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1295
- name: z.ZodString;
1296
- source: z.ZodString;
1297
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1298
- fn: z.ZodEnum<{
1299
- json: "json";
1300
- default: "default";
1301
- compact: "compact";
1302
- tail: "tail";
1303
- quoteBlock: "quoteBlock";
1304
- pathList: "pathList";
1305
- filterSeverity: "filterSeverity";
1306
- severitySummary: "severitySummary";
1307
- join: "join";
1308
- }>;
1309
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1310
- }, z.core.$strip>>>;
1311
- }, z.core.$strip>>>;
1312
- limits: z.ZodOptional<z.ZodObject<{
1313
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1314
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1315
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1316
- }, z.core.$strict>>;
1317
- kind: z.ZodLiteral<"reduce">;
1318
- mode: z.ZodDefault<z.ZodEnum<{
1319
- agent: "agent";
1320
- program: "program";
1321
- }>>;
1322
- from: z.ZodString;
1323
- role: z.ZodOptional<z.ZodString>;
1324
- prompt: z.ZodOptional<z.ZodString>;
1325
- operation: z.ZodOptional<z.ZodEnum<{
1326
- severitySummary: "severitySummary";
1327
- mergeArrays: "mergeArrays";
1328
- dedupeFindings: "dedupeFindings";
1329
- sortBySeverity: "sortBySeverity";
1330
- }>>;
1331
- }, z.core.$strip>, z.ZodObject<{
1332
- id: z.ZodString;
1333
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1334
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1335
- name: z.ZodString;
1336
- source: z.ZodString;
1337
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
- fn: z.ZodEnum<{
1339
- json: "json";
1340
- default: "default";
1341
- compact: "compact";
1342
- tail: "tail";
1343
- quoteBlock: "quoteBlock";
1344
- pathList: "pathList";
1345
- filterSeverity: "filterSeverity";
1346
- severitySummary: "severitySummary";
1347
- join: "join";
1348
- }>;
1349
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1350
- }, z.core.$strip>>>;
1351
- }, z.core.$strip>>>;
1352
- limits: z.ZodOptional<z.ZodObject<{
1353
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1354
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1355
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1356
- }, z.core.$strict>>;
1357
- kind: z.ZodLiteral<"decisionGate">;
1358
- mode: z.ZodDefault<z.ZodEnum<{
1359
- agent: "agent";
1360
- program: "program";
1361
- }>>;
1362
- rules: z.ZodArray<z.ZodObject<{
1363
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1364
- to: z.ZodString;
1365
- }, z.core.$strip>>;
1366
- default: z.ZodString;
1367
- role: z.ZodOptional<z.ZodString>;
1368
- prompt: z.ZodOptional<z.ZodString>;
1369
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1370
- }, z.core.$strip>], "kind">>;
1371
- }, z.core.$strip>;
1372
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1373
- onExhausted: z.ZodLiteral<"blocked">;
1374
- }, z.core.$strip>, z.ZodObject<{
1375
- id: z.ZodString;
1376
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1377
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1378
- name: z.ZodString;
1379
- source: z.ZodString;
1380
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1381
- fn: z.ZodEnum<{
1382
- json: "json";
1383
- default: "default";
1384
- compact: "compact";
1385
- tail: "tail";
1386
- quoteBlock: "quoteBlock";
1387
- pathList: "pathList";
1388
- filterSeverity: "filterSeverity";
1389
- severitySummary: "severitySummary";
1390
- join: "join";
1391
- }>;
1392
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1393
- }, z.core.$strip>>>;
1394
- }, z.core.$strip>>>;
1395
- limits: z.ZodOptional<z.ZodObject<{
1396
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1397
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1398
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1399
- }, z.core.$strict>>;
1400
- kind: z.ZodLiteral<"decisionGate">;
1401
- mode: z.ZodDefault<z.ZodEnum<{
1402
- agent: "agent";
1403
- program: "program";
1404
- }>>;
1405
- rules: z.ZodArray<z.ZodObject<{
1406
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1407
- to: z.ZodString;
1408
- }, z.core.$strip>>;
1409
- default: z.ZodString;
1410
- role: z.ZodOptional<z.ZodString>;
1411
- prompt: z.ZodOptional<z.ZodString>;
1412
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1413
- }, z.core.$strip>, z.ZodObject<{
1414
- id: z.ZodString;
1415
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1416
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1417
- name: z.ZodString;
1418
- source: z.ZodString;
1419
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1420
- fn: z.ZodEnum<{
1421
- json: "json";
1422
- default: "default";
1423
- compact: "compact";
1424
- tail: "tail";
1425
- quoteBlock: "quoteBlock";
1426
- pathList: "pathList";
1427
- filterSeverity: "filterSeverity";
1428
- severitySummary: "severitySummary";
1429
- join: "join";
1430
- }>;
1431
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1432
- }, z.core.$strip>>>;
1433
- }, z.core.$strip>>>;
1434
- limits: z.ZodOptional<z.ZodObject<{
1435
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1436
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1437
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1438
- }, z.core.$strict>>;
1439
- kind: z.ZodLiteral<"gate">;
1440
- mode: z.ZodDefault<z.ZodEnum<{
1441
- agent: "agent";
1442
- program: "program";
1443
- }>>;
1444
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1445
- role: z.ZodOptional<z.ZodString>;
1446
- prompt: z.ZodOptional<z.ZodString>;
1447
- }, z.core.$strip>, z.ZodObject<{
1448
- id: z.ZodString;
1449
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1450
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1451
- name: z.ZodString;
1452
- source: z.ZodString;
1453
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1454
- fn: z.ZodEnum<{
1455
- json: "json";
1456
- default: "default";
1457
- compact: "compact";
1458
- tail: "tail";
1459
- quoteBlock: "quoteBlock";
1460
- pathList: "pathList";
1461
- filterSeverity: "filterSeverity";
1462
- severitySummary: "severitySummary";
1463
- join: "join";
1464
- }>;
1465
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1466
- }, z.core.$strip>>>;
1467
- }, z.core.$strip>>>;
1468
- limits: z.ZodOptional<z.ZodObject<{
1469
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1470
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1471
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1472
- }, z.core.$strict>>;
1473
- kind: z.ZodLiteral<"summarize">;
1474
- role: z.ZodLiteral<"summarizer">;
1475
- prompt: z.ZodString;
1476
- }, z.core.$strip>], "kind">;
1477
- declare const WorkflowSpecSchema: z.ZodObject<{
1478
- schemaVersion: z.ZodLiteral<"acpus.workflow/v1">;
1479
- name: z.ZodString;
1480
- description: z.ZodDefault<z.ZodString>;
1481
- root: z.ZodString;
1482
- inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1483
- type: z.ZodEnum<{
1484
- string: "string";
1485
- number: "number";
1486
- boolean: "boolean";
1487
- path: "path";
1488
- glob: "glob";
1489
- json: "json";
1490
- "array<string>": "array<string>";
1491
- "array<path>": "array<path>";
1492
- "array<json>": "array<json>";
1493
- }>;
1494
- default: z.ZodOptional<z.ZodUnknown>;
1495
- description: z.ZodOptional<z.ZodString>;
1496
- }, z.core.$strip>>>;
1497
- roles: z.ZodRecord<z.ZodString, z.ZodObject<{
1498
- category: z.ZodEnum<{
1499
- planning: "planning";
1500
- implementation: "implementation";
1501
- validation: "validation";
1502
- review: "review";
1503
- research: "research";
1504
- summarization: "summarization";
1505
- coordination: "coordination";
1506
- }>;
1507
- agent: z.ZodString;
1508
- mode: z.ZodEnum<{
1509
- denyAll: "denyAll";
1510
- readOnly: "readOnly";
1511
- edit: "edit";
1512
- }>;
1513
- }, z.core.$strip>>;
1514
- limits: z.ZodDefault<z.ZodObject<{
1515
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1516
- }, z.core.$strict>>;
1517
- stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1518
- id: z.ZodString;
1519
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1520
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1521
- name: z.ZodString;
1522
- source: z.ZodString;
1523
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1524
- fn: z.ZodEnum<{
1525
- json: "json";
1526
- default: "default";
1527
- compact: "compact";
1528
- tail: "tail";
1529
- quoteBlock: "quoteBlock";
1530
- pathList: "pathList";
1531
- filterSeverity: "filterSeverity";
1532
- severitySummary: "severitySummary";
1533
- join: "join";
1534
- }>;
1535
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1536
- }, z.core.$strip>>>;
1537
- }, z.core.$strip>>>;
1538
- limits: z.ZodOptional<z.ZodObject<{
1539
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1540
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1541
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1542
- }, z.core.$strict>>;
1543
- kind: z.ZodLiteral<"agentTask">;
1544
- role: z.ZodString;
1545
- prompt: z.ZodString;
1546
- }, z.core.$strip>, z.ZodObject<{
1547
- id: z.ZodString;
1548
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1549
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1550
- name: z.ZodString;
1551
- source: z.ZodString;
1552
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
- fn: z.ZodEnum<{
1554
- json: "json";
1555
- default: "default";
1556
- compact: "compact";
1557
- tail: "tail";
1558
- quoteBlock: "quoteBlock";
1559
- pathList: "pathList";
1560
- filterSeverity: "filterSeverity";
1561
- severitySummary: "severitySummary";
1562
- join: "join";
1563
- }>;
1564
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1565
- }, z.core.$strip>>>;
1566
- }, z.core.$strip>>>;
1567
- limits: z.ZodOptional<z.ZodObject<{
1568
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1569
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1570
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1571
- }, z.core.$strict>>;
1572
- kind: z.ZodLiteral<"discover">;
1573
- method: z.ZodEnum<{
1574
- glob: "glob";
1575
- agent: "agent";
1576
- gitChangedFiles: "gitChangedFiles";
1577
- }>;
1578
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1579
- output: z.ZodDefault<z.ZodString>;
1580
- role: z.ZodOptional<z.ZodString>;
1581
- prompt: z.ZodOptional<z.ZodString>;
1582
- }, z.core.$strip>, z.ZodObject<{
1583
- id: z.ZodString;
1584
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1585
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1586
- name: z.ZodString;
1587
- source: z.ZodString;
1588
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1589
- fn: z.ZodEnum<{
1590
- json: "json";
1591
- default: "default";
1592
- compact: "compact";
1593
- tail: "tail";
1594
- quoteBlock: "quoteBlock";
1595
- pathList: "pathList";
1596
- filterSeverity: "filterSeverity";
1597
- severitySummary: "severitySummary";
1598
- join: "join";
1599
- }>;
1600
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1601
- }, z.core.$strip>>>;
1602
- }, z.core.$strip>>>;
1603
- limits: z.ZodOptional<z.ZodObject<{
1604
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1605
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1606
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1607
- }, z.core.$strict>>;
1608
- kind: z.ZodLiteral<"fanout">;
1609
- items: z.ZodObject<{
1610
- source: z.ZodString;
1611
- }, z.core.$strip>;
1612
- prompt: z.ZodOptional<z.ZodString>;
1613
- laneGroups: z.ZodArray<z.ZodObject<{
1614
- id: z.ZodString;
1615
- mode: z.ZodEnum<{
1616
- all: "all";
1617
- oneOf: "oneOf";
1618
- }>;
1619
- lanes: z.ZodArray<z.ZodObject<{
1620
- id: z.ZodString;
1621
- role: z.ZodString;
1622
- prompt: z.ZodOptional<z.ZodString>;
1623
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1624
- default: z.ZodOptional<z.ZodBoolean>;
1625
- }, z.core.$strip>>;
1626
- }, z.core.$strip>>;
1627
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
1628
- allowPartial: z.ZodDefault<z.ZodBoolean>;
1629
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
1630
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
1631
- }, z.core.$strip>>;
1632
- }, z.core.$strip>, z.ZodObject<{
1633
- id: z.ZodString;
1634
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1635
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1636
- name: z.ZodString;
1637
- source: z.ZodString;
1638
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1639
- fn: z.ZodEnum<{
1640
- json: "json";
1641
- default: "default";
1642
- compact: "compact";
1643
- tail: "tail";
1644
- quoteBlock: "quoteBlock";
1645
- pathList: "pathList";
1646
- filterSeverity: "filterSeverity";
1647
- severitySummary: "severitySummary";
1648
- join: "join";
1649
- }>;
1650
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1651
- }, z.core.$strip>>>;
1652
- }, z.core.$strip>>>;
1653
- limits: z.ZodOptional<z.ZodObject<{
1654
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1655
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1656
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1657
- }, z.core.$strict>>;
1658
- kind: z.ZodLiteral<"reduce">;
1659
- mode: z.ZodDefault<z.ZodEnum<{
1660
- agent: "agent";
1661
- program: "program";
1662
- }>>;
1663
- from: z.ZodString;
1664
- role: z.ZodOptional<z.ZodString>;
1665
- prompt: z.ZodOptional<z.ZodString>;
1666
- operation: z.ZodOptional<z.ZodEnum<{
1667
- severitySummary: "severitySummary";
1668
- mergeArrays: "mergeArrays";
1669
- dedupeFindings: "dedupeFindings";
1670
- sortBySeverity: "sortBySeverity";
1671
- }>>;
1672
- }, z.core.$strip>, z.ZodObject<{
1673
- id: z.ZodString;
1674
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1675
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1676
- name: z.ZodString;
1677
- source: z.ZodString;
1678
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1679
- fn: z.ZodEnum<{
1680
- json: "json";
1681
- default: "default";
1682
- compact: "compact";
1683
- tail: "tail";
1684
- quoteBlock: "quoteBlock";
1685
- pathList: "pathList";
1686
- filterSeverity: "filterSeverity";
1687
- severitySummary: "severitySummary";
1688
- join: "join";
1689
- }>;
1690
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1691
- }, z.core.$strip>>>;
1692
- }, z.core.$strip>>>;
1693
- prompt: z.ZodOptional<z.ZodString>;
1694
- limits: z.ZodOptional<z.ZodObject<{
1695
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1696
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1697
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1698
- }, z.core.$strict>>;
1699
- kind: z.ZodLiteral<"loop">;
1700
- maxRounds: z.ZodNumber;
1701
- body: z.ZodObject<{
1702
- root: z.ZodString;
1703
- output: z.ZodString;
1704
- stages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1705
- id: z.ZodString;
1706
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1707
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1708
- name: z.ZodString;
1709
- source: z.ZodString;
1710
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
- fn: z.ZodEnum<{
1712
- json: "json";
1713
- default: "default";
1714
- compact: "compact";
1715
- tail: "tail";
1716
- quoteBlock: "quoteBlock";
1717
- pathList: "pathList";
1718
- filterSeverity: "filterSeverity";
1719
- severitySummary: "severitySummary";
1720
- join: "join";
1721
- }>;
1722
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1723
- }, z.core.$strip>>>;
1724
- }, z.core.$strip>>>;
1725
- limits: z.ZodOptional<z.ZodObject<{
1726
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1727
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1728
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1729
- }, z.core.$strict>>;
1730
- kind: z.ZodLiteral<"agentTask">;
1731
- role: z.ZodString;
1732
- prompt: z.ZodString;
1733
- }, z.core.$strip>, z.ZodObject<{
1734
- id: z.ZodString;
1735
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1736
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1737
- name: z.ZodString;
1738
- source: z.ZodString;
1739
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1740
- fn: z.ZodEnum<{
1741
- json: "json";
1742
- default: "default";
1743
- compact: "compact";
1744
- tail: "tail";
1745
- quoteBlock: "quoteBlock";
1746
- pathList: "pathList";
1747
- filterSeverity: "filterSeverity";
1748
- severitySummary: "severitySummary";
1749
- join: "join";
1750
- }>;
1751
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1752
- }, z.core.$strip>>>;
1753
- }, z.core.$strip>>>;
1754
- limits: z.ZodOptional<z.ZodObject<{
1755
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1756
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1757
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1758
- }, z.core.$strict>>;
1759
- kind: z.ZodLiteral<"discover">;
1760
- method: z.ZodEnum<{
1761
- glob: "glob";
1762
- agent: "agent";
1763
- gitChangedFiles: "gitChangedFiles";
1764
- }>;
1765
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1766
- output: z.ZodDefault<z.ZodString>;
1767
- role: z.ZodOptional<z.ZodString>;
1768
- prompt: z.ZodOptional<z.ZodString>;
1769
- }, z.core.$strip>, z.ZodObject<{
1770
- id: z.ZodString;
1771
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1772
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1773
- name: z.ZodString;
1774
- source: z.ZodString;
1775
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1776
- fn: z.ZodEnum<{
1777
- json: "json";
1778
- default: "default";
1779
- compact: "compact";
1780
- tail: "tail";
1781
- quoteBlock: "quoteBlock";
1782
- pathList: "pathList";
1783
- filterSeverity: "filterSeverity";
1784
- severitySummary: "severitySummary";
1785
- join: "join";
1786
- }>;
1787
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1788
- }, z.core.$strip>>>;
1789
- }, z.core.$strip>>>;
1790
- limits: z.ZodOptional<z.ZodObject<{
1791
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1792
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1793
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1794
- }, z.core.$strict>>;
1795
- kind: z.ZodLiteral<"fanout">;
1796
- items: z.ZodObject<{
1797
- source: z.ZodString;
1798
- }, z.core.$strip>;
1799
- prompt: z.ZodOptional<z.ZodString>;
1800
- laneGroups: z.ZodArray<z.ZodObject<{
1801
- id: z.ZodString;
1802
- mode: z.ZodEnum<{
1803
- all: "all";
1804
- oneOf: "oneOf";
1805
- }>;
1806
- lanes: z.ZodArray<z.ZodObject<{
1807
- id: z.ZodString;
1808
- role: z.ZodString;
1809
- prompt: z.ZodOptional<z.ZodString>;
1810
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1811
- default: z.ZodOptional<z.ZodBoolean>;
1812
- }, z.core.$strip>>;
1813
- }, z.core.$strip>>;
1814
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
1815
- allowPartial: z.ZodDefault<z.ZodBoolean>;
1816
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
1817
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
1818
- }, z.core.$strip>>;
1819
- }, z.core.$strip>, z.ZodObject<{
1820
- id: z.ZodString;
1821
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1822
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1823
- name: z.ZodString;
1824
- source: z.ZodString;
1825
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1826
- fn: z.ZodEnum<{
1827
- json: "json";
1828
- default: "default";
1829
- compact: "compact";
1830
- tail: "tail";
1831
- quoteBlock: "quoteBlock";
1832
- pathList: "pathList";
1833
- filterSeverity: "filterSeverity";
1834
- severitySummary: "severitySummary";
1835
- join: "join";
1836
- }>;
1837
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1838
- }, z.core.$strip>>>;
1839
- }, z.core.$strip>>>;
1840
- limits: z.ZodOptional<z.ZodObject<{
1841
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1842
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1843
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1844
- }, z.core.$strict>>;
1845
- kind: z.ZodLiteral<"reduce">;
1846
- mode: z.ZodDefault<z.ZodEnum<{
1847
- agent: "agent";
1848
- program: "program";
1849
- }>>;
1850
- from: z.ZodString;
1851
- role: z.ZodOptional<z.ZodString>;
1852
- prompt: z.ZodOptional<z.ZodString>;
1853
- operation: z.ZodOptional<z.ZodEnum<{
1854
- severitySummary: "severitySummary";
1855
- mergeArrays: "mergeArrays";
1856
- dedupeFindings: "dedupeFindings";
1857
- sortBySeverity: "sortBySeverity";
1858
- }>>;
1859
- }, z.core.$strip>, z.ZodObject<{
1860
- id: z.ZodString;
1861
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1862
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1863
- name: z.ZodString;
1864
- source: z.ZodString;
1865
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1866
- fn: z.ZodEnum<{
1867
- json: "json";
1868
- default: "default";
1869
- compact: "compact";
1870
- tail: "tail";
1871
- quoteBlock: "quoteBlock";
1872
- pathList: "pathList";
1873
- filterSeverity: "filterSeverity";
1874
- severitySummary: "severitySummary";
1875
- join: "join";
1876
- }>;
1877
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1878
- }, z.core.$strip>>>;
1879
- }, z.core.$strip>>>;
1880
- limits: z.ZodOptional<z.ZodObject<{
1881
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1882
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1883
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1884
- }, z.core.$strict>>;
1885
- kind: z.ZodLiteral<"decisionGate">;
1886
- mode: z.ZodDefault<z.ZodEnum<{
1887
- agent: "agent";
1888
- program: "program";
1889
- }>>;
1890
- rules: z.ZodArray<z.ZodObject<{
1891
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1892
- to: z.ZodString;
1893
- }, z.core.$strip>>;
1894
- default: z.ZodString;
1895
- role: z.ZodOptional<z.ZodString>;
1896
- prompt: z.ZodOptional<z.ZodString>;
1897
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1898
- }, z.core.$strip>], "kind">>;
1899
- }, z.core.$strip>;
1900
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1901
- onExhausted: z.ZodLiteral<"blocked">;
1902
- }, z.core.$strip>, z.ZodObject<{
1903
- id: z.ZodString;
1904
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1905
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1906
- name: z.ZodString;
1907
- source: z.ZodString;
1908
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1909
- fn: z.ZodEnum<{
1910
- json: "json";
1911
- default: "default";
1912
- compact: "compact";
1913
- tail: "tail";
1914
- quoteBlock: "quoteBlock";
1915
- pathList: "pathList";
1916
- filterSeverity: "filterSeverity";
1917
- severitySummary: "severitySummary";
1918
- join: "join";
1919
- }>;
1920
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1921
- }, z.core.$strip>>>;
1922
- }, z.core.$strip>>>;
1923
- limits: z.ZodOptional<z.ZodObject<{
1924
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1925
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1926
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1927
- }, z.core.$strict>>;
1928
- kind: z.ZodLiteral<"decisionGate">;
1929
- mode: z.ZodDefault<z.ZodEnum<{
1930
- agent: "agent";
1931
- program: "program";
1932
- }>>;
1933
- rules: z.ZodArray<z.ZodObject<{
1934
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1935
- to: z.ZodString;
1936
- }, z.core.$strip>>;
1937
- default: z.ZodString;
1938
- role: z.ZodOptional<z.ZodString>;
1939
- prompt: z.ZodOptional<z.ZodString>;
1940
- routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1941
- }, z.core.$strip>, z.ZodObject<{
1942
- id: z.ZodString;
1943
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1944
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1945
- name: z.ZodString;
1946
- source: z.ZodString;
1947
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1948
- fn: z.ZodEnum<{
1949
- json: "json";
1950
- default: "default";
1951
- compact: "compact";
1952
- tail: "tail";
1953
- quoteBlock: "quoteBlock";
1954
- pathList: "pathList";
1955
- filterSeverity: "filterSeverity";
1956
- severitySummary: "severitySummary";
1957
- join: "join";
1958
- }>;
1959
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1960
- }, z.core.$strip>>>;
1961
- }, z.core.$strip>>>;
1962
- limits: z.ZodOptional<z.ZodObject<{
1963
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1964
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1965
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
1966
- }, z.core.$strict>>;
1967
- kind: z.ZodLiteral<"gate">;
1968
- mode: z.ZodDefault<z.ZodEnum<{
1969
- agent: "agent";
1970
- program: "program";
1971
- }>>;
1972
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1973
- role: z.ZodOptional<z.ZodString>;
1974
- prompt: z.ZodOptional<z.ZodString>;
1975
- }, z.core.$strip>, z.ZodObject<{
1976
- id: z.ZodString;
1977
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1978
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1979
- name: z.ZodString;
1980
- source: z.ZodString;
1981
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1982
- fn: z.ZodEnum<{
1983
- json: "json";
1984
- default: "default";
1985
- compact: "compact";
1986
- tail: "tail";
1987
- quoteBlock: "quoteBlock";
1988
- pathList: "pathList";
1989
- filterSeverity: "filterSeverity";
1990
- severitySummary: "severitySummary";
1991
- join: "join";
1992
- }>;
1993
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1994
- }, z.core.$strip>>>;
1995
- }, z.core.$strip>>>;
1996
- limits: z.ZodOptional<z.ZodObject<{
1997
- maxConcurrency: z.ZodOptional<z.ZodNumber>;
1998
- maxFanoutItems: z.ZodOptional<z.ZodNumber>;
1999
- stageTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
2000
- }, z.core.$strict>>;
2001
- kind: z.ZodLiteral<"summarize">;
2002
- role: z.ZodLiteral<"summarizer">;
2003
- prompt: z.ZodString;
2004
- }, z.core.$strip>], "kind">>;
2005
- }, z.core.$strip>;
2006
- type WorkflowSpec = z.infer<typeof WorkflowSpecSchema>;
2007
- type Stage = z.infer<typeof StageSchema>;
2008
- type Role = z.infer<typeof RoleSchema>;
2009
- type Variable = z.infer<typeof VariableSchema>;
2010
- type ConditionNode = z.infer<typeof ConditionSchema>;
2011
- //#endregion
2012
- //#region src/errors.d.ts
2013
- type IssueSeverity = "warning" | "error" | "fatal";
2014
- type OrchestratorIssue = {
2015
- code: string;
2016
- severity: IssueSeverity;
2017
- path: string;
2018
- message: string;
2019
- suggestions?: string[];
2020
- docs?: string;
2021
- };
2022
- type IssueResult = {
2023
- ok: boolean;
2024
- phase: string;
2025
- errors: OrchestratorIssue[];
2026
- warnings: OrchestratorIssue[];
2027
- };
2028
- declare function issue(input: OrchestratorIssue): OrchestratorIssue;
2029
- declare function resultFromIssues(phase: string, issues: OrchestratorIssue[]): IssueResult;
2030
- declare class OrchestratorError extends Error {
2031
- readonly result: IssueResult;
2032
- constructor(result: IssueResult);
2033
- }
2034
- //#endregion
2035
- //#region src/schema/load.d.ts
2036
- declare function loadWorkflowSpec(filePath: string): Promise<{
2037
- spec?: WorkflowSpec;
2038
- issues: OrchestratorIssue[];
2039
- }>;
2040
- //#endregion
2041
- //#region src/compiler/lint.d.ts
2042
- declare function lintWorkflowSpec(spec: WorkflowSpec): OrchestratorIssue[];
2043
- //#endregion
2044
- //#region src/contracts/schemas.d.ts
2045
- declare const OutputContractNameSchema: z.ZodEnum<{
2046
- implementation: "implementation";
2047
- validation: "validation";
2048
- discover: "discover";
2049
- gate: "gate";
2050
- base: "base";
2051
- decision: "decision";
2052
- diagnostic: "diagnostic";
2053
- }>;
2054
- type OutputContractName = z.infer<typeof OutputContractNameSchema>;
2055
- //#endregion
2056
- //#region src/contracts/repair-hints.d.ts
2057
- type FixHint = {
2058
- path: string;
2059
- message: string;
2060
- instruction: string;
2061
- };
2062
- //#endregion
2063
- //#region src/contracts/descriptors.d.ts
2064
- type OutputContract = {
2065
- name: OutputContractName;
2066
- schema: z.ZodType;
2067
- schemaForPrompt: unknown;
2068
- minimalExample: unknown;
2069
- describeIssue(issue: z.core.$ZodIssue): FixHint;
2070
- footerText(): string;
2071
- };
2072
- type OutputContractOptions = {
2073
- outputKey?: string;
2074
- maxItems?: number;
2075
- };
2076
- declare function getOutputContract(name: OutputContractName, options?: OutputContractOptions): OutputContract;
2077
- //#endregion
2078
- //#region src/contracts/output-contracts.d.ts
2079
- declare function contractNameForStage(stage: Stage, role?: Role): OutputContractName;
2080
- //#endregion
2081
- //#region src/compiler/execution-plan.d.ts
2082
- declare const EXECUTION_PLAN_VERSION = "acpus.execution-plan/v1";
2083
- type ExecutionPlan = {
2084
- version: typeof EXECUTION_PLAN_VERSION;
2085
- workflowName: string;
2086
- root: string;
2087
- stages: ExecutionPlanStage[];
2088
- roles: Record<string, ExecutionPlanRole>;
2089
- limits: ExecutionPlanLimits;
2090
- prompts: Record<string, PromptPlan>;
2091
- contracts: Record<string, ContractPlan>;
2092
- repairPolicy: RepairPolicyPlan;
2093
- fanout: FanoutPlan[];
2094
- };
2095
- type ExecutionPlanRole = Role & {
2096
- name: string;
2097
- };
2098
- type ExecutionPlanLimits = {
2099
- stageTimeoutMinutes: number;
2100
- };
2101
- type ExecutionPlanStageLimits = {
2102
- maxConcurrency?: number;
2103
- maxFanoutItems?: number;
2104
- stageTimeoutMinutes?: number;
2105
- };
2106
- type PromptPlan = {
2107
- id: string;
2108
- stageId: string;
2109
- template: string;
2110
- variables: Variable[];
2111
- footer: string;
2112
- roleName?: string;
2113
- contractName: OutputContractName;
2114
- contractOptions?: ContractPlan["options"];
2115
- };
2116
- type ContractPlan = {
2117
- name: OutputContractName;
2118
- options?: {
2119
- outputKey?: string;
2120
- maxItems?: number;
2121
- };
2122
- };
2123
- type RepairPolicyPlan = {
2124
- maxRepairTurns: 1;
2125
- repairableReasons: ["OUTPUT_PARSE_FAILED", "OUTPUT_SCHEMA_FAILED"];
2126
- };
2127
- type SessionKeyStrategy = {
2128
- kind: "linear";
2129
- key: string;
2130
- } | {
2131
- kind: "fanoutItem";
2132
- template: string;
2133
- };
2134
- type FanoutLanePlan = {
2135
- id: string;
2136
- roleName: string;
2137
- promptId: string;
2138
- contract: ContractPlan;
2139
- sessionKeyTemplate: string;
2140
- when?: Extract<Stage, {
2141
- kind: "fanout";
2142
- }>["laneGroups"][number]["lanes"][number]["when"];
2143
- default?: boolean;
2144
- };
2145
- type FanoutLaneGroupPlan = {
2146
- id: string;
2147
- mode: "all" | "oneOf";
2148
- lanes: FanoutLanePlan[];
2149
- };
2150
- type ExecutionPlanStage = {
2151
- id: string;
2152
- kind: Stage["kind"];
2153
- dependencies: string[];
2154
- roleName?: string;
2155
- contract?: ContractPlan;
2156
- promptId?: string;
2157
- session: SessionKeyStrategy;
2158
- limits: ExecutionPlanStageLimits;
2159
- fanout?: {
2160
- itemsSource: string;
2161
- allowPartial: boolean;
2162
- minCompletedRatio?: number;
2163
- maxBlockedItems?: number;
2164
- maxItems: number;
2165
- maxConcurrency: number;
2166
- laneGroups: FanoutLaneGroupPlan[];
2167
- };
2168
- reduce?: {
2169
- mode: "agent" | "program";
2170
- from: string;
2171
- operation?: string;
2172
- };
2173
- discover?: {
2174
- method: "gitChangedFiles" | "glob" | "agent";
2175
- args?: Record<string, unknown>;
2176
- outputKey: string;
2177
- };
2178
- decision?: {
2179
- mode: "agent" | "program";
2180
- rules: Extract<Stage, {
2181
- kind: "decisionGate";
2182
- }>["rules"];
2183
- defaultRoute: string;
2184
- routes: string[];
2185
- };
2186
- gate?: {
2187
- mode: "agent" | "program";
2188
- condition?: Extract<Stage, {
2189
- kind: "gate";
2190
- }>["condition"];
2191
- };
2192
- loop?: {
2193
- maxRounds: number;
2194
- body: {
2195
- root: string;
2196
- output: string;
2197
- stages: ExecutionPlanStage[];
2198
- };
2199
- continueWhen: Extract<Stage, {
2200
- kind: "loop";
2201
- }>["continueWhen"];
2202
- onExhausted: "blocked";
2203
- };
2204
- };
2205
- type FanoutPlan = {
2206
- stageId: string;
2207
- itemsSource: string;
2208
- maxItems: number;
2209
- maxConcurrency: number;
2210
- allowPartial: boolean;
2211
- minCompletedRatio?: number;
2212
- maxBlockedItems?: number;
2213
- laneGroups: FanoutLaneGroupPlan[];
2214
- };
2215
- //#endregion
2216
- //#region src/compiler/compile-execution-plan.d.ts
2217
- type CompileExecutionPlanOptions = {
2218
- stageIds?: string[];
2219
- startStageId?: string;
2220
- };
2221
- declare function compileExecutionPlan(spec: WorkflowSpec, options?: CompileExecutionPlanOptions): ExecutionPlan;
2222
- declare function renderStagePrompt(spec: WorkflowSpec, stage: Stage): string;
2223
- declare function renderPromptMap(spec: WorkflowSpec): Record<string, string>;
2224
- declare function topologicalOrder(spec: WorkflowSpec): string[];
2225
- declare function stageRoleName(stage: Stage): string | undefined;
2226
- //#endregion
2227
- //#region src/run-index/read-write.d.ts
2228
- type AttemptStatus = "pending" | "running" | "raw_received" | "parsing" | "repairing" | "completed" | "blocked" | "failed" | "cancelled" | "timed_out";
2229
- type StageStatus = "pending" | "ready" | "running" | "completed" | "blocked" | "failed" | "skipped";
2230
- type RunStatus = "pending" | "running" | "completed" | "blocked" | "diagnosed_blocked" | "failed" | "cancelled";
2231
- type WorkerStatus = "starting" | "running" | "stale" | "exited" | "failed";
2232
- type RunWorkerState = {
2233
- pid: number;
2234
- generation: number;
2235
- status: WorkerStatus;
2236
- startedAt: string;
2237
- heartbeatAt: string;
2238
- exitedAt?: string;
2239
- exitCode?: number | null;
2240
- };
2241
- type AttemptIndexEntry = {
2242
- id: string;
2243
- stageId: string;
2244
- itemId?: string;
2245
- groupId?: string;
2246
- laneId?: string;
2247
- kind: "attempt" | "repair" | "diagnostic";
2248
- status: AttemptStatus;
2249
- path: string;
2250
- startedAt?: string;
2251
- endedAt?: string;
2252
- blockedReason?: string;
2253
- parseErrorCode?: string;
2254
- rawPreview?: string;
2255
- promptPreview?: string;
2256
- sessionKey?: string;
2257
- requestId?: string;
2258
- stopReason?: string;
2259
- runtimeErrorCode?: string;
2260
- runtimeRetryOf?: string;
2261
- runtimeRetryOrdinal?: number;
2262
- runtimeRetryReason?: string;
2263
- agent?: string;
2264
- roleMode?: string;
2265
- runtimeDisposeInvoked?: boolean;
2266
- };
2267
- type StageIndexEntry = {
2268
- stageId: string;
2269
- status: StageStatus;
2270
- attempts: string[];
2271
- outputPath?: string;
2272
- blockedReason?: string;
2273
- startedAt?: string;
2274
- completedAt?: string;
2275
- skippedReason?: string;
2276
- runtimeRetryOf?: string;
2277
- runtimeRetryOrdinal?: number;
2278
- fanout?: {
2279
- totalItems: number;
2280
- completedItems: number;
2281
- blockedItems: number;
2282
- allowPartial: boolean;
2283
- failedItems?: number;
2284
- skippedItems?: number;
2285
- workUnits?: number;
2286
- items: Array<{
2287
- id: string;
2288
- index: number;
2289
- status: StageStatus;
2290
- outputPath?: string;
2291
- blockedReason?: string;
2292
- attemptId?: string;
2293
- startedAt?: string;
2294
- completedAt?: string;
2295
- errorCode?: string;
2296
- errorMessage?: string;
2297
- runtimeRetryOf?: string;
2298
- runtimeRetryOrdinal?: number;
2299
- skippedReason?: string;
2300
- groups?: Array<{
2301
- id: string;
2302
- mode: "all" | "oneOf";
2303
- status: StageStatus;
2304
- lanes: Array<{
2305
- id: string;
2306
- roleName: string;
2307
- status: StageStatus;
2308
- outputPath?: string;
2309
- blockedReason?: string;
2310
- attemptId?: string;
2311
- startedAt?: string;
2312
- completedAt?: string;
2313
- errorCode?: string;
2314
- errorMessage?: string;
2315
- runtimeRetryOf?: string;
2316
- runtimeRetryOrdinal?: number;
2317
- }>;
2318
- }>;
2319
- }>;
2320
- };
2321
- loop?: {
2322
- maxRounds: number;
2323
- currentRound?: number;
2324
- bodyOutputStageId: string;
2325
- rounds: Array<{
2326
- round: number;
2327
- status: StageStatus;
2328
- startedAt?: string;
2329
- completedAt?: string;
2330
- outputPath?: string;
2331
- bodyOutputStageId: string;
2332
- bodyOutput?: Record<string, unknown>;
2333
- outputs?: Record<string, unknown>;
2334
- stages: Record<string, {
2335
- stageId: string;
2336
- status: StageStatus;
2337
- attempts: string[];
2338
- outputPath?: string;
2339
- blockedReason?: string;
2340
- startedAt?: string;
2341
- completedAt?: string;
2342
- fanout?: StageIndexEntry["fanout"];
2343
- }>;
2344
- }>;
2345
- };
2346
- };
2347
- type RunIndex = {
2348
- schemaVersion: "acpus.run/v2";
2349
- logicalRunId: string;
2350
- workflowName: string;
2351
- status: RunStatus;
2352
- createdAt: string;
2353
- updatedAt: string;
2354
- source?: {
2355
- kind: "draft" | "saved" | "spec";
2356
- path?: string;
2357
- sha256?: string;
2358
- };
2359
- stages: Record<string, StageIndexEntry>;
2360
- attempts: Record<string, AttemptIndexEntry>;
2361
- agentUsage: {
2362
- planned: number;
2363
- actual: number;
2364
- repairCalls: number;
2365
- recoveryCalls: number;
2366
- };
2367
- worker?: RunWorkerState;
2368
- gateVerdict?: "pass" | "pass_with_warnings" | "blocked" | "failed" | "unknown";
2369
- blockedReason?: string;
2370
- resumePolicy?: {
2371
- fanout?: Record<string, {
2372
- allowPartial?: boolean;
2373
- maxItems?: number;
2374
- skipItemIndexes?: number[];
2375
- }>;
2376
- };
2377
- };
2378
- //#endregion
2379
- //#region src/projections/run-view.d.ts
2380
- type RunViewStatus = "pending" | "running" | "completed" | "blocked" | "diagnosed_blocked" | "failed" | "cancelled";
2381
- type RunViewOutputParse = {
2382
- mode?: string;
2383
- repaired?: boolean;
2384
- candidateCount?: number;
2385
- warnings: string[];
2386
- };
2387
- type RunViewParseDiagnostics = {
2388
- errorCode?: string;
2389
- candidateCount?: number;
2390
- bestCandidateId?: string;
2391
- recoverability?: string;
2392
- schemaErrors: Array<{
2393
- path?: string;
2394
- message?: string;
2395
- }>;
2396
- };
2397
- type RunView = {
2398
- logicalRunId?: string;
2399
- workflowName: string;
2400
- status: RunViewStatus;
2401
- gateVerdict?: "pass" | "pass_with_warnings" | "blocked" | "failed" | "unknown";
2402
- blockedReason?: string;
2403
- summary: string;
2404
- checks: Array<{
2405
- command?: string;
2406
- name?: string;
2407
- status?: string;
2408
- summary?: string;
2409
- }>;
2410
- finalWarnings: string[];
2411
- risks: string[];
2412
- warnings: OrchestratorIssue[];
2413
- errors: OrchestratorIssue[];
2414
- roles: Array<{
2415
- name: string;
2416
- category: string;
2417
- agent: string;
2418
- mode: string;
2419
- }>;
2420
- stages: Array<{
2421
- id: string;
2422
- kind: string;
2423
- dependsOn: string[];
2424
- status?: string;
2425
- summary?: string;
2426
- blockedReason?: string;
2427
- outputParse?: RunViewOutputParse;
2428
- parseDiagnostics?: RunViewParseDiagnostics;
2429
- }>;
2430
- attempts: Array<{
2431
- id: string;
2432
- stageId: string;
2433
- itemId?: string;
2434
- kind: string;
2435
- status: string;
2436
- blockedReason?: string;
2437
- parseErrorCode?: string;
2438
- path: string;
2439
- }>;
2440
- fanout: Array<{
2441
- stageId: string;
2442
- maxItems: number;
2443
- laneUpperBound: number;
2444
- estimatedWorkUnits: number;
2445
- }>;
2446
- agentUsage: {
2447
- planned: number;
2448
- actual?: number;
2449
- repairCalls?: number;
2450
- recoveryCalls?: number;
2451
- };
2452
- artifacts: Array<{
2453
- kind?: string;
2454
- path?: string;
2455
- label?: string;
2456
- }>;
2457
- commands: Record<string, string>;
2458
- };
2459
- declare function previewRunView(spec: WorkflowSpec, issues?: OrchestratorIssue[], commands?: Record<string, string>): RunView;
2460
- declare function runViewFromIndex(cwd: string, spec: WorkflowSpec, index: RunIndex, issues?: OrchestratorIssue[]): Promise<RunView>;
2461
- declare function estimateAgentCalls(spec: WorkflowSpec): number;
2462
- declare function estimateFanoutWork(spec: WorkflowSpec): RunView["fanout"];
2463
- //#endregion
2464
- //#region src/projections/run-diagnostics.d.ts
2465
- declare const RUN_DIAGNOSTICS_VIEW_VERSION = "acpus.diagnostics/v1";
2466
- declare const RunDiagnosticCodes: {
2467
- readonly SCHEDULER_RECOVERY_SUCCEEDED_WITH_BLOCKED_VERDICT: "SCHEDULER_RECOVERY_SUCCEEDED_WITH_BLOCKED_VERDICT";
2468
- };
2469
- type RunDiagnosticSource = "run_index" | "stage_output" | "attempt" | "event_tail";
2470
- type RunDiagnostic = {
2471
- id: string;
2472
- code?: string;
2473
- stageId?: string;
2474
- itemId?: string;
2475
- attemptId?: string;
2476
- status?: string;
2477
- summary: string;
2478
- path?: string;
2479
- source: RunDiagnosticSource;
2480
- };
2481
- type RunDiagnosticEvent = {
2482
- at?: string;
2483
- type?: string;
2484
- stageId?: string;
2485
- itemId?: string;
2486
- attemptId?: string;
2487
- errorCode?: string;
2488
- summary?: string;
2489
- };
2490
- type RunDiagnosticsView = {
2491
- version: typeof RUN_DIAGNOSTICS_VIEW_VERSION;
2492
- generatedAt: string;
2493
- run: {
2494
- logicalRunId: string;
2495
- workflowName: string;
2496
- status: RunIndex["status"];
2497
- blockedReason?: string;
2498
- gateVerdict?: RunIndex["gateVerdict"];
2499
- runDir: string;
2500
- };
2501
- diagnostics: RunDiagnostic[];
2502
- eventTail: RunDiagnosticEvent[];
2503
- };
2504
- type BuildRunDiagnosticsOptions = {
2505
- eventTailLimit?: number;
2506
- eventTailMaxBytes?: number;
2507
- };
2508
- declare function buildRunDiagnosticsView(cwd: string, index: RunIndex, options?: BuildRunDiagnosticsOptions): Promise<RunDiagnosticsView>;
2509
- declare function readNdjsonTail(filePath: string, maxLines: number, maxBytes?: number): Promise<string[]>;
2510
- //#endregion
2511
- //#region src/runtime/worker.d.ts
2512
- declare function workerSummary(worker: RunWorkerState | undefined, now?: number): {
2513
- pid: number;
2514
- generation: number;
2515
- status: WorkerStatus;
2516
- startedAt: string;
2517
- heartbeatAt: string;
2518
- exitedAt: string | undefined;
2519
- exitCode: number | null | undefined;
2520
- } | undefined;
2521
- //#endregion
2522
- //#region src/projections/run-monitor.d.ts
2523
- declare const RUN_MONITOR_VIEW_VERSION = "acpus.monitor/v1";
2524
- declare const TASK_DETAIL_VIEW_VERSION = "acpus.task-detail/v1";
2525
- type TaskStatus = StageStatus | AttemptStatus;
2526
- type TaskKind = "stage" | "fanoutLane" | "loopStage" | "loopFanoutLane";
2527
- type TaskExecution = "agent" | "deterministic";
2528
- type RunMonitorStage = {
2529
- id: string;
2530
- kind: Stage["kind"];
2531
- status: StageStatus;
2532
- dependsOn: string[];
2533
- startedAt?: string;
2534
- completedAt?: string;
2535
- blockedReason?: string;
2536
- skippedReason?: string;
2537
- outputPath?: string;
2538
- elapsedMs?: number;
2539
- durationMs?: number;
2540
- taskCounts: TaskCounts;
2541
- };
2542
- type TaskCounts = {
2543
- total: number;
2544
- pending: number;
2545
- running: number;
2546
- completed: number;
2547
- blocked: number;
2548
- failed: number;
2549
- skipped: number;
2550
- };
2551
- type RunMonitorTask = {
2552
- id: string;
2553
- kind: TaskKind;
2554
- execution: TaskExecution;
2555
- stageId: string;
2556
- label: string;
2557
- status: TaskStatus;
2558
- roleName?: string;
2559
- agent?: string;
2560
- roleMode?: string;
2561
- attemptId?: string;
2562
- attemptIds: string[];
2563
- round?: number;
2564
- bodyStageId?: string;
2565
- itemId?: string;
2566
- itemIndex?: number;
2567
- groupId?: string;
2568
- laneId?: string;
2569
- startedAt?: string;
2570
- completedAt?: string;
2571
- blockedReason?: string;
2572
- errorCode?: string;
2573
- outputPath?: string;
2574
- elapsedMs?: number;
2575
- durationMs?: number;
2576
- };
2577
- type RunMonitorView = {
2578
- version: typeof RUN_MONITOR_VIEW_VERSION;
2579
- generatedAt: string;
2580
- run: {
2581
- logicalRunId: string;
2582
- workflowName: string;
2583
- status: RunIndex["status"];
2584
- blockedReason?: string;
2585
- gateVerdict?: RunIndex["gateVerdict"];
2586
- runDir: string;
2587
- createdAt: string;
2588
- updatedAt: string;
2589
- elapsedMs?: number;
2590
- durationMs?: number;
2591
- worker?: ReturnType<typeof workerSummary>;
2592
- };
2593
- stages: RunMonitorStage[];
2594
- tasks: RunMonitorTask[];
2595
- progress: {
2596
- knownTasks: number;
2597
- completedTasks: number;
2598
- };
2599
- };
2600
- type TaskDetailView = {
2601
- version: typeof TASK_DETAIL_VIEW_VERSION;
2602
- generatedAt: string;
2603
- run: RunMonitorView["run"];
2604
- task: RunMonitorTask;
2605
- prompt?: {
2606
- preview: string;
2607
- lines: number;
2608
- };
2609
- activity: {
2610
- attempts: Array<{
2611
- id: string;
2612
- kind: AttemptIndexEntry["kind"];
2613
- status: AttemptIndexEntry["status"];
2614
- startedAt?: string;
2615
- endedAt?: string;
2616
- path: string;
2617
- blockedReason?: string;
2618
- parseErrorCode?: string;
2619
- runtimeErrorCode?: string;
2620
- }>;
2621
- totalAttempts: number;
2622
- };
2623
- outcome?: {
2624
- path?: string;
2625
- status?: string;
2626
- summary?: string;
2627
- blockedReason?: string;
2628
- artifacts: Array<{
2629
- kind?: string;
2630
- path?: string;
2631
- url?: string;
2632
- label?: string;
2633
- }>;
2634
- preview?: string;
2635
- };
2636
- };
2637
- declare function buildRunMonitorView(cwd: string, spec: WorkflowSpec, index: RunIndex): Promise<RunMonitorView>;
2638
- declare function buildTaskDetailView(cwd: string, spec: WorkflowSpec, index: RunIndex, taskId: string): Promise<TaskDetailView>;
2639
- //#endregion
2640
- //#region src/runtime/output-parser.d.ts
2641
- type OutputParseErrorCode = "OK" | "OUTPUT_PARSE_FAILED" | "OUTPUT_SCHEMA_FAILED";
2642
- type OutputCandidateMode = "lastBalancedJson";
2643
- type OutputCandidateSyntax = "invalidJson" | "validJson" | "repairedJson";
2644
- type OutputCandidateDiagnostic = {
2645
- id: string;
2646
- mode: OutputCandidateMode;
2647
- syntax: OutputCandidateSyntax;
2648
- rawHash: string;
2649
- rawPreview: string;
2650
- normalizedPreview?: string;
2651
- repairedPreview?: string;
2652
- parseError?: string;
2653
- schemaErrors: Array<{
2654
- path: string;
2655
- message: string;
2656
- }>;
2657
- valid: boolean;
2658
- value?: unknown;
2659
- };
2660
- type OutputParseDiagnostics = {
2661
- errorCode: OutputParseErrorCode;
2662
- summary: string;
2663
- candidateCount: number;
2664
- bestCandidateId?: string;
2665
- recoverability: "repairable" | "not_repairable";
2666
- candidates: OutputCandidateDiagnostic[];
2667
- warnings: string[];
2668
- };
2669
- type OutputParseSuccess = {
2670
- ok: true;
2671
- value: Record<string, unknown>;
2672
- outputParse: {
2673
- mode: OutputCandidateMode;
2674
- repaired: boolean;
2675
- candidateCount: number;
2676
- warnings: string[];
2677
- };
2678
- diagnostics: OutputParseDiagnostics;
2679
- };
2680
- type OutputParseFailure = {
2681
- ok: false;
2682
- errorCode: Exclude<OutputParseErrorCode, "OK">;
2683
- summary: string;
2684
- diagnostics: OutputParseDiagnostics;
2685
- bestCandidate?: OutputCandidateDiagnostic;
2686
- };
2687
- type OutputParseResult = OutputParseSuccess | OutputParseFailure;
2688
- type ParseWorkflowOutputOptions = {
2689
- contractOptions?: {
2690
- outputKey?: string;
2691
- maxItems?: number;
2692
- };
2693
- };
2694
- type RawCandidate = {
2695
- id: string;
2696
- mode: OutputCandidateMode;
2697
- raw: string;
2698
- start: number;
2699
- end: number;
2700
- };
2701
- declare function parseWorkflowOutput(text: string, contractName: OutputContractName, options?: ParseWorkflowOutputOptions): OutputParseResult;
2702
- declare function collectWorkflowOutputCandidates(text: string): RawCandidate[];
2703
- //#endregion
2704
- //#region src/runtime/repair.d.ts
2705
- declare function isRepairableOutputFailure(reason: string | undefined): boolean;
2706
- declare function formatRepairPrompt(input: {
2707
- contractName: OutputContractName;
2708
- failure: OutputParseFailure;
2709
- contractOptions?: {
2710
- outputKey?: string;
2711
- maxItems?: number;
2712
- };
2713
- }): string;
2714
- declare function repairFailedEnvelope(input: {
2715
- summary: string;
2716
- originalReason: string;
2717
- repairDiagnostics: unknown;
2718
- }): Record<string, unknown>;
2719
- //#endregion
2720
- //#region src/runtime/run-workflow.d.ts
2721
- type PreparedRun = {
2722
- logicalRunId: string;
2723
- dir: string;
2724
- index: RunIndex;
2725
- };
2726
- declare function prepareRun(spec: WorkflowSpec, options: {
2727
- cwd: string;
2728
- input: Record<string, unknown>;
2729
- sourcePath?: string;
2730
- }): Promise<PreparedRun>;
2731
- declare function startPreparedRun(cwd: string, prepared: PreparedRun, options?: {
2732
- drainFanoutPool?: boolean;
2733
- }): Promise<RunIndex>;
2734
- //#endregion
2735
- //#region src/runtime/scheduler.d.ts
2736
- type SyncRunOptions = {
2737
- startPending?: boolean;
2738
- drainFanoutPool?: boolean;
2739
- };
2740
- declare function syncRun(cwd: string, logicalRunId: string, options?: SyncRunOptions): Promise<RunIndex>;
2741
- //#endregion
2742
- export { AgentTaskStageSchema, ArtifactSchema, BaseOutputSchema, BuildRunDiagnosticsOptions, CheckSchema, type CompileExecutionPlanOptions, ConditionNode, ConditionSchema, type ContractPlan, DecisionGateStageSchema, DecisionRuleSchema, DiscoverStageSchema, EXECUTION_PLAN_VERSION, type ExecutionPlan, type ExecutionPlanLimits, type ExecutionPlanRole, type ExecutionPlanStage, type ExecutionPlanStageLimits, FanoutLaneGroupSchema, FanoutLaneSchema, type FanoutPlan, FanoutStageSchema, FindingSchema, GateOutputSchema, GateStageSchema, ImplementationOutputSchema, InputDeclarationSchema, InputTypeSchema, IssueResult, IssueSeverity, LoopBodyStageSchema, LoopStageSchema, OrchestratorError, OrchestratorIssue, OutputCandidateDiagnostic, OutputCandidateMode, OutputCandidateSyntax, type OutputContract, type OutputContractName, OutputContractNameSchema, type OutputContractOptions, OutputParseDiagnostics, OutputParseErrorCode, OutputParseFailure, OutputParseResult, OutputParseSuccess, ParseWorkflowOutputOptions, PreparedRun, type PromptPlan, RUN_DIAGNOSTICS_VIEW_VERSION, RUN_MONITOR_VIEW_VERSION, ReduceStageSchema, type RepairPolicyPlan, Role, RoleCategorySchema, RoleModeSchema, RoleSchema, RunDiagnostic, RunDiagnosticCodes, RunDiagnosticEvent, RunDiagnosticSource, RunDiagnosticsView, RunMonitorStage, RunMonitorTask, RunMonitorView, RunView, RunViewOutputParse, RunViewParseDiagnostics, RunViewStatus, SCHEMA_VERSION, type SessionKeyStrategy, SeverityCountsSchema, Stage, StageLimitsSchema, StageSchema, SummarizeStageSchema, type SyncRunOptions, TASK_DETAIL_VIEW_VERSION, TaskCounts, TaskDetailView, TaskExecution, TaskKind, TaskStatus, TransformSchema, ValidationOutputSchema, Variable, VariableSchema, WorkflowLimitsSchema, WorkflowSpec, WorkflowSpecSchema, buildRunDiagnosticsView, buildRunMonitorView, buildTaskDetailView, collectWorkflowOutputCandidates, compileExecutionPlan, contractNameForStage, estimateAgentCalls, estimateFanoutWork, formatRepairPrompt, getOutputContract, isRepairableOutputFailure, issue, lintWorkflowSpec, loadWorkflowSpec, parseWorkflowOutput, prepareRun, previewRunView, readNdjsonTail, renderPromptMap, renderStagePrompt, repairFailedEnvelope, resultFromIssues, runViewFromIndex, stageRoleName, startPreparedRun, syncRun, topologicalOrder };