@xpert-ai/contracts 3.19.0 → 3.21.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 (51) hide show
  1. package/index.cjs.js +425 -20
  2. package/index.esm.js +372 -22
  3. package/package.json +5 -2
  4. package/src/agent/ai-model.d.ts +1 -0
  5. package/src/agent/token.d.ts +4 -0
  6. package/src/ai/agent-output-delivery.model.d.ts +31 -0
  7. package/src/ai/agent-runtime.model.d.ts +53 -0
  8. package/src/ai/ai-model.model.d.ts +3 -0
  9. package/src/ai/assistant-binding.model.d.ts +3 -0
  10. package/src/ai/assistant-configuration.model.d.ts +31 -0
  11. package/src/ai/bosi.model.d.ts +73 -0
  12. package/src/ai/chat-group-entity.model.d.ts +93 -0
  13. package/src/ai/chat-group.model.d.ts +298 -0
  14. package/src/ai/chat-message-envelope.model.d.ts +55 -0
  15. package/src/ai/chat-message.model.d.ts +10 -0
  16. package/src/ai/chat.model.d.ts +26 -0
  17. package/src/ai/conversation-entry.model.d.ts +18 -0
  18. package/src/ai/execution-activity.model.d.ts +547 -0
  19. package/src/ai/index.d.ts +11 -0
  20. package/src/ai/mcp-capability.model.d.ts +5 -1
  21. package/src/ai/membership.model.d.ts +5 -0
  22. package/src/ai/model-execution.model.d.ts +265 -0
  23. package/src/ai/model-gateway.model.d.ts +15 -3
  24. package/src/ai/model-usage.model.d.ts +19 -0
  25. package/src/ai/project-task-graph.model.d.ts +12 -0
  26. package/src/ai/project-task-runtime.model.d.ts +1106 -0
  27. package/src/ai/project-task-type.model.d.ts +13 -0
  28. package/src/ai/prompt-workflow.model.d.ts +4 -0
  29. package/src/ai/realtime-voice.model.d.ts +90 -0
  30. package/src/ai/realtime-voice.transport.d.ts +54 -0
  31. package/src/ai/resource-card.d.ts +2 -0
  32. package/src/ai/sandbox-terminal.model.d.ts +1 -0
  33. package/src/ai/thread-activity.model.d.ts +14 -0
  34. package/src/ai/xpert-agent-execution.model.d.ts +4 -0
  35. package/src/ai/xpert-project.model.d.ts +21 -0
  36. package/src/ai/xpert-template.model.d.ts +23 -5
  37. package/src/ai/xpert-tool-mcp.model.d.ts +6 -0
  38. package/src/ai/xpert.model.d.ts +7 -2
  39. package/src/api-key.model.d.ts +37 -2
  40. package/src/default-agent-plugins.d.ts +19 -0
  41. package/src/i18n.model.d.ts +1 -0
  42. package/src/index.d.ts +5 -0
  43. package/src/plugin-application.d.ts +256 -0
  44. package/src/plugin-management.d.ts +112 -0
  45. package/src/plugin.d.ts +3 -319
  46. package/src/runtime-control.d.ts +13 -0
  47. package/src/secret-token.model.d.ts +8 -1
  48. package/src/setup-plugins.d.ts +75 -0
  49. package/src/types.d.ts +4 -0
  50. package/src/view-extension/model.d.ts +22 -1
  51. package/src/view-extension/workbench.d.ts +6 -2
@@ -0,0 +1,1106 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const projectTaskSpecificationDigestSchema: z.ZodString;
3
+ /** Only requirements belong here; status, progress, assignment and generic revision do not. */
4
+ export declare const projectTaskSpecificationSchema: z.ZodEffects<z.ZodObject<{
5
+ version: z.ZodLiteral<1>;
6
+ title: z.ZodString;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ requirements: z.ZodArray<z.ZodString, "many">;
9
+ steps: z.ZodArray<z.ZodObject<{
10
+ stepIndex: z.ZodNumber;
11
+ description: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ description?: string;
14
+ stepIndex?: number;
15
+ }, {
16
+ description?: string;
17
+ stepIndex?: number;
18
+ }>, "many">;
19
+ }, "strict", z.ZodTypeAny, {
20
+ description?: string;
21
+ version?: 1;
22
+ title?: string;
23
+ steps?: {
24
+ description?: string;
25
+ stepIndex?: number;
26
+ }[];
27
+ requirements?: string[];
28
+ }, {
29
+ description?: string;
30
+ version?: 1;
31
+ title?: string;
32
+ steps?: {
33
+ description?: string;
34
+ stepIndex?: number;
35
+ }[];
36
+ requirements?: string[];
37
+ }>, {
38
+ description?: string;
39
+ version?: 1;
40
+ title?: string;
41
+ steps?: {
42
+ description?: string;
43
+ stepIndex?: number;
44
+ }[];
45
+ requirements?: string[];
46
+ }, {
47
+ description?: string;
48
+ version?: 1;
49
+ title?: string;
50
+ steps?: {
51
+ description?: string;
52
+ stepIndex?: number;
53
+ }[];
54
+ requirements?: string[];
55
+ }>;
56
+ export type ProjectTaskSpecification = z.output<typeof projectTaskSpecificationSchema>;
57
+ /** The host verifies the digest against the specification at the persistence boundary. */
58
+ export declare const projectTaskSpecificationSnapshotSchema: z.ZodObject<{
59
+ digest: z.ZodString;
60
+ specification: z.ZodEffects<z.ZodObject<{
61
+ version: z.ZodLiteral<1>;
62
+ title: z.ZodString;
63
+ description: z.ZodOptional<z.ZodString>;
64
+ requirements: z.ZodArray<z.ZodString, "many">;
65
+ steps: z.ZodArray<z.ZodObject<{
66
+ stepIndex: z.ZodNumber;
67
+ description: z.ZodString;
68
+ }, "strict", z.ZodTypeAny, {
69
+ description?: string;
70
+ stepIndex?: number;
71
+ }, {
72
+ description?: string;
73
+ stepIndex?: number;
74
+ }>, "many">;
75
+ }, "strict", z.ZodTypeAny, {
76
+ description?: string;
77
+ version?: 1;
78
+ title?: string;
79
+ steps?: {
80
+ description?: string;
81
+ stepIndex?: number;
82
+ }[];
83
+ requirements?: string[];
84
+ }, {
85
+ description?: string;
86
+ version?: 1;
87
+ title?: string;
88
+ steps?: {
89
+ description?: string;
90
+ stepIndex?: number;
91
+ }[];
92
+ requirements?: string[];
93
+ }>, {
94
+ description?: string;
95
+ version?: 1;
96
+ title?: string;
97
+ steps?: {
98
+ description?: string;
99
+ stepIndex?: number;
100
+ }[];
101
+ requirements?: string[];
102
+ }, {
103
+ description?: string;
104
+ version?: 1;
105
+ title?: string;
106
+ steps?: {
107
+ description?: string;
108
+ stepIndex?: number;
109
+ }[];
110
+ requirements?: string[];
111
+ }>;
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;
121
+ }[];
122
+ requirements?: string[];
123
+ };
124
+ }, {
125
+ digest?: string;
126
+ specification?: {
127
+ description?: string;
128
+ version?: 1;
129
+ title?: string;
130
+ steps?: {
131
+ description?: string;
132
+ stepIndex?: number;
133
+ }[];
134
+ requirements?: string[];
135
+ };
136
+ }>;
137
+ export type ProjectTaskSpecificationSnapshot = z.output<typeof projectTaskSpecificationSnapshotSchema>;
138
+ /** Versioned references, not paths or access grants. Resolve and authorize before reading. */
139
+ export declare const projectTaskEvidenceReferenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
140
+ type: z.ZodLiteral<"artifact">;
141
+ artifactId: z.ZodString;
142
+ versionId: z.ZodString;
143
+ }, "strict", z.ZodTypeAny, {
144
+ type?: "artifact";
145
+ versionId?: string;
146
+ artifactId?: string;
147
+ }, {
148
+ type?: "artifact";
149
+ versionId?: string;
150
+ artifactId?: string;
151
+ }>, z.ZodObject<{
152
+ type: z.ZodLiteral<"invocation_result">;
153
+ invocationId: z.ZodString;
154
+ revision: z.ZodNumber;
155
+ }, "strict", z.ZodTypeAny, {
156
+ type?: "invocation_result";
157
+ revision?: number;
158
+ invocationId?: string;
159
+ }, {
160
+ type?: "invocation_result";
161
+ revision?: number;
162
+ invocationId?: string;
163
+ }>, z.ZodObject<{
164
+ type: z.ZodLiteral<"workspace_snapshot">;
165
+ snapshotId: z.ZodString;
166
+ digest: z.ZodString;
167
+ }, "strict", z.ZodTypeAny, {
168
+ type?: "workspace_snapshot";
169
+ digest?: string;
170
+ snapshotId?: string;
171
+ }, {
172
+ type?: "workspace_snapshot";
173
+ digest?: string;
174
+ snapshotId?: string;
175
+ }>]>;
176
+ export type ProjectTaskEvidenceReference = z.output<typeof projectTaskEvidenceReferenceSchema>;
177
+ export declare const projectTaskExecutionPurposeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
178
+ type: z.ZodLiteral<"implementation">;
179
+ }, "strict", z.ZodTypeAny, {
180
+ type?: "implementation";
181
+ }, {
182
+ type?: "implementation";
183
+ }>, z.ZodObject<{
184
+ type: z.ZodLiteral<"review">;
185
+ implementationExecutionId: z.ZodString;
186
+ implementationInvocationId: z.ZodString;
187
+ specificationDigest: z.ZodString;
188
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
189
+ type: z.ZodLiteral<"artifact">;
190
+ artifactId: z.ZodString;
191
+ versionId: z.ZodString;
192
+ }, "strict", z.ZodTypeAny, {
193
+ type?: "artifact";
194
+ versionId?: string;
195
+ artifactId?: string;
196
+ }, {
197
+ type?: "artifact";
198
+ versionId?: string;
199
+ artifactId?: string;
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"invocation_result">;
202
+ invocationId: z.ZodString;
203
+ revision: z.ZodNumber;
204
+ }, "strict", z.ZodTypeAny, {
205
+ type?: "invocation_result";
206
+ revision?: number;
207
+ invocationId?: string;
208
+ }, {
209
+ type?: "invocation_result";
210
+ revision?: number;
211
+ invocationId?: string;
212
+ }>, z.ZodObject<{
213
+ type: z.ZodLiteral<"workspace_snapshot">;
214
+ snapshotId: z.ZodString;
215
+ digest: z.ZodString;
216
+ }, "strict", z.ZodTypeAny, {
217
+ type?: "workspace_snapshot";
218
+ digest?: string;
219
+ snapshotId?: string;
220
+ }, {
221
+ type?: "workspace_snapshot";
222
+ digest?: string;
223
+ snapshotId?: string;
224
+ }>]>, "many">;
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;
234
+ } | {
235
+ type?: "invocation_result";
236
+ revision?: number;
237
+ invocationId?: string;
238
+ } | {
239
+ type?: "workspace_snapshot";
240
+ digest?: string;
241
+ snapshotId?: string;
242
+ })[];
243
+ }, {
244
+ type?: "review";
245
+ implementationExecutionId?: string;
246
+ implementationInvocationId?: string;
247
+ specificationDigest?: string;
248
+ evidence?: ({
249
+ type?: "artifact";
250
+ versionId?: string;
251
+ artifactId?: string;
252
+ } | {
253
+ type?: "invocation_result";
254
+ revision?: number;
255
+ invocationId?: string;
256
+ } | {
257
+ type?: "workspace_snapshot";
258
+ digest?: string;
259
+ snapshotId?: string;
260
+ })[];
261
+ }>]>;
262
+ export type ProjectTaskExecutionPurpose = z.output<typeof projectTaskExecutionPurposeSchema>;
263
+ export declare const projectTaskExecutionReferenceSchema: z.ZodObject<{
264
+ projectId: z.ZodString;
265
+ projectTaskId: z.ZodString;
266
+ taskExecutionId: z.ZodString;
267
+ }, "strict", z.ZodTypeAny, {
268
+ projectId?: string;
269
+ projectTaskId?: string;
270
+ taskExecutionId?: string;
271
+ }, {
272
+ projectId?: string;
273
+ projectTaskId?: string;
274
+ taskExecutionId?: string;
275
+ }>;
276
+ export type ProjectTaskExecutionReference = z.output<typeof projectTaskExecutionReferenceSchema>;
277
+ /** Host-owned attempt context. Review is a new attempt and grants no completion authority. */
278
+ export declare const projectTaskExecutionContextSchema: z.ZodEffects<z.ZodObject<{
279
+ projectId: z.ZodString;
280
+ projectTaskId: z.ZodString;
281
+ taskExecutionId: z.ZodString;
282
+ } & {
283
+ specification: z.ZodObject<{
284
+ digest: z.ZodString;
285
+ specification: z.ZodEffects<z.ZodObject<{
286
+ version: z.ZodLiteral<1>;
287
+ title: z.ZodString;
288
+ description: z.ZodOptional<z.ZodString>;
289
+ requirements: z.ZodArray<z.ZodString, "many">;
290
+ steps: z.ZodArray<z.ZodObject<{
291
+ stepIndex: z.ZodNumber;
292
+ description: z.ZodString;
293
+ }, "strict", z.ZodTypeAny, {
294
+ description?: string;
295
+ stepIndex?: number;
296
+ }, {
297
+ description?: string;
298
+ stepIndex?: number;
299
+ }>, "many">;
300
+ }, "strict", z.ZodTypeAny, {
301
+ description?: string;
302
+ version?: 1;
303
+ title?: string;
304
+ steps?: {
305
+ description?: string;
306
+ stepIndex?: number;
307
+ }[];
308
+ requirements?: string[];
309
+ }, {
310
+ description?: string;
311
+ version?: 1;
312
+ title?: string;
313
+ steps?: {
314
+ description?: string;
315
+ stepIndex?: number;
316
+ }[];
317
+ requirements?: string[];
318
+ }>, {
319
+ description?: string;
320
+ version?: 1;
321
+ title?: string;
322
+ steps?: {
323
+ description?: string;
324
+ stepIndex?: number;
325
+ }[];
326
+ requirements?: string[];
327
+ }, {
328
+ description?: string;
329
+ version?: 1;
330
+ title?: string;
331
+ steps?: {
332
+ description?: string;
333
+ stepIndex?: number;
334
+ }[];
335
+ requirements?: string[];
336
+ }>;
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;
346
+ }[];
347
+ requirements?: string[];
348
+ };
349
+ }, {
350
+ digest?: string;
351
+ specification?: {
352
+ description?: string;
353
+ version?: 1;
354
+ title?: string;
355
+ steps?: {
356
+ description?: string;
357
+ stepIndex?: number;
358
+ }[];
359
+ requirements?: string[];
360
+ };
361
+ }>;
362
+ purpose: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
363
+ type: z.ZodLiteral<"implementation">;
364
+ }, "strict", z.ZodTypeAny, {
365
+ type?: "implementation";
366
+ }, {
367
+ type?: "implementation";
368
+ }>, z.ZodObject<{
369
+ type: z.ZodLiteral<"review">;
370
+ implementationExecutionId: z.ZodString;
371
+ implementationInvocationId: z.ZodString;
372
+ specificationDigest: z.ZodString;
373
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
374
+ type: z.ZodLiteral<"artifact">;
375
+ artifactId: z.ZodString;
376
+ versionId: z.ZodString;
377
+ }, "strict", z.ZodTypeAny, {
378
+ type?: "artifact";
379
+ versionId?: string;
380
+ artifactId?: string;
381
+ }, {
382
+ type?: "artifact";
383
+ versionId?: string;
384
+ artifactId?: string;
385
+ }>, z.ZodObject<{
386
+ type: z.ZodLiteral<"invocation_result">;
387
+ invocationId: z.ZodString;
388
+ revision: z.ZodNumber;
389
+ }, "strict", z.ZodTypeAny, {
390
+ type?: "invocation_result";
391
+ revision?: number;
392
+ invocationId?: string;
393
+ }, {
394
+ type?: "invocation_result";
395
+ revision?: number;
396
+ invocationId?: string;
397
+ }>, z.ZodObject<{
398
+ type: z.ZodLiteral<"workspace_snapshot">;
399
+ snapshotId: z.ZodString;
400
+ digest: z.ZodString;
401
+ }, "strict", z.ZodTypeAny, {
402
+ type?: "workspace_snapshot";
403
+ digest?: string;
404
+ snapshotId?: string;
405
+ }, {
406
+ type?: "workspace_snapshot";
407
+ digest?: string;
408
+ snapshotId?: string;
409
+ }>]>, "many">;
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;
419
+ } | {
420
+ type?: "invocation_result";
421
+ revision?: number;
422
+ invocationId?: string;
423
+ } | {
424
+ type?: "workspace_snapshot";
425
+ digest?: string;
426
+ snapshotId?: string;
427
+ })[];
428
+ }, {
429
+ type?: "review";
430
+ implementationExecutionId?: string;
431
+ implementationInvocationId?: string;
432
+ specificationDigest?: string;
433
+ evidence?: ({
434
+ type?: "artifact";
435
+ versionId?: string;
436
+ artifactId?: string;
437
+ } | {
438
+ type?: "invocation_result";
439
+ revision?: number;
440
+ invocationId?: string;
441
+ } | {
442
+ type?: "workspace_snapshot";
443
+ digest?: string;
444
+ snapshotId?: string;
445
+ })[];
446
+ }>]>;
447
+ }, "strict", z.ZodTypeAny, {
448
+ projectId?: string;
449
+ specification?: {
450
+ digest?: string;
451
+ specification?: {
452
+ description?: string;
453
+ version?: 1;
454
+ title?: string;
455
+ steps?: {
456
+ description?: string;
457
+ stepIndex?: number;
458
+ }[];
459
+ requirements?: string[];
460
+ };
461
+ };
462
+ projectTaskId?: string;
463
+ taskExecutionId?: string;
464
+ purpose?: {
465
+ type?: "implementation";
466
+ } | {
467
+ type?: "review";
468
+ implementationExecutionId?: string;
469
+ implementationInvocationId?: string;
470
+ specificationDigest?: string;
471
+ evidence?: ({
472
+ type?: "artifact";
473
+ versionId?: string;
474
+ artifactId?: string;
475
+ } | {
476
+ type?: "invocation_result";
477
+ revision?: number;
478
+ invocationId?: string;
479
+ } | {
480
+ type?: "workspace_snapshot";
481
+ digest?: string;
482
+ snapshotId?: string;
483
+ })[];
484
+ };
485
+ }, {
486
+ projectId?: string;
487
+ specification?: {
488
+ digest?: string;
489
+ specification?: {
490
+ description?: string;
491
+ version?: 1;
492
+ title?: string;
493
+ steps?: {
494
+ description?: string;
495
+ stepIndex?: number;
496
+ }[];
497
+ requirements?: string[];
498
+ };
499
+ };
500
+ projectTaskId?: string;
501
+ taskExecutionId?: string;
502
+ purpose?: {
503
+ type?: "implementation";
504
+ } | {
505
+ type?: "review";
506
+ implementationExecutionId?: string;
507
+ implementationInvocationId?: string;
508
+ specificationDigest?: string;
509
+ evidence?: ({
510
+ type?: "artifact";
511
+ versionId?: string;
512
+ artifactId?: string;
513
+ } | {
514
+ type?: "invocation_result";
515
+ revision?: number;
516
+ invocationId?: string;
517
+ } | {
518
+ type?: "workspace_snapshot";
519
+ digest?: string;
520
+ snapshotId?: string;
521
+ })[];
522
+ };
523
+ }>, {
524
+ projectId?: string;
525
+ specification?: {
526
+ digest?: string;
527
+ specification?: {
528
+ description?: string;
529
+ version?: 1;
530
+ title?: string;
531
+ steps?: {
532
+ description?: string;
533
+ stepIndex?: number;
534
+ }[];
535
+ requirements?: string[];
536
+ };
537
+ };
538
+ projectTaskId?: string;
539
+ taskExecutionId?: string;
540
+ purpose?: {
541
+ type?: "implementation";
542
+ } | {
543
+ type?: "review";
544
+ implementationExecutionId?: string;
545
+ implementationInvocationId?: string;
546
+ specificationDigest?: string;
547
+ evidence?: ({
548
+ type?: "artifact";
549
+ versionId?: string;
550
+ artifactId?: string;
551
+ } | {
552
+ type?: "invocation_result";
553
+ revision?: number;
554
+ invocationId?: string;
555
+ } | {
556
+ type?: "workspace_snapshot";
557
+ digest?: string;
558
+ snapshotId?: string;
559
+ })[];
560
+ };
561
+ }, {
562
+ projectId?: string;
563
+ specification?: {
564
+ digest?: string;
565
+ specification?: {
566
+ description?: string;
567
+ version?: 1;
568
+ title?: string;
569
+ steps?: {
570
+ description?: string;
571
+ stepIndex?: number;
572
+ }[];
573
+ requirements?: string[];
574
+ };
575
+ };
576
+ projectTaskId?: string;
577
+ taskExecutionId?: string;
578
+ purpose?: {
579
+ type?: "implementation";
580
+ } | {
581
+ type?: "review";
582
+ implementationExecutionId?: string;
583
+ implementationInvocationId?: string;
584
+ specificationDigest?: string;
585
+ evidence?: ({
586
+ type?: "artifact";
587
+ versionId?: string;
588
+ artifactId?: string;
589
+ } | {
590
+ type?: "invocation_result";
591
+ revision?: number;
592
+ invocationId?: string;
593
+ } | {
594
+ type?: "workspace_snapshot";
595
+ digest?: string;
596
+ snapshotId?: string;
597
+ })[];
598
+ };
599
+ }>;
600
+ export type ProjectTaskExecutionContext = z.output<typeof projectTaskExecutionContextSchema>;
601
+ /** A receipt is neither a business completion decision nor proof that the process has started. */
602
+ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
603
+ projectId: z.ZodString;
604
+ projectTaskId: z.ZodString;
605
+ taskExecutionId: z.ZodString;
606
+ } & {
607
+ invocationId: z.ZodString;
608
+ status: z.ZodEnum<["queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
609
+ }, "strict", z.ZodTypeAny, {
610
+ status?: "succeeded" | "failed" | "running" | "unknown" | "queued" | "waiting" | "cancelled" | "cancelling";
611
+ projectId?: string;
612
+ invocationId?: string;
613
+ projectTaskId?: string;
614
+ taskExecutionId?: string;
615
+ }, {
616
+ status?: "succeeded" | "failed" | "running" | "unknown" | "queued" | "waiting" | "cancelled" | "cancelling";
617
+ projectId?: string;
618
+ invocationId?: string;
619
+ projectTaskId?: string;
620
+ taskExecutionId?: string;
621
+ }>;
622
+ export type ProjectTaskDispatchReceipt = z.output<typeof projectTaskDispatchReceiptSchema>;
623
+ /** Explicit delegation. Routing and actor identity come from the host. */
624
+ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
625
+ requestId: z.ZodString;
626
+ taskId: z.ZodString;
627
+ expectedRevision: z.ZodNumber;
628
+ bindingId: z.ZodString;
629
+ purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
630
+ type: z.ZodLiteral<"implementation">;
631
+ }, "strict", z.ZodTypeAny, {
632
+ type?: "implementation";
633
+ }, {
634
+ type?: "implementation";
635
+ }>, z.ZodObject<{
636
+ type: z.ZodLiteral<"review">;
637
+ implementationExecutionId: z.ZodString;
638
+ implementationInvocationId: z.ZodString;
639
+ specificationDigest: z.ZodString;
640
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
641
+ type: z.ZodLiteral<"artifact">;
642
+ artifactId: z.ZodString;
643
+ versionId: z.ZodString;
644
+ }, "strict", z.ZodTypeAny, {
645
+ type?: "artifact";
646
+ versionId?: string;
647
+ artifactId?: string;
648
+ }, {
649
+ type?: "artifact";
650
+ versionId?: string;
651
+ artifactId?: string;
652
+ }>, z.ZodObject<{
653
+ type: z.ZodLiteral<"invocation_result">;
654
+ invocationId: z.ZodString;
655
+ revision: z.ZodNumber;
656
+ }, "strict", z.ZodTypeAny, {
657
+ type?: "invocation_result";
658
+ revision?: number;
659
+ invocationId?: string;
660
+ }, {
661
+ type?: "invocation_result";
662
+ revision?: number;
663
+ invocationId?: string;
664
+ }>, z.ZodObject<{
665
+ type: z.ZodLiteral<"workspace_snapshot">;
666
+ snapshotId: z.ZodString;
667
+ digest: z.ZodString;
668
+ }, "strict", z.ZodTypeAny, {
669
+ type?: "workspace_snapshot";
670
+ digest?: string;
671
+ snapshotId?: string;
672
+ }, {
673
+ type?: "workspace_snapshot";
674
+ digest?: string;
675
+ snapshotId?: string;
676
+ }>]>, "many">;
677
+ }, "strict", z.ZodTypeAny, {
678
+ type?: "review";
679
+ implementationExecutionId?: string;
680
+ implementationInvocationId?: string;
681
+ specificationDigest?: string;
682
+ evidence?: ({
683
+ type?: "artifact";
684
+ versionId?: string;
685
+ artifactId?: string;
686
+ } | {
687
+ type?: "invocation_result";
688
+ revision?: number;
689
+ invocationId?: string;
690
+ } | {
691
+ type?: "workspace_snapshot";
692
+ digest?: string;
693
+ snapshotId?: string;
694
+ })[];
695
+ }, {
696
+ type?: "review";
697
+ implementationExecutionId?: string;
698
+ implementationInvocationId?: string;
699
+ specificationDigest?: string;
700
+ evidence?: ({
701
+ type?: "artifact";
702
+ versionId?: string;
703
+ artifactId?: string;
704
+ } | {
705
+ type?: "invocation_result";
706
+ revision?: number;
707
+ invocationId?: string;
708
+ } | {
709
+ type?: "workspace_snapshot";
710
+ digest?: string;
711
+ snapshotId?: string;
712
+ })[];
713
+ }>]>>;
714
+ delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
715
+ mode: z.ZodLiteral<"none">;
716
+ }, "strict", z.ZodTypeAny, {
717
+ mode?: "none";
718
+ }, {
719
+ mode?: "none";
720
+ }>, z.ZodObject<{
721
+ mode: z.ZodLiteral<"files">;
722
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
723
+ }, "strict", z.ZodTypeAny, {
724
+ mode?: "files";
725
+ paths?: string[];
726
+ }, {
727
+ mode?: "files";
728
+ paths?: string[];
729
+ }>, z.ZodObject<{
730
+ mode: z.ZodLiteral<"archive">;
731
+ paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
732
+ }, "strict", z.ZodTypeAny, {
733
+ mode?: "archive";
734
+ paths?: string[];
735
+ }, {
736
+ mode?: "archive";
737
+ paths?: string[];
738
+ }>]>>;
739
+ instructions: z.ZodDefault<z.ZodString>;
740
+ }, "strict", z.ZodTypeAny, {
741
+ requestId?: string;
742
+ instructions?: string;
743
+ taskId?: string;
744
+ purpose?: {
745
+ type?: "implementation";
746
+ } | {
747
+ type?: "review";
748
+ implementationExecutionId?: string;
749
+ implementationInvocationId?: string;
750
+ specificationDigest?: string;
751
+ evidence?: ({
752
+ type?: "artifact";
753
+ versionId?: string;
754
+ artifactId?: string;
755
+ } | {
756
+ type?: "invocation_result";
757
+ revision?: number;
758
+ invocationId?: string;
759
+ } | {
760
+ type?: "workspace_snapshot";
761
+ digest?: string;
762
+ snapshotId?: string;
763
+ })[];
764
+ };
765
+ expectedRevision?: number;
766
+ bindingId?: string;
767
+ delivery?: {
768
+ mode?: "none";
769
+ } | {
770
+ mode?: "files";
771
+ paths?: string[];
772
+ } | {
773
+ mode?: "archive";
774
+ paths?: string[];
775
+ };
776
+ }, {
777
+ requestId?: string;
778
+ instructions?: string;
779
+ taskId?: string;
780
+ purpose?: {
781
+ type?: "implementation";
782
+ } | {
783
+ type?: "review";
784
+ implementationExecutionId?: string;
785
+ implementationInvocationId?: string;
786
+ specificationDigest?: string;
787
+ evidence?: ({
788
+ type?: "artifact";
789
+ versionId?: string;
790
+ artifactId?: string;
791
+ } | {
792
+ type?: "invocation_result";
793
+ revision?: number;
794
+ invocationId?: string;
795
+ } | {
796
+ type?: "workspace_snapshot";
797
+ digest?: string;
798
+ snapshotId?: string;
799
+ })[];
800
+ };
801
+ expectedRevision?: number;
802
+ bindingId?: string;
803
+ delivery?: {
804
+ mode?: "none";
805
+ } | {
806
+ mode?: "files";
807
+ paths?: string[];
808
+ } | {
809
+ mode?: "archive";
810
+ paths?: string[];
811
+ };
812
+ }>;
813
+ export type ProjectTaskDispatchInput = z.output<typeof projectTaskDispatchInputSchema>;
814
+ /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */
815
+ export declare const projectTaskReviewReportSchema: z.ZodObject<{
816
+ version: z.ZodLiteral<1>;
817
+ verdict: z.ZodEnum<["pass", "changes_required", "indeterminate"]>;
818
+ specificationDigest: z.ZodString;
819
+ implementationInvocationId: z.ZodString;
820
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
821
+ type: z.ZodLiteral<"artifact">;
822
+ artifactId: z.ZodString;
823
+ versionId: z.ZodString;
824
+ }, "strict", z.ZodTypeAny, {
825
+ type?: "artifact";
826
+ versionId?: string;
827
+ artifactId?: string;
828
+ }, {
829
+ type?: "artifact";
830
+ versionId?: string;
831
+ artifactId?: string;
832
+ }>, z.ZodObject<{
833
+ type: z.ZodLiteral<"invocation_result">;
834
+ invocationId: z.ZodString;
835
+ revision: z.ZodNumber;
836
+ }, "strict", z.ZodTypeAny, {
837
+ type?: "invocation_result";
838
+ revision?: number;
839
+ invocationId?: string;
840
+ }, {
841
+ type?: "invocation_result";
842
+ revision?: number;
843
+ invocationId?: string;
844
+ }>, z.ZodObject<{
845
+ type: z.ZodLiteral<"workspace_snapshot">;
846
+ snapshotId: z.ZodString;
847
+ digest: z.ZodString;
848
+ }, "strict", z.ZodTypeAny, {
849
+ type?: "workspace_snapshot";
850
+ digest?: string;
851
+ snapshotId?: string;
852
+ }, {
853
+ type?: "workspace_snapshot";
854
+ digest?: string;
855
+ snapshotId?: string;
856
+ }>]>, "many">;
857
+ findings: z.ZodArray<z.ZodString, "many">;
858
+ limitations: z.ZodArray<z.ZodString, "many">;
859
+ }, "strict", z.ZodTypeAny, {
860
+ version?: 1;
861
+ implementationInvocationId?: string;
862
+ specificationDigest?: string;
863
+ evidence?: ({
864
+ type?: "artifact";
865
+ versionId?: string;
866
+ artifactId?: string;
867
+ } | {
868
+ type?: "invocation_result";
869
+ revision?: number;
870
+ invocationId?: string;
871
+ } | {
872
+ type?: "workspace_snapshot";
873
+ digest?: string;
874
+ snapshotId?: string;
875
+ })[];
876
+ verdict?: "indeterminate" | "pass" | "changes_required";
877
+ findings?: string[];
878
+ limitations?: string[];
879
+ }, {
880
+ version?: 1;
881
+ implementationInvocationId?: string;
882
+ specificationDigest?: string;
883
+ evidence?: ({
884
+ type?: "artifact";
885
+ versionId?: string;
886
+ artifactId?: string;
887
+ } | {
888
+ type?: "invocation_result";
889
+ revision?: number;
890
+ invocationId?: string;
891
+ } | {
892
+ type?: "workspace_snapshot";
893
+ digest?: string;
894
+ snapshotId?: string;
895
+ })[];
896
+ verdict?: "indeterminate" | "pass" | "changes_required";
897
+ findings?: string[];
898
+ limitations?: string[];
899
+ }>;
900
+ export type ProjectTaskReviewReport = z.output<typeof projectTaskReviewReportSchema>;
901
+ export declare const projectTaskDecisionInputSchema: z.ZodObject<{
902
+ requestId: z.ZodString;
903
+ taskId: z.ZodString;
904
+ expectedRevision: z.ZodNumber;
905
+ implementationExecutionId: z.ZodString;
906
+ specificationDigest: z.ZodString;
907
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
908
+ type: z.ZodLiteral<"artifact">;
909
+ artifactId: z.ZodString;
910
+ versionId: z.ZodString;
911
+ }, "strict", z.ZodTypeAny, {
912
+ type?: "artifact";
913
+ versionId?: string;
914
+ artifactId?: string;
915
+ }, {
916
+ type?: "artifact";
917
+ versionId?: string;
918
+ artifactId?: string;
919
+ }>, z.ZodObject<{
920
+ type: z.ZodLiteral<"invocation_result">;
921
+ invocationId: z.ZodString;
922
+ revision: z.ZodNumber;
923
+ }, "strict", z.ZodTypeAny, {
924
+ type?: "invocation_result";
925
+ revision?: number;
926
+ invocationId?: string;
927
+ }, {
928
+ type?: "invocation_result";
929
+ revision?: number;
930
+ invocationId?: string;
931
+ }>, z.ZodObject<{
932
+ type: z.ZodLiteral<"workspace_snapshot">;
933
+ snapshotId: z.ZodString;
934
+ digest: z.ZodString;
935
+ }, "strict", z.ZodTypeAny, {
936
+ type?: "workspace_snapshot";
937
+ digest?: string;
938
+ snapshotId?: string;
939
+ }, {
940
+ type?: "workspace_snapshot";
941
+ digest?: string;
942
+ snapshotId?: string;
943
+ }>]>, "many">;
944
+ reviewExecutionId: z.ZodOptional<z.ZodString>;
945
+ outcome: z.ZodEnum<["accept", "rework"]>;
946
+ rationale: z.ZodString;
947
+ checks: z.ZodArray<z.ZodString, "many">;
948
+ }, "strict", z.ZodTypeAny, {
949
+ requestId?: string;
950
+ outcome?: "accept" | "rework";
951
+ taskId?: string;
952
+ implementationExecutionId?: string;
953
+ specificationDigest?: string;
954
+ evidence?: ({
955
+ type?: "artifact";
956
+ versionId?: string;
957
+ artifactId?: string;
958
+ } | {
959
+ type?: "invocation_result";
960
+ revision?: number;
961
+ invocationId?: string;
962
+ } | {
963
+ type?: "workspace_snapshot";
964
+ digest?: string;
965
+ snapshotId?: string;
966
+ })[];
967
+ expectedRevision?: number;
968
+ reviewExecutionId?: string;
969
+ rationale?: string;
970
+ checks?: string[];
971
+ }, {
972
+ requestId?: string;
973
+ outcome?: "accept" | "rework";
974
+ taskId?: string;
975
+ implementationExecutionId?: string;
976
+ specificationDigest?: string;
977
+ evidence?: ({
978
+ type?: "artifact";
979
+ versionId?: string;
980
+ artifactId?: string;
981
+ } | {
982
+ type?: "invocation_result";
983
+ revision?: number;
984
+ invocationId?: string;
985
+ } | {
986
+ type?: "workspace_snapshot";
987
+ digest?: string;
988
+ snapshotId?: string;
989
+ })[];
990
+ expectedRevision?: number;
991
+ reviewExecutionId?: string;
992
+ rationale?: string;
993
+ checks?: string[];
994
+ }>;
995
+ export type ProjectTaskDecisionInput = z.output<typeof projectTaskDecisionInputSchema>;
996
+ export declare const projectTaskDecisionSchema: z.ZodObject<{
997
+ requestId: z.ZodString;
998
+ taskId: z.ZodString;
999
+ expectedRevision: z.ZodNumber;
1000
+ implementationExecutionId: z.ZodString;
1001
+ specificationDigest: z.ZodString;
1002
+ evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1003
+ type: z.ZodLiteral<"artifact">;
1004
+ artifactId: z.ZodString;
1005
+ versionId: z.ZodString;
1006
+ }, "strict", z.ZodTypeAny, {
1007
+ type?: "artifact";
1008
+ versionId?: string;
1009
+ artifactId?: string;
1010
+ }, {
1011
+ type?: "artifact";
1012
+ versionId?: string;
1013
+ artifactId?: string;
1014
+ }>, z.ZodObject<{
1015
+ type: z.ZodLiteral<"invocation_result">;
1016
+ invocationId: z.ZodString;
1017
+ revision: z.ZodNumber;
1018
+ }, "strict", z.ZodTypeAny, {
1019
+ type?: "invocation_result";
1020
+ revision?: number;
1021
+ invocationId?: string;
1022
+ }, {
1023
+ type?: "invocation_result";
1024
+ revision?: number;
1025
+ invocationId?: string;
1026
+ }>, z.ZodObject<{
1027
+ type: z.ZodLiteral<"workspace_snapshot">;
1028
+ snapshotId: z.ZodString;
1029
+ digest: z.ZodString;
1030
+ }, "strict", z.ZodTypeAny, {
1031
+ type?: "workspace_snapshot";
1032
+ digest?: string;
1033
+ snapshotId?: string;
1034
+ }, {
1035
+ type?: "workspace_snapshot";
1036
+ digest?: string;
1037
+ snapshotId?: string;
1038
+ }>]>, "many">;
1039
+ reviewExecutionId: z.ZodOptional<z.ZodString>;
1040
+ outcome: z.ZodEnum<["accept", "rework"]>;
1041
+ rationale: z.ZodString;
1042
+ checks: z.ZodArray<z.ZodString, "many">;
1043
+ } & {
1044
+ actorId: z.ZodString;
1045
+ actorType: z.ZodEnum<["user", "xpert", "project_agent"]>;
1046
+ executionId: z.ZodOptional<z.ZodString>;
1047
+ decidedAt: z.ZodString;
1048
+ taskRevision: z.ZodNumber;
1049
+ }, "strict", z.ZodTypeAny, {
1050
+ decidedAt?: string;
1051
+ requestId?: string;
1052
+ actorId?: string;
1053
+ actorType?: "xpert" | "user" | "project_agent";
1054
+ executionId?: string;
1055
+ outcome?: "accept" | "rework";
1056
+ taskId?: string;
1057
+ implementationExecutionId?: string;
1058
+ specificationDigest?: string;
1059
+ evidence?: ({
1060
+ type?: "artifact";
1061
+ versionId?: string;
1062
+ artifactId?: string;
1063
+ } | {
1064
+ type?: "invocation_result";
1065
+ revision?: number;
1066
+ invocationId?: string;
1067
+ } | {
1068
+ type?: "workspace_snapshot";
1069
+ digest?: string;
1070
+ snapshotId?: string;
1071
+ })[];
1072
+ expectedRevision?: number;
1073
+ reviewExecutionId?: string;
1074
+ rationale?: string;
1075
+ checks?: string[];
1076
+ taskRevision?: number;
1077
+ }, {
1078
+ decidedAt?: string;
1079
+ requestId?: string;
1080
+ actorId?: string;
1081
+ actorType?: "xpert" | "user" | "project_agent";
1082
+ executionId?: string;
1083
+ outcome?: "accept" | "rework";
1084
+ taskId?: string;
1085
+ implementationExecutionId?: string;
1086
+ specificationDigest?: string;
1087
+ evidence?: ({
1088
+ type?: "artifact";
1089
+ versionId?: string;
1090
+ artifactId?: string;
1091
+ } | {
1092
+ type?: "invocation_result";
1093
+ revision?: number;
1094
+ invocationId?: string;
1095
+ } | {
1096
+ type?: "workspace_snapshot";
1097
+ digest?: string;
1098
+ snapshotId?: string;
1099
+ })[];
1100
+ expectedRevision?: number;
1101
+ reviewExecutionId?: string;
1102
+ rationale?: string;
1103
+ checks?: string[];
1104
+ taskRevision?: number;
1105
+ }>;
1106
+ export type ProjectTaskDecision = z.output<typeof projectTaskDecisionSchema>;