@xpert-ai/contracts 3.26.0 → 3.26.2

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.
@@ -18,11 +18,11 @@ export declare const executionActivityItemSchema: z.ZodObject<{
18
18
  kind: z.ZodLiteral<"message">;
19
19
  text: z.ZodString;
20
20
  }, "strict", z.ZodTypeAny, {
21
- text?: string;
22
21
  kind?: "message";
23
- }, {
24
22
  text?: string;
23
+ }, {
25
24
  kind?: "message";
25
+ text?: string;
26
26
  }>, z.ZodObject<{
27
27
  kind: z.ZodLiteral<"tool">;
28
28
  name: z.ZodOptional<z.ZodString>;
@@ -91,9 +91,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
91
91
  }, "strict", z.ZodTypeAny, {
92
92
  status?: "failed" | "unknown" | "succeeded" | "running";
93
93
  name?: string;
94
+ kind?: "tool";
94
95
  input?: string;
95
96
  output?: string;
96
- kind?: "tool";
97
97
  detail?: {
98
98
  type?: "command";
99
99
  command?: string;
@@ -116,9 +116,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
116
116
  }, {
117
117
  status?: "failed" | "unknown" | "succeeded" | "running";
118
118
  name?: string;
119
+ kind?: "tool";
119
120
  input?: string;
120
121
  output?: string;
121
- kind?: "tool";
122
122
  detail?: {
123
123
  type?: "command";
124
124
  command?: string;
@@ -143,25 +143,25 @@ export declare const executionActivityItemSchema: z.ZodObject<{
143
143
  code: z.ZodString;
144
144
  text: z.ZodString;
145
145
  }, "strict", z.ZodTypeAny, {
146
+ kind?: "diagnostic";
146
147
  code?: string;
147
148
  text?: string;
148
- kind?: "diagnostic";
149
149
  }, {
150
+ kind?: "diagnostic";
150
151
  code?: string;
151
152
  text?: string;
152
- kind?: "diagnostic";
153
153
  }>]>;
154
154
  }, "strict", z.ZodTypeAny, {
155
155
  id?: string;
156
156
  content?: {
157
- text?: string;
158
157
  kind?: "message";
158
+ text?: string;
159
159
  } | {
160
160
  status?: "failed" | "unknown" | "succeeded" | "running";
161
161
  name?: string;
162
+ kind?: "tool";
162
163
  input?: string;
163
164
  output?: string;
164
- kind?: "tool";
165
165
  detail?: {
166
166
  type?: "command";
167
167
  command?: string;
@@ -182,22 +182,22 @@ export declare const executionActivityItemSchema: z.ZodObject<{
182
182
  key?: string;
183
183
  };
184
184
  } | {
185
+ kind?: "diagnostic";
185
186
  code?: string;
186
187
  text?: string;
187
- kind?: "diagnostic";
188
188
  };
189
189
  occurredAt?: string;
190
190
  }, {
191
191
  id?: string;
192
192
  content?: {
193
- text?: string;
194
193
  kind?: "message";
194
+ text?: string;
195
195
  } | {
196
196
  status?: "failed" | "unknown" | "succeeded" | "running";
197
197
  name?: string;
198
+ kind?: "tool";
198
199
  input?: string;
199
200
  output?: string;
200
- kind?: "tool";
201
201
  detail?: {
202
202
  type?: "command";
203
203
  command?: string;
@@ -218,9 +218,9 @@ export declare const executionActivityItemSchema: z.ZodObject<{
218
218
  key?: string;
219
219
  };
220
220
  } | {
221
+ kind?: "diagnostic";
221
222
  code?: string;
222
223
  text?: string;
223
- kind?: "diagnostic";
224
224
  };
225
225
  occurredAt?: string;
226
226
  }>;
@@ -233,11 +233,11 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
233
233
  kind: z.ZodLiteral<"message">;
234
234
  text: z.ZodString;
235
235
  }, "strict", z.ZodTypeAny, {
236
- text?: string;
237
236
  kind?: "message";
238
- }, {
239
237
  text?: string;
238
+ }, {
240
239
  kind?: "message";
240
+ text?: string;
241
241
  }>, z.ZodObject<{
242
242
  kind: z.ZodLiteral<"tool">;
243
243
  name: z.ZodOptional<z.ZodString>;
@@ -306,9 +306,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
306
306
  }, "strict", z.ZodTypeAny, {
307
307
  status?: "failed" | "unknown" | "succeeded" | "running";
308
308
  name?: string;
309
+ kind?: "tool";
309
310
  input?: string;
310
311
  output?: string;
311
- kind?: "tool";
312
312
  detail?: {
313
313
  type?: "command";
314
314
  command?: string;
@@ -331,9 +331,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
331
331
  }, {
332
332
  status?: "failed" | "unknown" | "succeeded" | "running";
333
333
  name?: string;
334
+ kind?: "tool";
334
335
  input?: string;
335
336
  output?: string;
336
- kind?: "tool";
337
337
  detail?: {
338
338
  type?: "command";
339
339
  command?: string;
@@ -358,25 +358,25 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
358
358
  code: z.ZodString;
359
359
  text: z.ZodString;
360
360
  }, "strict", z.ZodTypeAny, {
361
+ kind?: "diagnostic";
361
362
  code?: string;
362
363
  text?: string;
363
- kind?: "diagnostic";
364
364
  }, {
365
+ kind?: "diagnostic";
365
366
  code?: string;
366
367
  text?: string;
367
- kind?: "diagnostic";
368
368
  }>]>;
369
369
  }, "strict", z.ZodTypeAny, {
370
370
  id?: string;
371
371
  content?: {
372
- text?: string;
373
372
  kind?: "message";
373
+ text?: string;
374
374
  } | {
375
375
  status?: "failed" | "unknown" | "succeeded" | "running";
376
376
  name?: string;
377
+ kind?: "tool";
377
378
  input?: string;
378
379
  output?: string;
379
- kind?: "tool";
380
380
  detail?: {
381
381
  type?: "command";
382
382
  command?: string;
@@ -397,22 +397,22 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
397
397
  key?: string;
398
398
  };
399
399
  } | {
400
+ kind?: "diagnostic";
400
401
  code?: string;
401
402
  text?: string;
402
- kind?: "diagnostic";
403
403
  };
404
404
  occurredAt?: string;
405
405
  }, {
406
406
  id?: string;
407
407
  content?: {
408
- text?: string;
409
408
  kind?: "message";
409
+ text?: string;
410
410
  } | {
411
411
  status?: "failed" | "unknown" | "succeeded" | "running";
412
412
  name?: string;
413
+ kind?: "tool";
413
414
  input?: string;
414
415
  output?: string;
415
- kind?: "tool";
416
416
  detail?: {
417
417
  type?: "command";
418
418
  command?: string;
@@ -433,9 +433,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
433
433
  key?: string;
434
434
  };
435
435
  } | {
436
+ kind?: "diagnostic";
436
437
  code?: string;
437
438
  text?: string;
438
- kind?: "diagnostic";
439
439
  };
440
440
  occurredAt?: string;
441
441
  }>, "many">;
@@ -448,14 +448,14 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
448
448
  items?: {
449
449
  id?: string;
450
450
  content?: {
451
- text?: string;
452
451
  kind?: "message";
452
+ text?: string;
453
453
  } | {
454
454
  status?: "failed" | "unknown" | "succeeded" | "running";
455
455
  name?: string;
456
+ kind?: "tool";
456
457
  input?: string;
457
458
  output?: string;
458
- kind?: "tool";
459
459
  detail?: {
460
460
  type?: "command";
461
461
  command?: string;
@@ -476,9 +476,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
476
476
  key?: string;
477
477
  };
478
478
  } | {
479
+ kind?: "diagnostic";
479
480
  code?: string;
480
481
  text?: string;
481
- kind?: "diagnostic";
482
482
  };
483
483
  occurredAt?: string;
484
484
  }[];
@@ -490,14 +490,14 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
490
490
  items?: {
491
491
  id?: string;
492
492
  content?: {
493
- text?: string;
494
493
  kind?: "message";
494
+ text?: string;
495
495
  } | {
496
496
  status?: "failed" | "unknown" | "succeeded" | "running";
497
497
  name?: string;
498
+ kind?: "tool";
498
499
  input?: string;
499
500
  output?: string;
500
- kind?: "tool";
501
501
  detail?: {
502
502
  type?: "command";
503
503
  command?: string;
@@ -518,9 +518,9 @@ export declare const executionActivityBatchSchema: z.ZodObject<{
518
518
  key?: string;
519
519
  };
520
520
  } | {
521
+ kind?: "diagnostic";
521
522
  code?: string;
522
523
  text?: string;
523
- kind?: "diagnostic";
524
524
  };
525
525
  occurredAt?: string;
526
526
  }[];
@@ -13,6 +13,7 @@ export interface IWFNMiddleware extends IWorkflowNode {
13
13
  * Required middlewares are always loaded at runtime and hidden from user-facing runtime selectors.
14
14
  */
15
15
  required?: boolean;
16
+ /** Omission uses an empty configuration; explicit values are validated by the middleware. */
16
17
  options?: Record<string, any>;
17
18
  tools?: Record<string, TMiddlewareToolConfig | boolean>;
18
19
  }
@@ -21,6 +22,8 @@ export type TMiddlewareToolConfig = {
21
22
  };
22
23
  export declare function isMiddlewareToolEnabled(config?: TMiddlewareToolConfig | boolean): boolean;
23
24
  export declare function isRequiredMiddleware(entity?: Pick<IWFNMiddleware, 'required'> | null): boolean;
25
+ /** Default only omitted options. Preserve null and other invalid values for provider validation. */
26
+ export declare function normalizeMiddlewareOptions<T>(options: T | undefined): T | Record<string, never>;
24
27
  export declare function genXpertMiddlewareKey(): string;
25
28
  export declare function normalizeMiddlewareProvider(provider?: string | null): string;
26
29
  export declare function normalizeMiddlewareNode<T extends TXpertTeamNode>(node: T): T;
@@ -91,7 +91,7 @@ export type ModelExecutionPolicy = {
91
91
  /** Explicit, limited Chat Completions translations; never advertised as native support. */
92
92
  chatBridgeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
93
93
  limits: ModelExecutionLimits;
94
- /** Applies to background Coding invocations; evidence-only reviews remain restricted. */
94
+ /** Background Coding and Computer Codex launches; evidence-only reviews remain restricted. */
95
95
  cliPermissions?: {
96
96
  defaultMode: CliPermissionMode;
97
97
  overrides: Record<string, CliPermissionMode>;
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod/v3';
2
+ /** Credential support for durable pipeline commands; Project permissions remain independently required. */
3
+ export declare const projectPipelineCommandCapabilitySchema: z.ZodDiscriminatedUnion<"allowed", [z.ZodObject<{
4
+ allowed: z.ZodLiteral<true>;
5
+ }, "strict", z.ZodTypeAny, {
6
+ allowed: true;
7
+ }, {
8
+ allowed: true;
9
+ }>, z.ZodObject<{
10
+ allowed: z.ZodLiteral<false>;
11
+ reason: z.ZodLiteral<"PIPELINE_SCOPED_DELEGATION_UNAVAILABLE">;
12
+ }, "strict", z.ZodTypeAny, {
13
+ reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
14
+ allowed: false;
15
+ }, {
16
+ reason: "PIPELINE_SCOPED_DELEGATION_UNAVAILABLE";
17
+ allowed: false;
18
+ }>]>;
19
+ export type ProjectPipelineCommandCapability = z.output<typeof projectPipelineCommandCapabilitySchema>;
@@ -30,6 +30,22 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
30
30
  key: z.ZodEffects<z.ZodString, string, string>;
31
31
  version: z.ZodString;
32
32
  title: z.ZodString;
33
+ projectTypes: z.ZodEffects<z.ZodArray<z.ZodObject<{
34
+ applicationKey: z.ZodString;
35
+ projectTypeKey: z.ZodString;
36
+ }, "strict", z.ZodTypeAny, {
37
+ applicationKey: string;
38
+ projectTypeKey: string;
39
+ }, {
40
+ applicationKey: string;
41
+ projectTypeKey: string;
42
+ }>, "many">, {
43
+ applicationKey: string;
44
+ projectTypeKey: string;
45
+ }[], {
46
+ applicationKey: string;
47
+ projectTypeKey: string;
48
+ }[]>;
33
49
  subjectResolverRef: z.ZodString;
34
50
  roles: z.ZodArray<z.ZodObject<{
35
51
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -106,6 +122,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
106
122
  };
107
123
  version: string;
108
124
  title: string;
125
+ projectTypes: {
126
+ applicationKey: string;
127
+ projectTypeKey: string;
128
+ }[];
109
129
  subjectResolverRef: string;
110
130
  roles: {
111
131
  key: string;
@@ -147,6 +167,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
147
167
  };
148
168
  version: string;
149
169
  title: string;
170
+ projectTypes: {
171
+ applicationKey: string;
172
+ projectTypeKey: string;
173
+ }[];
150
174
  subjectResolverRef: string;
151
175
  roles: {
152
176
  key: string;
@@ -1081,6 +1105,22 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1081
1105
  key: z.ZodEffects<z.ZodString, string, string>;
1082
1106
  version: z.ZodString;
1083
1107
  title: z.ZodString;
1108
+ projectTypes: z.ZodEffects<z.ZodArray<z.ZodObject<{
1109
+ applicationKey: z.ZodString;
1110
+ projectTypeKey: z.ZodString;
1111
+ }, "strict", z.ZodTypeAny, {
1112
+ applicationKey: string;
1113
+ projectTypeKey: string;
1114
+ }, {
1115
+ applicationKey: string;
1116
+ projectTypeKey: string;
1117
+ }>, "many">, {
1118
+ applicationKey: string;
1119
+ projectTypeKey: string;
1120
+ }[], {
1121
+ applicationKey: string;
1122
+ projectTypeKey: string;
1123
+ }[]>;
1084
1124
  subjectResolverRef: z.ZodString;
1085
1125
  roles: z.ZodArray<z.ZodObject<{
1086
1126
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -1155,6 +1195,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1155
1195
  };
1156
1196
  version: string;
1157
1197
  title: string;
1198
+ projectTypes: {
1199
+ applicationKey: string;
1200
+ projectTypeKey: string;
1201
+ }[];
1158
1202
  subjectResolverRef: string;
1159
1203
  roles: {
1160
1204
  key: string;
@@ -1394,6 +1438,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1394
1438
  };
1395
1439
  version: string;
1396
1440
  title: string;
1441
+ projectTypes: {
1442
+ applicationKey: string;
1443
+ projectTypeKey: string;
1444
+ }[];
1397
1445
  subjectResolverRef: string;
1398
1446
  roles: {
1399
1447
  key: string;
@@ -1635,6 +1683,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1635
1683
  };
1636
1684
  version: string;
1637
1685
  title: string;
1686
+ projectTypes: {
1687
+ applicationKey: string;
1688
+ projectTypeKey: string;
1689
+ }[];
1638
1690
  subjectResolverRef: string;
1639
1691
  roles: {
1640
1692
  key: string;
@@ -1674,6 +1726,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1674
1726
  };
1675
1727
  version: string;
1676
1728
  title: string;
1729
+ projectTypes: {
1730
+ applicationKey: string;
1731
+ projectTypeKey: string;
1732
+ }[];
1677
1733
  subjectResolverRef: string;
1678
1734
  roles: {
1679
1735
  key: string;
@@ -1915,6 +1971,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1915
1971
  };
1916
1972
  version: string;
1917
1973
  title: string;
1974
+ projectTypes: {
1975
+ applicationKey: string;
1976
+ projectTypeKey: string;
1977
+ }[];
1918
1978
  subjectResolverRef: string;
1919
1979
  roles: {
1920
1980
  key: string;
@@ -1954,6 +2014,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
1954
2014
  };
1955
2015
  version: string;
1956
2016
  title: string;
2017
+ projectTypes: {
2018
+ applicationKey: string;
2019
+ projectTypeKey: string;
2020
+ }[];
1957
2021
  subjectResolverRef: string;
1958
2022
  roles: {
1959
2023
  key: string;
@@ -2393,6 +2457,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2393
2457
  };
2394
2458
  version: string;
2395
2459
  title: string;
2460
+ projectTypes: {
2461
+ applicationKey: string;
2462
+ projectTypeKey: string;
2463
+ }[];
2396
2464
  subjectResolverRef: string;
2397
2465
  roles: {
2398
2466
  key: string;
@@ -2432,6 +2500,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2432
2500
  };
2433
2501
  version: string;
2434
2502
  title: string;
2503
+ projectTypes: {
2504
+ applicationKey: string;
2505
+ projectTypeKey: string;
2506
+ }[];
2435
2507
  subjectResolverRef: string;
2436
2508
  roles: {
2437
2509
  key: string;
@@ -2707,6 +2779,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2707
2779
  };
2708
2780
  version: string;
2709
2781
  title: string;
2782
+ projectTypes: {
2783
+ applicationKey: string;
2784
+ projectTypeKey: string;
2785
+ }[];
2710
2786
  subjectResolverRef: string;
2711
2787
  roles: {
2712
2788
  key: string;
@@ -2746,6 +2822,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
2746
2822
  };
2747
2823
  version: string;
2748
2824
  title: string;
2825
+ projectTypes: {
2826
+ applicationKey: string;
2827
+ projectTypeKey: string;
2828
+ }[];
2749
2829
  subjectResolverRef: string;
2750
2830
  roles: {
2751
2831
  key: string;
@@ -3021,6 +3101,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3021
3101
  };
3022
3102
  version: string;
3023
3103
  title: string;
3104
+ projectTypes: {
3105
+ applicationKey: string;
3106
+ projectTypeKey: string;
3107
+ }[];
3024
3108
  subjectResolverRef: string;
3025
3109
  roles: {
3026
3110
  key: string;
@@ -3060,6 +3144,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3060
3144
  };
3061
3145
  version: string;
3062
3146
  title: string;
3147
+ projectTypes: {
3148
+ applicationKey: string;
3149
+ projectTypeKey: string;
3150
+ }[];
3063
3151
  subjectResolverRef: string;
3064
3152
  roles: {
3065
3153
  key: string;
@@ -3335,6 +3423,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3335
3423
  };
3336
3424
  version: string;
3337
3425
  title: string;
3426
+ projectTypes: {
3427
+ applicationKey: string;
3428
+ projectTypeKey: string;
3429
+ }[];
3338
3430
  subjectResolverRef: string;
3339
3431
  roles: {
3340
3432
  key: string;
@@ -3374,6 +3466,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3374
3466
  };
3375
3467
  version: string;
3376
3468
  title: string;
3469
+ projectTypes: {
3470
+ applicationKey: string;
3471
+ projectTypeKey: string;
3472
+ }[];
3377
3473
  subjectResolverRef: string;
3378
3474
  roles: {
3379
3475
  key: string;
@@ -3652,6 +3748,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3652
3748
  };
3653
3749
  version: string;
3654
3750
  title: string;
3751
+ projectTypes: {
3752
+ applicationKey: string;
3753
+ projectTypeKey: string;
3754
+ }[];
3655
3755
  subjectResolverRef: string;
3656
3756
  roles: {
3657
3757
  key: string;
@@ -3691,6 +3791,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3691
3791
  };
3692
3792
  version: string;
3693
3793
  title: string;
3794
+ projectTypes: {
3795
+ applicationKey: string;
3796
+ projectTypeKey: string;
3797
+ }[];
3694
3798
  subjectResolverRef: string;
3695
3799
  roles: {
3696
3800
  key: string;
@@ -3969,6 +4073,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
3969
4073
  };
3970
4074
  version: string;
3971
4075
  title: string;
4076
+ projectTypes: {
4077
+ applicationKey: string;
4078
+ projectTypeKey: string;
4079
+ }[];
3972
4080
  subjectResolverRef: string;
3973
4081
  roles: {
3974
4082
  key: string;
@@ -4008,6 +4116,10 @@ export declare const projectPipelineConfigureSchema: z.ZodObject<{
4008
4116
  };
4009
4117
  version: string;
4010
4118
  title: string;
4119
+ projectTypes: {
4120
+ applicationKey: string;
4121
+ projectTypeKey: string;
4122
+ }[];
4011
4123
  subjectResolverRef: string;
4012
4124
  roles: {
4013
4125
  key: string;