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