@xpert-ai/contracts 3.22.0 → 3.25.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 (58) hide show
  1. package/index.cjs.js +5296 -368
  2. package/index.esm.js +5185 -369
  3. package/package.json +2 -2
  4. package/src/ai/agent-output-delivery.model.d.ts +10 -10
  5. package/src/ai/agent-runtime.model.d.ts +24 -24
  6. package/src/ai/assistant-model.model.d.ts +8 -0
  7. package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
  8. package/src/ai/chat-group.model.d.ts +7 -3
  9. package/src/ai/index.d.ts +2 -0
  10. package/src/ai/mcp-publication.model.d.ts +20 -0
  11. package/src/ai/model-discovery.model.d.ts +2 -0
  12. package/src/ai/project-pipeline/analytics.d.ts +1685 -0
  13. package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
  14. package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
  15. package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
  16. package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
  17. package/src/ai/project-pipeline/compatibility.d.ts +5 -0
  18. package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
  22. package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
  23. package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
  24. package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
  25. package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
  26. package/src/ai/project-pipeline/graph.model.d.ts +89 -0
  27. package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
  28. package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
  29. package/src/ai/project-pipeline/index.d.ts +28 -0
  30. package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
  31. package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
  32. package/src/ai/project-pipeline/node.schema.d.ts +839 -0
  33. package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
  34. package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
  35. package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
  36. package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
  37. package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
  38. package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
  39. package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
  40. package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
  41. package/src/ai/project-pipeline/statistics.d.ts +811 -0
  42. package/src/ai/project-task-graph.model.d.ts +18 -2
  43. package/src/ai/project-task-runtime.model.d.ts +924 -924
  44. package/src/ai/provider-credential-validation.model.d.ts +63 -0
  45. package/src/ai/template-installation.model.d.ts +27 -0
  46. package/src/ai/types.d.ts +6 -4
  47. package/src/ai/xpert-project-type.model.d.ts +15 -4
  48. package/src/ai/xpert-project.model.d.ts +9 -2
  49. package/src/ai/xpert.model.d.ts +5 -0
  50. package/src/analytics-query.model.d.ts +180 -0
  51. package/src/artifact-presentation.model.d.ts +28 -0
  52. package/src/artifact.model.d.ts +15 -0
  53. package/src/assistant-sharing.model.d.ts +32 -0
  54. package/src/index.d.ts +4 -0
  55. package/src/plugin-application.d.ts +4 -1
  56. package/src/user-directory.model.d.ts +15 -0
  57. package/src/user-group.model.d.ts +1 -0
  58. package/src/view-extension/model.d.ts +16 -1
@@ -0,0 +1,3774 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const projectPipelineBindingSchema: z.ZodObject<{
3
+ templateRef: z.ZodString;
4
+ roleBindings: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
5
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
6
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
7
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ kind: "assistant" | "runtime_binding" | "human" | "service";
10
+ selectionKey: string;
11
+ requiredCapabilities?: string[] | undefined;
12
+ }, {
13
+ kind: "assistant" | "runtime_binding" | "human" | "service";
14
+ selectionKey: string;
15
+ requiredCapabilities?: string[] | undefined;
16
+ }>>;
17
+ executorBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
18
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
19
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
20
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
21
+ } & {
22
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
23
+ workspaceId: z.ZodOptional<z.ZodString>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ roleKey: string;
26
+ kind: "assistant" | "runtime_binding" | "human" | "service";
27
+ selectionKey: string;
28
+ requiredCapabilities?: string[] | undefined;
29
+ workspaceId?: string | undefined;
30
+ }, {
31
+ roleKey: string;
32
+ kind: "assistant" | "runtime_binding" | "human" | "service";
33
+ selectionKey: string;
34
+ requiredCapabilities?: string[] | undefined;
35
+ workspaceId?: string | undefined;
36
+ }>, {
37
+ roleKey: string;
38
+ kind: "assistant" | "runtime_binding" | "human" | "service";
39
+ selectionKey: string;
40
+ requiredCapabilities?: string[] | undefined;
41
+ workspaceId?: string | undefined;
42
+ }, {
43
+ roleKey: string;
44
+ kind: "assistant" | "runtime_binding" | "human" | "service";
45
+ selectionKey: string;
46
+ requiredCapabilities?: string[] | undefined;
47
+ workspaceId?: string | undefined;
48
+ }>>>;
49
+ providerConfiguration: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>>;
50
+ parameters: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>;
51
+ limits: z.ZodOptional<z.ZodObject<{
52
+ maxConcurrentExecutions: z.ZodNumber;
53
+ maxTechnicalAttemptsPerNode: z.ZodNumber;
54
+ runTimeoutMinutes: z.ZodNumber;
55
+ nativeModelBudget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
56
+ maxCalls: z.ZodNumber;
57
+ maxTokens: z.ZodNumber;
58
+ reservationTokens: z.ZodNumber;
59
+ }, "strict", z.ZodTypeAny, {
60
+ maxCalls: number;
61
+ maxTokens: number;
62
+ reservationTokens: number;
63
+ }, {
64
+ maxCalls: number;
65
+ maxTokens: number;
66
+ reservationTokens: number;
67
+ }>, {
68
+ maxCalls: number;
69
+ maxTokens: number;
70
+ reservationTokens: number;
71
+ }, {
72
+ maxCalls: number;
73
+ maxTokens: number;
74
+ reservationTokens: number;
75
+ }>>;
76
+ }, "strict", z.ZodTypeAny, {
77
+ maxConcurrentExecutions: number;
78
+ maxTechnicalAttemptsPerNode: number;
79
+ runTimeoutMinutes: number;
80
+ nativeModelBudget?: {
81
+ maxCalls: number;
82
+ maxTokens: number;
83
+ reservationTokens: number;
84
+ } | undefined;
85
+ }, {
86
+ maxConcurrentExecutions: number;
87
+ maxTechnicalAttemptsPerNode: number;
88
+ runTimeoutMinutes: number;
89
+ nativeModelBudget?: {
90
+ maxCalls: number;
91
+ maxTokens: number;
92
+ reservationTokens: number;
93
+ } | undefined;
94
+ }>>;
95
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
+ adapterRef: z.ZodString;
97
+ events: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
98
+ }, "strict", z.ZodTypeAny, {
99
+ adapterRef: string;
100
+ events: string[];
101
+ }, {
102
+ adapterRef: string;
103
+ events: string[];
104
+ }>, "many">>;
105
+ }, "strict", z.ZodTypeAny, {
106
+ templateRef: string;
107
+ roleBindings: Record<string, {
108
+ kind: "assistant" | "runtime_binding" | "human" | "service";
109
+ selectionKey: string;
110
+ requiredCapabilities?: string[] | undefined;
111
+ }>;
112
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
113
+ executorBindings?: Record<string, {
114
+ roleKey: string;
115
+ kind: "assistant" | "runtime_binding" | "human" | "service";
116
+ selectionKey: string;
117
+ requiredCapabilities?: string[] | undefined;
118
+ workspaceId?: string | undefined;
119
+ }> | undefined;
120
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
121
+ limits?: {
122
+ maxConcurrentExecutions: number;
123
+ maxTechnicalAttemptsPerNode: number;
124
+ runTimeoutMinutes: number;
125
+ nativeModelBudget?: {
126
+ maxCalls: number;
127
+ maxTokens: number;
128
+ reservationTokens: number;
129
+ } | undefined;
130
+ } | undefined;
131
+ triggers?: {
132
+ adapterRef: string;
133
+ events: string[];
134
+ }[] | undefined;
135
+ }, {
136
+ templateRef: string;
137
+ roleBindings: Record<string, {
138
+ kind: "assistant" | "runtime_binding" | "human" | "service";
139
+ selectionKey: string;
140
+ requiredCapabilities?: string[] | undefined;
141
+ }>;
142
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
143
+ executorBindings?: Record<string, {
144
+ roleKey: string;
145
+ kind: "assistant" | "runtime_binding" | "human" | "service";
146
+ selectionKey: string;
147
+ requiredCapabilities?: string[] | undefined;
148
+ workspaceId?: string | undefined;
149
+ }> | undefined;
150
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
151
+ limits?: {
152
+ maxConcurrentExecutions: number;
153
+ maxTechnicalAttemptsPerNode: number;
154
+ runTimeoutMinutes: number;
155
+ nativeModelBudget?: {
156
+ maxCalls: number;
157
+ maxTokens: number;
158
+ reservationTokens: number;
159
+ } | undefined;
160
+ } | undefined;
161
+ triggers?: {
162
+ adapterRef: string;
163
+ events: string[];
164
+ }[] | undefined;
165
+ }>;
166
+ /** Selectors are portable configuration, not trusted participant identities or credentials. */
167
+ export declare const projectPipelineConfigurationSchema: z.ZodEffects<z.ZodObject<{
168
+ schemaVersion: z.ZodLiteral<1>;
169
+ template: z.ZodEffects<z.ZodDiscriminatedUnion<"executionAuthority", [z.ZodObject<{
170
+ executionAuthority: z.ZodLiteral<"provider">;
171
+ providerRef: z.ZodString;
172
+ topology: z.ZodObject<{
173
+ source: z.ZodLiteral<"provider">;
174
+ presentationAdapterRef: z.ZodString;
175
+ }, "strict", z.ZodTypeAny, {
176
+ source: "provider";
177
+ presentationAdapterRef: string;
178
+ }, {
179
+ source: "provider";
180
+ presentationAdapterRef: string;
181
+ }>;
182
+ actionRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
183
+ hostRequirements: z.ZodOptional<z.ZodObject<{
184
+ protocol: z.ZodNumber;
185
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
186
+ }, "strict", z.ZodTypeAny, {
187
+ protocol: number;
188
+ features: Record<string, number>;
189
+ }, {
190
+ protocol: number;
191
+ features: Record<string, number>;
192
+ }>>;
193
+ key: z.ZodEffects<z.ZodString, string, string>;
194
+ version: z.ZodString;
195
+ title: z.ZodString;
196
+ subjectResolverRef: z.ZodString;
197
+ roles: z.ZodArray<z.ZodObject<{
198
+ key: z.ZodEffects<z.ZodString, string, string>;
199
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
200
+ }, "strict", z.ZodTypeAny, {
201
+ key: string;
202
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
203
+ }, {
204
+ key: string;
205
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
206
+ }>, "many">;
207
+ lanes: z.ZodArray<z.ZodObject<{
208
+ key: z.ZodEffects<z.ZodString, string, string>;
209
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
210
+ label: z.ZodString;
211
+ order: z.ZodNumber;
212
+ }, "strict", z.ZodTypeAny, {
213
+ key: string;
214
+ roleKey: string;
215
+ label: string;
216
+ order: number;
217
+ }, {
218
+ key: string;
219
+ roleKey: string;
220
+ label: string;
221
+ order: number;
222
+ }>, "many">;
223
+ stages: z.ZodArray<z.ZodObject<{
224
+ key: z.ZodEffects<z.ZodString, string, string>;
225
+ label: z.ZodString;
226
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
227
+ order: z.ZodNumber;
228
+ }, "strict", z.ZodTypeAny, {
229
+ key: string;
230
+ label: string;
231
+ order: number;
232
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
233
+ }, {
234
+ key: string;
235
+ label: string;
236
+ order: number;
237
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
238
+ }>, "many">;
239
+ presentation: z.ZodOptional<z.ZodObject<{
240
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
241
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
242
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
245
+ nodeDetailRef?: string | undefined;
246
+ evidenceTypes?: string[] | undefined;
247
+ }, {
248
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
249
+ nodeDetailRef?: string | undefined;
250
+ evidenceTypes?: string[] | undefined;
251
+ }>>;
252
+ metrics: z.ZodOptional<z.ZodObject<{
253
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
254
+ metricRefs: z.ZodArray<z.ZodString, "many">;
255
+ }, "strict", z.ZodTypeAny, {
256
+ dimensionRefs: string[];
257
+ metricRefs: string[];
258
+ }, {
259
+ dimensionRefs: string[];
260
+ metricRefs: string[];
261
+ }>>;
262
+ }, "strict", z.ZodTypeAny, {
263
+ key: string;
264
+ executionAuthority: "provider";
265
+ providerRef: string;
266
+ topology: {
267
+ source: "provider";
268
+ presentationAdapterRef: string;
269
+ };
270
+ version: string;
271
+ title: string;
272
+ subjectResolverRef: string;
273
+ roles: {
274
+ key: string;
275
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
276
+ }[];
277
+ lanes: {
278
+ key: string;
279
+ roleKey: string;
280
+ label: string;
281
+ order: number;
282
+ }[];
283
+ stages: {
284
+ key: string;
285
+ label: string;
286
+ order: number;
287
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
288
+ }[];
289
+ actionRefs?: string[] | undefined;
290
+ hostRequirements?: {
291
+ protocol: number;
292
+ features: Record<string, number>;
293
+ } | undefined;
294
+ presentation?: {
295
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
296
+ nodeDetailRef?: string | undefined;
297
+ evidenceTypes?: string[] | undefined;
298
+ } | undefined;
299
+ metrics?: {
300
+ dimensionRefs: string[];
301
+ metricRefs: string[];
302
+ } | undefined;
303
+ }, {
304
+ key: string;
305
+ executionAuthority: "provider";
306
+ providerRef: string;
307
+ topology: {
308
+ source: "provider";
309
+ presentationAdapterRef: string;
310
+ };
311
+ version: string;
312
+ title: string;
313
+ subjectResolverRef: string;
314
+ roles: {
315
+ key: string;
316
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
317
+ }[];
318
+ lanes: {
319
+ key: string;
320
+ roleKey: string;
321
+ label: string;
322
+ order: number;
323
+ }[];
324
+ stages: {
325
+ key: string;
326
+ label: string;
327
+ order: number;
328
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
329
+ }[];
330
+ actionRefs?: string[] | undefined;
331
+ hostRequirements?: {
332
+ protocol: number;
333
+ features: Record<string, number>;
334
+ } | undefined;
335
+ presentation?: {
336
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
337
+ nodeDetailRef?: string | undefined;
338
+ evidenceTypes?: string[] | undefined;
339
+ } | undefined;
340
+ metrics?: {
341
+ dimensionRefs: string[];
342
+ metricRefs: string[];
343
+ } | undefined;
344
+ }>, z.ZodObject<{
345
+ executionAuthority: z.ZodLiteral<"platform">;
346
+ topology: z.ZodObject<{
347
+ source: z.ZodLiteral<"definition">;
348
+ }, "strict", z.ZodTypeAny, {
349
+ source: "definition";
350
+ }, {
351
+ source: "definition";
352
+ }>;
353
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
354
+ kind: z.ZodLiteral<"work">;
355
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
356
+ operationRef: z.ZodString;
357
+ executorSlot: z.ZodEffects<z.ZodString, string, string>;
358
+ completionRef: z.ZodString;
359
+ resourceResolverRef: z.ZodOptional<z.ZodString>;
360
+ outputSchemaRef: z.ZodOptional<z.ZodString>;
361
+ key: z.ZodEffects<z.ZodString, string, string>;
362
+ label: z.ZodOptional<z.ZodString>;
363
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
364
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
365
+ from: z.ZodLiteral<"subject">;
366
+ }, "strict", z.ZodTypeAny, {
367
+ from: "subject";
368
+ }, {
369
+ from: "subject";
370
+ }>, z.ZodObject<{
371
+ from: z.ZodLiteral<"parameter">;
372
+ key: z.ZodEffects<z.ZodString, string, string>;
373
+ }, "strict", z.ZodTypeAny, {
374
+ key: string;
375
+ from: "parameter";
376
+ }, {
377
+ key: string;
378
+ from: "parameter";
379
+ }>, z.ZodObject<{
380
+ from: z.ZodLiteral<"node_output">;
381
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
382
+ port: z.ZodEffects<z.ZodString, string, string>;
383
+ }, "strict", z.ZodTypeAny, {
384
+ from: "node_output";
385
+ nodeKey: string;
386
+ port: string;
387
+ }, {
388
+ from: "node_output";
389
+ nodeKey: string;
390
+ port: string;
391
+ }>, z.ZodObject<{
392
+ from: z.ZodLiteral<"collection">;
393
+ items: z.ZodArray<z.ZodObject<{
394
+ from: z.ZodLiteral<"node_output">;
395
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
396
+ port: z.ZodEffects<z.ZodString, string, string>;
397
+ }, "strict", z.ZodTypeAny, {
398
+ from: "node_output";
399
+ nodeKey: string;
400
+ port: string;
401
+ }, {
402
+ from: "node_output";
403
+ nodeKey: string;
404
+ port: string;
405
+ }>, "many">;
406
+ }, "strict", z.ZodTypeAny, {
407
+ from: "collection";
408
+ items: {
409
+ from: "node_output";
410
+ nodeKey: string;
411
+ port: string;
412
+ }[];
413
+ }, {
414
+ from: "collection";
415
+ items: {
416
+ from: "node_output";
417
+ nodeKey: string;
418
+ port: string;
419
+ }[];
420
+ }>]>>>;
421
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
422
+ }, "strict", z.ZodTypeAny, {
423
+ key: string;
424
+ kind: "work";
425
+ laneKey: string;
426
+ operationRef: string;
427
+ executorSlot: string;
428
+ completionRef: string;
429
+ stageKey: string;
430
+ label?: string | undefined;
431
+ resourceResolverRef?: string | undefined;
432
+ outputSchemaRef?: string | undefined;
433
+ inputBindings?: Record<string, {
434
+ from: "node_output";
435
+ nodeKey: string;
436
+ port: string;
437
+ } | {
438
+ from: "subject";
439
+ } | {
440
+ key: string;
441
+ from: "parameter";
442
+ } | {
443
+ from: "collection";
444
+ items: {
445
+ from: "node_output";
446
+ nodeKey: string;
447
+ port: string;
448
+ }[];
449
+ }> | undefined;
450
+ outputPorts?: Record<string, string> | undefined;
451
+ }, {
452
+ key: string;
453
+ kind: "work";
454
+ laneKey: string;
455
+ operationRef: string;
456
+ executorSlot: string;
457
+ completionRef: string;
458
+ stageKey: string;
459
+ label?: string | undefined;
460
+ resourceResolverRef?: string | undefined;
461
+ outputSchemaRef?: string | undefined;
462
+ inputBindings?: Record<string, {
463
+ from: "node_output";
464
+ nodeKey: string;
465
+ port: string;
466
+ } | {
467
+ from: "subject";
468
+ } | {
469
+ key: string;
470
+ from: "parameter";
471
+ } | {
472
+ from: "collection";
473
+ items: {
474
+ from: "node_output";
475
+ nodeKey: string;
476
+ port: string;
477
+ }[];
478
+ }> | undefined;
479
+ outputPorts?: Record<string, string> | undefined;
480
+ }>, z.ZodObject<{
481
+ kind: z.ZodLiteral<"fork">;
482
+ key: z.ZodEffects<z.ZodString, string, string>;
483
+ label: z.ZodOptional<z.ZodString>;
484
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
485
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
486
+ from: z.ZodLiteral<"subject">;
487
+ }, "strict", z.ZodTypeAny, {
488
+ from: "subject";
489
+ }, {
490
+ from: "subject";
491
+ }>, z.ZodObject<{
492
+ from: z.ZodLiteral<"parameter">;
493
+ key: z.ZodEffects<z.ZodString, string, string>;
494
+ }, "strict", z.ZodTypeAny, {
495
+ key: string;
496
+ from: "parameter";
497
+ }, {
498
+ key: string;
499
+ from: "parameter";
500
+ }>, z.ZodObject<{
501
+ from: z.ZodLiteral<"node_output">;
502
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
503
+ port: z.ZodEffects<z.ZodString, string, string>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ from: "node_output";
506
+ nodeKey: string;
507
+ port: string;
508
+ }, {
509
+ from: "node_output";
510
+ nodeKey: string;
511
+ port: string;
512
+ }>, z.ZodObject<{
513
+ from: z.ZodLiteral<"collection">;
514
+ items: z.ZodArray<z.ZodObject<{
515
+ from: z.ZodLiteral<"node_output">;
516
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
517
+ port: z.ZodEffects<z.ZodString, string, string>;
518
+ }, "strict", z.ZodTypeAny, {
519
+ from: "node_output";
520
+ nodeKey: string;
521
+ port: string;
522
+ }, {
523
+ from: "node_output";
524
+ nodeKey: string;
525
+ port: string;
526
+ }>, "many">;
527
+ }, "strict", z.ZodTypeAny, {
528
+ from: "collection";
529
+ items: {
530
+ from: "node_output";
531
+ nodeKey: string;
532
+ port: string;
533
+ }[];
534
+ }, {
535
+ from: "collection";
536
+ items: {
537
+ from: "node_output";
538
+ nodeKey: string;
539
+ port: string;
540
+ }[];
541
+ }>]>>>;
542
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
543
+ }, "strict", z.ZodTypeAny, {
544
+ key: string;
545
+ kind: "fork";
546
+ stageKey: string;
547
+ label?: string | undefined;
548
+ inputBindings?: Record<string, {
549
+ from: "node_output";
550
+ nodeKey: string;
551
+ port: string;
552
+ } | {
553
+ from: "subject";
554
+ } | {
555
+ key: string;
556
+ from: "parameter";
557
+ } | {
558
+ from: "collection";
559
+ items: {
560
+ from: "node_output";
561
+ nodeKey: string;
562
+ port: string;
563
+ }[];
564
+ }> | undefined;
565
+ outputPorts?: Record<string, string> | undefined;
566
+ }, {
567
+ key: string;
568
+ kind: "fork";
569
+ stageKey: string;
570
+ label?: string | undefined;
571
+ inputBindings?: Record<string, {
572
+ from: "node_output";
573
+ nodeKey: string;
574
+ port: string;
575
+ } | {
576
+ from: "subject";
577
+ } | {
578
+ key: string;
579
+ from: "parameter";
580
+ } | {
581
+ from: "collection";
582
+ items: {
583
+ from: "node_output";
584
+ nodeKey: string;
585
+ port: string;
586
+ }[];
587
+ }> | undefined;
588
+ outputPorts?: Record<string, string> | undefined;
589
+ }>, z.ZodObject<{
590
+ kind: z.ZodLiteral<"join">;
591
+ join: z.ZodObject<{
592
+ mode: z.ZodLiteral<"all_selected">;
593
+ accept: z.ZodLiteral<"completed">;
594
+ }, "strict", z.ZodTypeAny, {
595
+ mode: "all_selected";
596
+ accept: "completed";
597
+ }, {
598
+ mode: "all_selected";
599
+ accept: "completed";
600
+ }>;
601
+ key: z.ZodEffects<z.ZodString, string, string>;
602
+ label: z.ZodOptional<z.ZodString>;
603
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
604
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
605
+ from: z.ZodLiteral<"subject">;
606
+ }, "strict", z.ZodTypeAny, {
607
+ from: "subject";
608
+ }, {
609
+ from: "subject";
610
+ }>, z.ZodObject<{
611
+ from: z.ZodLiteral<"parameter">;
612
+ key: z.ZodEffects<z.ZodString, string, string>;
613
+ }, "strict", z.ZodTypeAny, {
614
+ key: string;
615
+ from: "parameter";
616
+ }, {
617
+ key: string;
618
+ from: "parameter";
619
+ }>, z.ZodObject<{
620
+ from: z.ZodLiteral<"node_output">;
621
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
622
+ port: z.ZodEffects<z.ZodString, string, string>;
623
+ }, "strict", z.ZodTypeAny, {
624
+ from: "node_output";
625
+ nodeKey: string;
626
+ port: string;
627
+ }, {
628
+ from: "node_output";
629
+ nodeKey: string;
630
+ port: string;
631
+ }>, z.ZodObject<{
632
+ from: z.ZodLiteral<"collection">;
633
+ items: z.ZodArray<z.ZodObject<{
634
+ from: z.ZodLiteral<"node_output">;
635
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
636
+ port: z.ZodEffects<z.ZodString, string, string>;
637
+ }, "strict", z.ZodTypeAny, {
638
+ from: "node_output";
639
+ nodeKey: string;
640
+ port: string;
641
+ }, {
642
+ from: "node_output";
643
+ nodeKey: string;
644
+ port: string;
645
+ }>, "many">;
646
+ }, "strict", z.ZodTypeAny, {
647
+ from: "collection";
648
+ items: {
649
+ from: "node_output";
650
+ nodeKey: string;
651
+ port: string;
652
+ }[];
653
+ }, {
654
+ from: "collection";
655
+ items: {
656
+ from: "node_output";
657
+ nodeKey: string;
658
+ port: string;
659
+ }[];
660
+ }>]>>>;
661
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
662
+ }, "strict", z.ZodTypeAny, {
663
+ join: {
664
+ mode: "all_selected";
665
+ accept: "completed";
666
+ };
667
+ key: string;
668
+ kind: "join";
669
+ stageKey: string;
670
+ label?: string | undefined;
671
+ inputBindings?: Record<string, {
672
+ from: "node_output";
673
+ nodeKey: string;
674
+ port: string;
675
+ } | {
676
+ from: "subject";
677
+ } | {
678
+ key: string;
679
+ from: "parameter";
680
+ } | {
681
+ from: "collection";
682
+ items: {
683
+ from: "node_output";
684
+ nodeKey: string;
685
+ port: string;
686
+ }[];
687
+ }> | undefined;
688
+ outputPorts?: Record<string, string> | undefined;
689
+ }, {
690
+ join: {
691
+ mode: "all_selected";
692
+ accept: "completed";
693
+ };
694
+ key: string;
695
+ kind: "join";
696
+ stageKey: string;
697
+ label?: string | undefined;
698
+ inputBindings?: Record<string, {
699
+ from: "node_output";
700
+ nodeKey: string;
701
+ port: string;
702
+ } | {
703
+ from: "subject";
704
+ } | {
705
+ key: string;
706
+ from: "parameter";
707
+ } | {
708
+ from: "collection";
709
+ items: {
710
+ from: "node_output";
711
+ nodeKey: string;
712
+ port: string;
713
+ }[];
714
+ }> | undefined;
715
+ outputPorts?: Record<string, string> | undefined;
716
+ }>, z.ZodObject<{
717
+ kind: z.ZodLiteral<"router">;
718
+ policyRef: z.ZodString;
719
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
720
+ unmatched: z.ZodLiteral<"block">;
721
+ key: z.ZodEffects<z.ZodString, string, string>;
722
+ label: z.ZodOptional<z.ZodString>;
723
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
724
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
725
+ from: z.ZodLiteral<"subject">;
726
+ }, "strict", z.ZodTypeAny, {
727
+ from: "subject";
728
+ }, {
729
+ from: "subject";
730
+ }>, z.ZodObject<{
731
+ from: z.ZodLiteral<"parameter">;
732
+ key: z.ZodEffects<z.ZodString, string, string>;
733
+ }, "strict", z.ZodTypeAny, {
734
+ key: string;
735
+ from: "parameter";
736
+ }, {
737
+ key: string;
738
+ from: "parameter";
739
+ }>, z.ZodObject<{
740
+ from: z.ZodLiteral<"node_output">;
741
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
742
+ port: z.ZodEffects<z.ZodString, string, string>;
743
+ }, "strict", z.ZodTypeAny, {
744
+ from: "node_output";
745
+ nodeKey: string;
746
+ port: string;
747
+ }, {
748
+ from: "node_output";
749
+ nodeKey: string;
750
+ port: string;
751
+ }>, z.ZodObject<{
752
+ from: z.ZodLiteral<"collection">;
753
+ items: z.ZodArray<z.ZodObject<{
754
+ from: z.ZodLiteral<"node_output">;
755
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
756
+ port: z.ZodEffects<z.ZodString, string, string>;
757
+ }, "strict", z.ZodTypeAny, {
758
+ from: "node_output";
759
+ nodeKey: string;
760
+ port: string;
761
+ }, {
762
+ from: "node_output";
763
+ nodeKey: string;
764
+ port: string;
765
+ }>, "many">;
766
+ }, "strict", z.ZodTypeAny, {
767
+ from: "collection";
768
+ items: {
769
+ from: "node_output";
770
+ nodeKey: string;
771
+ port: string;
772
+ }[];
773
+ }, {
774
+ from: "collection";
775
+ items: {
776
+ from: "node_output";
777
+ nodeKey: string;
778
+ port: string;
779
+ }[];
780
+ }>]>>>;
781
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
782
+ }, "strict", z.ZodTypeAny, {
783
+ key: string;
784
+ kind: "router";
785
+ stageKey: string;
786
+ policyRef: string;
787
+ outcomes: string[];
788
+ unmatched: "block";
789
+ label?: string | undefined;
790
+ inputBindings?: Record<string, {
791
+ from: "node_output";
792
+ nodeKey: string;
793
+ port: string;
794
+ } | {
795
+ from: "subject";
796
+ } | {
797
+ key: string;
798
+ from: "parameter";
799
+ } | {
800
+ from: "collection";
801
+ items: {
802
+ from: "node_output";
803
+ nodeKey: string;
804
+ port: string;
805
+ }[];
806
+ }> | undefined;
807
+ outputPorts?: Record<string, string> | undefined;
808
+ }, {
809
+ key: string;
810
+ kind: "router";
811
+ stageKey: string;
812
+ policyRef: string;
813
+ outcomes: string[];
814
+ unmatched: "block";
815
+ label?: string | undefined;
816
+ inputBindings?: Record<string, {
817
+ from: "node_output";
818
+ nodeKey: string;
819
+ port: string;
820
+ } | {
821
+ from: "subject";
822
+ } | {
823
+ key: string;
824
+ from: "parameter";
825
+ } | {
826
+ from: "collection";
827
+ items: {
828
+ from: "node_output";
829
+ nodeKey: string;
830
+ port: string;
831
+ }[];
832
+ }> | undefined;
833
+ outputPorts?: Record<string, string> | undefined;
834
+ }>, z.ZodObject<{
835
+ kind: z.ZodLiteral<"human_gate">;
836
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
837
+ policyRef: z.ZodString;
838
+ candidateRoleKey: z.ZodEffects<z.ZodString, string, string>;
839
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
840
+ outcomeLabels: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
841
+ key: z.ZodEffects<z.ZodString, string, string>;
842
+ label: z.ZodOptional<z.ZodString>;
843
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
844
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
845
+ from: z.ZodLiteral<"subject">;
846
+ }, "strict", z.ZodTypeAny, {
847
+ from: "subject";
848
+ }, {
849
+ from: "subject";
850
+ }>, z.ZodObject<{
851
+ from: z.ZodLiteral<"parameter">;
852
+ key: z.ZodEffects<z.ZodString, string, string>;
853
+ }, "strict", z.ZodTypeAny, {
854
+ key: string;
855
+ from: "parameter";
856
+ }, {
857
+ key: string;
858
+ from: "parameter";
859
+ }>, z.ZodObject<{
860
+ from: z.ZodLiteral<"node_output">;
861
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
862
+ port: z.ZodEffects<z.ZodString, string, string>;
863
+ }, "strict", z.ZodTypeAny, {
864
+ from: "node_output";
865
+ nodeKey: string;
866
+ port: string;
867
+ }, {
868
+ from: "node_output";
869
+ nodeKey: string;
870
+ port: string;
871
+ }>, z.ZodObject<{
872
+ from: z.ZodLiteral<"collection">;
873
+ items: z.ZodArray<z.ZodObject<{
874
+ from: z.ZodLiteral<"node_output">;
875
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
876
+ port: z.ZodEffects<z.ZodString, string, string>;
877
+ }, "strict", z.ZodTypeAny, {
878
+ from: "node_output";
879
+ nodeKey: string;
880
+ port: string;
881
+ }, {
882
+ from: "node_output";
883
+ nodeKey: string;
884
+ port: string;
885
+ }>, "many">;
886
+ }, "strict", z.ZodTypeAny, {
887
+ from: "collection";
888
+ items: {
889
+ from: "node_output";
890
+ nodeKey: string;
891
+ port: string;
892
+ }[];
893
+ }, {
894
+ from: "collection";
895
+ items: {
896
+ from: "node_output";
897
+ nodeKey: string;
898
+ port: string;
899
+ }[];
900
+ }>]>>>;
901
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ key: string;
904
+ kind: "human_gate";
905
+ laneKey: string;
906
+ stageKey: string;
907
+ policyRef: string;
908
+ outcomes: string[];
909
+ candidateRoleKey: string;
910
+ label?: string | undefined;
911
+ inputBindings?: Record<string, {
912
+ from: "node_output";
913
+ nodeKey: string;
914
+ port: string;
915
+ } | {
916
+ from: "subject";
917
+ } | {
918
+ key: string;
919
+ from: "parameter";
920
+ } | {
921
+ from: "collection";
922
+ items: {
923
+ from: "node_output";
924
+ nodeKey: string;
925
+ port: string;
926
+ }[];
927
+ }> | undefined;
928
+ outputPorts?: Record<string, string> | undefined;
929
+ outcomeLabels?: Record<string, string> | undefined;
930
+ }, {
931
+ key: string;
932
+ kind: "human_gate";
933
+ laneKey: string;
934
+ stageKey: string;
935
+ policyRef: string;
936
+ outcomes: string[];
937
+ candidateRoleKey: string;
938
+ label?: string | undefined;
939
+ inputBindings?: Record<string, {
940
+ from: "node_output";
941
+ nodeKey: string;
942
+ port: string;
943
+ } | {
944
+ from: "subject";
945
+ } | {
946
+ key: string;
947
+ from: "parameter";
948
+ } | {
949
+ from: "collection";
950
+ items: {
951
+ from: "node_output";
952
+ nodeKey: string;
953
+ port: string;
954
+ }[];
955
+ }> | undefined;
956
+ outputPorts?: Record<string, string> | undefined;
957
+ outcomeLabels?: Record<string, string> | undefined;
958
+ }>, z.ZodObject<{
959
+ kind: z.ZodLiteral<"external_wait">;
960
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
961
+ subscriptionRef: z.ZodString;
962
+ key: z.ZodEffects<z.ZodString, string, string>;
963
+ label: z.ZodOptional<z.ZodString>;
964
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
965
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
966
+ from: z.ZodLiteral<"subject">;
967
+ }, "strict", z.ZodTypeAny, {
968
+ from: "subject";
969
+ }, {
970
+ from: "subject";
971
+ }>, z.ZodObject<{
972
+ from: z.ZodLiteral<"parameter">;
973
+ key: z.ZodEffects<z.ZodString, string, string>;
974
+ }, "strict", z.ZodTypeAny, {
975
+ key: string;
976
+ from: "parameter";
977
+ }, {
978
+ key: string;
979
+ from: "parameter";
980
+ }>, z.ZodObject<{
981
+ from: z.ZodLiteral<"node_output">;
982
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
983
+ port: z.ZodEffects<z.ZodString, string, string>;
984
+ }, "strict", z.ZodTypeAny, {
985
+ from: "node_output";
986
+ nodeKey: string;
987
+ port: string;
988
+ }, {
989
+ from: "node_output";
990
+ nodeKey: string;
991
+ port: string;
992
+ }>, z.ZodObject<{
993
+ from: z.ZodLiteral<"collection">;
994
+ items: z.ZodArray<z.ZodObject<{
995
+ from: z.ZodLiteral<"node_output">;
996
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
997
+ port: z.ZodEffects<z.ZodString, string, string>;
998
+ }, "strict", z.ZodTypeAny, {
999
+ from: "node_output";
1000
+ nodeKey: string;
1001
+ port: string;
1002
+ }, {
1003
+ from: "node_output";
1004
+ nodeKey: string;
1005
+ port: string;
1006
+ }>, "many">;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ from: "collection";
1009
+ items: {
1010
+ from: "node_output";
1011
+ nodeKey: string;
1012
+ port: string;
1013
+ }[];
1014
+ }, {
1015
+ from: "collection";
1016
+ items: {
1017
+ from: "node_output";
1018
+ nodeKey: string;
1019
+ port: string;
1020
+ }[];
1021
+ }>]>>>;
1022
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
1023
+ }, "strict", z.ZodTypeAny, {
1024
+ key: string;
1025
+ kind: "external_wait";
1026
+ laneKey: string;
1027
+ stageKey: string;
1028
+ subscriptionRef: string;
1029
+ label?: string | undefined;
1030
+ inputBindings?: Record<string, {
1031
+ from: "node_output";
1032
+ nodeKey: string;
1033
+ port: string;
1034
+ } | {
1035
+ from: "subject";
1036
+ } | {
1037
+ key: string;
1038
+ from: "parameter";
1039
+ } | {
1040
+ from: "collection";
1041
+ items: {
1042
+ from: "node_output";
1043
+ nodeKey: string;
1044
+ port: string;
1045
+ }[];
1046
+ }> | undefined;
1047
+ outputPorts?: Record<string, string> | undefined;
1048
+ }, {
1049
+ key: string;
1050
+ kind: "external_wait";
1051
+ laneKey: string;
1052
+ stageKey: string;
1053
+ subscriptionRef: string;
1054
+ label?: string | undefined;
1055
+ inputBindings?: Record<string, {
1056
+ from: "node_output";
1057
+ nodeKey: string;
1058
+ port: string;
1059
+ } | {
1060
+ from: "subject";
1061
+ } | {
1062
+ key: string;
1063
+ from: "parameter";
1064
+ } | {
1065
+ from: "collection";
1066
+ items: {
1067
+ from: "node_output";
1068
+ nodeKey: string;
1069
+ port: string;
1070
+ }[];
1071
+ }> | undefined;
1072
+ outputPorts?: Record<string, string> | undefined;
1073
+ }>, z.ZodObject<{
1074
+ kind: z.ZodLiteral<"terminal">;
1075
+ outcome: z.ZodEffects<z.ZodString, string, string>;
1076
+ disposition: z.ZodOptional<z.ZodEnum<["complete", "await_new_subject"]>>;
1077
+ key: z.ZodEffects<z.ZodString, string, string>;
1078
+ label: z.ZodOptional<z.ZodString>;
1079
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
1080
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1081
+ from: z.ZodLiteral<"subject">;
1082
+ }, "strict", z.ZodTypeAny, {
1083
+ from: "subject";
1084
+ }, {
1085
+ from: "subject";
1086
+ }>, z.ZodObject<{
1087
+ from: z.ZodLiteral<"parameter">;
1088
+ key: z.ZodEffects<z.ZodString, string, string>;
1089
+ }, "strict", z.ZodTypeAny, {
1090
+ key: string;
1091
+ from: "parameter";
1092
+ }, {
1093
+ key: string;
1094
+ from: "parameter";
1095
+ }>, z.ZodObject<{
1096
+ from: z.ZodLiteral<"node_output">;
1097
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1098
+ port: z.ZodEffects<z.ZodString, string, string>;
1099
+ }, "strict", z.ZodTypeAny, {
1100
+ from: "node_output";
1101
+ nodeKey: string;
1102
+ port: string;
1103
+ }, {
1104
+ from: "node_output";
1105
+ nodeKey: string;
1106
+ port: string;
1107
+ }>, z.ZodObject<{
1108
+ from: z.ZodLiteral<"collection">;
1109
+ items: z.ZodArray<z.ZodObject<{
1110
+ from: z.ZodLiteral<"node_output">;
1111
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1112
+ port: z.ZodEffects<z.ZodString, string, string>;
1113
+ }, "strict", z.ZodTypeAny, {
1114
+ from: "node_output";
1115
+ nodeKey: string;
1116
+ port: string;
1117
+ }, {
1118
+ from: "node_output";
1119
+ nodeKey: string;
1120
+ port: string;
1121
+ }>, "many">;
1122
+ }, "strict", z.ZodTypeAny, {
1123
+ from: "collection";
1124
+ items: {
1125
+ from: "node_output";
1126
+ nodeKey: string;
1127
+ port: string;
1128
+ }[];
1129
+ }, {
1130
+ from: "collection";
1131
+ items: {
1132
+ from: "node_output";
1133
+ nodeKey: string;
1134
+ port: string;
1135
+ }[];
1136
+ }>]>>>;
1137
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
1138
+ }, "strict", z.ZodTypeAny, {
1139
+ key: string;
1140
+ outcome: string;
1141
+ kind: "terminal";
1142
+ stageKey: string;
1143
+ label?: string | undefined;
1144
+ inputBindings?: Record<string, {
1145
+ from: "node_output";
1146
+ nodeKey: string;
1147
+ port: string;
1148
+ } | {
1149
+ from: "subject";
1150
+ } | {
1151
+ key: string;
1152
+ from: "parameter";
1153
+ } | {
1154
+ from: "collection";
1155
+ items: {
1156
+ from: "node_output";
1157
+ nodeKey: string;
1158
+ port: string;
1159
+ }[];
1160
+ }> | undefined;
1161
+ outputPorts?: Record<string, string> | undefined;
1162
+ disposition?: "complete" | "await_new_subject" | undefined;
1163
+ }, {
1164
+ key: string;
1165
+ outcome: string;
1166
+ kind: "terminal";
1167
+ stageKey: string;
1168
+ label?: string | undefined;
1169
+ inputBindings?: Record<string, {
1170
+ from: "node_output";
1171
+ nodeKey: string;
1172
+ port: string;
1173
+ } | {
1174
+ from: "subject";
1175
+ } | {
1176
+ key: string;
1177
+ from: "parameter";
1178
+ } | {
1179
+ from: "collection";
1180
+ items: {
1181
+ from: "node_output";
1182
+ nodeKey: string;
1183
+ port: string;
1184
+ }[];
1185
+ }> | undefined;
1186
+ outputPorts?: Record<string, string> | undefined;
1187
+ disposition?: "complete" | "await_new_subject" | undefined;
1188
+ }>]>, "many">;
1189
+ edges: z.ZodArray<z.ZodObject<{
1190
+ from: z.ZodEffects<z.ZodString, string, string>;
1191
+ to: z.ZodEffects<z.ZodString, string, string>;
1192
+ outcome: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1193
+ }, "strict", z.ZodTypeAny, {
1194
+ from: string;
1195
+ to: string;
1196
+ outcome?: string | undefined;
1197
+ }, {
1198
+ from: string;
1199
+ to: string;
1200
+ outcome?: string | undefined;
1201
+ }>, "many">;
1202
+ roundPolicy: z.ZodObject<{
1203
+ entryNodeKey: z.ZodEffects<z.ZodString, string, string>;
1204
+ maxRounds: z.ZodNumber;
1205
+ onRework: z.ZodLiteral<"await_new_subject_then_next_round">;
1206
+ onLimit: z.ZodLiteral<"attention">;
1207
+ newVersionWhileActive: z.ZodLiteral<"supersede_round">;
1208
+ terminalOutcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1209
+ }, "strict", z.ZodTypeAny, {
1210
+ entryNodeKey: string;
1211
+ maxRounds: number;
1212
+ onRework: "await_new_subject_then_next_round";
1213
+ onLimit: "attention";
1214
+ newVersionWhileActive: "supersede_round";
1215
+ terminalOutcomes: string[];
1216
+ }, {
1217
+ entryNodeKey: string;
1218
+ maxRounds: number;
1219
+ onRework: "await_new_subject_then_next_round";
1220
+ onLimit: "attention";
1221
+ newVersionWhileActive: "supersede_round";
1222
+ terminalOutcomes: string[];
1223
+ }>;
1224
+ failurePolicy: z.ZodObject<{
1225
+ requiredNodeFailure: z.ZodLiteral<"block_and_attention">;
1226
+ unknownExecution: z.ZodLiteral<"inspect_without_replay">;
1227
+ }, "strict", z.ZodTypeAny, {
1228
+ requiredNodeFailure: "block_and_attention";
1229
+ unknownExecution: "inspect_without_replay";
1230
+ }, {
1231
+ requiredNodeFailure: "block_and_attention";
1232
+ unknownExecution: "inspect_without_replay";
1233
+ }>;
1234
+ hostRequirements: z.ZodOptional<z.ZodObject<{
1235
+ protocol: z.ZodNumber;
1236
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
1237
+ }, "strict", z.ZodTypeAny, {
1238
+ protocol: number;
1239
+ features: Record<string, number>;
1240
+ }, {
1241
+ protocol: number;
1242
+ features: Record<string, number>;
1243
+ }>>;
1244
+ key: z.ZodEffects<z.ZodString, string, string>;
1245
+ version: z.ZodString;
1246
+ title: z.ZodString;
1247
+ subjectResolverRef: z.ZodString;
1248
+ roles: z.ZodArray<z.ZodObject<{
1249
+ key: z.ZodEffects<z.ZodString, string, string>;
1250
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
1251
+ }, "strict", z.ZodTypeAny, {
1252
+ key: string;
1253
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1254
+ }, {
1255
+ key: string;
1256
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1257
+ }>, "many">;
1258
+ lanes: z.ZodArray<z.ZodObject<{
1259
+ key: z.ZodEffects<z.ZodString, string, string>;
1260
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
1261
+ label: z.ZodString;
1262
+ order: z.ZodNumber;
1263
+ }, "strict", z.ZodTypeAny, {
1264
+ key: string;
1265
+ roleKey: string;
1266
+ label: string;
1267
+ order: number;
1268
+ }, {
1269
+ key: string;
1270
+ roleKey: string;
1271
+ label: string;
1272
+ order: number;
1273
+ }>, "many">;
1274
+ stages: z.ZodArray<z.ZodObject<{
1275
+ key: z.ZodEffects<z.ZodString, string, string>;
1276
+ label: z.ZodString;
1277
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
1278
+ order: z.ZodNumber;
1279
+ }, "strict", z.ZodTypeAny, {
1280
+ key: string;
1281
+ label: string;
1282
+ order: number;
1283
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1284
+ }, {
1285
+ key: string;
1286
+ label: string;
1287
+ order: number;
1288
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1289
+ }>, "many">;
1290
+ presentation: z.ZodOptional<z.ZodObject<{
1291
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
1292
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
1293
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1294
+ }, "strict", z.ZodTypeAny, {
1295
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1296
+ nodeDetailRef?: string | undefined;
1297
+ evidenceTypes?: string[] | undefined;
1298
+ }, {
1299
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1300
+ nodeDetailRef?: string | undefined;
1301
+ evidenceTypes?: string[] | undefined;
1302
+ }>>;
1303
+ metrics: z.ZodOptional<z.ZodObject<{
1304
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
1305
+ metricRefs: z.ZodArray<z.ZodString, "many">;
1306
+ }, "strict", z.ZodTypeAny, {
1307
+ dimensionRefs: string[];
1308
+ metricRefs: string[];
1309
+ }, {
1310
+ dimensionRefs: string[];
1311
+ metricRefs: string[];
1312
+ }>>;
1313
+ }, "strict", z.ZodTypeAny, {
1314
+ key: string;
1315
+ executionAuthority: "platform";
1316
+ topology: {
1317
+ source: "definition";
1318
+ };
1319
+ version: string;
1320
+ title: string;
1321
+ subjectResolverRef: string;
1322
+ roles: {
1323
+ key: string;
1324
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1325
+ }[];
1326
+ lanes: {
1327
+ key: string;
1328
+ roleKey: string;
1329
+ label: string;
1330
+ order: number;
1331
+ }[];
1332
+ stages: {
1333
+ key: string;
1334
+ label: string;
1335
+ order: number;
1336
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1337
+ }[];
1338
+ nodes: ({
1339
+ key: string;
1340
+ kind: "work";
1341
+ laneKey: string;
1342
+ operationRef: string;
1343
+ executorSlot: string;
1344
+ completionRef: string;
1345
+ stageKey: string;
1346
+ label?: string | undefined;
1347
+ resourceResolverRef?: string | undefined;
1348
+ outputSchemaRef?: string | undefined;
1349
+ inputBindings?: Record<string, {
1350
+ from: "node_output";
1351
+ nodeKey: string;
1352
+ port: string;
1353
+ } | {
1354
+ from: "subject";
1355
+ } | {
1356
+ key: string;
1357
+ from: "parameter";
1358
+ } | {
1359
+ from: "collection";
1360
+ items: {
1361
+ from: "node_output";
1362
+ nodeKey: string;
1363
+ port: string;
1364
+ }[];
1365
+ }> | undefined;
1366
+ outputPorts?: Record<string, string> | undefined;
1367
+ } | {
1368
+ key: string;
1369
+ kind: "fork";
1370
+ stageKey: string;
1371
+ label?: string | undefined;
1372
+ inputBindings?: Record<string, {
1373
+ from: "node_output";
1374
+ nodeKey: string;
1375
+ port: string;
1376
+ } | {
1377
+ from: "subject";
1378
+ } | {
1379
+ key: string;
1380
+ from: "parameter";
1381
+ } | {
1382
+ from: "collection";
1383
+ items: {
1384
+ from: "node_output";
1385
+ nodeKey: string;
1386
+ port: string;
1387
+ }[];
1388
+ }> | undefined;
1389
+ outputPorts?: Record<string, string> | undefined;
1390
+ } | {
1391
+ join: {
1392
+ mode: "all_selected";
1393
+ accept: "completed";
1394
+ };
1395
+ key: string;
1396
+ kind: "join";
1397
+ stageKey: string;
1398
+ label?: string | undefined;
1399
+ inputBindings?: Record<string, {
1400
+ from: "node_output";
1401
+ nodeKey: string;
1402
+ port: string;
1403
+ } | {
1404
+ from: "subject";
1405
+ } | {
1406
+ key: string;
1407
+ from: "parameter";
1408
+ } | {
1409
+ from: "collection";
1410
+ items: {
1411
+ from: "node_output";
1412
+ nodeKey: string;
1413
+ port: string;
1414
+ }[];
1415
+ }> | undefined;
1416
+ outputPorts?: Record<string, string> | undefined;
1417
+ } | {
1418
+ key: string;
1419
+ kind: "router";
1420
+ stageKey: string;
1421
+ policyRef: string;
1422
+ outcomes: string[];
1423
+ unmatched: "block";
1424
+ label?: string | undefined;
1425
+ inputBindings?: Record<string, {
1426
+ from: "node_output";
1427
+ nodeKey: string;
1428
+ port: string;
1429
+ } | {
1430
+ from: "subject";
1431
+ } | {
1432
+ key: string;
1433
+ from: "parameter";
1434
+ } | {
1435
+ from: "collection";
1436
+ items: {
1437
+ from: "node_output";
1438
+ nodeKey: string;
1439
+ port: string;
1440
+ }[];
1441
+ }> | undefined;
1442
+ outputPorts?: Record<string, string> | undefined;
1443
+ } | {
1444
+ key: string;
1445
+ kind: "human_gate";
1446
+ laneKey: string;
1447
+ stageKey: string;
1448
+ policyRef: string;
1449
+ outcomes: string[];
1450
+ candidateRoleKey: string;
1451
+ label?: string | undefined;
1452
+ inputBindings?: Record<string, {
1453
+ from: "node_output";
1454
+ nodeKey: string;
1455
+ port: string;
1456
+ } | {
1457
+ from: "subject";
1458
+ } | {
1459
+ key: string;
1460
+ from: "parameter";
1461
+ } | {
1462
+ from: "collection";
1463
+ items: {
1464
+ from: "node_output";
1465
+ nodeKey: string;
1466
+ port: string;
1467
+ }[];
1468
+ }> | undefined;
1469
+ outputPorts?: Record<string, string> | undefined;
1470
+ outcomeLabels?: Record<string, string> | undefined;
1471
+ } | {
1472
+ key: string;
1473
+ kind: "external_wait";
1474
+ laneKey: string;
1475
+ stageKey: string;
1476
+ subscriptionRef: string;
1477
+ label?: string | undefined;
1478
+ inputBindings?: Record<string, {
1479
+ from: "node_output";
1480
+ nodeKey: string;
1481
+ port: string;
1482
+ } | {
1483
+ from: "subject";
1484
+ } | {
1485
+ key: string;
1486
+ from: "parameter";
1487
+ } | {
1488
+ from: "collection";
1489
+ items: {
1490
+ from: "node_output";
1491
+ nodeKey: string;
1492
+ port: string;
1493
+ }[];
1494
+ }> | undefined;
1495
+ outputPorts?: Record<string, string> | undefined;
1496
+ } | {
1497
+ key: string;
1498
+ outcome: string;
1499
+ kind: "terminal";
1500
+ stageKey: string;
1501
+ label?: string | undefined;
1502
+ inputBindings?: Record<string, {
1503
+ from: "node_output";
1504
+ nodeKey: string;
1505
+ port: string;
1506
+ } | {
1507
+ from: "subject";
1508
+ } | {
1509
+ key: string;
1510
+ from: "parameter";
1511
+ } | {
1512
+ from: "collection";
1513
+ items: {
1514
+ from: "node_output";
1515
+ nodeKey: string;
1516
+ port: string;
1517
+ }[];
1518
+ }> | undefined;
1519
+ outputPorts?: Record<string, string> | undefined;
1520
+ disposition?: "complete" | "await_new_subject" | undefined;
1521
+ })[];
1522
+ edges: {
1523
+ from: string;
1524
+ to: string;
1525
+ outcome?: string | undefined;
1526
+ }[];
1527
+ roundPolicy: {
1528
+ entryNodeKey: string;
1529
+ maxRounds: number;
1530
+ onRework: "await_new_subject_then_next_round";
1531
+ onLimit: "attention";
1532
+ newVersionWhileActive: "supersede_round";
1533
+ terminalOutcomes: string[];
1534
+ };
1535
+ failurePolicy: {
1536
+ requiredNodeFailure: "block_and_attention";
1537
+ unknownExecution: "inspect_without_replay";
1538
+ };
1539
+ hostRequirements?: {
1540
+ protocol: number;
1541
+ features: Record<string, number>;
1542
+ } | undefined;
1543
+ presentation?: {
1544
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1545
+ nodeDetailRef?: string | undefined;
1546
+ evidenceTypes?: string[] | undefined;
1547
+ } | undefined;
1548
+ metrics?: {
1549
+ dimensionRefs: string[];
1550
+ metricRefs: string[];
1551
+ } | undefined;
1552
+ }, {
1553
+ key: string;
1554
+ executionAuthority: "platform";
1555
+ topology: {
1556
+ source: "definition";
1557
+ };
1558
+ version: string;
1559
+ title: string;
1560
+ subjectResolverRef: string;
1561
+ roles: {
1562
+ key: string;
1563
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1564
+ }[];
1565
+ lanes: {
1566
+ key: string;
1567
+ roleKey: string;
1568
+ label: string;
1569
+ order: number;
1570
+ }[];
1571
+ stages: {
1572
+ key: string;
1573
+ label: string;
1574
+ order: number;
1575
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1576
+ }[];
1577
+ nodes: ({
1578
+ key: string;
1579
+ kind: "work";
1580
+ laneKey: string;
1581
+ operationRef: string;
1582
+ executorSlot: string;
1583
+ completionRef: string;
1584
+ stageKey: string;
1585
+ label?: string | undefined;
1586
+ resourceResolverRef?: string | undefined;
1587
+ outputSchemaRef?: string | undefined;
1588
+ inputBindings?: Record<string, {
1589
+ from: "node_output";
1590
+ nodeKey: string;
1591
+ port: string;
1592
+ } | {
1593
+ from: "subject";
1594
+ } | {
1595
+ key: string;
1596
+ from: "parameter";
1597
+ } | {
1598
+ from: "collection";
1599
+ items: {
1600
+ from: "node_output";
1601
+ nodeKey: string;
1602
+ port: string;
1603
+ }[];
1604
+ }> | undefined;
1605
+ outputPorts?: Record<string, string> | undefined;
1606
+ } | {
1607
+ key: string;
1608
+ kind: "fork";
1609
+ stageKey: string;
1610
+ label?: string | undefined;
1611
+ inputBindings?: Record<string, {
1612
+ from: "node_output";
1613
+ nodeKey: string;
1614
+ port: string;
1615
+ } | {
1616
+ from: "subject";
1617
+ } | {
1618
+ key: string;
1619
+ from: "parameter";
1620
+ } | {
1621
+ from: "collection";
1622
+ items: {
1623
+ from: "node_output";
1624
+ nodeKey: string;
1625
+ port: string;
1626
+ }[];
1627
+ }> | undefined;
1628
+ outputPorts?: Record<string, string> | undefined;
1629
+ } | {
1630
+ join: {
1631
+ mode: "all_selected";
1632
+ accept: "completed";
1633
+ };
1634
+ key: string;
1635
+ kind: "join";
1636
+ stageKey: string;
1637
+ label?: string | undefined;
1638
+ inputBindings?: Record<string, {
1639
+ from: "node_output";
1640
+ nodeKey: string;
1641
+ port: string;
1642
+ } | {
1643
+ from: "subject";
1644
+ } | {
1645
+ key: string;
1646
+ from: "parameter";
1647
+ } | {
1648
+ from: "collection";
1649
+ items: {
1650
+ from: "node_output";
1651
+ nodeKey: string;
1652
+ port: string;
1653
+ }[];
1654
+ }> | undefined;
1655
+ outputPorts?: Record<string, string> | undefined;
1656
+ } | {
1657
+ key: string;
1658
+ kind: "router";
1659
+ stageKey: string;
1660
+ policyRef: string;
1661
+ outcomes: string[];
1662
+ unmatched: "block";
1663
+ label?: string | undefined;
1664
+ inputBindings?: Record<string, {
1665
+ from: "node_output";
1666
+ nodeKey: string;
1667
+ port: string;
1668
+ } | {
1669
+ from: "subject";
1670
+ } | {
1671
+ key: string;
1672
+ from: "parameter";
1673
+ } | {
1674
+ from: "collection";
1675
+ items: {
1676
+ from: "node_output";
1677
+ nodeKey: string;
1678
+ port: string;
1679
+ }[];
1680
+ }> | undefined;
1681
+ outputPorts?: Record<string, string> | undefined;
1682
+ } | {
1683
+ key: string;
1684
+ kind: "human_gate";
1685
+ laneKey: string;
1686
+ stageKey: string;
1687
+ policyRef: string;
1688
+ outcomes: string[];
1689
+ candidateRoleKey: string;
1690
+ label?: string | undefined;
1691
+ inputBindings?: Record<string, {
1692
+ from: "node_output";
1693
+ nodeKey: string;
1694
+ port: string;
1695
+ } | {
1696
+ from: "subject";
1697
+ } | {
1698
+ key: string;
1699
+ from: "parameter";
1700
+ } | {
1701
+ from: "collection";
1702
+ items: {
1703
+ from: "node_output";
1704
+ nodeKey: string;
1705
+ port: string;
1706
+ }[];
1707
+ }> | undefined;
1708
+ outputPorts?: Record<string, string> | undefined;
1709
+ outcomeLabels?: Record<string, string> | undefined;
1710
+ } | {
1711
+ key: string;
1712
+ kind: "external_wait";
1713
+ laneKey: string;
1714
+ stageKey: string;
1715
+ subscriptionRef: string;
1716
+ label?: string | undefined;
1717
+ inputBindings?: Record<string, {
1718
+ from: "node_output";
1719
+ nodeKey: string;
1720
+ port: string;
1721
+ } | {
1722
+ from: "subject";
1723
+ } | {
1724
+ key: string;
1725
+ from: "parameter";
1726
+ } | {
1727
+ from: "collection";
1728
+ items: {
1729
+ from: "node_output";
1730
+ nodeKey: string;
1731
+ port: string;
1732
+ }[];
1733
+ }> | undefined;
1734
+ outputPorts?: Record<string, string> | undefined;
1735
+ } | {
1736
+ key: string;
1737
+ outcome: string;
1738
+ kind: "terminal";
1739
+ stageKey: string;
1740
+ label?: string | undefined;
1741
+ inputBindings?: Record<string, {
1742
+ from: "node_output";
1743
+ nodeKey: string;
1744
+ port: string;
1745
+ } | {
1746
+ from: "subject";
1747
+ } | {
1748
+ key: string;
1749
+ from: "parameter";
1750
+ } | {
1751
+ from: "collection";
1752
+ items: {
1753
+ from: "node_output";
1754
+ nodeKey: string;
1755
+ port: string;
1756
+ }[];
1757
+ }> | undefined;
1758
+ outputPorts?: Record<string, string> | undefined;
1759
+ disposition?: "complete" | "await_new_subject" | undefined;
1760
+ })[];
1761
+ edges: {
1762
+ from: string;
1763
+ to: string;
1764
+ outcome?: string | undefined;
1765
+ }[];
1766
+ roundPolicy: {
1767
+ entryNodeKey: string;
1768
+ maxRounds: number;
1769
+ onRework: "await_new_subject_then_next_round";
1770
+ onLimit: "attention";
1771
+ newVersionWhileActive: "supersede_round";
1772
+ terminalOutcomes: string[];
1773
+ };
1774
+ failurePolicy: {
1775
+ requiredNodeFailure: "block_and_attention";
1776
+ unknownExecution: "inspect_without_replay";
1777
+ };
1778
+ hostRequirements?: {
1779
+ protocol: number;
1780
+ features: Record<string, number>;
1781
+ } | undefined;
1782
+ presentation?: {
1783
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1784
+ nodeDetailRef?: string | undefined;
1785
+ evidenceTypes?: string[] | undefined;
1786
+ } | undefined;
1787
+ metrics?: {
1788
+ dimensionRefs: string[];
1789
+ metricRefs: string[];
1790
+ } | undefined;
1791
+ }>]>, {
1792
+ key: string;
1793
+ executionAuthority: "provider";
1794
+ providerRef: string;
1795
+ topology: {
1796
+ source: "provider";
1797
+ presentationAdapterRef: string;
1798
+ };
1799
+ version: string;
1800
+ title: string;
1801
+ subjectResolverRef: string;
1802
+ roles: {
1803
+ key: string;
1804
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1805
+ }[];
1806
+ lanes: {
1807
+ key: string;
1808
+ roleKey: string;
1809
+ label: string;
1810
+ order: number;
1811
+ }[];
1812
+ stages: {
1813
+ key: string;
1814
+ label: string;
1815
+ order: number;
1816
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1817
+ }[];
1818
+ actionRefs?: string[] | undefined;
1819
+ hostRequirements?: {
1820
+ protocol: number;
1821
+ features: Record<string, number>;
1822
+ } | undefined;
1823
+ presentation?: {
1824
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1825
+ nodeDetailRef?: string | undefined;
1826
+ evidenceTypes?: string[] | undefined;
1827
+ } | undefined;
1828
+ metrics?: {
1829
+ dimensionRefs: string[];
1830
+ metricRefs: string[];
1831
+ } | undefined;
1832
+ } | {
1833
+ key: string;
1834
+ executionAuthority: "platform";
1835
+ topology: {
1836
+ source: "definition";
1837
+ };
1838
+ version: string;
1839
+ title: string;
1840
+ subjectResolverRef: string;
1841
+ roles: {
1842
+ key: string;
1843
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1844
+ }[];
1845
+ lanes: {
1846
+ key: string;
1847
+ roleKey: string;
1848
+ label: string;
1849
+ order: number;
1850
+ }[];
1851
+ stages: {
1852
+ key: string;
1853
+ label: string;
1854
+ order: number;
1855
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1856
+ }[];
1857
+ nodes: ({
1858
+ key: string;
1859
+ kind: "work";
1860
+ laneKey: string;
1861
+ operationRef: string;
1862
+ executorSlot: string;
1863
+ completionRef: string;
1864
+ stageKey: string;
1865
+ label?: string | undefined;
1866
+ resourceResolverRef?: string | undefined;
1867
+ outputSchemaRef?: string | undefined;
1868
+ inputBindings?: Record<string, {
1869
+ from: "node_output";
1870
+ nodeKey: string;
1871
+ port: string;
1872
+ } | {
1873
+ from: "subject";
1874
+ } | {
1875
+ key: string;
1876
+ from: "parameter";
1877
+ } | {
1878
+ from: "collection";
1879
+ items: {
1880
+ from: "node_output";
1881
+ nodeKey: string;
1882
+ port: string;
1883
+ }[];
1884
+ }> | undefined;
1885
+ outputPorts?: Record<string, string> | undefined;
1886
+ } | {
1887
+ key: string;
1888
+ kind: "fork";
1889
+ stageKey: string;
1890
+ label?: string | undefined;
1891
+ inputBindings?: Record<string, {
1892
+ from: "node_output";
1893
+ nodeKey: string;
1894
+ port: string;
1895
+ } | {
1896
+ from: "subject";
1897
+ } | {
1898
+ key: string;
1899
+ from: "parameter";
1900
+ } | {
1901
+ from: "collection";
1902
+ items: {
1903
+ from: "node_output";
1904
+ nodeKey: string;
1905
+ port: string;
1906
+ }[];
1907
+ }> | undefined;
1908
+ outputPorts?: Record<string, string> | undefined;
1909
+ } | {
1910
+ join: {
1911
+ mode: "all_selected";
1912
+ accept: "completed";
1913
+ };
1914
+ key: string;
1915
+ kind: "join";
1916
+ stageKey: string;
1917
+ label?: string | undefined;
1918
+ inputBindings?: Record<string, {
1919
+ from: "node_output";
1920
+ nodeKey: string;
1921
+ port: string;
1922
+ } | {
1923
+ from: "subject";
1924
+ } | {
1925
+ key: string;
1926
+ from: "parameter";
1927
+ } | {
1928
+ from: "collection";
1929
+ items: {
1930
+ from: "node_output";
1931
+ nodeKey: string;
1932
+ port: string;
1933
+ }[];
1934
+ }> | undefined;
1935
+ outputPorts?: Record<string, string> | undefined;
1936
+ } | {
1937
+ key: string;
1938
+ kind: "router";
1939
+ stageKey: string;
1940
+ policyRef: string;
1941
+ outcomes: string[];
1942
+ unmatched: "block";
1943
+ label?: string | undefined;
1944
+ inputBindings?: Record<string, {
1945
+ from: "node_output";
1946
+ nodeKey: string;
1947
+ port: string;
1948
+ } | {
1949
+ from: "subject";
1950
+ } | {
1951
+ key: string;
1952
+ from: "parameter";
1953
+ } | {
1954
+ from: "collection";
1955
+ items: {
1956
+ from: "node_output";
1957
+ nodeKey: string;
1958
+ port: string;
1959
+ }[];
1960
+ }> | undefined;
1961
+ outputPorts?: Record<string, string> | undefined;
1962
+ } | {
1963
+ key: string;
1964
+ kind: "human_gate";
1965
+ laneKey: string;
1966
+ stageKey: string;
1967
+ policyRef: string;
1968
+ outcomes: string[];
1969
+ candidateRoleKey: string;
1970
+ label?: string | undefined;
1971
+ inputBindings?: Record<string, {
1972
+ from: "node_output";
1973
+ nodeKey: string;
1974
+ port: string;
1975
+ } | {
1976
+ from: "subject";
1977
+ } | {
1978
+ key: string;
1979
+ from: "parameter";
1980
+ } | {
1981
+ from: "collection";
1982
+ items: {
1983
+ from: "node_output";
1984
+ nodeKey: string;
1985
+ port: string;
1986
+ }[];
1987
+ }> | undefined;
1988
+ outputPorts?: Record<string, string> | undefined;
1989
+ outcomeLabels?: Record<string, string> | undefined;
1990
+ } | {
1991
+ key: string;
1992
+ kind: "external_wait";
1993
+ laneKey: string;
1994
+ stageKey: string;
1995
+ subscriptionRef: string;
1996
+ label?: string | undefined;
1997
+ inputBindings?: Record<string, {
1998
+ from: "node_output";
1999
+ nodeKey: string;
2000
+ port: string;
2001
+ } | {
2002
+ from: "subject";
2003
+ } | {
2004
+ key: string;
2005
+ from: "parameter";
2006
+ } | {
2007
+ from: "collection";
2008
+ items: {
2009
+ from: "node_output";
2010
+ nodeKey: string;
2011
+ port: string;
2012
+ }[];
2013
+ }> | undefined;
2014
+ outputPorts?: Record<string, string> | undefined;
2015
+ } | {
2016
+ key: string;
2017
+ outcome: string;
2018
+ kind: "terminal";
2019
+ stageKey: string;
2020
+ label?: string | undefined;
2021
+ inputBindings?: Record<string, {
2022
+ from: "node_output";
2023
+ nodeKey: string;
2024
+ port: string;
2025
+ } | {
2026
+ from: "subject";
2027
+ } | {
2028
+ key: string;
2029
+ from: "parameter";
2030
+ } | {
2031
+ from: "collection";
2032
+ items: {
2033
+ from: "node_output";
2034
+ nodeKey: string;
2035
+ port: string;
2036
+ }[];
2037
+ }> | undefined;
2038
+ outputPorts?: Record<string, string> | undefined;
2039
+ disposition?: "complete" | "await_new_subject" | undefined;
2040
+ })[];
2041
+ edges: {
2042
+ from: string;
2043
+ to: string;
2044
+ outcome?: string | undefined;
2045
+ }[];
2046
+ roundPolicy: {
2047
+ entryNodeKey: string;
2048
+ maxRounds: number;
2049
+ onRework: "await_new_subject_then_next_round";
2050
+ onLimit: "attention";
2051
+ newVersionWhileActive: "supersede_round";
2052
+ terminalOutcomes: string[];
2053
+ };
2054
+ failurePolicy: {
2055
+ requiredNodeFailure: "block_and_attention";
2056
+ unknownExecution: "inspect_without_replay";
2057
+ };
2058
+ hostRequirements?: {
2059
+ protocol: number;
2060
+ features: Record<string, number>;
2061
+ } | undefined;
2062
+ presentation?: {
2063
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2064
+ nodeDetailRef?: string | undefined;
2065
+ evidenceTypes?: string[] | undefined;
2066
+ } | undefined;
2067
+ metrics?: {
2068
+ dimensionRefs: string[];
2069
+ metricRefs: string[];
2070
+ } | undefined;
2071
+ }, {
2072
+ key: string;
2073
+ executionAuthority: "provider";
2074
+ providerRef: string;
2075
+ topology: {
2076
+ source: "provider";
2077
+ presentationAdapterRef: string;
2078
+ };
2079
+ version: string;
2080
+ title: string;
2081
+ subjectResolverRef: string;
2082
+ roles: {
2083
+ key: string;
2084
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2085
+ }[];
2086
+ lanes: {
2087
+ key: string;
2088
+ roleKey: string;
2089
+ label: string;
2090
+ order: number;
2091
+ }[];
2092
+ stages: {
2093
+ key: string;
2094
+ label: string;
2095
+ order: number;
2096
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2097
+ }[];
2098
+ actionRefs?: string[] | undefined;
2099
+ hostRequirements?: {
2100
+ protocol: number;
2101
+ features: Record<string, number>;
2102
+ } | undefined;
2103
+ presentation?: {
2104
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2105
+ nodeDetailRef?: string | undefined;
2106
+ evidenceTypes?: string[] | undefined;
2107
+ } | undefined;
2108
+ metrics?: {
2109
+ dimensionRefs: string[];
2110
+ metricRefs: string[];
2111
+ } | undefined;
2112
+ } | {
2113
+ key: string;
2114
+ executionAuthority: "platform";
2115
+ topology: {
2116
+ source: "definition";
2117
+ };
2118
+ version: string;
2119
+ title: string;
2120
+ subjectResolverRef: string;
2121
+ roles: {
2122
+ key: string;
2123
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2124
+ }[];
2125
+ lanes: {
2126
+ key: string;
2127
+ roleKey: string;
2128
+ label: string;
2129
+ order: number;
2130
+ }[];
2131
+ stages: {
2132
+ key: string;
2133
+ label: string;
2134
+ order: number;
2135
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2136
+ }[];
2137
+ nodes: ({
2138
+ key: string;
2139
+ kind: "work";
2140
+ laneKey: string;
2141
+ operationRef: string;
2142
+ executorSlot: string;
2143
+ completionRef: string;
2144
+ stageKey: string;
2145
+ label?: string | undefined;
2146
+ resourceResolverRef?: string | undefined;
2147
+ outputSchemaRef?: string | undefined;
2148
+ inputBindings?: Record<string, {
2149
+ from: "node_output";
2150
+ nodeKey: string;
2151
+ port: string;
2152
+ } | {
2153
+ from: "subject";
2154
+ } | {
2155
+ key: string;
2156
+ from: "parameter";
2157
+ } | {
2158
+ from: "collection";
2159
+ items: {
2160
+ from: "node_output";
2161
+ nodeKey: string;
2162
+ port: string;
2163
+ }[];
2164
+ }> | undefined;
2165
+ outputPorts?: Record<string, string> | undefined;
2166
+ } | {
2167
+ key: string;
2168
+ kind: "fork";
2169
+ stageKey: string;
2170
+ label?: string | undefined;
2171
+ inputBindings?: Record<string, {
2172
+ from: "node_output";
2173
+ nodeKey: string;
2174
+ port: string;
2175
+ } | {
2176
+ from: "subject";
2177
+ } | {
2178
+ key: string;
2179
+ from: "parameter";
2180
+ } | {
2181
+ from: "collection";
2182
+ items: {
2183
+ from: "node_output";
2184
+ nodeKey: string;
2185
+ port: string;
2186
+ }[];
2187
+ }> | undefined;
2188
+ outputPorts?: Record<string, string> | undefined;
2189
+ } | {
2190
+ join: {
2191
+ mode: "all_selected";
2192
+ accept: "completed";
2193
+ };
2194
+ key: string;
2195
+ kind: "join";
2196
+ stageKey: string;
2197
+ label?: string | undefined;
2198
+ inputBindings?: Record<string, {
2199
+ from: "node_output";
2200
+ nodeKey: string;
2201
+ port: string;
2202
+ } | {
2203
+ from: "subject";
2204
+ } | {
2205
+ key: string;
2206
+ from: "parameter";
2207
+ } | {
2208
+ from: "collection";
2209
+ items: {
2210
+ from: "node_output";
2211
+ nodeKey: string;
2212
+ port: string;
2213
+ }[];
2214
+ }> | undefined;
2215
+ outputPorts?: Record<string, string> | undefined;
2216
+ } | {
2217
+ key: string;
2218
+ kind: "router";
2219
+ stageKey: string;
2220
+ policyRef: string;
2221
+ outcomes: string[];
2222
+ unmatched: "block";
2223
+ label?: string | undefined;
2224
+ inputBindings?: Record<string, {
2225
+ from: "node_output";
2226
+ nodeKey: string;
2227
+ port: string;
2228
+ } | {
2229
+ from: "subject";
2230
+ } | {
2231
+ key: string;
2232
+ from: "parameter";
2233
+ } | {
2234
+ from: "collection";
2235
+ items: {
2236
+ from: "node_output";
2237
+ nodeKey: string;
2238
+ port: string;
2239
+ }[];
2240
+ }> | undefined;
2241
+ outputPorts?: Record<string, string> | undefined;
2242
+ } | {
2243
+ key: string;
2244
+ kind: "human_gate";
2245
+ laneKey: string;
2246
+ stageKey: string;
2247
+ policyRef: string;
2248
+ outcomes: string[];
2249
+ candidateRoleKey: string;
2250
+ label?: string | undefined;
2251
+ inputBindings?: Record<string, {
2252
+ from: "node_output";
2253
+ nodeKey: string;
2254
+ port: string;
2255
+ } | {
2256
+ from: "subject";
2257
+ } | {
2258
+ key: string;
2259
+ from: "parameter";
2260
+ } | {
2261
+ from: "collection";
2262
+ items: {
2263
+ from: "node_output";
2264
+ nodeKey: string;
2265
+ port: string;
2266
+ }[];
2267
+ }> | undefined;
2268
+ outputPorts?: Record<string, string> | undefined;
2269
+ outcomeLabels?: Record<string, string> | undefined;
2270
+ } | {
2271
+ key: string;
2272
+ kind: "external_wait";
2273
+ laneKey: string;
2274
+ stageKey: string;
2275
+ subscriptionRef: string;
2276
+ label?: string | undefined;
2277
+ inputBindings?: Record<string, {
2278
+ from: "node_output";
2279
+ nodeKey: string;
2280
+ port: string;
2281
+ } | {
2282
+ from: "subject";
2283
+ } | {
2284
+ key: string;
2285
+ from: "parameter";
2286
+ } | {
2287
+ from: "collection";
2288
+ items: {
2289
+ from: "node_output";
2290
+ nodeKey: string;
2291
+ port: string;
2292
+ }[];
2293
+ }> | undefined;
2294
+ outputPorts?: Record<string, string> | undefined;
2295
+ } | {
2296
+ key: string;
2297
+ outcome: string;
2298
+ kind: "terminal";
2299
+ stageKey: string;
2300
+ label?: string | undefined;
2301
+ inputBindings?: Record<string, {
2302
+ from: "node_output";
2303
+ nodeKey: string;
2304
+ port: string;
2305
+ } | {
2306
+ from: "subject";
2307
+ } | {
2308
+ key: string;
2309
+ from: "parameter";
2310
+ } | {
2311
+ from: "collection";
2312
+ items: {
2313
+ from: "node_output";
2314
+ nodeKey: string;
2315
+ port: string;
2316
+ }[];
2317
+ }> | undefined;
2318
+ outputPorts?: Record<string, string> | undefined;
2319
+ disposition?: "complete" | "await_new_subject" | undefined;
2320
+ })[];
2321
+ edges: {
2322
+ from: string;
2323
+ to: string;
2324
+ outcome?: string | undefined;
2325
+ }[];
2326
+ roundPolicy: {
2327
+ entryNodeKey: string;
2328
+ maxRounds: number;
2329
+ onRework: "await_new_subject_then_next_round";
2330
+ onLimit: "attention";
2331
+ newVersionWhileActive: "supersede_round";
2332
+ terminalOutcomes: string[];
2333
+ };
2334
+ failurePolicy: {
2335
+ requiredNodeFailure: "block_and_attention";
2336
+ unknownExecution: "inspect_without_replay";
2337
+ };
2338
+ hostRequirements?: {
2339
+ protocol: number;
2340
+ features: Record<string, number>;
2341
+ } | undefined;
2342
+ presentation?: {
2343
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2344
+ nodeDetailRef?: string | undefined;
2345
+ evidenceTypes?: string[] | undefined;
2346
+ } | undefined;
2347
+ metrics?: {
2348
+ dimensionRefs: string[];
2349
+ metricRefs: string[];
2350
+ } | undefined;
2351
+ }>;
2352
+ binding: z.ZodObject<{
2353
+ templateRef: z.ZodString;
2354
+ roleBindings: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
2355
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
2356
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
2357
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2358
+ }, "strict", z.ZodTypeAny, {
2359
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2360
+ selectionKey: string;
2361
+ requiredCapabilities?: string[] | undefined;
2362
+ }, {
2363
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2364
+ selectionKey: string;
2365
+ requiredCapabilities?: string[] | undefined;
2366
+ }>>;
2367
+ executorBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
2368
+ kind: z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>;
2369
+ selectionKey: z.ZodEffects<z.ZodString, string, string>;
2370
+ requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2371
+ } & {
2372
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
2373
+ workspaceId: z.ZodOptional<z.ZodString>;
2374
+ }, "strict", z.ZodTypeAny, {
2375
+ roleKey: string;
2376
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2377
+ selectionKey: string;
2378
+ requiredCapabilities?: string[] | undefined;
2379
+ workspaceId?: string | undefined;
2380
+ }, {
2381
+ roleKey: string;
2382
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2383
+ selectionKey: string;
2384
+ requiredCapabilities?: string[] | undefined;
2385
+ workspaceId?: string | undefined;
2386
+ }>, {
2387
+ roleKey: string;
2388
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2389
+ selectionKey: string;
2390
+ requiredCapabilities?: string[] | undefined;
2391
+ workspaceId?: string | undefined;
2392
+ }, {
2393
+ roleKey: string;
2394
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2395
+ selectionKey: string;
2396
+ requiredCapabilities?: string[] | undefined;
2397
+ workspaceId?: string | undefined;
2398
+ }>>>;
2399
+ providerConfiguration: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>>;
2400
+ parameters: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>;
2401
+ limits: z.ZodOptional<z.ZodObject<{
2402
+ maxConcurrentExecutions: z.ZodNumber;
2403
+ maxTechnicalAttemptsPerNode: z.ZodNumber;
2404
+ runTimeoutMinutes: z.ZodNumber;
2405
+ nativeModelBudget: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2406
+ maxCalls: z.ZodNumber;
2407
+ maxTokens: z.ZodNumber;
2408
+ reservationTokens: z.ZodNumber;
2409
+ }, "strict", z.ZodTypeAny, {
2410
+ maxCalls: number;
2411
+ maxTokens: number;
2412
+ reservationTokens: number;
2413
+ }, {
2414
+ maxCalls: number;
2415
+ maxTokens: number;
2416
+ reservationTokens: number;
2417
+ }>, {
2418
+ maxCalls: number;
2419
+ maxTokens: number;
2420
+ reservationTokens: number;
2421
+ }, {
2422
+ maxCalls: number;
2423
+ maxTokens: number;
2424
+ reservationTokens: number;
2425
+ }>>;
2426
+ }, "strict", z.ZodTypeAny, {
2427
+ maxConcurrentExecutions: number;
2428
+ maxTechnicalAttemptsPerNode: number;
2429
+ runTimeoutMinutes: number;
2430
+ nativeModelBudget?: {
2431
+ maxCalls: number;
2432
+ maxTokens: number;
2433
+ reservationTokens: number;
2434
+ } | undefined;
2435
+ }, {
2436
+ maxConcurrentExecutions: number;
2437
+ maxTechnicalAttemptsPerNode: number;
2438
+ runTimeoutMinutes: number;
2439
+ nativeModelBudget?: {
2440
+ maxCalls: number;
2441
+ maxTokens: number;
2442
+ reservationTokens: number;
2443
+ } | undefined;
2444
+ }>>;
2445
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2446
+ adapterRef: z.ZodString;
2447
+ events: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2448
+ }, "strict", z.ZodTypeAny, {
2449
+ adapterRef: string;
2450
+ events: string[];
2451
+ }, {
2452
+ adapterRef: string;
2453
+ events: string[];
2454
+ }>, "many">>;
2455
+ }, "strict", z.ZodTypeAny, {
2456
+ templateRef: string;
2457
+ roleBindings: Record<string, {
2458
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2459
+ selectionKey: string;
2460
+ requiredCapabilities?: string[] | undefined;
2461
+ }>;
2462
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2463
+ executorBindings?: Record<string, {
2464
+ roleKey: string;
2465
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2466
+ selectionKey: string;
2467
+ requiredCapabilities?: string[] | undefined;
2468
+ workspaceId?: string | undefined;
2469
+ }> | undefined;
2470
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
2471
+ limits?: {
2472
+ maxConcurrentExecutions: number;
2473
+ maxTechnicalAttemptsPerNode: number;
2474
+ runTimeoutMinutes: number;
2475
+ nativeModelBudget?: {
2476
+ maxCalls: number;
2477
+ maxTokens: number;
2478
+ reservationTokens: number;
2479
+ } | undefined;
2480
+ } | undefined;
2481
+ triggers?: {
2482
+ adapterRef: string;
2483
+ events: string[];
2484
+ }[] | undefined;
2485
+ }, {
2486
+ templateRef: string;
2487
+ roleBindings: Record<string, {
2488
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2489
+ selectionKey: string;
2490
+ requiredCapabilities?: string[] | undefined;
2491
+ }>;
2492
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2493
+ executorBindings?: Record<string, {
2494
+ roleKey: string;
2495
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2496
+ selectionKey: string;
2497
+ requiredCapabilities?: string[] | undefined;
2498
+ workspaceId?: string | undefined;
2499
+ }> | undefined;
2500
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
2501
+ limits?: {
2502
+ maxConcurrentExecutions: number;
2503
+ maxTechnicalAttemptsPerNode: number;
2504
+ runTimeoutMinutes: number;
2505
+ nativeModelBudget?: {
2506
+ maxCalls: number;
2507
+ maxTokens: number;
2508
+ reservationTokens: number;
2509
+ } | undefined;
2510
+ } | undefined;
2511
+ triggers?: {
2512
+ adapterRef: string;
2513
+ events: string[];
2514
+ }[] | undefined;
2515
+ }>;
2516
+ }, "strict", z.ZodTypeAny, {
2517
+ binding: {
2518
+ templateRef: string;
2519
+ roleBindings: Record<string, {
2520
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2521
+ selectionKey: string;
2522
+ requiredCapabilities?: string[] | undefined;
2523
+ }>;
2524
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2525
+ executorBindings?: Record<string, {
2526
+ roleKey: string;
2527
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2528
+ selectionKey: string;
2529
+ requiredCapabilities?: string[] | undefined;
2530
+ workspaceId?: string | undefined;
2531
+ }> | undefined;
2532
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
2533
+ limits?: {
2534
+ maxConcurrentExecutions: number;
2535
+ maxTechnicalAttemptsPerNode: number;
2536
+ runTimeoutMinutes: number;
2537
+ nativeModelBudget?: {
2538
+ maxCalls: number;
2539
+ maxTokens: number;
2540
+ reservationTokens: number;
2541
+ } | undefined;
2542
+ } | undefined;
2543
+ triggers?: {
2544
+ adapterRef: string;
2545
+ events: string[];
2546
+ }[] | undefined;
2547
+ };
2548
+ schemaVersion: 1;
2549
+ template: {
2550
+ key: string;
2551
+ executionAuthority: "provider";
2552
+ providerRef: string;
2553
+ topology: {
2554
+ source: "provider";
2555
+ presentationAdapterRef: string;
2556
+ };
2557
+ version: string;
2558
+ title: string;
2559
+ subjectResolverRef: string;
2560
+ roles: {
2561
+ key: string;
2562
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2563
+ }[];
2564
+ lanes: {
2565
+ key: string;
2566
+ roleKey: string;
2567
+ label: string;
2568
+ order: number;
2569
+ }[];
2570
+ stages: {
2571
+ key: string;
2572
+ label: string;
2573
+ order: number;
2574
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2575
+ }[];
2576
+ actionRefs?: string[] | undefined;
2577
+ hostRequirements?: {
2578
+ protocol: number;
2579
+ features: Record<string, number>;
2580
+ } | undefined;
2581
+ presentation?: {
2582
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2583
+ nodeDetailRef?: string | undefined;
2584
+ evidenceTypes?: string[] | undefined;
2585
+ } | undefined;
2586
+ metrics?: {
2587
+ dimensionRefs: string[];
2588
+ metricRefs: string[];
2589
+ } | undefined;
2590
+ } | {
2591
+ key: string;
2592
+ executionAuthority: "platform";
2593
+ topology: {
2594
+ source: "definition";
2595
+ };
2596
+ version: string;
2597
+ title: string;
2598
+ subjectResolverRef: string;
2599
+ roles: {
2600
+ key: string;
2601
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2602
+ }[];
2603
+ lanes: {
2604
+ key: string;
2605
+ roleKey: string;
2606
+ label: string;
2607
+ order: number;
2608
+ }[];
2609
+ stages: {
2610
+ key: string;
2611
+ label: string;
2612
+ order: number;
2613
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2614
+ }[];
2615
+ nodes: ({
2616
+ key: string;
2617
+ kind: "work";
2618
+ laneKey: string;
2619
+ operationRef: string;
2620
+ executorSlot: string;
2621
+ completionRef: string;
2622
+ stageKey: string;
2623
+ label?: string | undefined;
2624
+ resourceResolverRef?: string | undefined;
2625
+ outputSchemaRef?: string | undefined;
2626
+ inputBindings?: Record<string, {
2627
+ from: "node_output";
2628
+ nodeKey: string;
2629
+ port: string;
2630
+ } | {
2631
+ from: "subject";
2632
+ } | {
2633
+ key: string;
2634
+ from: "parameter";
2635
+ } | {
2636
+ from: "collection";
2637
+ items: {
2638
+ from: "node_output";
2639
+ nodeKey: string;
2640
+ port: string;
2641
+ }[];
2642
+ }> | undefined;
2643
+ outputPorts?: Record<string, string> | undefined;
2644
+ } | {
2645
+ key: string;
2646
+ kind: "fork";
2647
+ stageKey: string;
2648
+ label?: string | undefined;
2649
+ inputBindings?: Record<string, {
2650
+ from: "node_output";
2651
+ nodeKey: string;
2652
+ port: string;
2653
+ } | {
2654
+ from: "subject";
2655
+ } | {
2656
+ key: string;
2657
+ from: "parameter";
2658
+ } | {
2659
+ from: "collection";
2660
+ items: {
2661
+ from: "node_output";
2662
+ nodeKey: string;
2663
+ port: string;
2664
+ }[];
2665
+ }> | undefined;
2666
+ outputPorts?: Record<string, string> | undefined;
2667
+ } | {
2668
+ join: {
2669
+ mode: "all_selected";
2670
+ accept: "completed";
2671
+ };
2672
+ key: string;
2673
+ kind: "join";
2674
+ stageKey: string;
2675
+ label?: string | undefined;
2676
+ inputBindings?: Record<string, {
2677
+ from: "node_output";
2678
+ nodeKey: string;
2679
+ port: string;
2680
+ } | {
2681
+ from: "subject";
2682
+ } | {
2683
+ key: string;
2684
+ from: "parameter";
2685
+ } | {
2686
+ from: "collection";
2687
+ items: {
2688
+ from: "node_output";
2689
+ nodeKey: string;
2690
+ port: string;
2691
+ }[];
2692
+ }> | undefined;
2693
+ outputPorts?: Record<string, string> | undefined;
2694
+ } | {
2695
+ key: string;
2696
+ kind: "router";
2697
+ stageKey: string;
2698
+ policyRef: string;
2699
+ outcomes: string[];
2700
+ unmatched: "block";
2701
+ label?: string | undefined;
2702
+ inputBindings?: Record<string, {
2703
+ from: "node_output";
2704
+ nodeKey: string;
2705
+ port: string;
2706
+ } | {
2707
+ from: "subject";
2708
+ } | {
2709
+ key: string;
2710
+ from: "parameter";
2711
+ } | {
2712
+ from: "collection";
2713
+ items: {
2714
+ from: "node_output";
2715
+ nodeKey: string;
2716
+ port: string;
2717
+ }[];
2718
+ }> | undefined;
2719
+ outputPorts?: Record<string, string> | undefined;
2720
+ } | {
2721
+ key: string;
2722
+ kind: "human_gate";
2723
+ laneKey: string;
2724
+ stageKey: string;
2725
+ policyRef: string;
2726
+ outcomes: string[];
2727
+ candidateRoleKey: string;
2728
+ label?: string | undefined;
2729
+ inputBindings?: Record<string, {
2730
+ from: "node_output";
2731
+ nodeKey: string;
2732
+ port: string;
2733
+ } | {
2734
+ from: "subject";
2735
+ } | {
2736
+ key: string;
2737
+ from: "parameter";
2738
+ } | {
2739
+ from: "collection";
2740
+ items: {
2741
+ from: "node_output";
2742
+ nodeKey: string;
2743
+ port: string;
2744
+ }[];
2745
+ }> | undefined;
2746
+ outputPorts?: Record<string, string> | undefined;
2747
+ outcomeLabels?: Record<string, string> | undefined;
2748
+ } | {
2749
+ key: string;
2750
+ kind: "external_wait";
2751
+ laneKey: string;
2752
+ stageKey: string;
2753
+ subscriptionRef: string;
2754
+ label?: string | undefined;
2755
+ inputBindings?: Record<string, {
2756
+ from: "node_output";
2757
+ nodeKey: string;
2758
+ port: string;
2759
+ } | {
2760
+ from: "subject";
2761
+ } | {
2762
+ key: string;
2763
+ from: "parameter";
2764
+ } | {
2765
+ from: "collection";
2766
+ items: {
2767
+ from: "node_output";
2768
+ nodeKey: string;
2769
+ port: string;
2770
+ }[];
2771
+ }> | undefined;
2772
+ outputPorts?: Record<string, string> | undefined;
2773
+ } | {
2774
+ key: string;
2775
+ outcome: string;
2776
+ kind: "terminal";
2777
+ stageKey: string;
2778
+ label?: string | undefined;
2779
+ inputBindings?: Record<string, {
2780
+ from: "node_output";
2781
+ nodeKey: string;
2782
+ port: string;
2783
+ } | {
2784
+ from: "subject";
2785
+ } | {
2786
+ key: string;
2787
+ from: "parameter";
2788
+ } | {
2789
+ from: "collection";
2790
+ items: {
2791
+ from: "node_output";
2792
+ nodeKey: string;
2793
+ port: string;
2794
+ }[];
2795
+ }> | undefined;
2796
+ outputPorts?: Record<string, string> | undefined;
2797
+ disposition?: "complete" | "await_new_subject" | undefined;
2798
+ })[];
2799
+ edges: {
2800
+ from: string;
2801
+ to: string;
2802
+ outcome?: string | undefined;
2803
+ }[];
2804
+ roundPolicy: {
2805
+ entryNodeKey: string;
2806
+ maxRounds: number;
2807
+ onRework: "await_new_subject_then_next_round";
2808
+ onLimit: "attention";
2809
+ newVersionWhileActive: "supersede_round";
2810
+ terminalOutcomes: string[];
2811
+ };
2812
+ failurePolicy: {
2813
+ requiredNodeFailure: "block_and_attention";
2814
+ unknownExecution: "inspect_without_replay";
2815
+ };
2816
+ hostRequirements?: {
2817
+ protocol: number;
2818
+ features: Record<string, number>;
2819
+ } | undefined;
2820
+ presentation?: {
2821
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2822
+ nodeDetailRef?: string | undefined;
2823
+ evidenceTypes?: string[] | undefined;
2824
+ } | undefined;
2825
+ metrics?: {
2826
+ dimensionRefs: string[];
2827
+ metricRefs: string[];
2828
+ } | undefined;
2829
+ };
2830
+ }, {
2831
+ binding: {
2832
+ templateRef: string;
2833
+ roleBindings: Record<string, {
2834
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2835
+ selectionKey: string;
2836
+ requiredCapabilities?: string[] | undefined;
2837
+ }>;
2838
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
2839
+ executorBindings?: Record<string, {
2840
+ roleKey: string;
2841
+ kind: "assistant" | "runtime_binding" | "human" | "service";
2842
+ selectionKey: string;
2843
+ requiredCapabilities?: string[] | undefined;
2844
+ workspaceId?: string | undefined;
2845
+ }> | undefined;
2846
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
2847
+ limits?: {
2848
+ maxConcurrentExecutions: number;
2849
+ maxTechnicalAttemptsPerNode: number;
2850
+ runTimeoutMinutes: number;
2851
+ nativeModelBudget?: {
2852
+ maxCalls: number;
2853
+ maxTokens: number;
2854
+ reservationTokens: number;
2855
+ } | undefined;
2856
+ } | undefined;
2857
+ triggers?: {
2858
+ adapterRef: string;
2859
+ events: string[];
2860
+ }[] | undefined;
2861
+ };
2862
+ schemaVersion: 1;
2863
+ template: {
2864
+ key: string;
2865
+ executionAuthority: "provider";
2866
+ providerRef: string;
2867
+ topology: {
2868
+ source: "provider";
2869
+ presentationAdapterRef: string;
2870
+ };
2871
+ version: string;
2872
+ title: string;
2873
+ subjectResolverRef: string;
2874
+ roles: {
2875
+ key: string;
2876
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2877
+ }[];
2878
+ lanes: {
2879
+ key: string;
2880
+ roleKey: string;
2881
+ label: string;
2882
+ order: number;
2883
+ }[];
2884
+ stages: {
2885
+ key: string;
2886
+ label: string;
2887
+ order: number;
2888
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2889
+ }[];
2890
+ actionRefs?: string[] | undefined;
2891
+ hostRequirements?: {
2892
+ protocol: number;
2893
+ features: Record<string, number>;
2894
+ } | undefined;
2895
+ presentation?: {
2896
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2897
+ nodeDetailRef?: string | undefined;
2898
+ evidenceTypes?: string[] | undefined;
2899
+ } | undefined;
2900
+ metrics?: {
2901
+ dimensionRefs: string[];
2902
+ metricRefs: string[];
2903
+ } | undefined;
2904
+ } | {
2905
+ key: string;
2906
+ executionAuthority: "platform";
2907
+ topology: {
2908
+ source: "definition";
2909
+ };
2910
+ version: string;
2911
+ title: string;
2912
+ subjectResolverRef: string;
2913
+ roles: {
2914
+ key: string;
2915
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2916
+ }[];
2917
+ lanes: {
2918
+ key: string;
2919
+ roleKey: string;
2920
+ label: string;
2921
+ order: number;
2922
+ }[];
2923
+ stages: {
2924
+ key: string;
2925
+ label: string;
2926
+ order: number;
2927
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2928
+ }[];
2929
+ nodes: ({
2930
+ key: string;
2931
+ kind: "work";
2932
+ laneKey: string;
2933
+ operationRef: string;
2934
+ executorSlot: string;
2935
+ completionRef: string;
2936
+ stageKey: string;
2937
+ label?: string | undefined;
2938
+ resourceResolverRef?: string | undefined;
2939
+ outputSchemaRef?: string | undefined;
2940
+ inputBindings?: Record<string, {
2941
+ from: "node_output";
2942
+ nodeKey: string;
2943
+ port: string;
2944
+ } | {
2945
+ from: "subject";
2946
+ } | {
2947
+ key: string;
2948
+ from: "parameter";
2949
+ } | {
2950
+ from: "collection";
2951
+ items: {
2952
+ from: "node_output";
2953
+ nodeKey: string;
2954
+ port: string;
2955
+ }[];
2956
+ }> | undefined;
2957
+ outputPorts?: Record<string, string> | undefined;
2958
+ } | {
2959
+ key: string;
2960
+ kind: "fork";
2961
+ stageKey: string;
2962
+ label?: string | undefined;
2963
+ inputBindings?: Record<string, {
2964
+ from: "node_output";
2965
+ nodeKey: string;
2966
+ port: string;
2967
+ } | {
2968
+ from: "subject";
2969
+ } | {
2970
+ key: string;
2971
+ from: "parameter";
2972
+ } | {
2973
+ from: "collection";
2974
+ items: {
2975
+ from: "node_output";
2976
+ nodeKey: string;
2977
+ port: string;
2978
+ }[];
2979
+ }> | undefined;
2980
+ outputPorts?: Record<string, string> | undefined;
2981
+ } | {
2982
+ join: {
2983
+ mode: "all_selected";
2984
+ accept: "completed";
2985
+ };
2986
+ key: string;
2987
+ kind: "join";
2988
+ stageKey: string;
2989
+ label?: string | undefined;
2990
+ inputBindings?: Record<string, {
2991
+ from: "node_output";
2992
+ nodeKey: string;
2993
+ port: string;
2994
+ } | {
2995
+ from: "subject";
2996
+ } | {
2997
+ key: string;
2998
+ from: "parameter";
2999
+ } | {
3000
+ from: "collection";
3001
+ items: {
3002
+ from: "node_output";
3003
+ nodeKey: string;
3004
+ port: string;
3005
+ }[];
3006
+ }> | undefined;
3007
+ outputPorts?: Record<string, string> | undefined;
3008
+ } | {
3009
+ key: string;
3010
+ kind: "router";
3011
+ stageKey: string;
3012
+ policyRef: string;
3013
+ outcomes: string[];
3014
+ unmatched: "block";
3015
+ label?: string | undefined;
3016
+ inputBindings?: Record<string, {
3017
+ from: "node_output";
3018
+ nodeKey: string;
3019
+ port: string;
3020
+ } | {
3021
+ from: "subject";
3022
+ } | {
3023
+ key: string;
3024
+ from: "parameter";
3025
+ } | {
3026
+ from: "collection";
3027
+ items: {
3028
+ from: "node_output";
3029
+ nodeKey: string;
3030
+ port: string;
3031
+ }[];
3032
+ }> | undefined;
3033
+ outputPorts?: Record<string, string> | undefined;
3034
+ } | {
3035
+ key: string;
3036
+ kind: "human_gate";
3037
+ laneKey: string;
3038
+ stageKey: string;
3039
+ policyRef: string;
3040
+ outcomes: string[];
3041
+ candidateRoleKey: string;
3042
+ label?: string | undefined;
3043
+ inputBindings?: Record<string, {
3044
+ from: "node_output";
3045
+ nodeKey: string;
3046
+ port: string;
3047
+ } | {
3048
+ from: "subject";
3049
+ } | {
3050
+ key: string;
3051
+ from: "parameter";
3052
+ } | {
3053
+ from: "collection";
3054
+ items: {
3055
+ from: "node_output";
3056
+ nodeKey: string;
3057
+ port: string;
3058
+ }[];
3059
+ }> | undefined;
3060
+ outputPorts?: Record<string, string> | undefined;
3061
+ outcomeLabels?: Record<string, string> | undefined;
3062
+ } | {
3063
+ key: string;
3064
+ kind: "external_wait";
3065
+ laneKey: string;
3066
+ stageKey: string;
3067
+ subscriptionRef: string;
3068
+ label?: string | undefined;
3069
+ inputBindings?: Record<string, {
3070
+ from: "node_output";
3071
+ nodeKey: string;
3072
+ port: string;
3073
+ } | {
3074
+ from: "subject";
3075
+ } | {
3076
+ key: string;
3077
+ from: "parameter";
3078
+ } | {
3079
+ from: "collection";
3080
+ items: {
3081
+ from: "node_output";
3082
+ nodeKey: string;
3083
+ port: string;
3084
+ }[];
3085
+ }> | undefined;
3086
+ outputPorts?: Record<string, string> | undefined;
3087
+ } | {
3088
+ key: string;
3089
+ outcome: string;
3090
+ kind: "terminal";
3091
+ stageKey: string;
3092
+ label?: string | undefined;
3093
+ inputBindings?: Record<string, {
3094
+ from: "node_output";
3095
+ nodeKey: string;
3096
+ port: string;
3097
+ } | {
3098
+ from: "subject";
3099
+ } | {
3100
+ key: string;
3101
+ from: "parameter";
3102
+ } | {
3103
+ from: "collection";
3104
+ items: {
3105
+ from: "node_output";
3106
+ nodeKey: string;
3107
+ port: string;
3108
+ }[];
3109
+ }> | undefined;
3110
+ outputPorts?: Record<string, string> | undefined;
3111
+ disposition?: "complete" | "await_new_subject" | undefined;
3112
+ })[];
3113
+ edges: {
3114
+ from: string;
3115
+ to: string;
3116
+ outcome?: string | undefined;
3117
+ }[];
3118
+ roundPolicy: {
3119
+ entryNodeKey: string;
3120
+ maxRounds: number;
3121
+ onRework: "await_new_subject_then_next_round";
3122
+ onLimit: "attention";
3123
+ newVersionWhileActive: "supersede_round";
3124
+ terminalOutcomes: string[];
3125
+ };
3126
+ failurePolicy: {
3127
+ requiredNodeFailure: "block_and_attention";
3128
+ unknownExecution: "inspect_without_replay";
3129
+ };
3130
+ hostRequirements?: {
3131
+ protocol: number;
3132
+ features: Record<string, number>;
3133
+ } | undefined;
3134
+ presentation?: {
3135
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3136
+ nodeDetailRef?: string | undefined;
3137
+ evidenceTypes?: string[] | undefined;
3138
+ } | undefined;
3139
+ metrics?: {
3140
+ dimensionRefs: string[];
3141
+ metricRefs: string[];
3142
+ } | undefined;
3143
+ };
3144
+ }>, {
3145
+ binding: {
3146
+ templateRef: string;
3147
+ roleBindings: Record<string, {
3148
+ kind: "assistant" | "runtime_binding" | "human" | "service";
3149
+ selectionKey: string;
3150
+ requiredCapabilities?: string[] | undefined;
3151
+ }>;
3152
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3153
+ executorBindings?: Record<string, {
3154
+ roleKey: string;
3155
+ kind: "assistant" | "runtime_binding" | "human" | "service";
3156
+ selectionKey: string;
3157
+ requiredCapabilities?: string[] | undefined;
3158
+ workspaceId?: string | undefined;
3159
+ }> | undefined;
3160
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
3161
+ limits?: {
3162
+ maxConcurrentExecutions: number;
3163
+ maxTechnicalAttemptsPerNode: number;
3164
+ runTimeoutMinutes: number;
3165
+ nativeModelBudget?: {
3166
+ maxCalls: number;
3167
+ maxTokens: number;
3168
+ reservationTokens: number;
3169
+ } | undefined;
3170
+ } | undefined;
3171
+ triggers?: {
3172
+ adapterRef: string;
3173
+ events: string[];
3174
+ }[] | undefined;
3175
+ };
3176
+ schemaVersion: 1;
3177
+ template: {
3178
+ key: string;
3179
+ executionAuthority: "provider";
3180
+ providerRef: string;
3181
+ topology: {
3182
+ source: "provider";
3183
+ presentationAdapterRef: string;
3184
+ };
3185
+ version: string;
3186
+ title: string;
3187
+ subjectResolverRef: string;
3188
+ roles: {
3189
+ key: string;
3190
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3191
+ }[];
3192
+ lanes: {
3193
+ key: string;
3194
+ roleKey: string;
3195
+ label: string;
3196
+ order: number;
3197
+ }[];
3198
+ stages: {
3199
+ key: string;
3200
+ label: string;
3201
+ order: number;
3202
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3203
+ }[];
3204
+ actionRefs?: string[] | undefined;
3205
+ hostRequirements?: {
3206
+ protocol: number;
3207
+ features: Record<string, number>;
3208
+ } | undefined;
3209
+ presentation?: {
3210
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3211
+ nodeDetailRef?: string | undefined;
3212
+ evidenceTypes?: string[] | undefined;
3213
+ } | undefined;
3214
+ metrics?: {
3215
+ dimensionRefs: string[];
3216
+ metricRefs: string[];
3217
+ } | undefined;
3218
+ } | {
3219
+ key: string;
3220
+ executionAuthority: "platform";
3221
+ topology: {
3222
+ source: "definition";
3223
+ };
3224
+ version: string;
3225
+ title: string;
3226
+ subjectResolverRef: string;
3227
+ roles: {
3228
+ key: string;
3229
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3230
+ }[];
3231
+ lanes: {
3232
+ key: string;
3233
+ roleKey: string;
3234
+ label: string;
3235
+ order: number;
3236
+ }[];
3237
+ stages: {
3238
+ key: string;
3239
+ label: string;
3240
+ order: number;
3241
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3242
+ }[];
3243
+ nodes: ({
3244
+ key: string;
3245
+ kind: "work";
3246
+ laneKey: string;
3247
+ operationRef: string;
3248
+ executorSlot: string;
3249
+ completionRef: string;
3250
+ stageKey: string;
3251
+ label?: string | undefined;
3252
+ resourceResolverRef?: string | undefined;
3253
+ outputSchemaRef?: string | undefined;
3254
+ inputBindings?: Record<string, {
3255
+ from: "node_output";
3256
+ nodeKey: string;
3257
+ port: string;
3258
+ } | {
3259
+ from: "subject";
3260
+ } | {
3261
+ key: string;
3262
+ from: "parameter";
3263
+ } | {
3264
+ from: "collection";
3265
+ items: {
3266
+ from: "node_output";
3267
+ nodeKey: string;
3268
+ port: string;
3269
+ }[];
3270
+ }> | undefined;
3271
+ outputPorts?: Record<string, string> | undefined;
3272
+ } | {
3273
+ key: string;
3274
+ kind: "fork";
3275
+ stageKey: string;
3276
+ label?: string | undefined;
3277
+ inputBindings?: Record<string, {
3278
+ from: "node_output";
3279
+ nodeKey: string;
3280
+ port: string;
3281
+ } | {
3282
+ from: "subject";
3283
+ } | {
3284
+ key: string;
3285
+ from: "parameter";
3286
+ } | {
3287
+ from: "collection";
3288
+ items: {
3289
+ from: "node_output";
3290
+ nodeKey: string;
3291
+ port: string;
3292
+ }[];
3293
+ }> | undefined;
3294
+ outputPorts?: Record<string, string> | undefined;
3295
+ } | {
3296
+ join: {
3297
+ mode: "all_selected";
3298
+ accept: "completed";
3299
+ };
3300
+ key: string;
3301
+ kind: "join";
3302
+ stageKey: string;
3303
+ label?: string | undefined;
3304
+ inputBindings?: Record<string, {
3305
+ from: "node_output";
3306
+ nodeKey: string;
3307
+ port: string;
3308
+ } | {
3309
+ from: "subject";
3310
+ } | {
3311
+ key: string;
3312
+ from: "parameter";
3313
+ } | {
3314
+ from: "collection";
3315
+ items: {
3316
+ from: "node_output";
3317
+ nodeKey: string;
3318
+ port: string;
3319
+ }[];
3320
+ }> | undefined;
3321
+ outputPorts?: Record<string, string> | undefined;
3322
+ } | {
3323
+ key: string;
3324
+ kind: "router";
3325
+ stageKey: string;
3326
+ policyRef: string;
3327
+ outcomes: string[];
3328
+ unmatched: "block";
3329
+ label?: string | undefined;
3330
+ inputBindings?: Record<string, {
3331
+ from: "node_output";
3332
+ nodeKey: string;
3333
+ port: string;
3334
+ } | {
3335
+ from: "subject";
3336
+ } | {
3337
+ key: string;
3338
+ from: "parameter";
3339
+ } | {
3340
+ from: "collection";
3341
+ items: {
3342
+ from: "node_output";
3343
+ nodeKey: string;
3344
+ port: string;
3345
+ }[];
3346
+ }> | undefined;
3347
+ outputPorts?: Record<string, string> | undefined;
3348
+ } | {
3349
+ key: string;
3350
+ kind: "human_gate";
3351
+ laneKey: string;
3352
+ stageKey: string;
3353
+ policyRef: string;
3354
+ outcomes: string[];
3355
+ candidateRoleKey: string;
3356
+ label?: string | undefined;
3357
+ inputBindings?: Record<string, {
3358
+ from: "node_output";
3359
+ nodeKey: string;
3360
+ port: string;
3361
+ } | {
3362
+ from: "subject";
3363
+ } | {
3364
+ key: string;
3365
+ from: "parameter";
3366
+ } | {
3367
+ from: "collection";
3368
+ items: {
3369
+ from: "node_output";
3370
+ nodeKey: string;
3371
+ port: string;
3372
+ }[];
3373
+ }> | undefined;
3374
+ outputPorts?: Record<string, string> | undefined;
3375
+ outcomeLabels?: Record<string, string> | undefined;
3376
+ } | {
3377
+ key: string;
3378
+ kind: "external_wait";
3379
+ laneKey: string;
3380
+ stageKey: string;
3381
+ subscriptionRef: string;
3382
+ label?: string | undefined;
3383
+ inputBindings?: Record<string, {
3384
+ from: "node_output";
3385
+ nodeKey: string;
3386
+ port: string;
3387
+ } | {
3388
+ from: "subject";
3389
+ } | {
3390
+ key: string;
3391
+ from: "parameter";
3392
+ } | {
3393
+ from: "collection";
3394
+ items: {
3395
+ from: "node_output";
3396
+ nodeKey: string;
3397
+ port: string;
3398
+ }[];
3399
+ }> | undefined;
3400
+ outputPorts?: Record<string, string> | undefined;
3401
+ } | {
3402
+ key: string;
3403
+ outcome: string;
3404
+ kind: "terminal";
3405
+ stageKey: string;
3406
+ label?: string | undefined;
3407
+ inputBindings?: Record<string, {
3408
+ from: "node_output";
3409
+ nodeKey: string;
3410
+ port: string;
3411
+ } | {
3412
+ from: "subject";
3413
+ } | {
3414
+ key: string;
3415
+ from: "parameter";
3416
+ } | {
3417
+ from: "collection";
3418
+ items: {
3419
+ from: "node_output";
3420
+ nodeKey: string;
3421
+ port: string;
3422
+ }[];
3423
+ }> | undefined;
3424
+ outputPorts?: Record<string, string> | undefined;
3425
+ disposition?: "complete" | "await_new_subject" | undefined;
3426
+ })[];
3427
+ edges: {
3428
+ from: string;
3429
+ to: string;
3430
+ outcome?: string | undefined;
3431
+ }[];
3432
+ roundPolicy: {
3433
+ entryNodeKey: string;
3434
+ maxRounds: number;
3435
+ onRework: "await_new_subject_then_next_round";
3436
+ onLimit: "attention";
3437
+ newVersionWhileActive: "supersede_round";
3438
+ terminalOutcomes: string[];
3439
+ };
3440
+ failurePolicy: {
3441
+ requiredNodeFailure: "block_and_attention";
3442
+ unknownExecution: "inspect_without_replay";
3443
+ };
3444
+ hostRequirements?: {
3445
+ protocol: number;
3446
+ features: Record<string, number>;
3447
+ } | undefined;
3448
+ presentation?: {
3449
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3450
+ nodeDetailRef?: string | undefined;
3451
+ evidenceTypes?: string[] | undefined;
3452
+ } | undefined;
3453
+ metrics?: {
3454
+ dimensionRefs: string[];
3455
+ metricRefs: string[];
3456
+ } | undefined;
3457
+ };
3458
+ }, {
3459
+ binding: {
3460
+ templateRef: string;
3461
+ roleBindings: Record<string, {
3462
+ kind: "assistant" | "runtime_binding" | "human" | "service";
3463
+ selectionKey: string;
3464
+ requiredCapabilities?: string[] | undefined;
3465
+ }>;
3466
+ parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
3467
+ executorBindings?: Record<string, {
3468
+ roleKey: string;
3469
+ kind: "assistant" | "runtime_binding" | "human" | "service";
3470
+ selectionKey: string;
3471
+ requiredCapabilities?: string[] | undefined;
3472
+ workspaceId?: string | undefined;
3473
+ }> | undefined;
3474
+ providerConfiguration?: Record<string, import("./primitives.schema").ProjectPipelineJsonValue> | undefined;
3475
+ limits?: {
3476
+ maxConcurrentExecutions: number;
3477
+ maxTechnicalAttemptsPerNode: number;
3478
+ runTimeoutMinutes: number;
3479
+ nativeModelBudget?: {
3480
+ maxCalls: number;
3481
+ maxTokens: number;
3482
+ reservationTokens: number;
3483
+ } | undefined;
3484
+ } | undefined;
3485
+ triggers?: {
3486
+ adapterRef: string;
3487
+ events: string[];
3488
+ }[] | undefined;
3489
+ };
3490
+ schemaVersion: 1;
3491
+ template: {
3492
+ key: string;
3493
+ executionAuthority: "provider";
3494
+ providerRef: string;
3495
+ topology: {
3496
+ source: "provider";
3497
+ presentationAdapterRef: string;
3498
+ };
3499
+ version: string;
3500
+ title: string;
3501
+ subjectResolverRef: string;
3502
+ roles: {
3503
+ key: string;
3504
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3505
+ }[];
3506
+ lanes: {
3507
+ key: string;
3508
+ roleKey: string;
3509
+ label: string;
3510
+ order: number;
3511
+ }[];
3512
+ stages: {
3513
+ key: string;
3514
+ label: string;
3515
+ order: number;
3516
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3517
+ }[];
3518
+ actionRefs?: string[] | undefined;
3519
+ hostRequirements?: {
3520
+ protocol: number;
3521
+ features: Record<string, number>;
3522
+ } | undefined;
3523
+ presentation?: {
3524
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3525
+ nodeDetailRef?: string | undefined;
3526
+ evidenceTypes?: string[] | undefined;
3527
+ } | undefined;
3528
+ metrics?: {
3529
+ dimensionRefs: string[];
3530
+ metricRefs: string[];
3531
+ } | undefined;
3532
+ } | {
3533
+ key: string;
3534
+ executionAuthority: "platform";
3535
+ topology: {
3536
+ source: "definition";
3537
+ };
3538
+ version: string;
3539
+ title: string;
3540
+ subjectResolverRef: string;
3541
+ roles: {
3542
+ key: string;
3543
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3544
+ }[];
3545
+ lanes: {
3546
+ key: string;
3547
+ roleKey: string;
3548
+ label: string;
3549
+ order: number;
3550
+ }[];
3551
+ stages: {
3552
+ key: string;
3553
+ label: string;
3554
+ order: number;
3555
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3556
+ }[];
3557
+ nodes: ({
3558
+ key: string;
3559
+ kind: "work";
3560
+ laneKey: string;
3561
+ operationRef: string;
3562
+ executorSlot: string;
3563
+ completionRef: string;
3564
+ stageKey: string;
3565
+ label?: string | undefined;
3566
+ resourceResolverRef?: string | undefined;
3567
+ outputSchemaRef?: string | undefined;
3568
+ inputBindings?: Record<string, {
3569
+ from: "node_output";
3570
+ nodeKey: string;
3571
+ port: string;
3572
+ } | {
3573
+ from: "subject";
3574
+ } | {
3575
+ key: string;
3576
+ from: "parameter";
3577
+ } | {
3578
+ from: "collection";
3579
+ items: {
3580
+ from: "node_output";
3581
+ nodeKey: string;
3582
+ port: string;
3583
+ }[];
3584
+ }> | undefined;
3585
+ outputPorts?: Record<string, string> | undefined;
3586
+ } | {
3587
+ key: string;
3588
+ kind: "fork";
3589
+ stageKey: string;
3590
+ label?: string | undefined;
3591
+ inputBindings?: Record<string, {
3592
+ from: "node_output";
3593
+ nodeKey: string;
3594
+ port: string;
3595
+ } | {
3596
+ from: "subject";
3597
+ } | {
3598
+ key: string;
3599
+ from: "parameter";
3600
+ } | {
3601
+ from: "collection";
3602
+ items: {
3603
+ from: "node_output";
3604
+ nodeKey: string;
3605
+ port: string;
3606
+ }[];
3607
+ }> | undefined;
3608
+ outputPorts?: Record<string, string> | undefined;
3609
+ } | {
3610
+ join: {
3611
+ mode: "all_selected";
3612
+ accept: "completed";
3613
+ };
3614
+ key: string;
3615
+ kind: "join";
3616
+ stageKey: string;
3617
+ label?: string | undefined;
3618
+ inputBindings?: Record<string, {
3619
+ from: "node_output";
3620
+ nodeKey: string;
3621
+ port: string;
3622
+ } | {
3623
+ from: "subject";
3624
+ } | {
3625
+ key: string;
3626
+ from: "parameter";
3627
+ } | {
3628
+ from: "collection";
3629
+ items: {
3630
+ from: "node_output";
3631
+ nodeKey: string;
3632
+ port: string;
3633
+ }[];
3634
+ }> | undefined;
3635
+ outputPorts?: Record<string, string> | undefined;
3636
+ } | {
3637
+ key: string;
3638
+ kind: "router";
3639
+ stageKey: string;
3640
+ policyRef: string;
3641
+ outcomes: string[];
3642
+ unmatched: "block";
3643
+ label?: string | undefined;
3644
+ inputBindings?: Record<string, {
3645
+ from: "node_output";
3646
+ nodeKey: string;
3647
+ port: string;
3648
+ } | {
3649
+ from: "subject";
3650
+ } | {
3651
+ key: string;
3652
+ from: "parameter";
3653
+ } | {
3654
+ from: "collection";
3655
+ items: {
3656
+ from: "node_output";
3657
+ nodeKey: string;
3658
+ port: string;
3659
+ }[];
3660
+ }> | undefined;
3661
+ outputPorts?: Record<string, string> | undefined;
3662
+ } | {
3663
+ key: string;
3664
+ kind: "human_gate";
3665
+ laneKey: string;
3666
+ stageKey: string;
3667
+ policyRef: string;
3668
+ outcomes: string[];
3669
+ candidateRoleKey: string;
3670
+ label?: string | undefined;
3671
+ inputBindings?: Record<string, {
3672
+ from: "node_output";
3673
+ nodeKey: string;
3674
+ port: string;
3675
+ } | {
3676
+ from: "subject";
3677
+ } | {
3678
+ key: string;
3679
+ from: "parameter";
3680
+ } | {
3681
+ from: "collection";
3682
+ items: {
3683
+ from: "node_output";
3684
+ nodeKey: string;
3685
+ port: string;
3686
+ }[];
3687
+ }> | undefined;
3688
+ outputPorts?: Record<string, string> | undefined;
3689
+ outcomeLabels?: Record<string, string> | undefined;
3690
+ } | {
3691
+ key: string;
3692
+ kind: "external_wait";
3693
+ laneKey: string;
3694
+ stageKey: string;
3695
+ subscriptionRef: string;
3696
+ label?: string | undefined;
3697
+ inputBindings?: Record<string, {
3698
+ from: "node_output";
3699
+ nodeKey: string;
3700
+ port: string;
3701
+ } | {
3702
+ from: "subject";
3703
+ } | {
3704
+ key: string;
3705
+ from: "parameter";
3706
+ } | {
3707
+ from: "collection";
3708
+ items: {
3709
+ from: "node_output";
3710
+ nodeKey: string;
3711
+ port: string;
3712
+ }[];
3713
+ }> | undefined;
3714
+ outputPorts?: Record<string, string> | undefined;
3715
+ } | {
3716
+ key: string;
3717
+ outcome: string;
3718
+ kind: "terminal";
3719
+ stageKey: string;
3720
+ label?: string | undefined;
3721
+ inputBindings?: Record<string, {
3722
+ from: "node_output";
3723
+ nodeKey: string;
3724
+ port: string;
3725
+ } | {
3726
+ from: "subject";
3727
+ } | {
3728
+ key: string;
3729
+ from: "parameter";
3730
+ } | {
3731
+ from: "collection";
3732
+ items: {
3733
+ from: "node_output";
3734
+ nodeKey: string;
3735
+ port: string;
3736
+ }[];
3737
+ }> | undefined;
3738
+ outputPorts?: Record<string, string> | undefined;
3739
+ disposition?: "complete" | "await_new_subject" | undefined;
3740
+ })[];
3741
+ edges: {
3742
+ from: string;
3743
+ to: string;
3744
+ outcome?: string | undefined;
3745
+ }[];
3746
+ roundPolicy: {
3747
+ entryNodeKey: string;
3748
+ maxRounds: number;
3749
+ onRework: "await_new_subject_then_next_round";
3750
+ onLimit: "attention";
3751
+ newVersionWhileActive: "supersede_round";
3752
+ terminalOutcomes: string[];
3753
+ };
3754
+ failurePolicy: {
3755
+ requiredNodeFailure: "block_and_attention";
3756
+ unknownExecution: "inspect_without_replay";
3757
+ };
3758
+ hostRequirements?: {
3759
+ protocol: number;
3760
+ features: Record<string, number>;
3761
+ } | undefined;
3762
+ presentation?: {
3763
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3764
+ nodeDetailRef?: string | undefined;
3765
+ evidenceTypes?: string[] | undefined;
3766
+ } | undefined;
3767
+ metrics?: {
3768
+ dimensionRefs: string[];
3769
+ metricRefs: string[];
3770
+ } | undefined;
3771
+ };
3772
+ }>;
3773
+ export type ProjectPipelineBinding = z.output<typeof projectPipelineBindingSchema>;
3774
+ export type ProjectPipelineConfiguration = z.output<typeof projectPipelineConfigurationSchema>;