@xpert-ai/contracts 3.23.0 → 3.26.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 (53) hide show
  1. package/index.cjs.js +5295 -368
  2. package/index.esm.js +5184 -369
  3. package/package.json +2 -2
  4. package/src/ai/agent-output-delivery.model.d.ts +10 -10
  5. package/src/ai/agent-runtime.model.d.ts +24 -24
  6. package/src/ai/assistant-model.model.d.ts +8 -0
  7. package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
  8. package/src/ai/chat.model.d.ts +3 -1
  9. package/src/ai/index.d.ts +2 -0
  10. package/src/ai/mcp-publication.model.d.ts +20 -0
  11. package/src/ai/model-discovery.model.d.ts +2 -0
  12. package/src/ai/project-pipeline/analytics.d.ts +1685 -0
  13. package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
  14. package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
  15. package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
  16. package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
  17. package/src/ai/project-pipeline/compatibility.d.ts +5 -0
  18. package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
  22. package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
  23. package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
  24. package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
  25. package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
  26. package/src/ai/project-pipeline/graph.model.d.ts +89 -0
  27. package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
  28. package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
  29. package/src/ai/project-pipeline/index.d.ts +28 -0
  30. package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
  31. package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
  32. package/src/ai/project-pipeline/node.schema.d.ts +839 -0
  33. package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
  34. package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
  35. package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
  36. package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
  37. package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
  38. package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
  39. package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
  40. package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
  41. package/src/ai/project-pipeline/statistics.d.ts +811 -0
  42. package/src/ai/project-task-graph.model.d.ts +18 -2
  43. package/src/ai/project-task-runtime.model.d.ts +924 -924
  44. package/src/ai/provider-credential-validation.model.d.ts +63 -0
  45. package/src/ai/template-installation.model.d.ts +29 -0
  46. package/src/ai/types.d.ts +6 -4
  47. package/src/ai/xpert-project-type.model.d.ts +15 -4
  48. package/src/ai/xpert-project.model.d.ts +9 -2
  49. package/src/ai/xpert-template.model.d.ts +1 -1
  50. package/src/analytics-query.model.d.ts +5 -0
  51. package/src/artifact-presentation.model.d.ts +28 -0
  52. package/src/index.d.ts +1 -0
  53. package/src/view-extension/model.d.ts +10 -1
@@ -10,48 +10,48 @@ export declare const projectTaskSpecificationSchema: z.ZodEffects<z.ZodObject<{
10
10
  stepIndex: z.ZodNumber;
11
11
  description: z.ZodString;
12
12
  }, "strict", z.ZodTypeAny, {
13
- description?: string;
14
- stepIndex?: number;
13
+ description: string;
14
+ stepIndex: number;
15
15
  }, {
16
- description?: string;
17
- stepIndex?: number;
16
+ description: string;
17
+ stepIndex: number;
18
18
  }>, "many">;
19
19
  }, "strict", z.ZodTypeAny, {
20
- description?: string;
21
- version?: 1;
22
- title?: string;
23
- steps?: {
24
- description?: string;
25
- stepIndex?: number;
20
+ version: 1;
21
+ title: string;
22
+ steps: {
23
+ description: string;
24
+ stepIndex: number;
26
25
  }[];
27
- requirements?: string[];
26
+ requirements: string[];
27
+ description?: string | undefined;
28
28
  }, {
29
- description?: string;
30
- version?: 1;
31
- title?: string;
32
- steps?: {
33
- description?: string;
34
- stepIndex?: number;
29
+ version: 1;
30
+ title: string;
31
+ steps: {
32
+ description: string;
33
+ stepIndex: number;
35
34
  }[];
36
- requirements?: string[];
35
+ requirements: string[];
36
+ description?: string | undefined;
37
37
  }>, {
38
- description?: string;
39
- version?: 1;
40
- title?: string;
41
- steps?: {
42
- description?: string;
43
- stepIndex?: number;
38
+ version: 1;
39
+ title: string;
40
+ steps: {
41
+ description: string;
42
+ stepIndex: number;
44
43
  }[];
45
- requirements?: string[];
44
+ requirements: string[];
45
+ description?: string | undefined;
46
46
  }, {
47
- description?: string;
48
- version?: 1;
49
- title?: string;
50
- steps?: {
51
- description?: string;
52
- stepIndex?: number;
47
+ version: 1;
48
+ title: string;
49
+ steps: {
50
+ description: string;
51
+ stepIndex: number;
53
52
  }[];
54
- requirements?: string[];
53
+ requirements: string[];
54
+ description?: string | undefined;
55
55
  }>;
56
56
  export type ProjectTaskSpecification = z.output<typeof projectTaskSpecificationSchema>;
57
57
  /** The host verifies the digest against the specification at the persistence boundary. */
@@ -66,72 +66,72 @@ export declare const projectTaskSpecificationSnapshotSchema: z.ZodObject<{
66
66
  stepIndex: z.ZodNumber;
67
67
  description: z.ZodString;
68
68
  }, "strict", z.ZodTypeAny, {
69
- description?: string;
70
- stepIndex?: number;
69
+ description: string;
70
+ stepIndex: number;
71
71
  }, {
72
- description?: string;
73
- stepIndex?: number;
72
+ description: string;
73
+ stepIndex: number;
74
74
  }>, "many">;
75
75
  }, "strict", z.ZodTypeAny, {
76
- description?: string;
77
- version?: 1;
78
- title?: string;
79
- steps?: {
80
- description?: string;
81
- stepIndex?: number;
76
+ version: 1;
77
+ title: string;
78
+ steps: {
79
+ description: string;
80
+ stepIndex: number;
82
81
  }[];
83
- requirements?: string[];
82
+ requirements: string[];
83
+ description?: string | undefined;
84
84
  }, {
85
- description?: string;
86
- version?: 1;
87
- title?: string;
88
- steps?: {
89
- description?: string;
90
- stepIndex?: number;
85
+ version: 1;
86
+ title: string;
87
+ steps: {
88
+ description: string;
89
+ stepIndex: number;
91
90
  }[];
92
- requirements?: string[];
91
+ requirements: string[];
92
+ description?: string | undefined;
93
93
  }>, {
94
- description?: string;
95
- version?: 1;
96
- title?: string;
97
- steps?: {
98
- description?: string;
99
- stepIndex?: number;
94
+ version: 1;
95
+ title: string;
96
+ steps: {
97
+ description: string;
98
+ stepIndex: number;
100
99
  }[];
101
- requirements?: string[];
100
+ requirements: string[];
101
+ description?: string | undefined;
102
102
  }, {
103
- description?: string;
104
- version?: 1;
105
- title?: string;
106
- steps?: {
107
- description?: string;
108
- stepIndex?: number;
103
+ version: 1;
104
+ title: string;
105
+ steps: {
106
+ description: string;
107
+ stepIndex: number;
109
108
  }[];
110
- requirements?: string[];
109
+ requirements: string[];
110
+ description?: string | undefined;
111
111
  }>;
112
112
  }, "strict", z.ZodTypeAny, {
113
- digest?: string;
114
- specification?: {
115
- description?: string;
116
- version?: 1;
117
- title?: string;
118
- steps?: {
119
- description?: string;
120
- stepIndex?: number;
113
+ digest: string;
114
+ specification: {
115
+ version: 1;
116
+ title: string;
117
+ steps: {
118
+ description: string;
119
+ stepIndex: number;
121
120
  }[];
122
- requirements?: string[];
121
+ requirements: string[];
122
+ description?: string | undefined;
123
123
  };
124
124
  }, {
125
- digest?: string;
126
- specification?: {
127
- description?: string;
128
- version?: 1;
129
- title?: string;
130
- steps?: {
131
- description?: string;
132
- stepIndex?: number;
125
+ digest: string;
126
+ specification: {
127
+ version: 1;
128
+ title: string;
129
+ steps: {
130
+ description: string;
131
+ stepIndex: number;
133
132
  }[];
134
- requirements?: string[];
133
+ requirements: string[];
134
+ description?: string | undefined;
135
135
  };
136
136
  }>;
137
137
  export type ProjectTaskSpecificationSnapshot = z.output<typeof projectTaskSpecificationSnapshotSchema>;
@@ -141,45 +141,45 @@ export declare const projectTaskEvidenceReferenceSchema: z.ZodDiscriminatedUnion
141
141
  artifactId: z.ZodString;
142
142
  versionId: z.ZodString;
143
143
  }, "strict", z.ZodTypeAny, {
144
- type?: "artifact";
145
- versionId?: string;
146
- artifactId?: string;
144
+ type: "artifact";
145
+ artifactId: string;
146
+ versionId: string;
147
147
  }, {
148
- type?: "artifact";
149
- versionId?: string;
150
- artifactId?: string;
148
+ type: "artifact";
149
+ artifactId: string;
150
+ versionId: string;
151
151
  }>, z.ZodObject<{
152
152
  type: z.ZodLiteral<"invocation_result">;
153
153
  invocationId: z.ZodString;
154
154
  revision: z.ZodNumber;
155
155
  }, "strict", z.ZodTypeAny, {
156
- type?: "invocation_result";
157
- revision?: number;
158
- invocationId?: string;
156
+ type: "invocation_result";
157
+ revision: number;
158
+ invocationId: string;
159
159
  }, {
160
- type?: "invocation_result";
161
- revision?: number;
162
- invocationId?: string;
160
+ type: "invocation_result";
161
+ revision: number;
162
+ invocationId: string;
163
163
  }>, z.ZodObject<{
164
164
  type: z.ZodLiteral<"workspace_snapshot">;
165
165
  snapshotId: z.ZodString;
166
166
  digest: z.ZodString;
167
167
  }, "strict", z.ZodTypeAny, {
168
- type?: "workspace_snapshot";
169
- digest?: string;
170
- snapshotId?: string;
168
+ type: "workspace_snapshot";
169
+ digest: string;
170
+ snapshotId: string;
171
171
  }, {
172
- type?: "workspace_snapshot";
173
- digest?: string;
174
- snapshotId?: string;
172
+ type: "workspace_snapshot";
173
+ digest: string;
174
+ snapshotId: string;
175
175
  }>]>;
176
176
  export type ProjectTaskEvidenceReference = z.output<typeof projectTaskEvidenceReferenceSchema>;
177
177
  export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
178
178
  type: z.ZodLiteral<"implementation">;
179
179
  }, "strict", z.ZodTypeAny, {
180
- type?: "implementation";
180
+ type: "implementation";
181
181
  }, {
182
- type?: "implementation";
182
+ type: "implementation";
183
183
  }>, z.ZodObject<{
184
184
  type: z.ZodLiteral<"review">;
185
185
  implementationExecutionId: z.ZodString;
@@ -190,74 +190,74 @@ export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<
190
190
  artifactId: z.ZodString;
191
191
  versionId: z.ZodString;
192
192
  }, "strict", z.ZodTypeAny, {
193
- type?: "artifact";
194
- versionId?: string;
195
- artifactId?: string;
193
+ type: "artifact";
194
+ artifactId: string;
195
+ versionId: string;
196
196
  }, {
197
- type?: "artifact";
198
- versionId?: string;
199
- artifactId?: string;
197
+ type: "artifact";
198
+ artifactId: string;
199
+ versionId: string;
200
200
  }>, z.ZodObject<{
201
201
  type: z.ZodLiteral<"invocation_result">;
202
202
  invocationId: z.ZodString;
203
203
  revision: z.ZodNumber;
204
204
  }, "strict", z.ZodTypeAny, {
205
- type?: "invocation_result";
206
- revision?: number;
207
- invocationId?: string;
205
+ type: "invocation_result";
206
+ revision: number;
207
+ invocationId: string;
208
208
  }, {
209
- type?: "invocation_result";
210
- revision?: number;
211
- invocationId?: string;
209
+ type: "invocation_result";
210
+ revision: number;
211
+ invocationId: string;
212
212
  }>, z.ZodObject<{
213
213
  type: z.ZodLiteral<"workspace_snapshot">;
214
214
  snapshotId: z.ZodString;
215
215
  digest: z.ZodString;
216
216
  }, "strict", z.ZodTypeAny, {
217
- type?: "workspace_snapshot";
218
- digest?: string;
219
- snapshotId?: string;
217
+ type: "workspace_snapshot";
218
+ digest: string;
219
+ snapshotId: string;
220
220
  }, {
221
- type?: "workspace_snapshot";
222
- digest?: string;
223
- snapshotId?: string;
221
+ type: "workspace_snapshot";
222
+ digest: string;
223
+ snapshotId: string;
224
224
  }>]>, "many">;
225
225
  }, "strict", z.ZodTypeAny, {
226
- type?: "review";
227
- implementationExecutionId?: string;
228
- implementationInvocationId?: string;
229
- specificationDigest?: string;
230
- evidence?: ({
231
- type?: "artifact";
232
- versionId?: string;
233
- artifactId?: string;
226
+ type: "review";
227
+ evidence: ({
228
+ type: "artifact";
229
+ artifactId: string;
230
+ versionId: string;
234
231
  } | {
235
- type?: "invocation_result";
236
- revision?: number;
237
- invocationId?: string;
232
+ type: "invocation_result";
233
+ revision: number;
234
+ invocationId: string;
238
235
  } | {
239
- type?: "workspace_snapshot";
240
- digest?: string;
241
- snapshotId?: string;
236
+ type: "workspace_snapshot";
237
+ digest: string;
238
+ snapshotId: string;
242
239
  })[];
240
+ implementationExecutionId: string;
241
+ implementationInvocationId: string;
242
+ specificationDigest: string;
243
243
  }, {
244
- type?: "review";
245
- implementationExecutionId?: string;
246
- implementationInvocationId?: string;
247
- specificationDigest?: string;
248
- evidence?: ({
249
- type?: "artifact";
250
- versionId?: string;
251
- artifactId?: string;
244
+ type: "review";
245
+ evidence: ({
246
+ type: "artifact";
247
+ artifactId: string;
248
+ versionId: string;
252
249
  } | {
253
- type?: "invocation_result";
254
- revision?: number;
255
- invocationId?: string;
250
+ type: "invocation_result";
251
+ revision: number;
252
+ invocationId: string;
256
253
  } | {
257
- type?: "workspace_snapshot";
258
- digest?: string;
259
- snapshotId?: string;
254
+ type: "workspace_snapshot";
255
+ digest: string;
256
+ snapshotId: string;
260
257
  })[];
258
+ implementationExecutionId: string;
259
+ implementationInvocationId: string;
260
+ specificationDigest: string;
261
261
  }>]>;
262
262
  export type ProjectTaskExecutionPurpose = z.output<typeof projectTaskExecutionPurposeSchema>;
263
263
  export declare const projectTaskExecutionReferenceSchema: z.ZodObject<{
@@ -265,13 +265,13 @@ export declare const projectTaskExecutionReferenceSchema: z.ZodObject<{
265
265
  projectTaskId: z.ZodString;
266
266
  taskExecutionId: z.ZodString;
267
267
  }, "strict", z.ZodTypeAny, {
268
- projectId?: string;
269
- projectTaskId?: string;
270
- taskExecutionId?: string;
268
+ projectId: string;
269
+ projectTaskId: string;
270
+ taskExecutionId: string;
271
271
  }, {
272
- projectId?: string;
273
- projectTaskId?: string;
274
- taskExecutionId?: string;
272
+ projectId: string;
273
+ projectTaskId: string;
274
+ taskExecutionId: string;
275
275
  }>;
276
276
  export type ProjectTaskExecutionReference = z.output<typeof projectTaskExecutionReferenceSchema>;
277
277
  /** Host-owned attempt context. Review is a new attempt and grants no completion authority. */
@@ -291,80 +291,80 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
291
291
  stepIndex: z.ZodNumber;
292
292
  description: z.ZodString;
293
293
  }, "strict", z.ZodTypeAny, {
294
- description?: string;
295
- stepIndex?: number;
294
+ description: string;
295
+ stepIndex: number;
296
296
  }, {
297
- description?: string;
298
- stepIndex?: number;
297
+ description: string;
298
+ stepIndex: number;
299
299
  }>, "many">;
300
300
  }, "strict", z.ZodTypeAny, {
301
- description?: string;
302
- version?: 1;
303
- title?: string;
304
- steps?: {
305
- description?: string;
306
- stepIndex?: number;
301
+ version: 1;
302
+ title: string;
303
+ steps: {
304
+ description: string;
305
+ stepIndex: number;
307
306
  }[];
308
- requirements?: string[];
307
+ requirements: string[];
308
+ description?: string | undefined;
309
309
  }, {
310
- description?: string;
311
- version?: 1;
312
- title?: string;
313
- steps?: {
314
- description?: string;
315
- stepIndex?: number;
310
+ version: 1;
311
+ title: string;
312
+ steps: {
313
+ description: string;
314
+ stepIndex: number;
316
315
  }[];
317
- requirements?: string[];
316
+ requirements: string[];
317
+ description?: string | undefined;
318
318
  }>, {
319
- description?: string;
320
- version?: 1;
321
- title?: string;
322
- steps?: {
323
- description?: string;
324
- stepIndex?: number;
319
+ version: 1;
320
+ title: string;
321
+ steps: {
322
+ description: string;
323
+ stepIndex: number;
325
324
  }[];
326
- requirements?: string[];
325
+ requirements: string[];
326
+ description?: string | undefined;
327
327
  }, {
328
- description?: string;
329
- version?: 1;
330
- title?: string;
331
- steps?: {
332
- description?: string;
333
- stepIndex?: number;
328
+ version: 1;
329
+ title: string;
330
+ steps: {
331
+ description: string;
332
+ stepIndex: number;
334
333
  }[];
335
- requirements?: string[];
334
+ requirements: string[];
335
+ description?: string | undefined;
336
336
  }>;
337
337
  }, "strict", z.ZodTypeAny, {
338
- digest?: string;
339
- specification?: {
340
- description?: string;
341
- version?: 1;
342
- title?: string;
343
- steps?: {
344
- description?: string;
345
- stepIndex?: number;
338
+ digest: string;
339
+ specification: {
340
+ version: 1;
341
+ title: string;
342
+ steps: {
343
+ description: string;
344
+ stepIndex: number;
346
345
  }[];
347
- requirements?: string[];
346
+ requirements: string[];
347
+ description?: string | undefined;
348
348
  };
349
349
  }, {
350
- digest?: string;
351
- specification?: {
352
- description?: string;
353
- version?: 1;
354
- title?: string;
355
- steps?: {
356
- description?: string;
357
- stepIndex?: number;
350
+ digest: string;
351
+ specification: {
352
+ version: 1;
353
+ title: string;
354
+ steps: {
355
+ description: string;
356
+ stepIndex: number;
358
357
  }[];
359
- requirements?: string[];
358
+ requirements: string[];
359
+ description?: string | undefined;
360
360
  };
361
361
  }>;
362
362
  purpose: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
363
363
  type: z.ZodLiteral<"implementation">;
364
364
  }, "strict", z.ZodTypeAny, {
365
- type?: "implementation";
365
+ type: "implementation";
366
366
  }, {
367
- type?: "implementation";
367
+ type: "implementation";
368
368
  }>, z.ZodObject<{
369
369
  type: z.ZodLiteral<"review">;
370
370
  implementationExecutionId: z.ZodString;
@@ -375,227 +375,227 @@ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject
375
375
  artifactId: z.ZodString;
376
376
  versionId: z.ZodString;
377
377
  }, "strict", z.ZodTypeAny, {
378
- type?: "artifact";
379
- versionId?: string;
380
- artifactId?: string;
378
+ type: "artifact";
379
+ artifactId: string;
380
+ versionId: string;
381
381
  }, {
382
- type?: "artifact";
383
- versionId?: string;
384
- artifactId?: string;
382
+ type: "artifact";
383
+ artifactId: string;
384
+ versionId: string;
385
385
  }>, z.ZodObject<{
386
386
  type: z.ZodLiteral<"invocation_result">;
387
387
  invocationId: z.ZodString;
388
388
  revision: z.ZodNumber;
389
389
  }, "strict", z.ZodTypeAny, {
390
- type?: "invocation_result";
391
- revision?: number;
392
- invocationId?: string;
390
+ type: "invocation_result";
391
+ revision: number;
392
+ invocationId: string;
393
393
  }, {
394
- type?: "invocation_result";
395
- revision?: number;
396
- invocationId?: string;
394
+ type: "invocation_result";
395
+ revision: number;
396
+ invocationId: string;
397
397
  }>, z.ZodObject<{
398
398
  type: z.ZodLiteral<"workspace_snapshot">;
399
399
  snapshotId: z.ZodString;
400
400
  digest: z.ZodString;
401
401
  }, "strict", z.ZodTypeAny, {
402
- type?: "workspace_snapshot";
403
- digest?: string;
404
- snapshotId?: string;
402
+ type: "workspace_snapshot";
403
+ digest: string;
404
+ snapshotId: string;
405
405
  }, {
406
- type?: "workspace_snapshot";
407
- digest?: string;
408
- snapshotId?: string;
406
+ type: "workspace_snapshot";
407
+ digest: string;
408
+ snapshotId: string;
409
409
  }>]>, "many">;
410
410
  }, "strict", z.ZodTypeAny, {
411
- type?: "review";
412
- implementationExecutionId?: string;
413
- implementationInvocationId?: string;
414
- specificationDigest?: string;
415
- evidence?: ({
416
- type?: "artifact";
417
- versionId?: string;
418
- artifactId?: string;
411
+ type: "review";
412
+ evidence: ({
413
+ type: "artifact";
414
+ artifactId: string;
415
+ versionId: string;
419
416
  } | {
420
- type?: "invocation_result";
421
- revision?: number;
422
- invocationId?: string;
417
+ type: "invocation_result";
418
+ revision: number;
419
+ invocationId: string;
423
420
  } | {
424
- type?: "workspace_snapshot";
425
- digest?: string;
426
- snapshotId?: string;
421
+ type: "workspace_snapshot";
422
+ digest: string;
423
+ snapshotId: string;
427
424
  })[];
425
+ implementationExecutionId: string;
426
+ implementationInvocationId: string;
427
+ specificationDigest: string;
428
428
  }, {
429
- type?: "review";
430
- implementationExecutionId?: string;
431
- implementationInvocationId?: string;
432
- specificationDigest?: string;
433
- evidence?: ({
434
- type?: "artifact";
435
- versionId?: string;
436
- artifactId?: string;
429
+ type: "review";
430
+ evidence: ({
431
+ type: "artifact";
432
+ artifactId: string;
433
+ versionId: string;
437
434
  } | {
438
- type?: "invocation_result";
439
- revision?: number;
440
- invocationId?: string;
435
+ type: "invocation_result";
436
+ revision: number;
437
+ invocationId: string;
441
438
  } | {
442
- type?: "workspace_snapshot";
443
- digest?: string;
444
- snapshotId?: string;
439
+ type: "workspace_snapshot";
440
+ digest: string;
441
+ snapshotId: string;
445
442
  })[];
443
+ implementationExecutionId: string;
444
+ implementationInvocationId: string;
445
+ specificationDigest: string;
446
446
  }>]>;
447
447
  }, "strict", z.ZodTypeAny, {
448
- projectId?: string;
449
- purpose?: {
450
- type?: "implementation";
448
+ projectId: string;
449
+ specification: {
450
+ digest: string;
451
+ specification: {
452
+ version: 1;
453
+ title: string;
454
+ steps: {
455
+ description: string;
456
+ stepIndex: number;
457
+ }[];
458
+ requirements: string[];
459
+ description?: string | undefined;
460
+ };
461
+ };
462
+ projectTaskId: string;
463
+ taskExecutionId: string;
464
+ purpose: {
465
+ type: "implementation";
451
466
  } | {
452
- type?: "review";
453
- implementationExecutionId?: string;
454
- implementationInvocationId?: string;
455
- specificationDigest?: string;
456
- evidence?: ({
457
- type?: "artifact";
458
- versionId?: string;
459
- artifactId?: string;
467
+ type: "review";
468
+ evidence: ({
469
+ type: "artifact";
470
+ artifactId: string;
471
+ versionId: string;
460
472
  } | {
461
- type?: "invocation_result";
462
- revision?: number;
463
- invocationId?: string;
473
+ type: "invocation_result";
474
+ revision: number;
475
+ invocationId: string;
464
476
  } | {
465
- type?: "workspace_snapshot";
466
- digest?: string;
467
- snapshotId?: string;
477
+ type: "workspace_snapshot";
478
+ digest: string;
479
+ snapshotId: string;
468
480
  })[];
481
+ implementationExecutionId: string;
482
+ implementationInvocationId: string;
483
+ specificationDigest: string;
469
484
  };
470
- specification?: {
471
- digest?: string;
472
- specification?: {
473
- description?: string;
474
- version?: 1;
475
- title?: string;
476
- steps?: {
477
- description?: string;
478
- stepIndex?: number;
485
+ }, {
486
+ projectId: string;
487
+ specification: {
488
+ digest: string;
489
+ specification: {
490
+ version: 1;
491
+ title: string;
492
+ steps: {
493
+ description: string;
494
+ stepIndex: number;
479
495
  }[];
480
- requirements?: string[];
496
+ requirements: string[];
497
+ description?: string | undefined;
481
498
  };
482
499
  };
483
- projectTaskId?: string;
484
- taskExecutionId?: string;
485
- }, {
486
- projectId?: string;
487
- purpose?: {
488
- type?: "implementation";
500
+ projectTaskId: string;
501
+ taskExecutionId: string;
502
+ purpose: {
503
+ type: "implementation";
489
504
  } | {
490
- type?: "review";
491
- implementationExecutionId?: string;
492
- implementationInvocationId?: string;
493
- specificationDigest?: string;
494
- evidence?: ({
495
- type?: "artifact";
496
- versionId?: string;
497
- artifactId?: string;
505
+ type: "review";
506
+ evidence: ({
507
+ type: "artifact";
508
+ artifactId: string;
509
+ versionId: string;
498
510
  } | {
499
- type?: "invocation_result";
500
- revision?: number;
501
- invocationId?: string;
511
+ type: "invocation_result";
512
+ revision: number;
513
+ invocationId: string;
502
514
  } | {
503
- type?: "workspace_snapshot";
504
- digest?: string;
505
- snapshotId?: string;
515
+ type: "workspace_snapshot";
516
+ digest: string;
517
+ snapshotId: string;
506
518
  })[];
519
+ implementationExecutionId: string;
520
+ implementationInvocationId: string;
521
+ specificationDigest: string;
507
522
  };
508
- specification?: {
509
- digest?: string;
510
- specification?: {
511
- description?: string;
512
- version?: 1;
513
- title?: string;
514
- steps?: {
515
- description?: string;
516
- stepIndex?: number;
523
+ }>, {
524
+ projectId: string;
525
+ specification: {
526
+ digest: string;
527
+ specification: {
528
+ version: 1;
529
+ title: string;
530
+ steps: {
531
+ description: string;
532
+ stepIndex: number;
517
533
  }[];
518
- requirements?: string[];
534
+ requirements: string[];
535
+ description?: string | undefined;
519
536
  };
520
537
  };
521
- projectTaskId?: string;
522
- taskExecutionId?: string;
523
- }>, {
524
- projectId?: string;
525
- purpose?: {
526
- type?: "implementation";
538
+ projectTaskId: string;
539
+ taskExecutionId: string;
540
+ purpose: {
541
+ type: "implementation";
527
542
  } | {
528
- type?: "review";
529
- implementationExecutionId?: string;
530
- implementationInvocationId?: string;
531
- specificationDigest?: string;
532
- evidence?: ({
533
- type?: "artifact";
534
- versionId?: string;
535
- artifactId?: string;
543
+ type: "review";
544
+ evidence: ({
545
+ type: "artifact";
546
+ artifactId: string;
547
+ versionId: string;
536
548
  } | {
537
- type?: "invocation_result";
538
- revision?: number;
539
- invocationId?: string;
549
+ type: "invocation_result";
550
+ revision: number;
551
+ invocationId: string;
540
552
  } | {
541
- type?: "workspace_snapshot";
542
- digest?: string;
543
- snapshotId?: string;
553
+ type: "workspace_snapshot";
554
+ digest: string;
555
+ snapshotId: string;
544
556
  })[];
557
+ implementationExecutionId: string;
558
+ implementationInvocationId: string;
559
+ specificationDigest: string;
545
560
  };
546
- specification?: {
547
- digest?: string;
548
- specification?: {
549
- description?: string;
550
- version?: 1;
551
- title?: string;
552
- steps?: {
553
- description?: string;
554
- stepIndex?: number;
561
+ }, {
562
+ projectId: string;
563
+ specification: {
564
+ digest: string;
565
+ specification: {
566
+ version: 1;
567
+ title: string;
568
+ steps: {
569
+ description: string;
570
+ stepIndex: number;
555
571
  }[];
556
- requirements?: string[];
572
+ requirements: string[];
573
+ description?: string | undefined;
557
574
  };
558
575
  };
559
- projectTaskId?: string;
560
- taskExecutionId?: string;
561
- }, {
562
- projectId?: string;
563
- purpose?: {
564
- type?: "implementation";
576
+ projectTaskId: string;
577
+ taskExecutionId: string;
578
+ purpose: {
579
+ type: "implementation";
565
580
  } | {
566
- type?: "review";
567
- implementationExecutionId?: string;
568
- implementationInvocationId?: string;
569
- specificationDigest?: string;
570
- evidence?: ({
571
- type?: "artifact";
572
- versionId?: string;
573
- artifactId?: string;
581
+ type: "review";
582
+ evidence: ({
583
+ type: "artifact";
584
+ artifactId: string;
585
+ versionId: string;
574
586
  } | {
575
- type?: "invocation_result";
576
- revision?: number;
577
- invocationId?: string;
587
+ type: "invocation_result";
588
+ revision: number;
589
+ invocationId: string;
578
590
  } | {
579
- type?: "workspace_snapshot";
580
- digest?: string;
581
- snapshotId?: string;
591
+ type: "workspace_snapshot";
592
+ digest: string;
593
+ snapshotId: string;
582
594
  })[];
595
+ implementationExecutionId: string;
596
+ implementationInvocationId: string;
597
+ specificationDigest: string;
583
598
  };
584
- specification?: {
585
- digest?: string;
586
- specification?: {
587
- description?: string;
588
- version?: 1;
589
- title?: string;
590
- steps?: {
591
- description?: string;
592
- stepIndex?: number;
593
- }[];
594
- requirements?: string[];
595
- };
596
- };
597
- projectTaskId?: string;
598
- taskExecutionId?: string;
599
599
  }>;
600
600
  export type ProjectTaskExecutionContext = z.output<typeof projectTaskExecutionContextSchema>;
601
601
  /** A receipt is neither a business completion decision nor proof that the process has started. */
@@ -607,17 +607,17 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
607
607
  invocationId: z.ZodString;
608
608
  status: z.ZodEnum<["queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
609
609
  }, "strict", z.ZodTypeAny, {
610
- status?: "failed" | "unknown" | "succeeded" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
611
- projectId?: string;
612
- invocationId?: string;
613
- projectTaskId?: string;
614
- taskExecutionId?: string;
610
+ status: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling";
611
+ projectId: string;
612
+ invocationId: string;
613
+ projectTaskId: string;
614
+ taskExecutionId: string;
615
615
  }, {
616
- status?: "failed" | "unknown" | "succeeded" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
617
- projectId?: string;
618
- invocationId?: string;
619
- projectTaskId?: string;
620
- taskExecutionId?: string;
616
+ status: "unknown" | "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "cancelling";
617
+ projectId: string;
618
+ invocationId: string;
619
+ projectTaskId: string;
620
+ taskExecutionId: string;
621
621
  }>;
622
622
  export type ProjectTaskDispatchReceipt = z.output<typeof projectTaskDispatchReceiptSchema>;
623
623
  export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
@@ -629,18 +629,18 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
629
629
  type: z.ZodLiteral<"group_member">;
630
630
  participantId: z.ZodString;
631
631
  }, "strict", z.ZodTypeAny, {
632
- type?: "group_member";
633
- participantId?: string;
632
+ type: "group_member";
633
+ participantId: string;
634
634
  }, {
635
- type?: "group_member";
636
- participantId?: string;
635
+ type: "group_member";
636
+ participantId: string;
637
637
  }>>;
638
638
  purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
639
639
  type: z.ZodLiteral<"implementation">;
640
640
  }, "strict", z.ZodTypeAny, {
641
- type?: "implementation";
641
+ type: "implementation";
642
642
  }, {
643
- type?: "implementation";
643
+ type: "implementation";
644
644
  }>, z.ZodObject<{
645
645
  type: z.ZodLiteral<"review">;
646
646
  implementationExecutionId: z.ZodString;
@@ -651,261 +651,261 @@ export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
651
651
  artifactId: z.ZodString;
652
652
  versionId: z.ZodString;
653
653
  }, "strict", z.ZodTypeAny, {
654
- type?: "artifact";
655
- versionId?: string;
656
- artifactId?: string;
654
+ type: "artifact";
655
+ artifactId: string;
656
+ versionId: string;
657
657
  }, {
658
- type?: "artifact";
659
- versionId?: string;
660
- artifactId?: string;
658
+ type: "artifact";
659
+ artifactId: string;
660
+ versionId: string;
661
661
  }>, z.ZodObject<{
662
662
  type: z.ZodLiteral<"invocation_result">;
663
663
  invocationId: z.ZodString;
664
664
  revision: z.ZodNumber;
665
665
  }, "strict", z.ZodTypeAny, {
666
- type?: "invocation_result";
667
- revision?: number;
668
- invocationId?: string;
666
+ type: "invocation_result";
667
+ revision: number;
668
+ invocationId: string;
669
669
  }, {
670
- type?: "invocation_result";
671
- revision?: number;
672
- invocationId?: string;
670
+ type: "invocation_result";
671
+ revision: number;
672
+ invocationId: string;
673
673
  }>, z.ZodObject<{
674
674
  type: z.ZodLiteral<"workspace_snapshot">;
675
675
  snapshotId: z.ZodString;
676
676
  digest: z.ZodString;
677
677
  }, "strict", z.ZodTypeAny, {
678
- type?: "workspace_snapshot";
679
- digest?: string;
680
- snapshotId?: string;
678
+ type: "workspace_snapshot";
679
+ digest: string;
680
+ snapshotId: string;
681
681
  }, {
682
- type?: "workspace_snapshot";
683
- digest?: string;
684
- snapshotId?: string;
682
+ type: "workspace_snapshot";
683
+ digest: string;
684
+ snapshotId: string;
685
685
  }>]>, "many">;
686
686
  }, "strict", z.ZodTypeAny, {
687
- type?: "review";
688
- implementationExecutionId?: string;
689
- implementationInvocationId?: string;
690
- specificationDigest?: string;
691
- evidence?: ({
692
- type?: "artifact";
693
- versionId?: string;
694
- artifactId?: string;
687
+ type: "review";
688
+ evidence: ({
689
+ type: "artifact";
690
+ artifactId: string;
691
+ versionId: string;
695
692
  } | {
696
- type?: "invocation_result";
697
- revision?: number;
698
- invocationId?: string;
693
+ type: "invocation_result";
694
+ revision: number;
695
+ invocationId: string;
699
696
  } | {
700
- type?: "workspace_snapshot";
701
- digest?: string;
702
- snapshotId?: string;
697
+ type: "workspace_snapshot";
698
+ digest: string;
699
+ snapshotId: string;
703
700
  })[];
701
+ implementationExecutionId: string;
702
+ implementationInvocationId: string;
703
+ specificationDigest: string;
704
704
  }, {
705
- type?: "review";
706
- implementationExecutionId?: string;
707
- implementationInvocationId?: string;
708
- specificationDigest?: string;
709
- evidence?: ({
710
- type?: "artifact";
711
- versionId?: string;
712
- artifactId?: string;
705
+ type: "review";
706
+ evidence: ({
707
+ type: "artifact";
708
+ artifactId: string;
709
+ versionId: string;
713
710
  } | {
714
- type?: "invocation_result";
715
- revision?: number;
716
- invocationId?: string;
711
+ type: "invocation_result";
712
+ revision: number;
713
+ invocationId: string;
717
714
  } | {
718
- type?: "workspace_snapshot";
719
- digest?: string;
720
- snapshotId?: string;
715
+ type: "workspace_snapshot";
716
+ digest: string;
717
+ snapshotId: string;
721
718
  })[];
719
+ implementationExecutionId: string;
720
+ implementationInvocationId: string;
721
+ specificationDigest: string;
722
722
  }>]>>;
723
723
  delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
724
724
  mode: z.ZodLiteral<"none">;
725
725
  }, "strict", z.ZodTypeAny, {
726
- mode?: "none";
726
+ mode: "none";
727
727
  }, {
728
- mode?: "none";
728
+ mode: "none";
729
729
  }>, z.ZodObject<{
730
730
  mode: z.ZodLiteral<"files">;
731
731
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
732
732
  }, "strict", z.ZodTypeAny, {
733
- mode?: "files";
734
- paths?: string[];
733
+ mode: "files";
734
+ paths?: string[] | undefined;
735
735
  }, {
736
- mode?: "files";
737
- paths?: string[];
736
+ mode: "files";
737
+ paths?: string[] | undefined;
738
738
  }>, z.ZodObject<{
739
739
  mode: z.ZodLiteral<"archive">;
740
740
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
741
741
  }, "strict", z.ZodTypeAny, {
742
- mode?: "archive";
743
- paths?: string[];
742
+ mode: "archive";
743
+ paths?: string[] | undefined;
744
744
  }, {
745
- mode?: "archive";
746
- paths?: string[];
745
+ mode: "archive";
746
+ paths?: string[] | undefined;
747
747
  }>]>>;
748
748
  instructions: z.ZodDefault<z.ZodString>;
749
749
  }, "strict", z.ZodTypeAny, {
750
- requestId?: string;
751
- target?: {
752
- type?: "group_member";
753
- participantId?: string;
754
- };
755
- instructions?: string;
756
- taskId?: string;
757
- bindingId?: string;
750
+ requestId: string;
751
+ expectedRevision: number;
752
+ taskId: string;
753
+ instructions: string;
754
+ bindingId?: string | undefined;
758
755
  purpose?: {
759
- type?: "implementation";
756
+ type: "implementation";
760
757
  } | {
761
- type?: "review";
762
- implementationExecutionId?: string;
763
- implementationInvocationId?: string;
764
- specificationDigest?: string;
765
- evidence?: ({
766
- type?: "artifact";
767
- versionId?: string;
768
- artifactId?: string;
758
+ type: "review";
759
+ evidence: ({
760
+ type: "artifact";
761
+ artifactId: string;
762
+ versionId: string;
769
763
  } | {
770
- type?: "invocation_result";
771
- revision?: number;
772
- invocationId?: string;
764
+ type: "invocation_result";
765
+ revision: number;
766
+ invocationId: string;
773
767
  } | {
774
- type?: "workspace_snapshot";
775
- digest?: string;
776
- snapshotId?: string;
768
+ type: "workspace_snapshot";
769
+ digest: string;
770
+ snapshotId: string;
777
771
  })[];
778
- };
779
- expectedRevision?: number;
772
+ implementationExecutionId: string;
773
+ implementationInvocationId: string;
774
+ specificationDigest: string;
775
+ } | undefined;
776
+ target?: {
777
+ type: "group_member";
778
+ participantId: string;
779
+ } | undefined;
780
780
  delivery?: {
781
- mode?: "none";
781
+ mode: "none";
782
782
  } | {
783
- mode?: "files";
784
- paths?: string[];
783
+ mode: "files";
784
+ paths?: string[] | undefined;
785
785
  } | {
786
- mode?: "archive";
787
- paths?: string[];
788
- };
786
+ mode: "archive";
787
+ paths?: string[] | undefined;
788
+ } | undefined;
789
789
  }, {
790
- requestId?: string;
791
- target?: {
792
- type?: "group_member";
793
- participantId?: string;
794
- };
795
- instructions?: string;
796
- taskId?: string;
797
- bindingId?: string;
790
+ requestId: string;
791
+ expectedRevision: number;
792
+ taskId: string;
793
+ bindingId?: string | undefined;
798
794
  purpose?: {
799
- type?: "implementation";
795
+ type: "implementation";
800
796
  } | {
801
- type?: "review";
802
- implementationExecutionId?: string;
803
- implementationInvocationId?: string;
804
- specificationDigest?: string;
805
- evidence?: ({
806
- type?: "artifact";
807
- versionId?: string;
808
- artifactId?: string;
797
+ type: "review";
798
+ evidence: ({
799
+ type: "artifact";
800
+ artifactId: string;
801
+ versionId: string;
809
802
  } | {
810
- type?: "invocation_result";
811
- revision?: number;
812
- invocationId?: string;
803
+ type: "invocation_result";
804
+ revision: number;
805
+ invocationId: string;
813
806
  } | {
814
- type?: "workspace_snapshot";
815
- digest?: string;
816
- snapshotId?: string;
807
+ type: "workspace_snapshot";
808
+ digest: string;
809
+ snapshotId: string;
817
810
  })[];
818
- };
819
- expectedRevision?: number;
811
+ implementationExecutionId: string;
812
+ implementationInvocationId: string;
813
+ specificationDigest: string;
814
+ } | undefined;
815
+ target?: {
816
+ type: "group_member";
817
+ participantId: string;
818
+ } | undefined;
820
819
  delivery?: {
821
- mode?: "none";
820
+ mode: "none";
822
821
  } | {
823
- mode?: "files";
824
- paths?: string[];
822
+ mode: "files";
823
+ paths?: string[] | undefined;
825
824
  } | {
826
- mode?: "archive";
827
- paths?: string[];
828
- };
825
+ mode: "archive";
826
+ paths?: string[] | undefined;
827
+ } | undefined;
828
+ instructions?: string | undefined;
829
829
  }>, {
830
- requestId?: string;
831
- target?: {
832
- type?: "group_member";
833
- participantId?: string;
834
- };
835
- instructions?: string;
836
- taskId?: string;
837
- bindingId?: string;
830
+ requestId: string;
831
+ expectedRevision: number;
832
+ taskId: string;
833
+ instructions: string;
834
+ bindingId?: string | undefined;
838
835
  purpose?: {
839
- type?: "implementation";
836
+ type: "implementation";
840
837
  } | {
841
- type?: "review";
842
- implementationExecutionId?: string;
843
- implementationInvocationId?: string;
844
- specificationDigest?: string;
845
- evidence?: ({
846
- type?: "artifact";
847
- versionId?: string;
848
- artifactId?: string;
838
+ type: "review";
839
+ evidence: ({
840
+ type: "artifact";
841
+ artifactId: string;
842
+ versionId: string;
849
843
  } | {
850
- type?: "invocation_result";
851
- revision?: number;
852
- invocationId?: string;
844
+ type: "invocation_result";
845
+ revision: number;
846
+ invocationId: string;
853
847
  } | {
854
- type?: "workspace_snapshot";
855
- digest?: string;
856
- snapshotId?: string;
848
+ type: "workspace_snapshot";
849
+ digest: string;
850
+ snapshotId: string;
857
851
  })[];
858
- };
859
- expectedRevision?: number;
852
+ implementationExecutionId: string;
853
+ implementationInvocationId: string;
854
+ specificationDigest: string;
855
+ } | undefined;
856
+ target?: {
857
+ type: "group_member";
858
+ participantId: string;
859
+ } | undefined;
860
860
  delivery?: {
861
- mode?: "none";
861
+ mode: "none";
862
862
  } | {
863
- mode?: "files";
864
- paths?: string[];
863
+ mode: "files";
864
+ paths?: string[] | undefined;
865
865
  } | {
866
- mode?: "archive";
867
- paths?: string[];
868
- };
866
+ mode: "archive";
867
+ paths?: string[] | undefined;
868
+ } | undefined;
869
869
  }, {
870
- requestId?: string;
871
- target?: {
872
- type?: "group_member";
873
- participantId?: string;
874
- };
875
- instructions?: string;
876
- taskId?: string;
877
- bindingId?: string;
870
+ requestId: string;
871
+ expectedRevision: number;
872
+ taskId: string;
873
+ bindingId?: string | undefined;
878
874
  purpose?: {
879
- type?: "implementation";
875
+ type: "implementation";
880
876
  } | {
881
- type?: "review";
882
- implementationExecutionId?: string;
883
- implementationInvocationId?: string;
884
- specificationDigest?: string;
885
- evidence?: ({
886
- type?: "artifact";
887
- versionId?: string;
888
- artifactId?: string;
877
+ type: "review";
878
+ evidence: ({
879
+ type: "artifact";
880
+ artifactId: string;
881
+ versionId: string;
889
882
  } | {
890
- type?: "invocation_result";
891
- revision?: number;
892
- invocationId?: string;
883
+ type: "invocation_result";
884
+ revision: number;
885
+ invocationId: string;
893
886
  } | {
894
- type?: "workspace_snapshot";
895
- digest?: string;
896
- snapshotId?: string;
887
+ type: "workspace_snapshot";
888
+ digest: string;
889
+ snapshotId: string;
897
890
  })[];
898
- };
899
- expectedRevision?: number;
891
+ implementationExecutionId: string;
892
+ implementationInvocationId: string;
893
+ specificationDigest: string;
894
+ } | undefined;
895
+ target?: {
896
+ type: "group_member";
897
+ participantId: string;
898
+ } | undefined;
900
899
  delivery?: {
901
- mode?: "none";
900
+ mode: "none";
902
901
  } | {
903
- mode?: "files";
904
- paths?: string[];
902
+ mode: "files";
903
+ paths?: string[] | undefined;
905
904
  } | {
906
- mode?: "archive";
907
- paths?: string[];
908
- };
905
+ mode: "archive";
906
+ paths?: string[] | undefined;
907
+ } | undefined;
908
+ instructions?: string | undefined;
909
909
  }>;
910
910
  export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<Omit<{
911
911
  requestId: z.ZodString;
@@ -916,18 +916,18 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
916
916
  type: z.ZodLiteral<"group_member">;
917
917
  participantId: z.ZodString;
918
918
  }, "strict", z.ZodTypeAny, {
919
- type?: "group_member";
920
- participantId?: string;
919
+ type: "group_member";
920
+ participantId: string;
921
921
  }, {
922
- type?: "group_member";
923
- participantId?: string;
922
+ type: "group_member";
923
+ participantId: string;
924
924
  }>>;
925
925
  purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
926
926
  type: z.ZodLiteral<"implementation">;
927
927
  }, "strict", z.ZodTypeAny, {
928
- type?: "implementation";
928
+ type: "implementation";
929
929
  }, {
930
- type?: "implementation";
930
+ type: "implementation";
931
931
  }>, z.ZodObject<{
932
932
  type: z.ZodLiteral<"review">;
933
933
  implementationExecutionId: z.ZodString;
@@ -938,257 +938,257 @@ export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObjec
938
938
  artifactId: z.ZodString;
939
939
  versionId: z.ZodString;
940
940
  }, "strict", z.ZodTypeAny, {
941
- type?: "artifact";
942
- versionId?: string;
943
- artifactId?: string;
941
+ type: "artifact";
942
+ artifactId: string;
943
+ versionId: string;
944
944
  }, {
945
- type?: "artifact";
946
- versionId?: string;
947
- artifactId?: string;
945
+ type: "artifact";
946
+ artifactId: string;
947
+ versionId: string;
948
948
  }>, z.ZodObject<{
949
949
  type: z.ZodLiteral<"invocation_result">;
950
950
  invocationId: z.ZodString;
951
951
  revision: z.ZodNumber;
952
952
  }, "strict", z.ZodTypeAny, {
953
- type?: "invocation_result";
954
- revision?: number;
955
- invocationId?: string;
953
+ type: "invocation_result";
954
+ revision: number;
955
+ invocationId: string;
956
956
  }, {
957
- type?: "invocation_result";
958
- revision?: number;
959
- invocationId?: string;
957
+ type: "invocation_result";
958
+ revision: number;
959
+ invocationId: string;
960
960
  }>, z.ZodObject<{
961
961
  type: z.ZodLiteral<"workspace_snapshot">;
962
962
  snapshotId: z.ZodString;
963
963
  digest: z.ZodString;
964
964
  }, "strict", z.ZodTypeAny, {
965
- type?: "workspace_snapshot";
966
- digest?: string;
967
- snapshotId?: string;
965
+ type: "workspace_snapshot";
966
+ digest: string;
967
+ snapshotId: string;
968
968
  }, {
969
- type?: "workspace_snapshot";
970
- digest?: string;
971
- snapshotId?: string;
969
+ type: "workspace_snapshot";
970
+ digest: string;
971
+ snapshotId: string;
972
972
  }>]>, "many">;
973
973
  }, "strict", z.ZodTypeAny, {
974
- type?: "review";
975
- implementationExecutionId?: string;
976
- implementationInvocationId?: string;
977
- specificationDigest?: string;
978
- evidence?: ({
979
- type?: "artifact";
980
- versionId?: string;
981
- artifactId?: string;
974
+ type: "review";
975
+ evidence: ({
976
+ type: "artifact";
977
+ artifactId: string;
978
+ versionId: string;
982
979
  } | {
983
- type?: "invocation_result";
984
- revision?: number;
985
- invocationId?: string;
980
+ type: "invocation_result";
981
+ revision: number;
982
+ invocationId: string;
986
983
  } | {
987
- type?: "workspace_snapshot";
988
- digest?: string;
989
- snapshotId?: string;
984
+ type: "workspace_snapshot";
985
+ digest: string;
986
+ snapshotId: string;
990
987
  })[];
988
+ implementationExecutionId: string;
989
+ implementationInvocationId: string;
990
+ specificationDigest: string;
991
991
  }, {
992
- type?: "review";
993
- implementationExecutionId?: string;
994
- implementationInvocationId?: string;
995
- specificationDigest?: string;
996
- evidence?: ({
997
- type?: "artifact";
998
- versionId?: string;
999
- artifactId?: string;
992
+ type: "review";
993
+ evidence: ({
994
+ type: "artifact";
995
+ artifactId: string;
996
+ versionId: string;
1000
997
  } | {
1001
- type?: "invocation_result";
1002
- revision?: number;
1003
- invocationId?: string;
998
+ type: "invocation_result";
999
+ revision: number;
1000
+ invocationId: string;
1004
1001
  } | {
1005
- type?: "workspace_snapshot";
1006
- digest?: string;
1007
- snapshotId?: string;
1002
+ type: "workspace_snapshot";
1003
+ digest: string;
1004
+ snapshotId: string;
1008
1005
  })[];
1006
+ implementationExecutionId: string;
1007
+ implementationInvocationId: string;
1008
+ specificationDigest: string;
1009
1009
  }>]>>;
1010
1010
  delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1011
1011
  mode: z.ZodLiteral<"none">;
1012
1012
  }, "strict", z.ZodTypeAny, {
1013
- mode?: "none";
1013
+ mode: "none";
1014
1014
  }, {
1015
- mode?: "none";
1015
+ mode: "none";
1016
1016
  }>, z.ZodObject<{
1017
1017
  mode: z.ZodLiteral<"files">;
1018
1018
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1019
1019
  }, "strict", z.ZodTypeAny, {
1020
- mode?: "files";
1021
- paths?: string[];
1020
+ mode: "files";
1021
+ paths?: string[] | undefined;
1022
1022
  }, {
1023
- mode?: "files";
1024
- paths?: string[];
1023
+ mode: "files";
1024
+ paths?: string[] | undefined;
1025
1025
  }>, z.ZodObject<{
1026
1026
  mode: z.ZodLiteral<"archive">;
1027
1027
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
1028
1028
  }, "strict", z.ZodTypeAny, {
1029
- mode?: "archive";
1030
- paths?: string[];
1029
+ mode: "archive";
1030
+ paths?: string[] | undefined;
1031
1031
  }, {
1032
- mode?: "archive";
1033
- paths?: string[];
1032
+ mode: "archive";
1033
+ paths?: string[] | undefined;
1034
1034
  }>]>>;
1035
1035
  instructions: z.ZodDefault<z.ZodString>;
1036
1036
  }, "requestId">, "strict", z.ZodTypeAny, {
1037
- target?: {
1038
- type?: "group_member";
1039
- participantId?: string;
1040
- };
1041
- instructions?: string;
1042
- taskId?: string;
1043
- bindingId?: string;
1037
+ expectedRevision: number;
1038
+ taskId: string;
1039
+ instructions: string;
1040
+ bindingId?: string | undefined;
1044
1041
  purpose?: {
1045
- type?: "implementation";
1042
+ type: "implementation";
1046
1043
  } | {
1047
- type?: "review";
1048
- implementationExecutionId?: string;
1049
- implementationInvocationId?: string;
1050
- specificationDigest?: string;
1051
- evidence?: ({
1052
- type?: "artifact";
1053
- versionId?: string;
1054
- artifactId?: string;
1044
+ type: "review";
1045
+ evidence: ({
1046
+ type: "artifact";
1047
+ artifactId: string;
1048
+ versionId: string;
1055
1049
  } | {
1056
- type?: "invocation_result";
1057
- revision?: number;
1058
- invocationId?: string;
1050
+ type: "invocation_result";
1051
+ revision: number;
1052
+ invocationId: string;
1059
1053
  } | {
1060
- type?: "workspace_snapshot";
1061
- digest?: string;
1062
- snapshotId?: string;
1054
+ type: "workspace_snapshot";
1055
+ digest: string;
1056
+ snapshotId: string;
1063
1057
  })[];
1064
- };
1065
- expectedRevision?: number;
1058
+ implementationExecutionId: string;
1059
+ implementationInvocationId: string;
1060
+ specificationDigest: string;
1061
+ } | undefined;
1062
+ target?: {
1063
+ type: "group_member";
1064
+ participantId: string;
1065
+ } | undefined;
1066
1066
  delivery?: {
1067
- mode?: "none";
1067
+ mode: "none";
1068
1068
  } | {
1069
- mode?: "files";
1070
- paths?: string[];
1069
+ mode: "files";
1070
+ paths?: string[] | undefined;
1071
1071
  } | {
1072
- mode?: "archive";
1073
- paths?: string[];
1074
- };
1072
+ mode: "archive";
1073
+ paths?: string[] | undefined;
1074
+ } | undefined;
1075
1075
  }, {
1076
- target?: {
1077
- type?: "group_member";
1078
- participantId?: string;
1079
- };
1080
- instructions?: string;
1081
- taskId?: string;
1082
- bindingId?: string;
1076
+ expectedRevision: number;
1077
+ taskId: string;
1078
+ bindingId?: string | undefined;
1083
1079
  purpose?: {
1084
- type?: "implementation";
1080
+ type: "implementation";
1085
1081
  } | {
1086
- type?: "review";
1087
- implementationExecutionId?: string;
1088
- implementationInvocationId?: string;
1089
- specificationDigest?: string;
1090
- evidence?: ({
1091
- type?: "artifact";
1092
- versionId?: string;
1093
- artifactId?: string;
1082
+ type: "review";
1083
+ evidence: ({
1084
+ type: "artifact";
1085
+ artifactId: string;
1086
+ versionId: string;
1094
1087
  } | {
1095
- type?: "invocation_result";
1096
- revision?: number;
1097
- invocationId?: string;
1088
+ type: "invocation_result";
1089
+ revision: number;
1090
+ invocationId: string;
1098
1091
  } | {
1099
- type?: "workspace_snapshot";
1100
- digest?: string;
1101
- snapshotId?: string;
1092
+ type: "workspace_snapshot";
1093
+ digest: string;
1094
+ snapshotId: string;
1102
1095
  })[];
1103
- };
1104
- expectedRevision?: number;
1096
+ implementationExecutionId: string;
1097
+ implementationInvocationId: string;
1098
+ specificationDigest: string;
1099
+ } | undefined;
1100
+ target?: {
1101
+ type: "group_member";
1102
+ participantId: string;
1103
+ } | undefined;
1105
1104
  delivery?: {
1106
- mode?: "none";
1105
+ mode: "none";
1107
1106
  } | {
1108
- mode?: "files";
1109
- paths?: string[];
1107
+ mode: "files";
1108
+ paths?: string[] | undefined;
1110
1109
  } | {
1111
- mode?: "archive";
1112
- paths?: string[];
1113
- };
1110
+ mode: "archive";
1111
+ paths?: string[] | undefined;
1112
+ } | undefined;
1113
+ instructions?: string | undefined;
1114
1114
  }>, {
1115
- target?: {
1116
- type?: "group_member";
1117
- participantId?: string;
1118
- };
1119
- instructions?: string;
1120
- taskId?: string;
1121
- bindingId?: string;
1115
+ expectedRevision: number;
1116
+ taskId: string;
1117
+ instructions: string;
1118
+ bindingId?: string | undefined;
1122
1119
  purpose?: {
1123
- type?: "implementation";
1120
+ type: "implementation";
1124
1121
  } | {
1125
- type?: "review";
1126
- implementationExecutionId?: string;
1127
- implementationInvocationId?: string;
1128
- specificationDigest?: string;
1129
- evidence?: ({
1130
- type?: "artifact";
1131
- versionId?: string;
1132
- artifactId?: string;
1122
+ type: "review";
1123
+ evidence: ({
1124
+ type: "artifact";
1125
+ artifactId: string;
1126
+ versionId: string;
1133
1127
  } | {
1134
- type?: "invocation_result";
1135
- revision?: number;
1136
- invocationId?: string;
1128
+ type: "invocation_result";
1129
+ revision: number;
1130
+ invocationId: string;
1137
1131
  } | {
1138
- type?: "workspace_snapshot";
1139
- digest?: string;
1140
- snapshotId?: string;
1132
+ type: "workspace_snapshot";
1133
+ digest: string;
1134
+ snapshotId: string;
1141
1135
  })[];
1142
- };
1143
- expectedRevision?: number;
1136
+ implementationExecutionId: string;
1137
+ implementationInvocationId: string;
1138
+ specificationDigest: string;
1139
+ } | undefined;
1140
+ target?: {
1141
+ type: "group_member";
1142
+ participantId: string;
1143
+ } | undefined;
1144
1144
  delivery?: {
1145
- mode?: "none";
1145
+ mode: "none";
1146
1146
  } | {
1147
- mode?: "files";
1148
- paths?: string[];
1147
+ mode: "files";
1148
+ paths?: string[] | undefined;
1149
1149
  } | {
1150
- mode?: "archive";
1151
- paths?: string[];
1152
- };
1150
+ mode: "archive";
1151
+ paths?: string[] | undefined;
1152
+ } | undefined;
1153
1153
  }, {
1154
- target?: {
1155
- type?: "group_member";
1156
- participantId?: string;
1157
- };
1158
- instructions?: string;
1159
- taskId?: string;
1160
- bindingId?: string;
1154
+ expectedRevision: number;
1155
+ taskId: string;
1156
+ bindingId?: string | undefined;
1161
1157
  purpose?: {
1162
- type?: "implementation";
1158
+ type: "implementation";
1163
1159
  } | {
1164
- type?: "review";
1165
- implementationExecutionId?: string;
1166
- implementationInvocationId?: string;
1167
- specificationDigest?: string;
1168
- evidence?: ({
1169
- type?: "artifact";
1170
- versionId?: string;
1171
- artifactId?: string;
1160
+ type: "review";
1161
+ evidence: ({
1162
+ type: "artifact";
1163
+ artifactId: string;
1164
+ versionId: string;
1172
1165
  } | {
1173
- type?: "invocation_result";
1174
- revision?: number;
1175
- invocationId?: string;
1166
+ type: "invocation_result";
1167
+ revision: number;
1168
+ invocationId: string;
1176
1169
  } | {
1177
- type?: "workspace_snapshot";
1178
- digest?: string;
1179
- snapshotId?: string;
1170
+ type: "workspace_snapshot";
1171
+ digest: string;
1172
+ snapshotId: string;
1180
1173
  })[];
1181
- };
1182
- expectedRevision?: number;
1174
+ implementationExecutionId: string;
1175
+ implementationInvocationId: string;
1176
+ specificationDigest: string;
1177
+ } | undefined;
1178
+ target?: {
1179
+ type: "group_member";
1180
+ participantId: string;
1181
+ } | undefined;
1183
1182
  delivery?: {
1184
- mode?: "none";
1183
+ mode: "none";
1185
1184
  } | {
1186
- mode?: "files";
1187
- paths?: string[];
1185
+ mode: "files";
1186
+ paths?: string[] | undefined;
1188
1187
  } | {
1189
- mode?: "archive";
1190
- paths?: string[];
1191
- };
1188
+ mode: "archive";
1189
+ paths?: string[] | undefined;
1190
+ } | undefined;
1191
+ instructions?: string | undefined;
1192
1192
  }>;
1193
1193
  export type ProjectTaskDispatchInput = z.output<typeof projectTaskDispatchInputSchema>;
1194
1194
  /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */
@@ -1202,80 +1202,80 @@ export declare const projectTaskReviewReportSchema: z.ZodObject<{
1202
1202
  artifactId: z.ZodString;
1203
1203
  versionId: z.ZodString;
1204
1204
  }, "strict", z.ZodTypeAny, {
1205
- type?: "artifact";
1206
- versionId?: string;
1207
- artifactId?: string;
1205
+ type: "artifact";
1206
+ artifactId: string;
1207
+ versionId: string;
1208
1208
  }, {
1209
- type?: "artifact";
1210
- versionId?: string;
1211
- artifactId?: string;
1209
+ type: "artifact";
1210
+ artifactId: string;
1211
+ versionId: string;
1212
1212
  }>, z.ZodObject<{
1213
1213
  type: z.ZodLiteral<"invocation_result">;
1214
1214
  invocationId: z.ZodString;
1215
1215
  revision: z.ZodNumber;
1216
1216
  }, "strict", z.ZodTypeAny, {
1217
- type?: "invocation_result";
1218
- revision?: number;
1219
- invocationId?: string;
1217
+ type: "invocation_result";
1218
+ revision: number;
1219
+ invocationId: string;
1220
1220
  }, {
1221
- type?: "invocation_result";
1222
- revision?: number;
1223
- invocationId?: string;
1221
+ type: "invocation_result";
1222
+ revision: number;
1223
+ invocationId: string;
1224
1224
  }>, z.ZodObject<{
1225
1225
  type: z.ZodLiteral<"workspace_snapshot">;
1226
1226
  snapshotId: z.ZodString;
1227
1227
  digest: z.ZodString;
1228
1228
  }, "strict", z.ZodTypeAny, {
1229
- type?: "workspace_snapshot";
1230
- digest?: string;
1231
- snapshotId?: string;
1229
+ type: "workspace_snapshot";
1230
+ digest: string;
1231
+ snapshotId: string;
1232
1232
  }, {
1233
- type?: "workspace_snapshot";
1234
- digest?: string;
1235
- snapshotId?: string;
1233
+ type: "workspace_snapshot";
1234
+ digest: string;
1235
+ snapshotId: string;
1236
1236
  }>]>, "many">;
1237
1237
  findings: z.ZodArray<z.ZodString, "many">;
1238
1238
  limitations: z.ZodArray<z.ZodString, "many">;
1239
1239
  }, "strict", z.ZodTypeAny, {
1240
- version?: 1;
1241
- implementationInvocationId?: string;
1242
- specificationDigest?: string;
1243
- evidence?: ({
1244
- type?: "artifact";
1245
- versionId?: string;
1246
- artifactId?: string;
1240
+ version: 1;
1241
+ evidence: ({
1242
+ type: "artifact";
1243
+ artifactId: string;
1244
+ versionId: string;
1247
1245
  } | {
1248
- type?: "invocation_result";
1249
- revision?: number;
1250
- invocationId?: string;
1246
+ type: "invocation_result";
1247
+ revision: number;
1248
+ invocationId: string;
1251
1249
  } | {
1252
- type?: "workspace_snapshot";
1253
- digest?: string;
1254
- snapshotId?: string;
1250
+ type: "workspace_snapshot";
1251
+ digest: string;
1252
+ snapshotId: string;
1255
1253
  })[];
1256
- verdict?: "indeterminate" | "pass" | "changes_required";
1257
- findings?: string[];
1258
- limitations?: string[];
1254
+ implementationInvocationId: string;
1255
+ specificationDigest: string;
1256
+ verdict: "pass" | "changes_required" | "indeterminate";
1257
+ findings: string[];
1258
+ limitations: string[];
1259
1259
  }, {
1260
- version?: 1;
1261
- implementationInvocationId?: string;
1262
- specificationDigest?: string;
1263
- evidence?: ({
1264
- type?: "artifact";
1265
- versionId?: string;
1266
- artifactId?: string;
1260
+ version: 1;
1261
+ evidence: ({
1262
+ type: "artifact";
1263
+ artifactId: string;
1264
+ versionId: string;
1267
1265
  } | {
1268
- type?: "invocation_result";
1269
- revision?: number;
1270
- invocationId?: string;
1266
+ type: "invocation_result";
1267
+ revision: number;
1268
+ invocationId: string;
1271
1269
  } | {
1272
- type?: "workspace_snapshot";
1273
- digest?: string;
1274
- snapshotId?: string;
1270
+ type: "workspace_snapshot";
1271
+ digest: string;
1272
+ snapshotId: string;
1275
1273
  })[];
1276
- verdict?: "indeterminate" | "pass" | "changes_required";
1277
- findings?: string[];
1278
- limitations?: string[];
1274
+ implementationInvocationId: string;
1275
+ specificationDigest: string;
1276
+ verdict: "pass" | "changes_required" | "indeterminate";
1277
+ findings: string[];
1278
+ limitations: string[];
1279
1279
  }>;
1280
1280
  export type ProjectTaskReviewReport = z.output<typeof projectTaskReviewReportSchema>;
1281
1281
  export declare const projectTaskDecisionInputSchema: z.ZodObject<{
@@ -1289,88 +1289,88 @@ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
1289
1289
  artifactId: z.ZodString;
1290
1290
  versionId: z.ZodString;
1291
1291
  }, "strict", z.ZodTypeAny, {
1292
- type?: "artifact";
1293
- versionId?: string;
1294
- artifactId?: string;
1292
+ type: "artifact";
1293
+ artifactId: string;
1294
+ versionId: string;
1295
1295
  }, {
1296
- type?: "artifact";
1297
- versionId?: string;
1298
- artifactId?: string;
1296
+ type: "artifact";
1297
+ artifactId: string;
1298
+ versionId: string;
1299
1299
  }>, z.ZodObject<{
1300
1300
  type: z.ZodLiteral<"invocation_result">;
1301
1301
  invocationId: z.ZodString;
1302
1302
  revision: z.ZodNumber;
1303
1303
  }, "strict", z.ZodTypeAny, {
1304
- type?: "invocation_result";
1305
- revision?: number;
1306
- invocationId?: string;
1304
+ type: "invocation_result";
1305
+ revision: number;
1306
+ invocationId: string;
1307
1307
  }, {
1308
- type?: "invocation_result";
1309
- revision?: number;
1310
- invocationId?: string;
1308
+ type: "invocation_result";
1309
+ revision: number;
1310
+ invocationId: string;
1311
1311
  }>, z.ZodObject<{
1312
1312
  type: z.ZodLiteral<"workspace_snapshot">;
1313
1313
  snapshotId: z.ZodString;
1314
1314
  digest: z.ZodString;
1315
1315
  }, "strict", z.ZodTypeAny, {
1316
- type?: "workspace_snapshot";
1317
- digest?: string;
1318
- snapshotId?: string;
1316
+ type: "workspace_snapshot";
1317
+ digest: string;
1318
+ snapshotId: string;
1319
1319
  }, {
1320
- type?: "workspace_snapshot";
1321
- digest?: string;
1322
- snapshotId?: string;
1320
+ type: "workspace_snapshot";
1321
+ digest: string;
1322
+ snapshotId: string;
1323
1323
  }>]>, "many">;
1324
1324
  reviewExecutionId: z.ZodOptional<z.ZodString>;
1325
1325
  outcome: z.ZodEnum<["accept", "rework"]>;
1326
1326
  rationale: z.ZodString;
1327
1327
  checks: z.ZodArray<z.ZodString, "many">;
1328
1328
  }, "strict", z.ZodTypeAny, {
1329
- requestId?: string;
1330
- outcome?: "accept" | "rework";
1331
- taskId?: string;
1332
- implementationExecutionId?: string;
1333
- specificationDigest?: string;
1334
- evidence?: ({
1335
- type?: "artifact";
1336
- versionId?: string;
1337
- artifactId?: string;
1329
+ outcome: "accept" | "rework";
1330
+ requestId: string;
1331
+ evidence: ({
1332
+ type: "artifact";
1333
+ artifactId: string;
1334
+ versionId: string;
1338
1335
  } | {
1339
- type?: "invocation_result";
1340
- revision?: number;
1341
- invocationId?: string;
1336
+ type: "invocation_result";
1337
+ revision: number;
1338
+ invocationId: string;
1342
1339
  } | {
1343
- type?: "workspace_snapshot";
1344
- digest?: string;
1345
- snapshotId?: string;
1340
+ type: "workspace_snapshot";
1341
+ digest: string;
1342
+ snapshotId: string;
1346
1343
  })[];
1347
- expectedRevision?: number;
1348
- reviewExecutionId?: string;
1349
- rationale?: string;
1350
- checks?: string[];
1344
+ expectedRevision: number;
1345
+ implementationExecutionId: string;
1346
+ specificationDigest: string;
1347
+ taskId: string;
1348
+ rationale: string;
1349
+ checks: string[];
1350
+ reviewExecutionId?: string | undefined;
1351
1351
  }, {
1352
- requestId?: string;
1353
- outcome?: "accept" | "rework";
1354
- taskId?: string;
1355
- implementationExecutionId?: string;
1356
- specificationDigest?: string;
1357
- evidence?: ({
1358
- type?: "artifact";
1359
- versionId?: string;
1360
- artifactId?: string;
1352
+ outcome: "accept" | "rework";
1353
+ requestId: string;
1354
+ evidence: ({
1355
+ type: "artifact";
1356
+ artifactId: string;
1357
+ versionId: string;
1361
1358
  } | {
1362
- type?: "invocation_result";
1363
- revision?: number;
1364
- invocationId?: string;
1359
+ type: "invocation_result";
1360
+ revision: number;
1361
+ invocationId: string;
1365
1362
  } | {
1366
- type?: "workspace_snapshot";
1367
- digest?: string;
1368
- snapshotId?: string;
1363
+ type: "workspace_snapshot";
1364
+ digest: string;
1365
+ snapshotId: string;
1369
1366
  })[];
1370
- expectedRevision?: number;
1371
- reviewExecutionId?: string;
1372
- rationale?: string;
1373
- checks?: string[];
1367
+ expectedRevision: number;
1368
+ implementationExecutionId: string;
1369
+ specificationDigest: string;
1370
+ taskId: string;
1371
+ rationale: string;
1372
+ checks: string[];
1373
+ reviewExecutionId?: string | undefined;
1374
1374
  }>;
1375
1375
  export type ProjectTaskDecisionInput = z.output<typeof projectTaskDecisionInputSchema>;
1376
1376
  export declare const projectTaskDecisionSchema: z.ZodObject<{
@@ -1384,37 +1384,37 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1384
1384
  artifactId: z.ZodString;
1385
1385
  versionId: z.ZodString;
1386
1386
  }, "strict", z.ZodTypeAny, {
1387
- type?: "artifact";
1388
- versionId?: string;
1389
- artifactId?: string;
1387
+ type: "artifact";
1388
+ artifactId: string;
1389
+ versionId: string;
1390
1390
  }, {
1391
- type?: "artifact";
1392
- versionId?: string;
1393
- artifactId?: string;
1391
+ type: "artifact";
1392
+ artifactId: string;
1393
+ versionId: string;
1394
1394
  }>, z.ZodObject<{
1395
1395
  type: z.ZodLiteral<"invocation_result">;
1396
1396
  invocationId: z.ZodString;
1397
1397
  revision: z.ZodNumber;
1398
1398
  }, "strict", z.ZodTypeAny, {
1399
- type?: "invocation_result";
1400
- revision?: number;
1401
- invocationId?: string;
1399
+ type: "invocation_result";
1400
+ revision: number;
1401
+ invocationId: string;
1402
1402
  }, {
1403
- type?: "invocation_result";
1404
- revision?: number;
1405
- invocationId?: string;
1403
+ type: "invocation_result";
1404
+ revision: number;
1405
+ invocationId: string;
1406
1406
  }>, z.ZodObject<{
1407
1407
  type: z.ZodLiteral<"workspace_snapshot">;
1408
1408
  snapshotId: z.ZodString;
1409
1409
  digest: z.ZodString;
1410
1410
  }, "strict", z.ZodTypeAny, {
1411
- type?: "workspace_snapshot";
1412
- digest?: string;
1413
- snapshotId?: string;
1411
+ type: "workspace_snapshot";
1412
+ digest: string;
1413
+ snapshotId: string;
1414
1414
  }, {
1415
- type?: "workspace_snapshot";
1416
- digest?: string;
1417
- snapshotId?: string;
1415
+ type: "workspace_snapshot";
1416
+ digest: string;
1417
+ snapshotId: string;
1418
1418
  }>]>, "many">;
1419
1419
  reviewExecutionId: z.ZodOptional<z.ZodString>;
1420
1420
  outcome: z.ZodEnum<["accept", "rework"]>;
@@ -1427,60 +1427,60 @@ export declare const projectTaskDecisionSchema: z.ZodObject<{
1427
1427
  decidedAt: z.ZodString;
1428
1428
  taskRevision: z.ZodNumber;
1429
1429
  }, "strict", z.ZodTypeAny, {
1430
- decidedAt?: string;
1431
- requestId?: string;
1432
- actorId?: string;
1433
- actorType?: "xpert" | "user" | "project_agent";
1434
- executionId?: string;
1435
- outcome?: "accept" | "rework";
1436
- taskId?: string;
1437
- implementationExecutionId?: string;
1438
- specificationDigest?: string;
1439
- evidence?: ({
1440
- type?: "artifact";
1441
- versionId?: string;
1442
- artifactId?: string;
1430
+ outcome: "accept" | "rework";
1431
+ requestId: string;
1432
+ evidence: ({
1433
+ type: "artifact";
1434
+ artifactId: string;
1435
+ versionId: string;
1443
1436
  } | {
1444
- type?: "invocation_result";
1445
- revision?: number;
1446
- invocationId?: string;
1437
+ type: "invocation_result";
1438
+ revision: number;
1439
+ invocationId: string;
1447
1440
  } | {
1448
- type?: "workspace_snapshot";
1449
- digest?: string;
1450
- snapshotId?: string;
1441
+ type: "workspace_snapshot";
1442
+ digest: string;
1443
+ snapshotId: string;
1451
1444
  })[];
1452
- expectedRevision?: number;
1453
- reviewExecutionId?: string;
1454
- rationale?: string;
1455
- checks?: string[];
1456
- taskRevision?: number;
1445
+ decidedAt: string;
1446
+ expectedRevision: number;
1447
+ implementationExecutionId: string;
1448
+ specificationDigest: string;
1449
+ taskId: string;
1450
+ rationale: string;
1451
+ checks: string[];
1452
+ actorId: string;
1453
+ actorType: "user" | "xpert" | "project_agent";
1454
+ taskRevision: number;
1455
+ executionId?: string | undefined;
1456
+ reviewExecutionId?: string | undefined;
1457
1457
  }, {
1458
- decidedAt?: string;
1459
- requestId?: string;
1460
- actorId?: string;
1461
- actorType?: "xpert" | "user" | "project_agent";
1462
- executionId?: string;
1463
- outcome?: "accept" | "rework";
1464
- taskId?: string;
1465
- implementationExecutionId?: string;
1466
- specificationDigest?: string;
1467
- evidence?: ({
1468
- type?: "artifact";
1469
- versionId?: string;
1470
- artifactId?: string;
1458
+ outcome: "accept" | "rework";
1459
+ requestId: string;
1460
+ evidence: ({
1461
+ type: "artifact";
1462
+ artifactId: string;
1463
+ versionId: string;
1471
1464
  } | {
1472
- type?: "invocation_result";
1473
- revision?: number;
1474
- invocationId?: string;
1465
+ type: "invocation_result";
1466
+ revision: number;
1467
+ invocationId: string;
1475
1468
  } | {
1476
- type?: "workspace_snapshot";
1477
- digest?: string;
1478
- snapshotId?: string;
1469
+ type: "workspace_snapshot";
1470
+ digest: string;
1471
+ snapshotId: string;
1479
1472
  })[];
1480
- expectedRevision?: number;
1481
- reviewExecutionId?: string;
1482
- rationale?: string;
1483
- checks?: string[];
1484
- taskRevision?: number;
1473
+ decidedAt: string;
1474
+ expectedRevision: number;
1475
+ implementationExecutionId: string;
1476
+ specificationDigest: string;
1477
+ taskId: string;
1478
+ rationale: string;
1479
+ checks: string[];
1480
+ actorId: string;
1481
+ actorType: "user" | "xpert" | "project_agent";
1482
+ taskRevision: number;
1483
+ executionId?: string | undefined;
1484
+ reviewExecutionId?: string | undefined;
1485
1485
  }>;
1486
1486
  export type ProjectTaskDecision = z.output<typeof projectTaskDecisionSchema>;