acpus 0.0.2 → 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 (47) hide show
  1. package/README.md +6 -103
  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 +30 -44
  39. package/dist/cli.d.mts +0 -1
  40. package/dist/cli.mjs +0 -4017
  41. package/dist/index.d.mts +0 -2194
  42. package/dist/index.mjs +0 -243
  43. package/dist/monitor-app-CPlEcyHR.mjs +0 -369
  44. package/dist/monitor-rendering-LGr9Ebd_.mjs +0 -78
  45. package/dist/run-picker-app-utJ2f5CU.mjs +0 -104
  46. package/dist/run-workflow-DdIAC8Zu.mjs +0 -12922
  47. package/schemas/workflow-spec.schema.json +0 -2649
package/dist/index.d.mts DELETED
@@ -1,2194 +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 WorkflowInputSchema: z.ZodObject<{
6
- schema: z.ZodString;
7
- default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
- description: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strict>;
10
- declare const ActorModeSchema: z.ZodEnum<{
11
- denyAll: "denyAll";
12
- readOnly: "readOnly";
13
- edit: "edit";
14
- }>;
15
- declare const ActorSchema: z.ZodObject<{
16
- agent: z.ZodString;
17
- mode: z.ZodEnum<{
18
- denyAll: "denyAll";
19
- readOnly: "readOnly";
20
- edit: "edit";
21
- }>;
22
- label: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strict>;
24
- declare const TransformSchema: z.ZodObject<{
25
- fn: z.ZodEnum<{
26
- default: "default";
27
- compact: "compact";
28
- tail: "tail";
29
- json: "json";
30
- quoteBlock: "quoteBlock";
31
- pathList: "pathList";
32
- filterSeverity: "filterSeverity";
33
- severitySummary: "severitySummary";
34
- join: "join";
35
- }>;
36
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
- }, z.core.$strict>;
38
- declare const VariableSchema: z.ZodObject<{
39
- name: z.ZodString;
40
- source: z.ZodString;
41
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
- fn: z.ZodEnum<{
43
- default: "default";
44
- compact: "compact";
45
- tail: "tail";
46
- json: "json";
47
- quoteBlock: "quoteBlock";
48
- pathList: "pathList";
49
- filterSeverity: "filterSeverity";
50
- severitySummary: "severitySummary";
51
- join: "join";
52
- }>;
53
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
- }, z.core.$strict>>>;
55
- }, z.core.$strict>;
56
- declare const PositiveIntegerLimitSchema: z.ZodNumber;
57
- declare const LimitBindingSchema: z.ZodObject<{
58
- source: z.ZodString;
59
- default: z.ZodOptional<z.ZodNumber>;
60
- }, z.core.$strict>;
61
- declare const LimitValueSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
62
- source: z.ZodString;
63
- default: z.ZodOptional<z.ZodNumber>;
64
- }, z.core.$strict>]>;
65
- declare const WorkflowLimitsSchema: z.ZodObject<{
66
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
67
- source: z.ZodString;
68
- default: z.ZodOptional<z.ZodNumber>;
69
- }, z.core.$strict>]>>;
70
- }, z.core.$strict>;
71
- declare const StageLimitsSchema: z.ZodObject<{
72
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
73
- source: z.ZodString;
74
- default: z.ZodOptional<z.ZodNumber>;
75
- }, z.core.$strict>]>>;
76
- }, z.core.$strict>;
77
- declare const FanoutStageLimitsSchema: z.ZodObject<{
78
- maxConcurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
79
- source: z.ZodString;
80
- default: z.ZodOptional<z.ZodNumber>;
81
- }, z.core.$strict>]>>;
82
- maxFanoutItems: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
83
- source: z.ZodString;
84
- default: z.ZodOptional<z.ZodNumber>;
85
- }, z.core.$strict>]>>;
86
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
87
- source: z.ZodString;
88
- default: z.ZodOptional<z.ZodNumber>;
89
- }, z.core.$strict>]>>;
90
- }, z.core.$strict>;
91
- type Condition = {
92
- source?: string;
93
- op?: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "exists" | "empty";
94
- value?: unknown;
95
- all?: Condition[];
96
- any?: Condition[];
97
- not?: Condition;
98
- };
99
- declare const ConditionSchema: z.ZodType<Condition>;
100
- declare const RouteRuleSchema: z.ZodObject<{
101
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
102
- to: z.ZodString;
103
- }, z.core.$strict>;
104
- declare const TaskAgentStageSchema: z.ZodObject<{
105
- id: z.ZodString;
106
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
- name: z.ZodString;
109
- source: z.ZodString;
110
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
- fn: z.ZodEnum<{
112
- default: "default";
113
- compact: "compact";
114
- tail: "tail";
115
- json: "json";
116
- quoteBlock: "quoteBlock";
117
- pathList: "pathList";
118
- filterSeverity: "filterSeverity";
119
- severitySummary: "severitySummary";
120
- join: "join";
121
- }>;
122
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
123
- }, z.core.$strict>>>;
124
- }, z.core.$strict>>>;
125
- limits: z.ZodOptional<z.ZodObject<{
126
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
127
- source: z.ZodString;
128
- default: z.ZodOptional<z.ZodNumber>;
129
- }, z.core.$strict>]>>;
130
- }, z.core.$strict>>;
131
- kind: z.ZodLiteral<"task">;
132
- mode: z.ZodLiteral<"agent">;
133
- actor: z.ZodObject<{
134
- agent: z.ZodString;
135
- mode: z.ZodEnum<{
136
- denyAll: "denyAll";
137
- readOnly: "readOnly";
138
- edit: "edit";
139
- }>;
140
- label: z.ZodOptional<z.ZodString>;
141
- }, z.core.$strict>;
142
- prompt: z.ZodString;
143
- output: z.ZodOptional<z.ZodObject<{
144
- schema: z.ZodString;
145
- }, z.core.$strict>>;
146
- }, z.core.$strict>;
147
- declare const TaskProgramStageSchema: z.ZodObject<{
148
- id: z.ZodString;
149
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
- name: z.ZodString;
152
- source: z.ZodString;
153
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
154
- fn: z.ZodEnum<{
155
- default: "default";
156
- compact: "compact";
157
- tail: "tail";
158
- json: "json";
159
- quoteBlock: "quoteBlock";
160
- pathList: "pathList";
161
- filterSeverity: "filterSeverity";
162
- severitySummary: "severitySummary";
163
- join: "join";
164
- }>;
165
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
166
- }, z.core.$strict>>>;
167
- }, z.core.$strict>>>;
168
- limits: z.ZodOptional<z.ZodObject<{
169
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
170
- source: z.ZodString;
171
- default: z.ZodOptional<z.ZodNumber>;
172
- }, z.core.$strict>]>>;
173
- }, z.core.$strict>>;
174
- kind: z.ZodLiteral<"task">;
175
- mode: z.ZodLiteral<"program">;
176
- operation: z.ZodLiteral<"command">;
177
- command: z.ZodString;
178
- args: z.ZodDefault<z.ZodArray<z.ZodString>>;
179
- cwd: z.ZodOptional<z.ZodString>;
180
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
181
- allowMutation: z.ZodDefault<z.ZodBoolean>;
182
- }, z.core.$strict>;
183
- declare const TaskStageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
184
- id: z.ZodString;
185
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
187
- name: z.ZodString;
188
- source: z.ZodString;
189
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
- fn: z.ZodEnum<{
191
- default: "default";
192
- compact: "compact";
193
- tail: "tail";
194
- json: "json";
195
- quoteBlock: "quoteBlock";
196
- pathList: "pathList";
197
- filterSeverity: "filterSeverity";
198
- severitySummary: "severitySummary";
199
- join: "join";
200
- }>;
201
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
202
- }, z.core.$strict>>>;
203
- }, z.core.$strict>>>;
204
- limits: z.ZodOptional<z.ZodObject<{
205
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
206
- source: z.ZodString;
207
- default: z.ZodOptional<z.ZodNumber>;
208
- }, z.core.$strict>]>>;
209
- }, z.core.$strict>>;
210
- kind: z.ZodLiteral<"task">;
211
- mode: z.ZodLiteral<"agent">;
212
- actor: z.ZodObject<{
213
- agent: z.ZodString;
214
- mode: z.ZodEnum<{
215
- denyAll: "denyAll";
216
- readOnly: "readOnly";
217
- edit: "edit";
218
- }>;
219
- label: z.ZodOptional<z.ZodString>;
220
- }, z.core.$strict>;
221
- prompt: z.ZodString;
222
- output: z.ZodOptional<z.ZodObject<{
223
- schema: z.ZodString;
224
- }, z.core.$strict>>;
225
- }, z.core.$strict>, z.ZodObject<{
226
- id: z.ZodString;
227
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
229
- name: z.ZodString;
230
- source: z.ZodString;
231
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
232
- fn: z.ZodEnum<{
233
- default: "default";
234
- compact: "compact";
235
- tail: "tail";
236
- json: "json";
237
- quoteBlock: "quoteBlock";
238
- pathList: "pathList";
239
- filterSeverity: "filterSeverity";
240
- severitySummary: "severitySummary";
241
- join: "join";
242
- }>;
243
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
244
- }, z.core.$strict>>>;
245
- }, z.core.$strict>>>;
246
- limits: z.ZodOptional<z.ZodObject<{
247
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
248
- source: z.ZodString;
249
- default: z.ZodOptional<z.ZodNumber>;
250
- }, z.core.$strict>]>>;
251
- }, z.core.$strict>>;
252
- kind: z.ZodLiteral<"task">;
253
- mode: z.ZodLiteral<"program">;
254
- operation: z.ZodLiteral<"command">;
255
- command: z.ZodString;
256
- args: z.ZodDefault<z.ZodArray<z.ZodString>>;
257
- cwd: z.ZodOptional<z.ZodString>;
258
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
259
- allowMutation: z.ZodDefault<z.ZodBoolean>;
260
- }, z.core.$strict>], "mode">;
261
- declare const RouteProgramStageSchema: z.ZodObject<{
262
- id: z.ZodString;
263
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
- name: z.ZodString;
266
- source: z.ZodString;
267
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
- fn: z.ZodEnum<{
269
- default: "default";
270
- compact: "compact";
271
- tail: "tail";
272
- json: "json";
273
- quoteBlock: "quoteBlock";
274
- pathList: "pathList";
275
- filterSeverity: "filterSeverity";
276
- severitySummary: "severitySummary";
277
- join: "join";
278
- }>;
279
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
280
- }, z.core.$strict>>>;
281
- }, z.core.$strict>>>;
282
- limits: z.ZodOptional<z.ZodObject<{
283
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
284
- source: z.ZodString;
285
- default: z.ZodOptional<z.ZodNumber>;
286
- }, z.core.$strict>]>>;
287
- }, z.core.$strict>>;
288
- kind: z.ZodLiteral<"route">;
289
- mode: z.ZodLiteral<"program">;
290
- rules: z.ZodArray<z.ZodObject<{
291
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
292
- to: z.ZodString;
293
- }, z.core.$strict>>;
294
- routes: z.ZodArray<z.ZodString>;
295
- }, z.core.$strict>;
296
- declare const RouteAgentStageSchema: z.ZodObject<{
297
- id: z.ZodString;
298
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
- name: z.ZodString;
301
- source: z.ZodString;
302
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
- fn: z.ZodEnum<{
304
- default: "default";
305
- compact: "compact";
306
- tail: "tail";
307
- json: "json";
308
- quoteBlock: "quoteBlock";
309
- pathList: "pathList";
310
- filterSeverity: "filterSeverity";
311
- severitySummary: "severitySummary";
312
- join: "join";
313
- }>;
314
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
315
- }, z.core.$strict>>>;
316
- }, z.core.$strict>>>;
317
- limits: z.ZodOptional<z.ZodObject<{
318
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
319
- source: z.ZodString;
320
- default: z.ZodOptional<z.ZodNumber>;
321
- }, z.core.$strict>]>>;
322
- }, z.core.$strict>>;
323
- kind: z.ZodLiteral<"route">;
324
- mode: z.ZodLiteral<"agent">;
325
- rules: z.ZodArray<z.ZodObject<{
326
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
327
- to: z.ZodString;
328
- }, z.core.$strict>>;
329
- routes: z.ZodArray<z.ZodString>;
330
- actor: z.ZodObject<{
331
- agent: z.ZodString;
332
- mode: z.ZodEnum<{
333
- denyAll: "denyAll";
334
- readOnly: "readOnly";
335
- edit: "edit";
336
- }>;
337
- label: z.ZodOptional<z.ZodString>;
338
- }, z.core.$strict>;
339
- prompt: z.ZodString;
340
- }, z.core.$strict>;
341
- declare const RouteStageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
- id: z.ZodString;
343
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
344
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
- name: z.ZodString;
346
- source: z.ZodString;
347
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
- fn: z.ZodEnum<{
349
- default: "default";
350
- compact: "compact";
351
- tail: "tail";
352
- json: "json";
353
- quoteBlock: "quoteBlock";
354
- pathList: "pathList";
355
- filterSeverity: "filterSeverity";
356
- severitySummary: "severitySummary";
357
- join: "join";
358
- }>;
359
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
360
- }, z.core.$strict>>>;
361
- }, z.core.$strict>>>;
362
- limits: z.ZodOptional<z.ZodObject<{
363
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
364
- source: z.ZodString;
365
- default: z.ZodOptional<z.ZodNumber>;
366
- }, z.core.$strict>]>>;
367
- }, z.core.$strict>>;
368
- kind: z.ZodLiteral<"route">;
369
- mode: z.ZodLiteral<"program">;
370
- rules: z.ZodArray<z.ZodObject<{
371
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
372
- to: z.ZodString;
373
- }, z.core.$strict>>;
374
- routes: z.ZodArray<z.ZodString>;
375
- }, z.core.$strict>, z.ZodObject<{
376
- id: z.ZodString;
377
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
- name: z.ZodString;
380
- source: z.ZodString;
381
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
- fn: z.ZodEnum<{
383
- default: "default";
384
- compact: "compact";
385
- tail: "tail";
386
- json: "json";
387
- quoteBlock: "quoteBlock";
388
- pathList: "pathList";
389
- filterSeverity: "filterSeverity";
390
- severitySummary: "severitySummary";
391
- join: "join";
392
- }>;
393
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
- }, z.core.$strict>>>;
395
- }, z.core.$strict>>>;
396
- limits: z.ZodOptional<z.ZodObject<{
397
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
398
- source: z.ZodString;
399
- default: z.ZodOptional<z.ZodNumber>;
400
- }, z.core.$strict>]>>;
401
- }, z.core.$strict>>;
402
- kind: z.ZodLiteral<"route">;
403
- mode: z.ZodLiteral<"agent">;
404
- rules: z.ZodArray<z.ZodObject<{
405
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
406
- to: z.ZodString;
407
- }, z.core.$strict>>;
408
- routes: z.ZodArray<z.ZodString>;
409
- actor: z.ZodObject<{
410
- agent: z.ZodString;
411
- mode: z.ZodEnum<{
412
- denyAll: "denyAll";
413
- readOnly: "readOnly";
414
- edit: "edit";
415
- }>;
416
- label: z.ZodOptional<z.ZodString>;
417
- }, z.core.$strict>;
418
- prompt: z.ZodString;
419
- }, z.core.$strict>], "mode">;
420
- declare const GateProgramStageSchema: z.ZodObject<{
421
- id: z.ZodString;
422
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
423
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
- name: z.ZodString;
425
- source: z.ZodString;
426
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
427
- fn: z.ZodEnum<{
428
- default: "default";
429
- compact: "compact";
430
- tail: "tail";
431
- json: "json";
432
- quoteBlock: "quoteBlock";
433
- pathList: "pathList";
434
- filterSeverity: "filterSeverity";
435
- severitySummary: "severitySummary";
436
- join: "join";
437
- }>;
438
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
439
- }, z.core.$strict>>>;
440
- }, z.core.$strict>>>;
441
- limits: z.ZodOptional<z.ZodObject<{
442
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
443
- source: z.ZodString;
444
- default: z.ZodOptional<z.ZodNumber>;
445
- }, z.core.$strict>]>>;
446
- }, z.core.$strict>>;
447
- kind: z.ZodLiteral<"gate">;
448
- mode: z.ZodDefault<z.ZodLiteral<"program">>;
449
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
450
- }, z.core.$strict>;
451
- declare const GateAgentStageSchema: z.ZodObject<{
452
- id: z.ZodString;
453
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
454
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
455
- name: z.ZodString;
456
- source: z.ZodString;
457
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
458
- fn: z.ZodEnum<{
459
- default: "default";
460
- compact: "compact";
461
- tail: "tail";
462
- json: "json";
463
- quoteBlock: "quoteBlock";
464
- pathList: "pathList";
465
- filterSeverity: "filterSeverity";
466
- severitySummary: "severitySummary";
467
- join: "join";
468
- }>;
469
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
470
- }, z.core.$strict>>>;
471
- }, z.core.$strict>>>;
472
- limits: z.ZodOptional<z.ZodObject<{
473
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
474
- source: z.ZodString;
475
- default: z.ZodOptional<z.ZodNumber>;
476
- }, z.core.$strict>]>>;
477
- }, z.core.$strict>>;
478
- kind: z.ZodLiteral<"gate">;
479
- mode: z.ZodLiteral<"agent">;
480
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
481
- actor: z.ZodObject<{
482
- agent: z.ZodString;
483
- mode: z.ZodEnum<{
484
- denyAll: "denyAll";
485
- readOnly: "readOnly";
486
- edit: "edit";
487
- }>;
488
- label: z.ZodOptional<z.ZodString>;
489
- }, z.core.$strict>;
490
- prompt: z.ZodString;
491
- output: z.ZodOptional<z.ZodObject<{
492
- schema: z.ZodString;
493
- }, z.core.$strict>>;
494
- }, z.core.$strict>;
495
- declare const GateStageSchema: z.ZodUnion<readonly [z.ZodObject<{
496
- id: z.ZodString;
497
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
498
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
499
- name: z.ZodString;
500
- source: z.ZodString;
501
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
- fn: z.ZodEnum<{
503
- default: "default";
504
- compact: "compact";
505
- tail: "tail";
506
- json: "json";
507
- quoteBlock: "quoteBlock";
508
- pathList: "pathList";
509
- filterSeverity: "filterSeverity";
510
- severitySummary: "severitySummary";
511
- join: "join";
512
- }>;
513
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
514
- }, z.core.$strict>>>;
515
- }, z.core.$strict>>>;
516
- limits: z.ZodOptional<z.ZodObject<{
517
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
518
- source: z.ZodString;
519
- default: z.ZodOptional<z.ZodNumber>;
520
- }, z.core.$strict>]>>;
521
- }, z.core.$strict>>;
522
- kind: z.ZodLiteral<"gate">;
523
- mode: z.ZodLiteral<"agent">;
524
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
525
- actor: z.ZodObject<{
526
- agent: z.ZodString;
527
- mode: z.ZodEnum<{
528
- denyAll: "denyAll";
529
- readOnly: "readOnly";
530
- edit: "edit";
531
- }>;
532
- label: z.ZodOptional<z.ZodString>;
533
- }, z.core.$strict>;
534
- prompt: z.ZodString;
535
- output: z.ZodOptional<z.ZodObject<{
536
- schema: z.ZodString;
537
- }, z.core.$strict>>;
538
- }, z.core.$strict>, z.ZodObject<{
539
- id: z.ZodString;
540
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
541
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
542
- name: z.ZodString;
543
- source: z.ZodString;
544
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
- fn: z.ZodEnum<{
546
- default: "default";
547
- compact: "compact";
548
- tail: "tail";
549
- json: "json";
550
- quoteBlock: "quoteBlock";
551
- pathList: "pathList";
552
- filterSeverity: "filterSeverity";
553
- severitySummary: "severitySummary";
554
- join: "join";
555
- }>;
556
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
557
- }, z.core.$strict>>>;
558
- }, z.core.$strict>>>;
559
- limits: z.ZodOptional<z.ZodObject<{
560
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
561
- source: z.ZodString;
562
- default: z.ZodOptional<z.ZodNumber>;
563
- }, z.core.$strict>]>>;
564
- }, z.core.$strict>>;
565
- kind: z.ZodLiteral<"gate">;
566
- mode: z.ZodDefault<z.ZodLiteral<"program">>;
567
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
568
- }, z.core.$strict>]>;
569
- declare const FanoutLaneSchema: z.ZodObject<{
570
- id: z.ZodString;
571
- actor: z.ZodObject<{
572
- agent: z.ZodString;
573
- mode: z.ZodEnum<{
574
- denyAll: "denyAll";
575
- readOnly: "readOnly";
576
- edit: "edit";
577
- }>;
578
- label: z.ZodOptional<z.ZodString>;
579
- }, z.core.$strict>;
580
- prompt: z.ZodOptional<z.ZodString>;
581
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
582
- output: z.ZodOptional<z.ZodObject<{
583
- schema: z.ZodString;
584
- }, z.core.$strict>>;
585
- }, z.core.$strict>;
586
- declare const FanoutPolicySchema: z.ZodObject<{
587
- allowPartial: z.ZodDefault<z.ZodBoolean>;
588
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
589
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
590
- }, z.core.$strict>;
591
- declare const AgentFaninSchema: z.ZodObject<{
592
- mode: z.ZodLiteral<"agent">;
593
- actor: z.ZodObject<{
594
- agent: z.ZodString;
595
- mode: z.ZodEnum<{
596
- denyAll: "denyAll";
597
- readOnly: "readOnly";
598
- edit: "edit";
599
- }>;
600
- label: z.ZodOptional<z.ZodString>;
601
- }, z.core.$strict>;
602
- prompt: z.ZodString;
603
- output: z.ZodOptional<z.ZodObject<{
604
- schema: z.ZodString;
605
- }, z.core.$strict>>;
606
- }, z.core.$strict>;
607
- declare const ProgramFaninSchema: z.ZodObject<{
608
- mode: z.ZodLiteral<"program">;
609
- operation: z.ZodLiteral<"mergeArrays">;
610
- }, z.core.$strict>;
611
- declare const FaninSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
612
- mode: z.ZodLiteral<"agent">;
613
- actor: z.ZodObject<{
614
- agent: z.ZodString;
615
- mode: z.ZodEnum<{
616
- denyAll: "denyAll";
617
- readOnly: "readOnly";
618
- edit: "edit";
619
- }>;
620
- label: z.ZodOptional<z.ZodString>;
621
- }, z.core.$strict>;
622
- prompt: z.ZodString;
623
- output: z.ZodOptional<z.ZodObject<{
624
- schema: z.ZodString;
625
- }, z.core.$strict>>;
626
- }, z.core.$strict>, z.ZodObject<{
627
- mode: z.ZodLiteral<"program">;
628
- operation: z.ZodLiteral<"mergeArrays">;
629
- }, z.core.$strict>], "mode">;
630
- declare const FanoutStageSchema: z.ZodObject<{
631
- id: z.ZodString;
632
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
634
- name: z.ZodString;
635
- source: z.ZodString;
636
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
637
- fn: z.ZodEnum<{
638
- default: "default";
639
- compact: "compact";
640
- tail: "tail";
641
- json: "json";
642
- quoteBlock: "quoteBlock";
643
- pathList: "pathList";
644
- filterSeverity: "filterSeverity";
645
- severitySummary: "severitySummary";
646
- join: "join";
647
- }>;
648
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
649
- }, z.core.$strict>>>;
650
- }, z.core.$strict>>>;
651
- kind: z.ZodLiteral<"fanout">;
652
- items: z.ZodObject<{
653
- source: z.ZodString;
654
- }, z.core.$strict>;
655
- limits: z.ZodOptional<z.ZodObject<{
656
- maxConcurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
657
- source: z.ZodString;
658
- default: z.ZodOptional<z.ZodNumber>;
659
- }, z.core.$strict>]>>;
660
- maxFanoutItems: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
661
- source: z.ZodString;
662
- default: z.ZodOptional<z.ZodNumber>;
663
- }, z.core.$strict>]>>;
664
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
665
- source: z.ZodString;
666
- default: z.ZodOptional<z.ZodNumber>;
667
- }, z.core.$strict>]>>;
668
- }, z.core.$strict>>;
669
- prompt: z.ZodOptional<z.ZodString>;
670
- lanes: z.ZodArray<z.ZodObject<{
671
- id: z.ZodString;
672
- actor: z.ZodObject<{
673
- agent: z.ZodString;
674
- mode: z.ZodEnum<{
675
- denyAll: "denyAll";
676
- readOnly: "readOnly";
677
- edit: "edit";
678
- }>;
679
- label: z.ZodOptional<z.ZodString>;
680
- }, z.core.$strict>;
681
- prompt: z.ZodOptional<z.ZodString>;
682
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
683
- output: z.ZodOptional<z.ZodObject<{
684
- schema: z.ZodString;
685
- }, z.core.$strict>>;
686
- }, z.core.$strict>>;
687
- fanin: z.ZodDiscriminatedUnion<[z.ZodObject<{
688
- mode: z.ZodLiteral<"agent">;
689
- actor: z.ZodObject<{
690
- agent: z.ZodString;
691
- mode: z.ZodEnum<{
692
- denyAll: "denyAll";
693
- readOnly: "readOnly";
694
- edit: "edit";
695
- }>;
696
- label: z.ZodOptional<z.ZodString>;
697
- }, z.core.$strict>;
698
- prompt: z.ZodString;
699
- output: z.ZodOptional<z.ZodObject<{
700
- schema: z.ZodString;
701
- }, z.core.$strict>>;
702
- }, z.core.$strict>, z.ZodObject<{
703
- mode: z.ZodLiteral<"program">;
704
- operation: z.ZodLiteral<"mergeArrays">;
705
- }, z.core.$strict>], "mode">;
706
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
707
- allowPartial: z.ZodDefault<z.ZodBoolean>;
708
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
709
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
710
- }, z.core.$strict>>;
711
- }, z.core.$strict>;
712
- type LoopBodyStage = z.infer<typeof TaskStageSchema> | z.infer<typeof FanoutStageSchema> | z.infer<typeof RouteStageSchema>;
713
- declare const LoopBodyStageSchema: z.ZodType<LoopBodyStage>;
714
- declare const LoopStageSchema: z.ZodObject<{
715
- id: z.ZodString;
716
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
- name: z.ZodString;
719
- source: z.ZodString;
720
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
- fn: z.ZodEnum<{
722
- default: "default";
723
- compact: "compact";
724
- tail: "tail";
725
- json: "json";
726
- quoteBlock: "quoteBlock";
727
- pathList: "pathList";
728
- filterSeverity: "filterSeverity";
729
- severitySummary: "severitySummary";
730
- join: "join";
731
- }>;
732
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
733
- }, z.core.$strict>>>;
734
- }, z.core.$strict>>>;
735
- limits: z.ZodOptional<z.ZodObject<{
736
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
737
- source: z.ZodString;
738
- default: z.ZodOptional<z.ZodNumber>;
739
- }, z.core.$strict>]>>;
740
- }, z.core.$strict>>;
741
- kind: z.ZodLiteral<"loop">;
742
- maxRounds: z.ZodNumber;
743
- body: z.ZodObject<{
744
- root: z.ZodString;
745
- output: z.ZodString;
746
- stages: z.ZodArray<z.ZodType<LoopBodyStage, unknown, z.core.$ZodTypeInternals<LoopBodyStage, unknown>>>;
747
- }, z.core.$strict>;
748
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
749
- onExhausted: z.ZodLiteral<"blocked">;
750
- }, z.core.$strict>;
751
- declare const StageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
752
- id: z.ZodString;
753
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
754
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
755
- name: z.ZodString;
756
- source: z.ZodString;
757
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
- fn: z.ZodEnum<{
759
- default: "default";
760
- compact: "compact";
761
- tail: "tail";
762
- json: "json";
763
- quoteBlock: "quoteBlock";
764
- pathList: "pathList";
765
- filterSeverity: "filterSeverity";
766
- severitySummary: "severitySummary";
767
- join: "join";
768
- }>;
769
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
770
- }, z.core.$strict>>>;
771
- }, z.core.$strict>>>;
772
- limits: z.ZodOptional<z.ZodObject<{
773
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
774
- source: z.ZodString;
775
- default: z.ZodOptional<z.ZodNumber>;
776
- }, z.core.$strict>]>>;
777
- }, z.core.$strict>>;
778
- kind: z.ZodLiteral<"task">;
779
- mode: z.ZodLiteral<"agent">;
780
- actor: z.ZodObject<{
781
- agent: z.ZodString;
782
- mode: z.ZodEnum<{
783
- denyAll: "denyAll";
784
- readOnly: "readOnly";
785
- edit: "edit";
786
- }>;
787
- label: z.ZodOptional<z.ZodString>;
788
- }, z.core.$strict>;
789
- prompt: z.ZodString;
790
- output: z.ZodOptional<z.ZodObject<{
791
- schema: z.ZodString;
792
- }, z.core.$strict>>;
793
- }, z.core.$strict>, z.ZodObject<{
794
- id: z.ZodString;
795
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
796
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
797
- name: z.ZodString;
798
- source: z.ZodString;
799
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
800
- fn: z.ZodEnum<{
801
- default: "default";
802
- compact: "compact";
803
- tail: "tail";
804
- json: "json";
805
- quoteBlock: "quoteBlock";
806
- pathList: "pathList";
807
- filterSeverity: "filterSeverity";
808
- severitySummary: "severitySummary";
809
- join: "join";
810
- }>;
811
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
- }, z.core.$strict>>>;
813
- }, z.core.$strict>>>;
814
- limits: z.ZodOptional<z.ZodObject<{
815
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
816
- source: z.ZodString;
817
- default: z.ZodOptional<z.ZodNumber>;
818
- }, z.core.$strict>]>>;
819
- }, z.core.$strict>>;
820
- kind: z.ZodLiteral<"task">;
821
- mode: z.ZodLiteral<"program">;
822
- operation: z.ZodLiteral<"command">;
823
- command: z.ZodString;
824
- args: z.ZodDefault<z.ZodArray<z.ZodString>>;
825
- cwd: z.ZodOptional<z.ZodString>;
826
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
827
- allowMutation: z.ZodDefault<z.ZodBoolean>;
828
- }, z.core.$strict>], "mode">, z.ZodObject<{
829
- id: z.ZodString;
830
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
831
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
832
- name: z.ZodString;
833
- source: z.ZodString;
834
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
- fn: z.ZodEnum<{
836
- default: "default";
837
- compact: "compact";
838
- tail: "tail";
839
- json: "json";
840
- quoteBlock: "quoteBlock";
841
- pathList: "pathList";
842
- filterSeverity: "filterSeverity";
843
- severitySummary: "severitySummary";
844
- join: "join";
845
- }>;
846
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
847
- }, z.core.$strict>>>;
848
- }, z.core.$strict>>>;
849
- kind: z.ZodLiteral<"fanout">;
850
- items: z.ZodObject<{
851
- source: z.ZodString;
852
- }, z.core.$strict>;
853
- limits: z.ZodOptional<z.ZodObject<{
854
- maxConcurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
855
- source: z.ZodString;
856
- default: z.ZodOptional<z.ZodNumber>;
857
- }, z.core.$strict>]>>;
858
- maxFanoutItems: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
859
- source: z.ZodString;
860
- default: z.ZodOptional<z.ZodNumber>;
861
- }, z.core.$strict>]>>;
862
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
863
- source: z.ZodString;
864
- default: z.ZodOptional<z.ZodNumber>;
865
- }, z.core.$strict>]>>;
866
- }, z.core.$strict>>;
867
- prompt: z.ZodOptional<z.ZodString>;
868
- lanes: z.ZodArray<z.ZodObject<{
869
- id: z.ZodString;
870
- actor: z.ZodObject<{
871
- agent: z.ZodString;
872
- mode: z.ZodEnum<{
873
- denyAll: "denyAll";
874
- readOnly: "readOnly";
875
- edit: "edit";
876
- }>;
877
- label: z.ZodOptional<z.ZodString>;
878
- }, z.core.$strict>;
879
- prompt: z.ZodOptional<z.ZodString>;
880
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
881
- output: z.ZodOptional<z.ZodObject<{
882
- schema: z.ZodString;
883
- }, z.core.$strict>>;
884
- }, z.core.$strict>>;
885
- fanin: z.ZodDiscriminatedUnion<[z.ZodObject<{
886
- mode: z.ZodLiteral<"agent">;
887
- actor: z.ZodObject<{
888
- agent: z.ZodString;
889
- mode: z.ZodEnum<{
890
- denyAll: "denyAll";
891
- readOnly: "readOnly";
892
- edit: "edit";
893
- }>;
894
- label: z.ZodOptional<z.ZodString>;
895
- }, z.core.$strict>;
896
- prompt: z.ZodString;
897
- output: z.ZodOptional<z.ZodObject<{
898
- schema: z.ZodString;
899
- }, z.core.$strict>>;
900
- }, z.core.$strict>, z.ZodObject<{
901
- mode: z.ZodLiteral<"program">;
902
- operation: z.ZodLiteral<"mergeArrays">;
903
- }, z.core.$strict>], "mode">;
904
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
905
- allowPartial: z.ZodDefault<z.ZodBoolean>;
906
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
907
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
908
- }, z.core.$strict>>;
909
- }, z.core.$strict>, z.ZodObject<{
910
- id: z.ZodString;
911
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
912
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
913
- name: z.ZodString;
914
- source: z.ZodString;
915
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
- fn: z.ZodEnum<{
917
- default: "default";
918
- compact: "compact";
919
- tail: "tail";
920
- json: "json";
921
- quoteBlock: "quoteBlock";
922
- pathList: "pathList";
923
- filterSeverity: "filterSeverity";
924
- severitySummary: "severitySummary";
925
- join: "join";
926
- }>;
927
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
928
- }, z.core.$strict>>>;
929
- }, z.core.$strict>>>;
930
- limits: z.ZodOptional<z.ZodObject<{
931
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
932
- source: z.ZodString;
933
- default: z.ZodOptional<z.ZodNumber>;
934
- }, z.core.$strict>]>>;
935
- }, z.core.$strict>>;
936
- kind: z.ZodLiteral<"loop">;
937
- maxRounds: z.ZodNumber;
938
- body: z.ZodObject<{
939
- root: z.ZodString;
940
- output: z.ZodString;
941
- stages: z.ZodArray<z.ZodType<LoopBodyStage, unknown, z.core.$ZodTypeInternals<LoopBodyStage, unknown>>>;
942
- }, z.core.$strict>;
943
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
944
- onExhausted: z.ZodLiteral<"blocked">;
945
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[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
- default: "default";
954
- compact: "compact";
955
- tail: "tail";
956
- json: "json";
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.$strict>>>;
965
- }, z.core.$strict>>>;
966
- limits: z.ZodOptional<z.ZodObject<{
967
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
968
- source: z.ZodString;
969
- default: z.ZodOptional<z.ZodNumber>;
970
- }, z.core.$strict>]>>;
971
- }, z.core.$strict>>;
972
- kind: z.ZodLiteral<"route">;
973
- mode: z.ZodLiteral<"program">;
974
- rules: z.ZodArray<z.ZodObject<{
975
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
976
- to: z.ZodString;
977
- }, z.core.$strict>>;
978
- routes: z.ZodArray<z.ZodString>;
979
- }, z.core.$strict>, z.ZodObject<{
980
- id: z.ZodString;
981
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
982
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
983
- name: z.ZodString;
984
- source: z.ZodString;
985
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
- fn: z.ZodEnum<{
987
- default: "default";
988
- compact: "compact";
989
- tail: "tail";
990
- json: "json";
991
- quoteBlock: "quoteBlock";
992
- pathList: "pathList";
993
- filterSeverity: "filterSeverity";
994
- severitySummary: "severitySummary";
995
- join: "join";
996
- }>;
997
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
998
- }, z.core.$strict>>>;
999
- }, z.core.$strict>>>;
1000
- limits: z.ZodOptional<z.ZodObject<{
1001
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1002
- source: z.ZodString;
1003
- default: z.ZodOptional<z.ZodNumber>;
1004
- }, z.core.$strict>]>>;
1005
- }, z.core.$strict>>;
1006
- kind: z.ZodLiteral<"route">;
1007
- mode: z.ZodLiteral<"agent">;
1008
- rules: z.ZodArray<z.ZodObject<{
1009
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1010
- to: z.ZodString;
1011
- }, z.core.$strict>>;
1012
- routes: z.ZodArray<z.ZodString>;
1013
- actor: z.ZodObject<{
1014
- agent: z.ZodString;
1015
- mode: z.ZodEnum<{
1016
- denyAll: "denyAll";
1017
- readOnly: "readOnly";
1018
- edit: "edit";
1019
- }>;
1020
- label: z.ZodOptional<z.ZodString>;
1021
- }, z.core.$strict>;
1022
- prompt: z.ZodString;
1023
- }, z.core.$strict>], "mode">, z.ZodUnion<readonly [z.ZodObject<{
1024
- id: z.ZodString;
1025
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1026
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1027
- name: z.ZodString;
1028
- source: z.ZodString;
1029
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1030
- fn: z.ZodEnum<{
1031
- default: "default";
1032
- compact: "compact";
1033
- tail: "tail";
1034
- json: "json";
1035
- quoteBlock: "quoteBlock";
1036
- pathList: "pathList";
1037
- filterSeverity: "filterSeverity";
1038
- severitySummary: "severitySummary";
1039
- join: "join";
1040
- }>;
1041
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1042
- }, z.core.$strict>>>;
1043
- }, z.core.$strict>>>;
1044
- limits: z.ZodOptional<z.ZodObject<{
1045
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1046
- source: z.ZodString;
1047
- default: z.ZodOptional<z.ZodNumber>;
1048
- }, z.core.$strict>]>>;
1049
- }, z.core.$strict>>;
1050
- kind: z.ZodLiteral<"gate">;
1051
- mode: z.ZodLiteral<"agent">;
1052
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1053
- actor: z.ZodObject<{
1054
- agent: z.ZodString;
1055
- mode: z.ZodEnum<{
1056
- denyAll: "denyAll";
1057
- readOnly: "readOnly";
1058
- edit: "edit";
1059
- }>;
1060
- label: z.ZodOptional<z.ZodString>;
1061
- }, z.core.$strict>;
1062
- prompt: z.ZodString;
1063
- output: z.ZodOptional<z.ZodObject<{
1064
- schema: z.ZodString;
1065
- }, z.core.$strict>>;
1066
- }, z.core.$strict>, z.ZodObject<{
1067
- id: z.ZodString;
1068
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1069
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1070
- name: z.ZodString;
1071
- source: z.ZodString;
1072
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1073
- fn: z.ZodEnum<{
1074
- default: "default";
1075
- compact: "compact";
1076
- tail: "tail";
1077
- json: "json";
1078
- quoteBlock: "quoteBlock";
1079
- pathList: "pathList";
1080
- filterSeverity: "filterSeverity";
1081
- severitySummary: "severitySummary";
1082
- join: "join";
1083
- }>;
1084
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1085
- }, z.core.$strict>>>;
1086
- }, z.core.$strict>>>;
1087
- limits: z.ZodOptional<z.ZodObject<{
1088
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1089
- source: z.ZodString;
1090
- default: z.ZodOptional<z.ZodNumber>;
1091
- }, z.core.$strict>]>>;
1092
- }, z.core.$strict>>;
1093
- kind: z.ZodLiteral<"gate">;
1094
- mode: z.ZodDefault<z.ZodLiteral<"program">>;
1095
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1096
- }, z.core.$strict>]>]>;
1097
- declare const WorkflowSpecSchema: z.ZodObject<{
1098
- schemaVersion: z.ZodLiteral<"acpus.workflow/v1">;
1099
- name: z.ZodString;
1100
- description: z.ZodDefault<z.ZodString>;
1101
- root: z.ZodString;
1102
- input: z.ZodOptional<z.ZodObject<{
1103
- schema: z.ZodString;
1104
- default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1105
- description: z.ZodOptional<z.ZodString>;
1106
- }, z.core.$strict>>;
1107
- limits: z.ZodDefault<z.ZodObject<{
1108
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1109
- source: z.ZodString;
1110
- default: z.ZodOptional<z.ZodNumber>;
1111
- }, z.core.$strict>]>>;
1112
- }, z.core.$strict>>;
1113
- stages: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1114
- id: z.ZodString;
1115
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1116
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1117
- name: z.ZodString;
1118
- source: z.ZodString;
1119
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1120
- fn: z.ZodEnum<{
1121
- default: "default";
1122
- compact: "compact";
1123
- tail: "tail";
1124
- json: "json";
1125
- quoteBlock: "quoteBlock";
1126
- pathList: "pathList";
1127
- filterSeverity: "filterSeverity";
1128
- severitySummary: "severitySummary";
1129
- join: "join";
1130
- }>;
1131
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1132
- }, z.core.$strict>>>;
1133
- }, z.core.$strict>>>;
1134
- limits: z.ZodOptional<z.ZodObject<{
1135
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1136
- source: z.ZodString;
1137
- default: z.ZodOptional<z.ZodNumber>;
1138
- }, z.core.$strict>]>>;
1139
- }, z.core.$strict>>;
1140
- kind: z.ZodLiteral<"task">;
1141
- mode: z.ZodLiteral<"agent">;
1142
- actor: z.ZodObject<{
1143
- agent: z.ZodString;
1144
- mode: z.ZodEnum<{
1145
- denyAll: "denyAll";
1146
- readOnly: "readOnly";
1147
- edit: "edit";
1148
- }>;
1149
- label: z.ZodOptional<z.ZodString>;
1150
- }, z.core.$strict>;
1151
- prompt: z.ZodString;
1152
- output: z.ZodOptional<z.ZodObject<{
1153
- schema: z.ZodString;
1154
- }, z.core.$strict>>;
1155
- }, z.core.$strict>, z.ZodObject<{
1156
- id: z.ZodString;
1157
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1158
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1159
- name: z.ZodString;
1160
- source: z.ZodString;
1161
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1162
- fn: z.ZodEnum<{
1163
- default: "default";
1164
- compact: "compact";
1165
- tail: "tail";
1166
- json: "json";
1167
- quoteBlock: "quoteBlock";
1168
- pathList: "pathList";
1169
- filterSeverity: "filterSeverity";
1170
- severitySummary: "severitySummary";
1171
- join: "join";
1172
- }>;
1173
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1174
- }, z.core.$strict>>>;
1175
- }, z.core.$strict>>>;
1176
- limits: z.ZodOptional<z.ZodObject<{
1177
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1178
- source: z.ZodString;
1179
- default: z.ZodOptional<z.ZodNumber>;
1180
- }, z.core.$strict>]>>;
1181
- }, z.core.$strict>>;
1182
- kind: z.ZodLiteral<"task">;
1183
- mode: z.ZodLiteral<"program">;
1184
- operation: z.ZodLiteral<"command">;
1185
- command: z.ZodString;
1186
- args: z.ZodDefault<z.ZodArray<z.ZodString>>;
1187
- cwd: z.ZodOptional<z.ZodString>;
1188
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1189
- allowMutation: z.ZodDefault<z.ZodBoolean>;
1190
- }, z.core.$strict>], "mode">, z.ZodObject<{
1191
- id: z.ZodString;
1192
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1193
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1194
- name: z.ZodString;
1195
- source: z.ZodString;
1196
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
- fn: z.ZodEnum<{
1198
- default: "default";
1199
- compact: "compact";
1200
- tail: "tail";
1201
- json: "json";
1202
- quoteBlock: "quoteBlock";
1203
- pathList: "pathList";
1204
- filterSeverity: "filterSeverity";
1205
- severitySummary: "severitySummary";
1206
- join: "join";
1207
- }>;
1208
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1209
- }, z.core.$strict>>>;
1210
- }, z.core.$strict>>>;
1211
- kind: z.ZodLiteral<"fanout">;
1212
- items: z.ZodObject<{
1213
- source: z.ZodString;
1214
- }, z.core.$strict>;
1215
- limits: z.ZodOptional<z.ZodObject<{
1216
- maxConcurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1217
- source: z.ZodString;
1218
- default: z.ZodOptional<z.ZodNumber>;
1219
- }, z.core.$strict>]>>;
1220
- maxFanoutItems: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1221
- source: z.ZodString;
1222
- default: z.ZodOptional<z.ZodNumber>;
1223
- }, z.core.$strict>]>>;
1224
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1225
- source: z.ZodString;
1226
- default: z.ZodOptional<z.ZodNumber>;
1227
- }, z.core.$strict>]>>;
1228
- }, z.core.$strict>>;
1229
- prompt: z.ZodOptional<z.ZodString>;
1230
- lanes: z.ZodArray<z.ZodObject<{
1231
- id: z.ZodString;
1232
- actor: z.ZodObject<{
1233
- agent: z.ZodString;
1234
- mode: z.ZodEnum<{
1235
- denyAll: "denyAll";
1236
- readOnly: "readOnly";
1237
- edit: "edit";
1238
- }>;
1239
- label: z.ZodOptional<z.ZodString>;
1240
- }, z.core.$strict>;
1241
- prompt: z.ZodOptional<z.ZodString>;
1242
- when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1243
- output: z.ZodOptional<z.ZodObject<{
1244
- schema: z.ZodString;
1245
- }, z.core.$strict>>;
1246
- }, z.core.$strict>>;
1247
- fanin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1248
- mode: z.ZodLiteral<"agent">;
1249
- actor: z.ZodObject<{
1250
- agent: z.ZodString;
1251
- mode: z.ZodEnum<{
1252
- denyAll: "denyAll";
1253
- readOnly: "readOnly";
1254
- edit: "edit";
1255
- }>;
1256
- label: z.ZodOptional<z.ZodString>;
1257
- }, z.core.$strict>;
1258
- prompt: z.ZodString;
1259
- output: z.ZodOptional<z.ZodObject<{
1260
- schema: z.ZodString;
1261
- }, z.core.$strict>>;
1262
- }, z.core.$strict>, z.ZodObject<{
1263
- mode: z.ZodLiteral<"program">;
1264
- operation: z.ZodLiteral<"mergeArrays">;
1265
- }, z.core.$strict>], "mode">;
1266
- fanoutPolicy: z.ZodOptional<z.ZodObject<{
1267
- allowPartial: z.ZodDefault<z.ZodBoolean>;
1268
- minCompletedRatio: z.ZodOptional<z.ZodNumber>;
1269
- maxBlockedItems: z.ZodOptional<z.ZodNumber>;
1270
- }, z.core.$strict>>;
1271
- }, z.core.$strict>, z.ZodObject<{
1272
- id: z.ZodString;
1273
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1274
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1275
- name: z.ZodString;
1276
- source: z.ZodString;
1277
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1278
- fn: z.ZodEnum<{
1279
- default: "default";
1280
- compact: "compact";
1281
- tail: "tail";
1282
- json: "json";
1283
- quoteBlock: "quoteBlock";
1284
- pathList: "pathList";
1285
- filterSeverity: "filterSeverity";
1286
- severitySummary: "severitySummary";
1287
- join: "join";
1288
- }>;
1289
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1290
- }, z.core.$strict>>>;
1291
- }, z.core.$strict>>>;
1292
- limits: z.ZodOptional<z.ZodObject<{
1293
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1294
- source: z.ZodString;
1295
- default: z.ZodOptional<z.ZodNumber>;
1296
- }, z.core.$strict>]>>;
1297
- }, z.core.$strict>>;
1298
- kind: z.ZodLiteral<"loop">;
1299
- maxRounds: z.ZodNumber;
1300
- body: z.ZodObject<{
1301
- root: z.ZodString;
1302
- output: z.ZodString;
1303
- stages: z.ZodArray<z.ZodType<LoopBodyStage, unknown, z.core.$ZodTypeInternals<LoopBodyStage, unknown>>>;
1304
- }, z.core.$strict>;
1305
- continueWhen: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1306
- onExhausted: z.ZodLiteral<"blocked">;
1307
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1308
- id: z.ZodString;
1309
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1310
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
- name: z.ZodString;
1312
- source: z.ZodString;
1313
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1314
- fn: z.ZodEnum<{
1315
- default: "default";
1316
- compact: "compact";
1317
- tail: "tail";
1318
- json: "json";
1319
- quoteBlock: "quoteBlock";
1320
- pathList: "pathList";
1321
- filterSeverity: "filterSeverity";
1322
- severitySummary: "severitySummary";
1323
- join: "join";
1324
- }>;
1325
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1326
- }, z.core.$strict>>>;
1327
- }, z.core.$strict>>>;
1328
- limits: z.ZodOptional<z.ZodObject<{
1329
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1330
- source: z.ZodString;
1331
- default: z.ZodOptional<z.ZodNumber>;
1332
- }, z.core.$strict>]>>;
1333
- }, z.core.$strict>>;
1334
- kind: z.ZodLiteral<"route">;
1335
- mode: z.ZodLiteral<"program">;
1336
- rules: z.ZodArray<z.ZodObject<{
1337
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1338
- to: z.ZodString;
1339
- }, z.core.$strict>>;
1340
- routes: z.ZodArray<z.ZodString>;
1341
- }, z.core.$strict>, z.ZodObject<{
1342
- id: z.ZodString;
1343
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1344
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1345
- name: z.ZodString;
1346
- source: z.ZodString;
1347
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1348
- fn: z.ZodEnum<{
1349
- default: "default";
1350
- compact: "compact";
1351
- tail: "tail";
1352
- json: "json";
1353
- quoteBlock: "quoteBlock";
1354
- pathList: "pathList";
1355
- filterSeverity: "filterSeverity";
1356
- severitySummary: "severitySummary";
1357
- join: "join";
1358
- }>;
1359
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1360
- }, z.core.$strict>>>;
1361
- }, z.core.$strict>>>;
1362
- limits: z.ZodOptional<z.ZodObject<{
1363
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1364
- source: z.ZodString;
1365
- default: z.ZodOptional<z.ZodNumber>;
1366
- }, z.core.$strict>]>>;
1367
- }, z.core.$strict>>;
1368
- kind: z.ZodLiteral<"route">;
1369
- mode: z.ZodLiteral<"agent">;
1370
- rules: z.ZodArray<z.ZodObject<{
1371
- when: z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>;
1372
- to: z.ZodString;
1373
- }, z.core.$strict>>;
1374
- routes: z.ZodArray<z.ZodString>;
1375
- actor: z.ZodObject<{
1376
- agent: z.ZodString;
1377
- mode: z.ZodEnum<{
1378
- denyAll: "denyAll";
1379
- readOnly: "readOnly";
1380
- edit: "edit";
1381
- }>;
1382
- label: z.ZodOptional<z.ZodString>;
1383
- }, z.core.$strict>;
1384
- prompt: z.ZodString;
1385
- }, z.core.$strict>], "mode">, z.ZodUnion<readonly [z.ZodObject<{
1386
- id: z.ZodString;
1387
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1388
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1389
- name: z.ZodString;
1390
- source: z.ZodString;
1391
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1392
- fn: z.ZodEnum<{
1393
- default: "default";
1394
- compact: "compact";
1395
- tail: "tail";
1396
- json: "json";
1397
- quoteBlock: "quoteBlock";
1398
- pathList: "pathList";
1399
- filterSeverity: "filterSeverity";
1400
- severitySummary: "severitySummary";
1401
- join: "join";
1402
- }>;
1403
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1404
- }, z.core.$strict>>>;
1405
- }, z.core.$strict>>>;
1406
- limits: z.ZodOptional<z.ZodObject<{
1407
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1408
- source: z.ZodString;
1409
- default: z.ZodOptional<z.ZodNumber>;
1410
- }, z.core.$strict>]>>;
1411
- }, z.core.$strict>>;
1412
- kind: z.ZodLiteral<"gate">;
1413
- mode: z.ZodLiteral<"agent">;
1414
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1415
- actor: z.ZodObject<{
1416
- agent: z.ZodString;
1417
- mode: z.ZodEnum<{
1418
- denyAll: "denyAll";
1419
- readOnly: "readOnly";
1420
- edit: "edit";
1421
- }>;
1422
- label: z.ZodOptional<z.ZodString>;
1423
- }, z.core.$strict>;
1424
- prompt: z.ZodString;
1425
- output: z.ZodOptional<z.ZodObject<{
1426
- schema: z.ZodString;
1427
- }, z.core.$strict>>;
1428
- }, z.core.$strict>, z.ZodObject<{
1429
- id: z.ZodString;
1430
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
1432
- name: z.ZodString;
1433
- source: z.ZodString;
1434
- transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
1435
- fn: z.ZodEnum<{
1436
- default: "default";
1437
- compact: "compact";
1438
- tail: "tail";
1439
- json: "json";
1440
- quoteBlock: "quoteBlock";
1441
- pathList: "pathList";
1442
- filterSeverity: "filterSeverity";
1443
- severitySummary: "severitySummary";
1444
- join: "join";
1445
- }>;
1446
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1447
- }, z.core.$strict>>>;
1448
- }, z.core.$strict>>>;
1449
- limits: z.ZodOptional<z.ZodObject<{
1450
- stageTimeoutMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1451
- source: z.ZodString;
1452
- default: z.ZodOptional<z.ZodNumber>;
1453
- }, z.core.$strict>]>>;
1454
- }, z.core.$strict>>;
1455
- kind: z.ZodLiteral<"gate">;
1456
- mode: z.ZodDefault<z.ZodLiteral<"program">>;
1457
- condition: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
1458
- }, z.core.$strict>]>]>>;
1459
- }, z.core.$strict>;
1460
- type WorkflowSpec = z.infer<typeof WorkflowSpecSchema>;
1461
- type Stage = z.infer<typeof StageSchema>;
1462
- type Actor = z.infer<typeof ActorSchema>;
1463
- type Variable = z.infer<typeof VariableSchema>;
1464
- type ConditionNode = z.infer<typeof ConditionSchema>;
1465
- //#endregion
1466
- //#region src/errors.d.ts
1467
- type IssueSeverity = "warning" | "error" | "fatal";
1468
- type OrchestratorIssue = {
1469
- code: string;
1470
- severity: IssueSeverity;
1471
- path: string;
1472
- message: string;
1473
- suggestions?: string[];
1474
- docs?: string;
1475
- };
1476
- type IssueResult = {
1477
- ok: boolean;
1478
- phase: string;
1479
- errors: OrchestratorIssue[];
1480
- warnings: OrchestratorIssue[];
1481
- };
1482
- declare function issue(input: OrchestratorIssue): OrchestratorIssue;
1483
- declare function resultFromIssues(phase: string, issues: OrchestratorIssue[]): IssueResult;
1484
- declare class OrchestratorError extends Error {
1485
- readonly result: IssueResult;
1486
- constructor(result: IssueResult);
1487
- }
1488
- //#endregion
1489
- //#region src/schema/load.d.ts
1490
- declare function loadWorkflowSpec(filePath: string): Promise<{
1491
- spec?: WorkflowSpec;
1492
- issues: OrchestratorIssue[];
1493
- }>;
1494
- declare function stringifyWorkflowSpec(spec: WorkflowSpec): string;
1495
- declare function isWorkflowYamlPath(filePath: string): boolean;
1496
- //#endregion
1497
- //#region src/compiler/lint.d.ts
1498
- declare function lintWorkflowSpec(spec: WorkflowSpec): OrchestratorIssue[];
1499
- //#endregion
1500
- //#region src/contracts/schema-dsl.d.ts
1501
- type SchemaAst = {
1502
- kind: "primitive";
1503
- name: "string" | "number" | "boolean" | "null" | "unknown";
1504
- } | {
1505
- kind: "literal";
1506
- value: string | number | boolean;
1507
- } | {
1508
- kind: "array";
1509
- item: SchemaAst;
1510
- } | {
1511
- kind: "object";
1512
- fields: Array<{
1513
- name: string;
1514
- optional: boolean;
1515
- schema: SchemaAst;
1516
- }>;
1517
- } | {
1518
- kind: "union";
1519
- options: SchemaAst[];
1520
- };
1521
- type CompiledSchema = {
1522
- source: string;
1523
- ast: SchemaAst;
1524
- };
1525
- declare const DEFAULT_AGENT_OUTPUT_SCHEMA: CompiledSchema;
1526
- declare function compileSchemaDsl(source: string): CompiledSchema;
1527
- declare function zodForCompiledSchema(schema: CompiledSchema, implicitFields?: Record<string, z.ZodType>): z.ZodType<Record<string, unknown>>;
1528
- declare function defaultAgentOutputZod(implicitFields?: Record<string, z.ZodType>): z.ZodType<Record<string, unknown>>;
1529
- declare function outputSchemaFooter(schema: CompiledSchema | undefined, implicit?: string[]): string;
1530
- declare function formatSchema(ast: SchemaAst, indent?: number): string;
1531
- //#endregion
1532
- //#region src/compiler/execution-plan.d.ts
1533
- declare const EXECUTION_PLAN_VERSION = "acpus.execution-plan/v1";
1534
- type ExecutionPlan = {
1535
- version: typeof EXECUTION_PLAN_VERSION;
1536
- workflowName: string;
1537
- root: string;
1538
- stages: ExecutionPlanStage[];
1539
- limits: ExecutionPlanLimits;
1540
- prompts: Record<string, PromptPlan>;
1541
- fanout: FanoutPlan[];
1542
- };
1543
- type ExecutionPlanLimits = {
1544
- stageTimeoutMinutes: number;
1545
- };
1546
- type ExecutionPlanStageLimits = {
1547
- maxConcurrency?: number;
1548
- maxFanoutItems?: number;
1549
- stageTimeoutMinutes?: number;
1550
- };
1551
- type PromptPlan = {
1552
- id: string;
1553
- stageId: string;
1554
- template: string;
1555
- variables: Variable[];
1556
- footer: string;
1557
- actor?: Actor;
1558
- outputSchema?: CompiledSchema;
1559
- implicitOutputFields?: string[];
1560
- };
1561
- type SessionKeyStrategy = {
1562
- kind: "linear";
1563
- key: string;
1564
- } | {
1565
- kind: "fanoutItem";
1566
- template: string;
1567
- };
1568
- type AgentPlan = {
1569
- actor: Actor;
1570
- promptId: string;
1571
- outputSchema?: CompiledSchema;
1572
- implicitOutputFields?: string[];
1573
- };
1574
- type ProgramCommandPlan = {
1575
- operation: "command";
1576
- command: string;
1577
- args: string[];
1578
- cwd?: string;
1579
- timeoutSeconds: number;
1580
- allowMutation: boolean;
1581
- };
1582
- type FanoutLanePlan = {
1583
- id: string;
1584
- actor: Actor;
1585
- promptId: string;
1586
- outputSchema?: CompiledSchema;
1587
- implicitOutputFields?: string[];
1588
- sessionKeyTemplate: string;
1589
- when?: ConditionNode;
1590
- };
1591
- type FanoutFaninPlan = ({
1592
- mode: "agent";
1593
- } & AgentPlan & {
1594
- sessionKey: string;
1595
- }) | {
1596
- mode: "program";
1597
- operation: "mergeArrays";
1598
- };
1599
- type ExecutionPlanStage = {
1600
- id: string;
1601
- kind: Stage["kind"];
1602
- dependencies: string[];
1603
- session: SessionKeyStrategy;
1604
- limits: ExecutionPlanStageLimits;
1605
- agent?: AgentPlan;
1606
- program?: ProgramCommandPlan;
1607
- route?: {
1608
- mode: "agent" | "program";
1609
- rules: Array<{
1610
- when: ConditionNode;
1611
- to: string;
1612
- }>;
1613
- routes: string[];
1614
- };
1615
- gate?: {
1616
- mode: "agent" | "program";
1617
- condition?: ConditionNode;
1618
- };
1619
- fanout?: {
1620
- itemsSource: string;
1621
- allowPartial: boolean;
1622
- minCompletedRatio?: number;
1623
- maxBlockedItems?: number;
1624
- maxItems: number;
1625
- maxConcurrency: number;
1626
- lanes: FanoutLanePlan[];
1627
- fanin: FanoutFaninPlan;
1628
- };
1629
- loop?: {
1630
- maxRounds: number;
1631
- body: {
1632
- root: string;
1633
- output: string;
1634
- stages: ExecutionPlanStage[];
1635
- };
1636
- continueWhen: ConditionNode;
1637
- onExhausted: "blocked";
1638
- };
1639
- };
1640
- type FanoutPlan = {
1641
- stageId: string;
1642
- itemsSource: string;
1643
- maxItems: number;
1644
- maxConcurrency: number;
1645
- allowPartial: boolean;
1646
- minCompletedRatio?: number;
1647
- maxBlockedItems?: number;
1648
- lanes: FanoutLanePlan[];
1649
- fanin: FanoutFaninPlan;
1650
- };
1651
- //#endregion
1652
- //#region src/compiler/compile-execution-plan.d.ts
1653
- type CompileExecutionPlanOptions = {
1654
- stageIds?: string[];
1655
- startStageId?: string;
1656
- input?: Record<string, unknown>;
1657
- };
1658
- declare function compileExecutionPlan(spec: WorkflowSpec, options?: CompileExecutionPlanOptions): ExecutionPlan;
1659
- declare function renderStagePrompt(_spec: WorkflowSpec, stage: Stage): string;
1660
- declare function renderPromptMap(spec: WorkflowSpec): Record<string, string>;
1661
- declare function topologicalOrder(spec: Pick<WorkflowSpec, "root" | "stages">): string[];
1662
- declare function stageActorLabel(stage: Stage): string | undefined;
1663
- //#endregion
1664
- //#region src/run-index/read-write.d.ts
1665
- type AttemptStatus = "pending" | "running" | "raw_received" | "parsing" | "completed" | "blocked" | "failed" | "cancelled" | "timed_out";
1666
- type StageStatus = "pending" | "ready" | "running" | "completed" | "blocked" | "failed" | "skipped";
1667
- type RunStatus = "pending" | "running" | "completed" | "blocked" | "failed" | "cancelled";
1668
- type AgentTaskRetryReason = "runtime" | "stale" | "continuation";
1669
- type AgentTaskRetryPromptPolicy = "original" | "continuation";
1670
- type WorkerStatus = "starting" | "running" | "stale" | "exited" | "failed";
1671
- type RunWorkerState = {
1672
- pid: number;
1673
- generation: number;
1674
- status: WorkerStatus;
1675
- startedAt: string;
1676
- heartbeatAt: string;
1677
- exitedAt?: string;
1678
- exitCode?: number | null;
1679
- };
1680
- type AttemptIndexEntry = {
1681
- id: string;
1682
- stageId: string;
1683
- itemId?: string;
1684
- laneId?: string;
1685
- kind: "attempt";
1686
- status: AttemptStatus;
1687
- path: string;
1688
- startedAt?: string;
1689
- endedAt?: string;
1690
- blockedReason?: string;
1691
- parseErrorCode?: string;
1692
- rawPreview?: string;
1693
- promptPreview?: string;
1694
- sessionKey?: string;
1695
- requestId?: string;
1696
- stopReason?: string;
1697
- runtimeErrorCode?: string;
1698
- isRetry?: boolean;
1699
- retryReason?: AgentTaskRetryReason;
1700
- retryOf?: string;
1701
- retryOrdinal?: number;
1702
- retryBudgetUsed?: number;
1703
- retryBudgetLimit?: number;
1704
- promptPolicy?: AgentTaskRetryPromptPolicy;
1705
- lastFailureCode?: string;
1706
- retryMessage?: string;
1707
- agent?: string;
1708
- actorMode?: string;
1709
- runtimeDisposeInvoked?: boolean;
1710
- };
1711
- type StageIndexEntry = {
1712
- stageId: string;
1713
- status: StageStatus;
1714
- attempts: string[];
1715
- outputPath?: string;
1716
- blockedReason?: string;
1717
- startedAt?: string;
1718
- completedAt?: string;
1719
- skippedReason?: string;
1720
- retryOf?: string;
1721
- retryOrdinal?: number;
1722
- retryReason?: AgentTaskRetryReason;
1723
- fanout?: {
1724
- totalItems: number;
1725
- completedItems: number;
1726
- blockedItems: number;
1727
- allowPartial: boolean;
1728
- failedItems?: number;
1729
- skippedItems?: number;
1730
- workUnits?: number;
1731
- items: Array<{
1732
- id: string;
1733
- index: number;
1734
- status: StageStatus;
1735
- outputPath?: string;
1736
- blockedReason?: string;
1737
- startedAt?: string;
1738
- completedAt?: string;
1739
- errorCode?: string;
1740
- errorMessage?: string;
1741
- retryOf?: string;
1742
- retryOrdinal?: number;
1743
- retryReason?: AgentTaskRetryReason;
1744
- skippedReason?: string;
1745
- lanes: Array<{
1746
- id: string;
1747
- actorLabel: string;
1748
- status: StageStatus;
1749
- outputPath?: string;
1750
- blockedReason?: string;
1751
- skippedReason?: string;
1752
- attemptId?: string;
1753
- startedAt?: string;
1754
- completedAt?: string;
1755
- errorCode?: string;
1756
- errorMessage?: string;
1757
- retryOf?: string;
1758
- retryOrdinal?: number;
1759
- retryReason?: AgentTaskRetryReason;
1760
- }>;
1761
- }>;
1762
- };
1763
- loop?: {
1764
- maxRounds: number;
1765
- currentRound?: number;
1766
- bodyOutputStageId: string;
1767
- rounds: Array<{
1768
- round: number;
1769
- status: StageStatus;
1770
- startedAt?: string;
1771
- completedAt?: string;
1772
- outputPath?: string;
1773
- bodyOutputStageId: string;
1774
- bodyOutput?: Record<string, unknown>;
1775
- outputs?: Record<string, unknown>;
1776
- stages: Record<string, {
1777
- stageId: string;
1778
- status: StageStatus;
1779
- attempts: string[];
1780
- outputPath?: string;
1781
- blockedReason?: string;
1782
- startedAt?: string;
1783
- completedAt?: string;
1784
- fanout?: StageIndexEntry["fanout"];
1785
- }>;
1786
- }>;
1787
- };
1788
- };
1789
- type RunIndex = {
1790
- schemaVersion: "acpus.run/v2";
1791
- logicalRunId: string;
1792
- workflowName: string;
1793
- status: RunStatus;
1794
- createdAt: string;
1795
- updatedAt: string;
1796
- source?: {
1797
- kind: "saved" | "spec";
1798
- path?: string;
1799
- sha256?: string;
1800
- };
1801
- stages: Record<string, StageIndexEntry>;
1802
- attempts: Record<string, AttemptIndexEntry>;
1803
- agentUsage: {
1804
- planned: number;
1805
- actual: number;
1806
- retryCalls: number;
1807
- retries: {
1808
- runtime: number;
1809
- stale: number;
1810
- continuation: number;
1811
- };
1812
- };
1813
- worker?: RunWorkerState;
1814
- gateVerdict?: "pass" | "pass_with_warnings" | "blocked" | "failed" | "unknown";
1815
- blockedReason?: string;
1816
- resumePolicy?: {
1817
- fanout?: Record<string, {
1818
- allowPartial?: boolean;
1819
- maxItems?: number;
1820
- skipItemIndexes?: number[];
1821
- }>;
1822
- };
1823
- };
1824
- //#endregion
1825
- //#region src/projections/run-view.d.ts
1826
- type RunViewStatus = "pending" | "running" | "completed" | "blocked" | "failed" | "cancelled";
1827
- type RunViewOutputParse = {
1828
- mode?: string;
1829
- candidateCount?: number;
1830
- };
1831
- type RunViewParseDiagnostics = {
1832
- errorCode?: string;
1833
- candidateCount?: number;
1834
- bestCandidateId?: string;
1835
- recoverability?: string;
1836
- schemaErrors: Array<{
1837
- path?: string;
1838
- message?: string;
1839
- }>;
1840
- };
1841
- type RunView = {
1842
- logicalRunId?: string;
1843
- workflowName: string;
1844
- status: RunViewStatus;
1845
- gateVerdict?: "pass" | "pass_with_warnings" | "blocked" | "failed" | "unknown";
1846
- blockedReason?: string;
1847
- summary: string;
1848
- finalWarnings: string[];
1849
- risks: string[];
1850
- warnings: OrchestratorIssue[];
1851
- errors: OrchestratorIssue[];
1852
- actors: Array<{
1853
- label: string;
1854
- agent: string;
1855
- mode: string;
1856
- }>;
1857
- stages: Array<{
1858
- id: string;
1859
- kind: string;
1860
- dependsOn: string[];
1861
- status?: string;
1862
- summary?: string;
1863
- blockedReason?: string;
1864
- outputParse?: RunViewOutputParse;
1865
- parseDiagnostics?: RunViewParseDiagnostics;
1866
- }>;
1867
- attempts: Array<{
1868
- id: string;
1869
- stageId: string;
1870
- itemId?: string;
1871
- kind: string;
1872
- status: string;
1873
- blockedReason?: string;
1874
- parseErrorCode?: string;
1875
- path: string;
1876
- isRetry?: boolean;
1877
- retryReason?: string;
1878
- retryOf?: string;
1879
- retryOrdinal?: number;
1880
- retryBudgetUsed?: number;
1881
- retryBudgetLimit?: number;
1882
- promptPolicy?: string;
1883
- lastFailureCode?: string;
1884
- retryMessage?: string;
1885
- }>;
1886
- fanout: Array<{
1887
- stageId: string;
1888
- maxItems: number;
1889
- laneUpperBound: number;
1890
- estimatedWorkUnits: number;
1891
- }>;
1892
- agentUsage: {
1893
- planned: number;
1894
- actual?: number;
1895
- retryCalls?: number;
1896
- retries?: {
1897
- runtime: number;
1898
- stale: number;
1899
- continuation: number;
1900
- };
1901
- };
1902
- commands: Record<string, string>;
1903
- };
1904
- declare function previewRunView(spec: WorkflowSpec, issues?: OrchestratorIssue[], commands?: Record<string, string>): RunView;
1905
- declare function runViewFromIndex(cwd: string, spec: WorkflowSpec, index: RunIndex, issues?: OrchestratorIssue[]): Promise<RunView>;
1906
- declare function estimateAgentCalls(spec: WorkflowSpec): number;
1907
- declare function estimateFanoutWork(spec: WorkflowSpec): RunView["fanout"];
1908
- //#endregion
1909
- //#region src/projections/run-diagnostics.d.ts
1910
- declare const RUN_DIAGNOSTICS_VIEW_VERSION = "acpus.diagnostics/v1";
1911
- declare const RunDiagnosticCodes: {
1912
- readonly SCHEDULER_RECOVERY_SUCCEEDED_WITH_BLOCKED_VERDICT: "SCHEDULER_RECOVERY_SUCCEEDED_WITH_BLOCKED_VERDICT";
1913
- };
1914
- type RunDiagnosticSource = "run_index" | "stage_output" | "attempt" | "event_tail";
1915
- type RunDiagnostic = {
1916
- id: string;
1917
- code?: string;
1918
- stageId?: string;
1919
- itemId?: string;
1920
- attemptId?: string;
1921
- status?: string;
1922
- summary: string;
1923
- path?: string;
1924
- source: RunDiagnosticSource;
1925
- };
1926
- type RunDiagnosticEvent = {
1927
- at?: string;
1928
- type?: string;
1929
- stageId?: string;
1930
- itemId?: string;
1931
- attemptId?: string;
1932
- errorCode?: string;
1933
- summary?: string;
1934
- };
1935
- type RunDiagnosticsView = {
1936
- version: typeof RUN_DIAGNOSTICS_VIEW_VERSION;
1937
- generatedAt: string;
1938
- run: {
1939
- logicalRunId: string;
1940
- workflowName: string;
1941
- status: RunIndex["status"];
1942
- blockedReason?: string;
1943
- gateVerdict?: RunIndex["gateVerdict"];
1944
- runDir: string;
1945
- };
1946
- diagnostics: RunDiagnostic[];
1947
- eventTail: RunDiagnosticEvent[];
1948
- };
1949
- type BuildRunDiagnosticsOptions = {
1950
- eventTailLimit?: number;
1951
- eventTailMaxBytes?: number;
1952
- };
1953
- declare function buildRunDiagnosticsView(cwd: string, index: RunIndex, options?: BuildRunDiagnosticsOptions): Promise<RunDiagnosticsView>;
1954
- declare function readNdjsonTail(filePath: string, maxLines: number, maxBytes?: number): Promise<string[]>;
1955
- //#endregion
1956
- //#region src/runtime/worker.d.ts
1957
- declare function workerSummary(worker: RunWorkerState | undefined, now?: number): {
1958
- pid: number;
1959
- generation: number;
1960
- status: WorkerStatus;
1961
- startedAt: string;
1962
- heartbeatAt: string;
1963
- exitedAt: string | undefined;
1964
- exitCode: number | null | undefined;
1965
- } | undefined;
1966
- //#endregion
1967
- //#region src/projections/run-monitor.d.ts
1968
- declare const RUN_MONITOR_VIEW_VERSION = "acpus.monitor/v1";
1969
- declare const TASK_DETAIL_VIEW_VERSION = "acpus.task-detail/v1";
1970
- type TaskStatus = StageStatus | AttemptStatus;
1971
- type TaskKind = "stage" | "fanoutLane" | "fanoutFanin" | "loopStage" | "loopFanoutLane" | "loopFanoutFanin";
1972
- type TaskExecution = "agent" | "deterministic";
1973
- type RunMonitorStage = {
1974
- id: string;
1975
- kind: Stage["kind"];
1976
- status: StageStatus;
1977
- dependsOn: string[];
1978
- startedAt?: string;
1979
- completedAt?: string;
1980
- blockedReason?: string;
1981
- skippedReason?: string;
1982
- outputPath?: string;
1983
- elapsedMs?: number;
1984
- durationMs?: number;
1985
- taskCounts: TaskCounts;
1986
- };
1987
- type TaskCounts = {
1988
- total: number;
1989
- pending: number;
1990
- running: number;
1991
- completed: number;
1992
- blocked: number;
1993
- failed: number;
1994
- skipped: number;
1995
- };
1996
- type RunMonitorTask = {
1997
- id: string;
1998
- kind: TaskKind;
1999
- execution: TaskExecution;
2000
- stageId: string;
2001
- label: string;
2002
- status: TaskStatus;
2003
- actorLabel?: string;
2004
- agent?: string;
2005
- actorMode?: string;
2006
- attemptId?: string;
2007
- attemptIds: string[];
2008
- round?: number;
2009
- bodyStageId?: string;
2010
- itemId?: string;
2011
- itemIndex?: number;
2012
- laneId?: string;
2013
- startedAt?: string;
2014
- completedAt?: string;
2015
- blockedReason?: string;
2016
- errorCode?: string;
2017
- outputPath?: string;
2018
- elapsedMs?: number;
2019
- durationMs?: number;
2020
- attemptCount?: number;
2021
- currentAttemptOrdinal?: number;
2022
- lastRetryReason?: AttemptIndexEntry["retryReason"];
2023
- retryBudgetUsed?: number;
2024
- retryBudgetLimit?: number;
2025
- lastFailureCode?: string;
2026
- };
2027
- type RunMonitorView = {
2028
- version: typeof RUN_MONITOR_VIEW_VERSION;
2029
- generatedAt: string;
2030
- run: {
2031
- logicalRunId: string;
2032
- workflowName: string;
2033
- status: RunIndex["status"];
2034
- blockedReason?: string;
2035
- gateVerdict?: RunIndex["gateVerdict"];
2036
- runDir: string;
2037
- createdAt: string;
2038
- updatedAt: string;
2039
- elapsedMs?: number;
2040
- durationMs?: number;
2041
- worker?: ReturnType<typeof workerSummary>;
2042
- };
2043
- stages: RunMonitorStage[];
2044
- tasks: RunMonitorTask[];
2045
- progress: {
2046
- knownTasks: number;
2047
- completedTasks: number;
2048
- };
2049
- finalOutput?: Record<string, unknown>;
2050
- };
2051
- type TaskDetailView = {
2052
- version: typeof TASK_DETAIL_VIEW_VERSION;
2053
- generatedAt: string;
2054
- run: RunMonitorView["run"];
2055
- task: RunMonitorTask;
2056
- prompt?: {
2057
- preview: string;
2058
- lines: number;
2059
- };
2060
- activity: {
2061
- attempts: Array<{
2062
- id: string;
2063
- kind: AttemptIndexEntry["kind"];
2064
- status: AttemptIndexEntry["status"];
2065
- startedAt?: string;
2066
- endedAt?: string;
2067
- path: string;
2068
- blockedReason?: string;
2069
- parseErrorCode?: string;
2070
- runtimeErrorCode?: string;
2071
- isRetry?: boolean;
2072
- retryReason?: AttemptIndexEntry["retryReason"];
2073
- retryOf?: string;
2074
- retryOrdinal?: number;
2075
- retryBudgetUsed?: number;
2076
- retryBudgetLimit?: number;
2077
- promptPolicy?: AttemptIndexEntry["promptPolicy"];
2078
- lastFailureCode?: string;
2079
- retryMessage?: string;
2080
- }>;
2081
- totalAttempts: number;
2082
- };
2083
- outcome?: {
2084
- path?: string;
2085
- status?: string;
2086
- summary?: string;
2087
- blockedReason?: string;
2088
- preview?: string;
2089
- };
2090
- };
2091
- declare function buildRunMonitorView(cwd: string, spec: WorkflowSpec, index: RunIndex): Promise<RunMonitorView>;
2092
- declare function buildTaskDetailView(cwd: string, spec: WorkflowSpec, index: RunIndex, taskId: string): Promise<TaskDetailView>;
2093
- //#endregion
2094
- //#region src/runtime/output-parser.d.ts
2095
- type OutputParseErrorCode = "OK" | "OUTPUT_PARSE_FAILED" | "OUTPUT_SCHEMA_FAILED";
2096
- type OutputCandidateMode = "lastBalancedJsonObject";
2097
- type OutputCandidateSyntax = "invalidJson" | "validJson";
2098
- type OutputCandidateDiagnostic = {
2099
- id: string;
2100
- mode: OutputCandidateMode;
2101
- syntax: OutputCandidateSyntax;
2102
- rawHash: string;
2103
- rawPreview: string;
2104
- normalizedPreview?: string;
2105
- parseError?: string;
2106
- schemaErrors: Array<{
2107
- path: string;
2108
- message: string;
2109
- }>;
2110
- valid: boolean;
2111
- value?: unknown;
2112
- };
2113
- type OutputParseDiagnostics = {
2114
- errorCode: OutputParseErrorCode;
2115
- summary: string;
2116
- candidateCount: number;
2117
- bestCandidateId?: string;
2118
- recoverability: "retryable" | "not_retryable";
2119
- candidates: OutputCandidateDiagnostic[];
2120
- };
2121
- type OutputParseSuccess = {
2122
- ok: true;
2123
- value: Record<string, unknown>;
2124
- outputParse: {
2125
- mode: OutputCandidateMode;
2126
- candidateCount: number;
2127
- };
2128
- diagnostics: OutputParseDiagnostics;
2129
- };
2130
- type OutputParseFailure = {
2131
- ok: false;
2132
- errorCode: Exclude<OutputParseErrorCode, "OK">;
2133
- summary: string;
2134
- diagnostics: OutputParseDiagnostics;
2135
- bestCandidate?: OutputCandidateDiagnostic;
2136
- };
2137
- type OutputParseResult = OutputParseSuccess | OutputParseFailure;
2138
- type ParseWorkflowOutputOptions = {
2139
- outputSchema?: CompiledSchema;
2140
- implicitFields?: Record<string, z.ZodType>;
2141
- };
2142
- type RawCandidate = {
2143
- id: string;
2144
- mode: OutputCandidateMode;
2145
- raw: string;
2146
- start: number;
2147
- end: number;
2148
- };
2149
- declare function parseWorkflowOutput(text: string, options?: ParseWorkflowOutputOptions): OutputParseResult;
2150
- declare function collectWorkflowOutputCandidates(text: string): RawCandidate[];
2151
- //#endregion
2152
- //#region src/runtime/agent-task-retry.d.ts
2153
- declare const AGENT_TASK_RETRY_BUDGET = 2;
2154
- declare const AGENT_TASK_RETRY_DELAY_MS = 5000;
2155
- declare function agentTaskRetryDelayMs(): number;
2156
- declare function setAgentTaskRetryDelayForTests(delayMs: number | undefined): void;
2157
- declare function retryableOutputFailure(reason: string | undefined): boolean;
2158
- declare function formatContinuationPrompt(input: {
2159
- failure: OutputParseFailure;
2160
- outputSchema?: CompiledSchema;
2161
- implicitOutputFields?: string[];
2162
- }): string;
2163
- declare function retryExhaustedEnvelope(input: {
2164
- summary: string;
2165
- lastFailureCode: string;
2166
- retryHistory: unknown[];
2167
- }): Record<string, unknown>;
2168
- declare function retryCountByReason(attempts: Array<{
2169
- retryReason?: AgentTaskRetryReason;
2170
- }>): Record<AgentTaskRetryReason, number>;
2171
- //#endregion
2172
- //#region src/runtime/run-workflow.d.ts
2173
- type PreparedRun = {
2174
- logicalRunId: string;
2175
- dir: string;
2176
- index: RunIndex;
2177
- };
2178
- declare function prepareRun(spec: WorkflowSpec, options: {
2179
- cwd: string;
2180
- input: Record<string, unknown>;
2181
- sourcePath?: string;
2182
- }): Promise<PreparedRun>;
2183
- declare function startPreparedRun(cwd: string, prepared: PreparedRun, options?: {
2184
- drainFanoutPool?: boolean;
2185
- }): Promise<RunIndex>;
2186
- //#endregion
2187
- //#region src/runtime/scheduler.d.ts
2188
- type SyncRunOptions = {
2189
- startPending?: boolean;
2190
- drainFanoutPool?: boolean;
2191
- };
2192
- declare function syncRun(cwd: string, logicalRunId: string, options?: SyncRunOptions): Promise<RunIndex>;
2193
- //#endregion
2194
- export { AGENT_TASK_RETRY_BUDGET, AGENT_TASK_RETRY_DELAY_MS, Actor, ActorModeSchema, ActorSchema, AgentFaninSchema, BuildRunDiagnosticsOptions, type CompileExecutionPlanOptions, CompiledSchema, ConditionNode, ConditionSchema, DEFAULT_AGENT_OUTPUT_SCHEMA, EXECUTION_PLAN_VERSION, type ExecutionPlan, type ExecutionPlanLimits, type ExecutionPlanStage, type ExecutionPlanStageLimits, FaninSchema, FanoutLaneSchema, type FanoutPlan, FanoutPolicySchema, FanoutStageLimitsSchema, FanoutStageSchema, GateAgentStageSchema, GateProgramStageSchema, GateStageSchema, IssueResult, IssueSeverity, LimitBindingSchema, LimitValueSchema, LoopBodyStage, LoopBodyStageSchema, LoopStageSchema, OrchestratorError, OrchestratorIssue, OutputCandidateDiagnostic, OutputCandidateMode, OutputCandidateSyntax, OutputParseDiagnostics, OutputParseErrorCode, OutputParseFailure, OutputParseResult, OutputParseSuccess, ParseWorkflowOutputOptions, PositiveIntegerLimitSchema, PreparedRun, ProgramFaninSchema, type PromptPlan, RUN_DIAGNOSTICS_VIEW_VERSION, RUN_MONITOR_VIEW_VERSION, RouteAgentStageSchema, RouteProgramStageSchema, RouteRuleSchema, RouteStageSchema, RunDiagnostic, RunDiagnosticCodes, RunDiagnosticEvent, RunDiagnosticSource, RunDiagnosticsView, RunMonitorStage, RunMonitorTask, RunMonitorView, RunView, RunViewOutputParse, RunViewParseDiagnostics, RunViewStatus, SCHEMA_VERSION, SchemaAst, type SessionKeyStrategy, Stage, StageLimitsSchema, StageSchema, type SyncRunOptions, TASK_DETAIL_VIEW_VERSION, TaskAgentStageSchema, TaskCounts, TaskDetailView, TaskExecution, TaskKind, TaskProgramStageSchema, TaskStageSchema, TaskStatus, TransformSchema, Variable, VariableSchema, WorkflowInputSchema, WorkflowLimitsSchema, WorkflowSpec, WorkflowSpecSchema, agentTaskRetryDelayMs, buildRunDiagnosticsView, buildRunMonitorView, buildTaskDetailView, collectWorkflowOutputCandidates, compileExecutionPlan, compileSchemaDsl, defaultAgentOutputZod, estimateAgentCalls, estimateFanoutWork, formatContinuationPrompt, formatSchema, isWorkflowYamlPath, issue, lintWorkflowSpec, loadWorkflowSpec, outputSchemaFooter, parseWorkflowOutput, prepareRun, previewRunView, readNdjsonTail, renderPromptMap, renderStagePrompt, resultFromIssues, retryCountByReason, retryExhaustedEnvelope, retryableOutputFailure, runViewFromIndex, setAgentTaskRetryDelayForTests, stageActorLabel, startPreparedRun, stringifyWorkflowSpec, syncRun, topologicalOrder, zodForCompiledSchema };