@treeseed/sdk 0.13.0-rc.54 → 0.13.0-rc.56

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 (49) hide show
  1. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  2. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  3. package/dist/agent-capacity/validation/activity-profile.js +18 -9
  4. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +715 -793
  5. package/dist/agent-capacity/validation/agent-definition-schema.js +8 -28
  6. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +12 -12
  7. package/dist/capacity-provider/capability-ontology.d.ts +1211 -0
  8. package/dist/capacity-provider/capability-ontology.js +200 -0
  9. package/dist/capacity-provider/client.d.ts +3 -3
  10. package/dist/capacity-provider/contracts/governance.d.ts +63 -1
  11. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  12. package/dist/capacity-provider/core-capability-catalog.js +63 -0
  13. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  14. package/dist/capacity-provider/environment-catalog.js +116 -0
  15. package/dist/capacity-provider/index.d.ts +4 -0
  16. package/dist/capacity-provider/index.js +4 -0
  17. package/dist/capacity-provider/sandbox-contracts.d.ts +543 -0
  18. package/dist/capacity-provider/sandbox-contracts.js +86 -0
  19. package/dist/capacity-provider/validation.d.ts +3 -1
  20. package/dist/capacity-provider/validation.js +56 -0
  21. package/dist/content/validation/agent-operational-content-schemas.d.ts +76 -76
  22. package/dist/content/validation/auxiliary-content-schemas.d.ts +16 -16
  23. package/dist/content/validation/content-model-schemas.d.ts +1462 -1605
  24. package/dist/content/validation/portable-content-data.d.ts +139 -152
  25. package/dist/deployment/ai-mode.d.ts +4 -4
  26. package/dist/deployment/schemas.d.ts +410 -92
  27. package/dist/deployment/schemas.js +23 -1
  28. package/dist/development/schemas.d.ts +22 -22
  29. package/dist/operator-contracts/canonical-command-tree.js +45 -0
  30. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +164 -0
  31. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  32. package/dist/operator-contracts/catalog/communication-operations.d.ts +50 -50
  33. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  34. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  35. package/dist/operator-contracts/catalog/inbox-operations.d.ts +25 -25
  36. package/dist/operator-contracts/communication/contracts.d.ts +139 -139
  37. package/dist/operator-contracts/control-plane-operations.d.ts +588 -420
  38. package/dist/operator-contracts/control-plane-operations.js +7 -10
  39. package/dist/operator-contracts/inbox/contracts.d.ts +77 -77
  40. package/dist/operator-contracts/index.d.ts +1 -0
  41. package/dist/operator-contracts/index.js +1 -0
  42. package/dist/security/encrypted-envelope.d.ts +177 -0
  43. package/dist/security/encrypted-envelope.js +34 -0
  44. package/dist/security/envelope-codec.d.ts +38 -0
  45. package/dist/security/envelope-codec.js +96 -0
  46. package/dist/security/index.d.ts +2 -0
  47. package/dist/security/index.js +2 -0
  48. package/dist/types/agents/agent-activity-profile.d.ts +15 -33
  49. package/package.json +5 -1
@@ -177,6 +177,43 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
177
177
  id: string;
178
178
  revision: number;
179
179
  }[]>>;
180
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ capabilityId: z.ZodString;
182
+ versionRange: z.ZodString;
183
+ requirement: z.ZodEnum<["required", "preferred"]>;
184
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
186
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
187
+ value: z.ZodUnknown;
188
+ requirement: z.ZodEnum<["required", "preferred"]>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ requirement: "required" | "preferred";
191
+ value?: unknown;
192
+ }, {
193
+ requirement: "required" | "preferred";
194
+ value?: unknown;
195
+ }>>>;
196
+ }, "strict", z.ZodTypeAny, {
197
+ capabilityId: string;
198
+ requirement: "required" | "preferred";
199
+ versionRange: string;
200
+ configuration?: Record<string, {
201
+ requirement: "required" | "preferred";
202
+ value?: unknown;
203
+ }> | undefined;
204
+ alternativeGroup?: string | null | undefined;
205
+ requiredFeatures?: string[] | undefined;
206
+ }, {
207
+ capabilityId: string;
208
+ requirement: "required" | "preferred";
209
+ versionRange: string;
210
+ configuration?: Record<string, {
211
+ requirement: "required" | "preferred";
212
+ value?: unknown;
213
+ }> | undefined;
214
+ alternativeGroup?: string | null | undefined;
215
+ requiredFeatures?: string[] | undefined;
216
+ }>, "many">>;
180
217
  permissions: z.ZodOptional<z.ZodObject<{
181
218
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
182
219
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -308,52 +345,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
308
345
  requiredArtifactKinds?: string[] | undefined;
309
346
  blockOnOpenQuestions?: boolean | undefined;
310
347
  }>>;
311
- providerOverrides: z.ZodOptional<z.ZodObject<{
312
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
313
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
314
- promptRef: z.ZodOptional<z.ZodString>;
315
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
316
- id: z.ZodString;
317
- revision: z.ZodNumber;
318
- }, "strict", z.ZodTypeAny, {
319
- id: string;
320
- revision: number;
321
- }, {
322
- id: string;
323
- revision: number;
324
- }>, "many">, {
325
- id: string;
326
- revision: number;
327
- }[], {
328
- id: string;
329
- revision: number;
330
- }[]>>;
331
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
332
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
333
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
334
- }, "strict", z.ZodTypeAny, {
335
- requiredCapabilities?: string[] | undefined;
336
- instructionTemplateRefs?: {
337
- id: string;
338
- revision: number;
339
- }[] | undefined;
340
- maxRuntimeSeconds?: number | undefined;
341
- maxTotalTokens?: number | undefined;
342
- maxCostAmount?: number | undefined;
343
- disallowedProviderIds?: string[] | undefined;
344
- promptRef?: string | undefined;
345
- }, {
346
- requiredCapabilities?: string[] | undefined;
347
- instructionTemplateRefs?: {
348
- id: string;
349
- revision: number;
350
- }[] | undefined;
351
- maxRuntimeSeconds?: number | undefined;
352
- maxTotalTokens?: number | undefined;
353
- maxCostAmount?: number | undefined;
354
- disallowedProviderIds?: string[] | undefined;
355
- promptRef?: string | undefined;
356
- }>>;
357
348
  tools: z.ZodObject<{
358
349
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
359
350
  denied: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
@@ -707,8 +698,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
707
698
  agentSlug: z.ZodOptional<z.ZodString>;
708
699
  }, "strict", z.ZodTypeAny, {
709
700
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
710
- projectId?: string | undefined;
711
701
  teamId?: string | undefined;
702
+ projectId?: string | undefined;
712
703
  agentSlug?: string | undefined;
713
704
  requiredRoles?: string[] | undefined;
714
705
  allowedRoles?: string[] | undefined;
@@ -718,8 +709,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
718
709
  teamMemberId?: string | undefined;
719
710
  }, {
720
711
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
721
- projectId?: string | undefined;
722
712
  teamId?: string | undefined;
713
+ projectId?: string | undefined;
723
714
  agentSlug?: string | undefined;
724
715
  requiredRoles?: string[] | undefined;
725
716
  allowedRoles?: string[] | undefined;
@@ -731,8 +722,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
731
722
  }, "strict", z.ZodTypeAny, {
732
723
  defaultAnswerPolicy?: {
733
724
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
734
- projectId?: string | undefined;
735
725
  teamId?: string | undefined;
726
+ projectId?: string | undefined;
736
727
  agentSlug?: string | undefined;
737
728
  requiredRoles?: string[] | undefined;
738
729
  allowedRoles?: string[] | undefined;
@@ -745,8 +736,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
745
736
  }, {
746
737
  defaultAnswerPolicy?: {
747
738
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
748
- projectId?: string | undefined;
749
739
  teamId?: string | undefined;
740
+ projectId?: string | undefined;
750
741
  agentSlug?: string | undefined;
751
742
  requiredRoles?: string[] | undefined;
752
743
  allowedRoles?: string[] | undefined;
@@ -792,6 +783,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
792
783
  closeoutSeconds?: number | undefined;
793
784
  closeoutWarningSeconds?: number | undefined;
794
785
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
786
+ nativeLimits?: {
787
+ amount: number;
788
+ unit: string;
789
+ enforceable?: boolean | undefined;
790
+ }[] | undefined;
795
791
  maxRuntimeSeconds?: number | undefined;
796
792
  maxRetries?: number | undefined;
797
793
  verificationRequired?: boolean | undefined;
@@ -799,11 +795,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
799
795
  warningTokens?: number | undefined;
800
796
  maxCostAmount?: number | undefined;
801
797
  costCurrency?: string | undefined;
802
- nativeLimits?: {
803
- amount: number;
804
- unit: string;
805
- enforceable?: boolean | undefined;
806
- }[] | undefined;
807
798
  pricingGeneration?: string | undefined;
808
799
  allowedPaths?: string[] | undefined;
809
800
  forbiddenPaths?: string[] | undefined;
@@ -813,6 +804,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
813
804
  closeoutSeconds?: number | undefined;
814
805
  closeoutWarningSeconds?: number | undefined;
815
806
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
807
+ nativeLimits?: {
808
+ amount: number;
809
+ unit: string;
810
+ enforceable?: boolean | undefined;
811
+ }[] | undefined;
816
812
  maxRuntimeSeconds?: number | undefined;
817
813
  maxRetries?: number | undefined;
818
814
  verificationRequired?: boolean | undefined;
@@ -820,11 +816,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
820
816
  warningTokens?: number | undefined;
821
817
  maxCostAmount?: number | undefined;
822
818
  costCurrency?: string | undefined;
823
- nativeLimits?: {
824
- amount: number;
825
- unit: string;
826
- enforceable?: boolean | undefined;
827
- }[] | undefined;
828
819
  pricingGeneration?: string | undefined;
829
820
  allowedPaths?: string[] | undefined;
830
821
  forbiddenPaths?: string[] | undefined;
@@ -861,6 +852,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
861
852
  closeoutSeconds?: number | undefined;
862
853
  closeoutWarningSeconds?: number | undefined;
863
854
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
855
+ nativeLimits?: {
856
+ amount: number;
857
+ unit: string;
858
+ enforceable?: boolean | undefined;
859
+ }[] | undefined;
864
860
  maxRuntimeSeconds?: number | undefined;
865
861
  maxRetries?: number | undefined;
866
862
  verificationRequired?: boolean | undefined;
@@ -868,11 +864,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
868
864
  warningTokens?: number | undefined;
869
865
  maxCostAmount?: number | undefined;
870
866
  costCurrency?: string | undefined;
871
- nativeLimits?: {
872
- amount: number;
873
- unit: string;
874
- enforceable?: boolean | undefined;
875
- }[] | undefined;
876
867
  pricingGeneration?: string | undefined;
877
868
  allowedPaths?: string[] | undefined;
878
869
  forbiddenPaths?: string[] | undefined;
@@ -890,6 +881,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
890
881
  id: string;
891
882
  revision: number;
892
883
  }[] | undefined;
884
+ capabilityRequirements?: {
885
+ capabilityId: string;
886
+ requirement: "required" | "preferred";
887
+ versionRange: string;
888
+ configuration?: Record<string, {
889
+ requirement: "required" | "preferred";
890
+ value?: unknown;
891
+ }> | undefined;
892
+ alternativeGroup?: string | null | undefined;
893
+ requiredFeatures?: string[] | undefined;
894
+ }[] | undefined;
893
895
  permissions?: {
894
896
  repository?: {
895
897
  allowCodeMutation?: boolean | undefined;
@@ -925,18 +927,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
925
927
  requiredArtifactKinds?: string[] | undefined;
926
928
  blockOnOpenQuestions?: boolean | undefined;
927
929
  } | undefined;
928
- providerOverrides?: {
929
- requiredCapabilities?: string[] | undefined;
930
- instructionTemplateRefs?: {
931
- id: string;
932
- revision: number;
933
- }[] | undefined;
934
- maxRuntimeSeconds?: number | undefined;
935
- maxTotalTokens?: number | undefined;
936
- maxCostAmount?: number | undefined;
937
- disallowedProviderIds?: string[] | undefined;
938
- promptRef?: string | undefined;
939
- } | undefined;
940
930
  signals?: {
941
931
  subscribesTo?: {
942
932
  contract: string;
@@ -990,8 +980,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
990
980
  questionPolicy?: {
991
981
  defaultAnswerPolicy?: {
992
982
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
993
- projectId?: string | undefined;
994
983
  teamId?: string | undefined;
984
+ projectId?: string | undefined;
995
985
  agentSlug?: string | undefined;
996
986
  requiredRoles?: string[] | undefined;
997
987
  allowedRoles?: string[] | undefined;
@@ -1034,6 +1024,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1034
1024
  closeoutSeconds?: number | undefined;
1035
1025
  closeoutWarningSeconds?: number | undefined;
1036
1026
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
1027
+ nativeLimits?: {
1028
+ amount: number;
1029
+ unit: string;
1030
+ enforceable?: boolean | undefined;
1031
+ }[] | undefined;
1037
1032
  maxRuntimeSeconds?: number | undefined;
1038
1033
  maxRetries?: number | undefined;
1039
1034
  verificationRequired?: boolean | undefined;
@@ -1041,11 +1036,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1041
1036
  warningTokens?: number | undefined;
1042
1037
  maxCostAmount?: number | undefined;
1043
1038
  costCurrency?: string | undefined;
1044
- nativeLimits?: {
1045
- amount: number;
1046
- unit: string;
1047
- enforceable?: boolean | undefined;
1048
- }[] | undefined;
1049
1039
  pricingGeneration?: string | undefined;
1050
1040
  allowedPaths?: string[] | undefined;
1051
1041
  forbiddenPaths?: string[] | undefined;
@@ -1063,6 +1053,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1063
1053
  id: string;
1064
1054
  revision: number;
1065
1055
  }[] | undefined;
1056
+ capabilityRequirements?: {
1057
+ capabilityId: string;
1058
+ requirement: "required" | "preferred";
1059
+ versionRange: string;
1060
+ configuration?: Record<string, {
1061
+ requirement: "required" | "preferred";
1062
+ value?: unknown;
1063
+ }> | undefined;
1064
+ alternativeGroup?: string | null | undefined;
1065
+ requiredFeatures?: string[] | undefined;
1066
+ }[] | undefined;
1066
1067
  permissions?: {
1067
1068
  repository?: {
1068
1069
  allowCodeMutation?: boolean | undefined;
@@ -1098,18 +1099,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1098
1099
  requiredArtifactKinds?: string[] | undefined;
1099
1100
  blockOnOpenQuestions?: boolean | undefined;
1100
1101
  } | undefined;
1101
- providerOverrides?: {
1102
- requiredCapabilities?: string[] | undefined;
1103
- instructionTemplateRefs?: {
1104
- id: string;
1105
- revision: number;
1106
- }[] | undefined;
1107
- maxRuntimeSeconds?: number | undefined;
1108
- maxTotalTokens?: number | undefined;
1109
- maxCostAmount?: number | undefined;
1110
- disallowedProviderIds?: string[] | undefined;
1111
- promptRef?: string | undefined;
1112
- } | undefined;
1113
1102
  signals?: {
1114
1103
  subscribesTo?: {
1115
1104
  contract: string;
@@ -1163,8 +1152,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1163
1152
  questionPolicy?: {
1164
1153
  defaultAnswerPolicy?: {
1165
1154
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1166
- projectId?: string | undefined;
1167
1155
  teamId?: string | undefined;
1156
+ projectId?: string | undefined;
1168
1157
  agentSlug?: string | undefined;
1169
1158
  requiredRoles?: string[] | undefined;
1170
1159
  allowedRoles?: string[] | undefined;
@@ -1207,6 +1196,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1207
1196
  closeoutSeconds?: number | undefined;
1208
1197
  closeoutWarningSeconds?: number | undefined;
1209
1198
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
1199
+ nativeLimits?: {
1200
+ amount: number;
1201
+ unit: string;
1202
+ enforceable?: boolean | undefined;
1203
+ }[] | undefined;
1210
1204
  maxRuntimeSeconds?: number | undefined;
1211
1205
  maxRetries?: number | undefined;
1212
1206
  verificationRequired?: boolean | undefined;
@@ -1214,11 +1208,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1214
1208
  warningTokens?: number | undefined;
1215
1209
  maxCostAmount?: number | undefined;
1216
1210
  costCurrency?: string | undefined;
1217
- nativeLimits?: {
1218
- amount: number;
1219
- unit: string;
1220
- enforceable?: boolean | undefined;
1221
- }[] | undefined;
1222
1211
  pricingGeneration?: string | undefined;
1223
1212
  allowedPaths?: string[] | undefined;
1224
1213
  forbiddenPaths?: string[] | undefined;
@@ -1236,6 +1225,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1236
1225
  id: string;
1237
1226
  revision: number;
1238
1227
  }[] | undefined;
1228
+ capabilityRequirements?: {
1229
+ capabilityId: string;
1230
+ requirement: "required" | "preferred";
1231
+ versionRange: string;
1232
+ configuration?: Record<string, {
1233
+ requirement: "required" | "preferred";
1234
+ value?: unknown;
1235
+ }> | undefined;
1236
+ alternativeGroup?: string | null | undefined;
1237
+ requiredFeatures?: string[] | undefined;
1238
+ }[] | undefined;
1239
1239
  permissions?: {
1240
1240
  repository?: {
1241
1241
  allowCodeMutation?: boolean | undefined;
@@ -1271,18 +1271,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1271
1271
  requiredArtifactKinds?: string[] | undefined;
1272
1272
  blockOnOpenQuestions?: boolean | undefined;
1273
1273
  } | undefined;
1274
- providerOverrides?: {
1275
- requiredCapabilities?: string[] | undefined;
1276
- instructionTemplateRefs?: {
1277
- id: string;
1278
- revision: number;
1279
- }[] | undefined;
1280
- maxRuntimeSeconds?: number | undefined;
1281
- maxTotalTokens?: number | undefined;
1282
- maxCostAmount?: number | undefined;
1283
- disallowedProviderIds?: string[] | undefined;
1284
- promptRef?: string | undefined;
1285
- } | undefined;
1286
1274
  signals?: {
1287
1275
  subscribesTo?: {
1288
1276
  contract: string;
@@ -1336,8 +1324,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1336
1324
  questionPolicy?: {
1337
1325
  defaultAnswerPolicy?: {
1338
1326
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1339
- projectId?: string | undefined;
1340
1327
  teamId?: string | undefined;
1328
+ projectId?: string | undefined;
1341
1329
  agentSlug?: string | undefined;
1342
1330
  requiredRoles?: string[] | undefined;
1343
1331
  allowedRoles?: string[] | undefined;
@@ -1380,6 +1368,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1380
1368
  closeoutSeconds?: number | undefined;
1381
1369
  closeoutWarningSeconds?: number | undefined;
1382
1370
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
1371
+ nativeLimits?: {
1372
+ amount: number;
1373
+ unit: string;
1374
+ enforceable?: boolean | undefined;
1375
+ }[] | undefined;
1383
1376
  maxRuntimeSeconds?: number | undefined;
1384
1377
  maxRetries?: number | undefined;
1385
1378
  verificationRequired?: boolean | undefined;
@@ -1387,11 +1380,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1387
1380
  warningTokens?: number | undefined;
1388
1381
  maxCostAmount?: number | undefined;
1389
1382
  costCurrency?: string | undefined;
1390
- nativeLimits?: {
1391
- amount: number;
1392
- unit: string;
1393
- enforceable?: boolean | undefined;
1394
- }[] | undefined;
1395
1383
  pricingGeneration?: string | undefined;
1396
1384
  allowedPaths?: string[] | undefined;
1397
1385
  forbiddenPaths?: string[] | undefined;
@@ -1409,6 +1397,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1409
1397
  id: string;
1410
1398
  revision: number;
1411
1399
  }[] | undefined;
1400
+ capabilityRequirements?: {
1401
+ capabilityId: string;
1402
+ requirement: "required" | "preferred";
1403
+ versionRange: string;
1404
+ configuration?: Record<string, {
1405
+ requirement: "required" | "preferred";
1406
+ value?: unknown;
1407
+ }> | undefined;
1408
+ alternativeGroup?: string | null | undefined;
1409
+ requiredFeatures?: string[] | undefined;
1410
+ }[] | undefined;
1412
1411
  permissions?: {
1413
1412
  repository?: {
1414
1413
  allowCodeMutation?: boolean | undefined;
@@ -1444,18 +1443,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1444
1443
  requiredArtifactKinds?: string[] | undefined;
1445
1444
  blockOnOpenQuestions?: boolean | undefined;
1446
1445
  } | undefined;
1447
- providerOverrides?: {
1448
- requiredCapabilities?: string[] | undefined;
1449
- instructionTemplateRefs?: {
1450
- id: string;
1451
- revision: number;
1452
- }[] | undefined;
1453
- maxRuntimeSeconds?: number | undefined;
1454
- maxTotalTokens?: number | undefined;
1455
- maxCostAmount?: number | undefined;
1456
- disallowedProviderIds?: string[] | undefined;
1457
- promptRef?: string | undefined;
1458
- } | undefined;
1459
1446
  signals?: {
1460
1447
  subscribesTo?: {
1461
1448
  contract: string;
@@ -1509,8 +1496,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1509
1496
  questionPolicy?: {
1510
1497
  defaultAnswerPolicy?: {
1511
1498
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1512
- projectId?: string | undefined;
1513
1499
  teamId?: string | undefined;
1500
+ projectId?: string | undefined;
1514
1501
  agentSlug?: string | undefined;
1515
1502
  requiredRoles?: string[] | undefined;
1516
1503
  allowedRoles?: string[] | undefined;
@@ -1699,6 +1686,43 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1699
1686
  id: string;
1700
1687
  revision: number;
1701
1688
  }[]>>;
1689
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1690
+ capabilityId: z.ZodString;
1691
+ versionRange: z.ZodString;
1692
+ requirement: z.ZodEnum<["required", "preferred"]>;
1693
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1695
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1696
+ value: z.ZodUnknown;
1697
+ requirement: z.ZodEnum<["required", "preferred"]>;
1698
+ }, "strict", z.ZodTypeAny, {
1699
+ requirement: "required" | "preferred";
1700
+ value?: unknown;
1701
+ }, {
1702
+ requirement: "required" | "preferred";
1703
+ value?: unknown;
1704
+ }>>>;
1705
+ }, "strict", z.ZodTypeAny, {
1706
+ capabilityId: string;
1707
+ requirement: "required" | "preferred";
1708
+ versionRange: string;
1709
+ configuration?: Record<string, {
1710
+ requirement: "required" | "preferred";
1711
+ value?: unknown;
1712
+ }> | undefined;
1713
+ alternativeGroup?: string | null | undefined;
1714
+ requiredFeatures?: string[] | undefined;
1715
+ }, {
1716
+ capabilityId: string;
1717
+ requirement: "required" | "preferred";
1718
+ versionRange: string;
1719
+ configuration?: Record<string, {
1720
+ requirement: "required" | "preferred";
1721
+ value?: unknown;
1722
+ }> | undefined;
1723
+ alternativeGroup?: string | null | undefined;
1724
+ requiredFeatures?: string[] | undefined;
1725
+ }>, "many">>;
1702
1726
  permissions: z.ZodOptional<z.ZodObject<{
1703
1727
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1704
1728
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -1830,52 +1854,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
1830
1854
  requiredArtifactKinds?: string[] | undefined;
1831
1855
  blockOnOpenQuestions?: boolean | undefined;
1832
1856
  }>>;
1833
- providerOverrides: z.ZodOptional<z.ZodObject<{
1834
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1835
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1836
- promptRef: z.ZodOptional<z.ZodString>;
1837
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
1838
- id: z.ZodString;
1839
- revision: z.ZodNumber;
1840
- }, "strict", z.ZodTypeAny, {
1841
- id: string;
1842
- revision: number;
1843
- }, {
1844
- id: string;
1845
- revision: number;
1846
- }>, "many">, {
1847
- id: string;
1848
- revision: number;
1849
- }[], {
1850
- id: string;
1851
- revision: number;
1852
- }[]>>;
1853
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
1854
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
1855
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
1856
- }, "strict", z.ZodTypeAny, {
1857
- requiredCapabilities?: string[] | undefined;
1858
- instructionTemplateRefs?: {
1859
- id: string;
1860
- revision: number;
1861
- }[] | undefined;
1862
- maxRuntimeSeconds?: number | undefined;
1863
- maxTotalTokens?: number | undefined;
1864
- maxCostAmount?: number | undefined;
1865
- disallowedProviderIds?: string[] | undefined;
1866
- promptRef?: string | undefined;
1867
- }, {
1868
- requiredCapabilities?: string[] | undefined;
1869
- instructionTemplateRefs?: {
1870
- id: string;
1871
- revision: number;
1872
- }[] | undefined;
1873
- maxRuntimeSeconds?: number | undefined;
1874
- maxTotalTokens?: number | undefined;
1875
- maxCostAmount?: number | undefined;
1876
- disallowedProviderIds?: string[] | undefined;
1877
- promptRef?: string | undefined;
1878
- }>>;
1879
1857
  tools: z.ZodObject<{
1880
1858
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1881
1859
  denied: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
@@ -2229,8 +2207,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2229
2207
  agentSlug: z.ZodOptional<z.ZodString>;
2230
2208
  }, "strict", z.ZodTypeAny, {
2231
2209
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2232
- projectId?: string | undefined;
2233
2210
  teamId?: string | undefined;
2211
+ projectId?: string | undefined;
2234
2212
  agentSlug?: string | undefined;
2235
2213
  requiredRoles?: string[] | undefined;
2236
2214
  allowedRoles?: string[] | undefined;
@@ -2240,8 +2218,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2240
2218
  teamMemberId?: string | undefined;
2241
2219
  }, {
2242
2220
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2243
- projectId?: string | undefined;
2244
2221
  teamId?: string | undefined;
2222
+ projectId?: string | undefined;
2245
2223
  agentSlug?: string | undefined;
2246
2224
  requiredRoles?: string[] | undefined;
2247
2225
  allowedRoles?: string[] | undefined;
@@ -2253,8 +2231,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2253
2231
  }, "strict", z.ZodTypeAny, {
2254
2232
  defaultAnswerPolicy?: {
2255
2233
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2256
- projectId?: string | undefined;
2257
2234
  teamId?: string | undefined;
2235
+ projectId?: string | undefined;
2258
2236
  agentSlug?: string | undefined;
2259
2237
  requiredRoles?: string[] | undefined;
2260
2238
  allowedRoles?: string[] | undefined;
@@ -2267,8 +2245,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2267
2245
  }, {
2268
2246
  defaultAnswerPolicy?: {
2269
2247
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2270
- projectId?: string | undefined;
2271
2248
  teamId?: string | undefined;
2249
+ projectId?: string | undefined;
2272
2250
  agentSlug?: string | undefined;
2273
2251
  requiredRoles?: string[] | undefined;
2274
2252
  allowedRoles?: string[] | undefined;
@@ -2314,6 +2292,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2314
2292
  closeoutSeconds?: number | undefined;
2315
2293
  closeoutWarningSeconds?: number | undefined;
2316
2294
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2295
+ nativeLimits?: {
2296
+ amount: number;
2297
+ unit: string;
2298
+ enforceable?: boolean | undefined;
2299
+ }[] | undefined;
2317
2300
  maxRuntimeSeconds?: number | undefined;
2318
2301
  maxRetries?: number | undefined;
2319
2302
  verificationRequired?: boolean | undefined;
@@ -2321,11 +2304,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2321
2304
  warningTokens?: number | undefined;
2322
2305
  maxCostAmount?: number | undefined;
2323
2306
  costCurrency?: string | undefined;
2324
- nativeLimits?: {
2325
- amount: number;
2326
- unit: string;
2327
- enforceable?: boolean | undefined;
2328
- }[] | undefined;
2329
2307
  pricingGeneration?: string | undefined;
2330
2308
  allowedPaths?: string[] | undefined;
2331
2309
  forbiddenPaths?: string[] | undefined;
@@ -2335,6 +2313,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2335
2313
  closeoutSeconds?: number | undefined;
2336
2314
  closeoutWarningSeconds?: number | undefined;
2337
2315
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2316
+ nativeLimits?: {
2317
+ amount: number;
2318
+ unit: string;
2319
+ enforceable?: boolean | undefined;
2320
+ }[] | undefined;
2338
2321
  maxRuntimeSeconds?: number | undefined;
2339
2322
  maxRetries?: number | undefined;
2340
2323
  verificationRequired?: boolean | undefined;
@@ -2342,11 +2325,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2342
2325
  warningTokens?: number | undefined;
2343
2326
  maxCostAmount?: number | undefined;
2344
2327
  costCurrency?: string | undefined;
2345
- nativeLimits?: {
2346
- amount: number;
2347
- unit: string;
2348
- enforceable?: boolean | undefined;
2349
- }[] | undefined;
2350
2328
  pricingGeneration?: string | undefined;
2351
2329
  allowedPaths?: string[] | undefined;
2352
2330
  forbiddenPaths?: string[] | undefined;
@@ -2383,6 +2361,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2383
2361
  closeoutSeconds?: number | undefined;
2384
2362
  closeoutWarningSeconds?: number | undefined;
2385
2363
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2364
+ nativeLimits?: {
2365
+ amount: number;
2366
+ unit: string;
2367
+ enforceable?: boolean | undefined;
2368
+ }[] | undefined;
2386
2369
  maxRuntimeSeconds?: number | undefined;
2387
2370
  maxRetries?: number | undefined;
2388
2371
  verificationRequired?: boolean | undefined;
@@ -2390,11 +2373,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2390
2373
  warningTokens?: number | undefined;
2391
2374
  maxCostAmount?: number | undefined;
2392
2375
  costCurrency?: string | undefined;
2393
- nativeLimits?: {
2394
- amount: number;
2395
- unit: string;
2396
- enforceable?: boolean | undefined;
2397
- }[] | undefined;
2398
2376
  pricingGeneration?: string | undefined;
2399
2377
  allowedPaths?: string[] | undefined;
2400
2378
  forbiddenPaths?: string[] | undefined;
@@ -2412,6 +2390,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2412
2390
  id: string;
2413
2391
  revision: number;
2414
2392
  }[] | undefined;
2393
+ capabilityRequirements?: {
2394
+ capabilityId: string;
2395
+ requirement: "required" | "preferred";
2396
+ versionRange: string;
2397
+ configuration?: Record<string, {
2398
+ requirement: "required" | "preferred";
2399
+ value?: unknown;
2400
+ }> | undefined;
2401
+ alternativeGroup?: string | null | undefined;
2402
+ requiredFeatures?: string[] | undefined;
2403
+ }[] | undefined;
2415
2404
  permissions?: {
2416
2405
  repository?: {
2417
2406
  allowCodeMutation?: boolean | undefined;
@@ -2447,18 +2436,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2447
2436
  requiredArtifactKinds?: string[] | undefined;
2448
2437
  blockOnOpenQuestions?: boolean | undefined;
2449
2438
  } | undefined;
2450
- providerOverrides?: {
2451
- requiredCapabilities?: string[] | undefined;
2452
- instructionTemplateRefs?: {
2453
- id: string;
2454
- revision: number;
2455
- }[] | undefined;
2456
- maxRuntimeSeconds?: number | undefined;
2457
- maxTotalTokens?: number | undefined;
2458
- maxCostAmount?: number | undefined;
2459
- disallowedProviderIds?: string[] | undefined;
2460
- promptRef?: string | undefined;
2461
- } | undefined;
2462
2439
  signals?: {
2463
2440
  subscribesTo?: {
2464
2441
  contract: string;
@@ -2512,8 +2489,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2512
2489
  questionPolicy?: {
2513
2490
  defaultAnswerPolicy?: {
2514
2491
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2515
- projectId?: string | undefined;
2516
2492
  teamId?: string | undefined;
2493
+ projectId?: string | undefined;
2517
2494
  agentSlug?: string | undefined;
2518
2495
  requiredRoles?: string[] | undefined;
2519
2496
  allowedRoles?: string[] | undefined;
@@ -2556,6 +2533,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2556
2533
  closeoutSeconds?: number | undefined;
2557
2534
  closeoutWarningSeconds?: number | undefined;
2558
2535
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2536
+ nativeLimits?: {
2537
+ amount: number;
2538
+ unit: string;
2539
+ enforceable?: boolean | undefined;
2540
+ }[] | undefined;
2559
2541
  maxRuntimeSeconds?: number | undefined;
2560
2542
  maxRetries?: number | undefined;
2561
2543
  verificationRequired?: boolean | undefined;
@@ -2563,11 +2545,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2563
2545
  warningTokens?: number | undefined;
2564
2546
  maxCostAmount?: number | undefined;
2565
2547
  costCurrency?: string | undefined;
2566
- nativeLimits?: {
2567
- amount: number;
2568
- unit: string;
2569
- enforceable?: boolean | undefined;
2570
- }[] | undefined;
2571
2548
  pricingGeneration?: string | undefined;
2572
2549
  allowedPaths?: string[] | undefined;
2573
2550
  forbiddenPaths?: string[] | undefined;
@@ -2585,6 +2562,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2585
2562
  id: string;
2586
2563
  revision: number;
2587
2564
  }[] | undefined;
2565
+ capabilityRequirements?: {
2566
+ capabilityId: string;
2567
+ requirement: "required" | "preferred";
2568
+ versionRange: string;
2569
+ configuration?: Record<string, {
2570
+ requirement: "required" | "preferred";
2571
+ value?: unknown;
2572
+ }> | undefined;
2573
+ alternativeGroup?: string | null | undefined;
2574
+ requiredFeatures?: string[] | undefined;
2575
+ }[] | undefined;
2588
2576
  permissions?: {
2589
2577
  repository?: {
2590
2578
  allowCodeMutation?: boolean | undefined;
@@ -2620,18 +2608,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2620
2608
  requiredArtifactKinds?: string[] | undefined;
2621
2609
  blockOnOpenQuestions?: boolean | undefined;
2622
2610
  } | undefined;
2623
- providerOverrides?: {
2624
- requiredCapabilities?: string[] | undefined;
2625
- instructionTemplateRefs?: {
2626
- id: string;
2627
- revision: number;
2628
- }[] | undefined;
2629
- maxRuntimeSeconds?: number | undefined;
2630
- maxTotalTokens?: number | undefined;
2631
- maxCostAmount?: number | undefined;
2632
- disallowedProviderIds?: string[] | undefined;
2633
- promptRef?: string | undefined;
2634
- } | undefined;
2635
2611
  signals?: {
2636
2612
  subscribesTo?: {
2637
2613
  contract: string;
@@ -2685,8 +2661,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2685
2661
  questionPolicy?: {
2686
2662
  defaultAnswerPolicy?: {
2687
2663
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2688
- projectId?: string | undefined;
2689
2664
  teamId?: string | undefined;
2665
+ projectId?: string | undefined;
2690
2666
  agentSlug?: string | undefined;
2691
2667
  requiredRoles?: string[] | undefined;
2692
2668
  allowedRoles?: string[] | undefined;
@@ -2729,6 +2705,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2729
2705
  closeoutSeconds?: number | undefined;
2730
2706
  closeoutWarningSeconds?: number | undefined;
2731
2707
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2708
+ nativeLimits?: {
2709
+ amount: number;
2710
+ unit: string;
2711
+ enforceable?: boolean | undefined;
2712
+ }[] | undefined;
2732
2713
  maxRuntimeSeconds?: number | undefined;
2733
2714
  maxRetries?: number | undefined;
2734
2715
  verificationRequired?: boolean | undefined;
@@ -2736,11 +2717,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2736
2717
  warningTokens?: number | undefined;
2737
2718
  maxCostAmount?: number | undefined;
2738
2719
  costCurrency?: string | undefined;
2739
- nativeLimits?: {
2740
- amount: number;
2741
- unit: string;
2742
- enforceable?: boolean | undefined;
2743
- }[] | undefined;
2744
2720
  pricingGeneration?: string | undefined;
2745
2721
  allowedPaths?: string[] | undefined;
2746
2722
  forbiddenPaths?: string[] | undefined;
@@ -2758,6 +2734,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2758
2734
  id: string;
2759
2735
  revision: number;
2760
2736
  }[] | undefined;
2737
+ capabilityRequirements?: {
2738
+ capabilityId: string;
2739
+ requirement: "required" | "preferred";
2740
+ versionRange: string;
2741
+ configuration?: Record<string, {
2742
+ requirement: "required" | "preferred";
2743
+ value?: unknown;
2744
+ }> | undefined;
2745
+ alternativeGroup?: string | null | undefined;
2746
+ requiredFeatures?: string[] | undefined;
2747
+ }[] | undefined;
2761
2748
  permissions?: {
2762
2749
  repository?: {
2763
2750
  allowCodeMutation?: boolean | undefined;
@@ -2793,18 +2780,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2793
2780
  requiredArtifactKinds?: string[] | undefined;
2794
2781
  blockOnOpenQuestions?: boolean | undefined;
2795
2782
  } | undefined;
2796
- providerOverrides?: {
2797
- requiredCapabilities?: string[] | undefined;
2798
- instructionTemplateRefs?: {
2799
- id: string;
2800
- revision: number;
2801
- }[] | undefined;
2802
- maxRuntimeSeconds?: number | undefined;
2803
- maxTotalTokens?: number | undefined;
2804
- maxCostAmount?: number | undefined;
2805
- disallowedProviderIds?: string[] | undefined;
2806
- promptRef?: string | undefined;
2807
- } | undefined;
2808
2783
  signals?: {
2809
2784
  subscribesTo?: {
2810
2785
  contract: string;
@@ -2858,8 +2833,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2858
2833
  questionPolicy?: {
2859
2834
  defaultAnswerPolicy?: {
2860
2835
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
2861
- projectId?: string | undefined;
2862
2836
  teamId?: string | undefined;
2837
+ projectId?: string | undefined;
2863
2838
  agentSlug?: string | undefined;
2864
2839
  requiredRoles?: string[] | undefined;
2865
2840
  allowedRoles?: string[] | undefined;
@@ -2902,6 +2877,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2902
2877
  closeoutSeconds?: number | undefined;
2903
2878
  closeoutWarningSeconds?: number | undefined;
2904
2879
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
2880
+ nativeLimits?: {
2881
+ amount: number;
2882
+ unit: string;
2883
+ enforceable?: boolean | undefined;
2884
+ }[] | undefined;
2905
2885
  maxRuntimeSeconds?: number | undefined;
2906
2886
  maxRetries?: number | undefined;
2907
2887
  verificationRequired?: boolean | undefined;
@@ -2909,11 +2889,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2909
2889
  warningTokens?: number | undefined;
2910
2890
  maxCostAmount?: number | undefined;
2911
2891
  costCurrency?: string | undefined;
2912
- nativeLimits?: {
2913
- amount: number;
2914
- unit: string;
2915
- enforceable?: boolean | undefined;
2916
- }[] | undefined;
2917
2892
  pricingGeneration?: string | undefined;
2918
2893
  allowedPaths?: string[] | undefined;
2919
2894
  forbiddenPaths?: string[] | undefined;
@@ -2931,6 +2906,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2931
2906
  id: string;
2932
2907
  revision: number;
2933
2908
  }[] | undefined;
2909
+ capabilityRequirements?: {
2910
+ capabilityId: string;
2911
+ requirement: "required" | "preferred";
2912
+ versionRange: string;
2913
+ configuration?: Record<string, {
2914
+ requirement: "required" | "preferred";
2915
+ value?: unknown;
2916
+ }> | undefined;
2917
+ alternativeGroup?: string | null | undefined;
2918
+ requiredFeatures?: string[] | undefined;
2919
+ }[] | undefined;
2934
2920
  permissions?: {
2935
2921
  repository?: {
2936
2922
  allowCodeMutation?: boolean | undefined;
@@ -2966,18 +2952,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
2966
2952
  requiredArtifactKinds?: string[] | undefined;
2967
2953
  blockOnOpenQuestions?: boolean | undefined;
2968
2954
  } | undefined;
2969
- providerOverrides?: {
2970
- requiredCapabilities?: string[] | undefined;
2971
- instructionTemplateRefs?: {
2972
- id: string;
2973
- revision: number;
2974
- }[] | undefined;
2975
- maxRuntimeSeconds?: number | undefined;
2976
- maxTotalTokens?: number | undefined;
2977
- maxCostAmount?: number | undefined;
2978
- disallowedProviderIds?: string[] | undefined;
2979
- promptRef?: string | undefined;
2980
- } | undefined;
2981
2955
  signals?: {
2982
2956
  subscribesTo?: {
2983
2957
  contract: string;
@@ -3031,8 +3005,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3031
3005
  questionPolicy?: {
3032
3006
  defaultAnswerPolicy?: {
3033
3007
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
3034
- projectId?: string | undefined;
3035
3008
  teamId?: string | undefined;
3009
+ projectId?: string | undefined;
3036
3010
  agentSlug?: string | undefined;
3037
3011
  requiredRoles?: string[] | undefined;
3038
3012
  allowedRoles?: string[] | undefined;
@@ -3221,6 +3195,43 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3221
3195
  id: string;
3222
3196
  revision: number;
3223
3197
  }[]>>;
3198
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3199
+ capabilityId: z.ZodString;
3200
+ versionRange: z.ZodString;
3201
+ requirement: z.ZodEnum<["required", "preferred"]>;
3202
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3203
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3204
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3205
+ value: z.ZodUnknown;
3206
+ requirement: z.ZodEnum<["required", "preferred"]>;
3207
+ }, "strict", z.ZodTypeAny, {
3208
+ requirement: "required" | "preferred";
3209
+ value?: unknown;
3210
+ }, {
3211
+ requirement: "required" | "preferred";
3212
+ value?: unknown;
3213
+ }>>>;
3214
+ }, "strict", z.ZodTypeAny, {
3215
+ capabilityId: string;
3216
+ requirement: "required" | "preferred";
3217
+ versionRange: string;
3218
+ configuration?: Record<string, {
3219
+ requirement: "required" | "preferred";
3220
+ value?: unknown;
3221
+ }> | undefined;
3222
+ alternativeGroup?: string | null | undefined;
3223
+ requiredFeatures?: string[] | undefined;
3224
+ }, {
3225
+ capabilityId: string;
3226
+ requirement: "required" | "preferred";
3227
+ versionRange: string;
3228
+ configuration?: Record<string, {
3229
+ requirement: "required" | "preferred";
3230
+ value?: unknown;
3231
+ }> | undefined;
3232
+ alternativeGroup?: string | null | undefined;
3233
+ requiredFeatures?: string[] | undefined;
3234
+ }>, "many">>;
3224
3235
  permissions: z.ZodOptional<z.ZodObject<{
3225
3236
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3226
3237
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -3352,52 +3363,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3352
3363
  requiredArtifactKinds?: string[] | undefined;
3353
3364
  blockOnOpenQuestions?: boolean | undefined;
3354
3365
  }>>;
3355
- providerOverrides: z.ZodOptional<z.ZodObject<{
3356
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3357
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
3358
- promptRef: z.ZodOptional<z.ZodString>;
3359
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
3360
- id: z.ZodString;
3361
- revision: z.ZodNumber;
3362
- }, "strict", z.ZodTypeAny, {
3363
- id: string;
3364
- revision: number;
3365
- }, {
3366
- id: string;
3367
- revision: number;
3368
- }>, "many">, {
3369
- id: string;
3370
- revision: number;
3371
- }[], {
3372
- id: string;
3373
- revision: number;
3374
- }[]>>;
3375
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
3376
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
3377
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
3378
- }, "strict", z.ZodTypeAny, {
3379
- requiredCapabilities?: string[] | undefined;
3380
- instructionTemplateRefs?: {
3381
- id: string;
3382
- revision: number;
3383
- }[] | undefined;
3384
- maxRuntimeSeconds?: number | undefined;
3385
- maxTotalTokens?: number | undefined;
3386
- maxCostAmount?: number | undefined;
3387
- disallowedProviderIds?: string[] | undefined;
3388
- promptRef?: string | undefined;
3389
- }, {
3390
- requiredCapabilities?: string[] | undefined;
3391
- instructionTemplateRefs?: {
3392
- id: string;
3393
- revision: number;
3394
- }[] | undefined;
3395
- maxRuntimeSeconds?: number | undefined;
3396
- maxTotalTokens?: number | undefined;
3397
- maxCostAmount?: number | undefined;
3398
- disallowedProviderIds?: string[] | undefined;
3399
- promptRef?: string | undefined;
3400
- }>>;
3401
3366
  tools: z.ZodObject<{
3402
3367
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3403
3368
  denied: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
@@ -3751,8 +3716,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3751
3716
  agentSlug: z.ZodOptional<z.ZodString>;
3752
3717
  }, "strict", z.ZodTypeAny, {
3753
3718
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
3754
- projectId?: string | undefined;
3755
3719
  teamId?: string | undefined;
3720
+ projectId?: string | undefined;
3756
3721
  agentSlug?: string | undefined;
3757
3722
  requiredRoles?: string[] | undefined;
3758
3723
  allowedRoles?: string[] | undefined;
@@ -3762,8 +3727,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3762
3727
  teamMemberId?: string | undefined;
3763
3728
  }, {
3764
3729
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
3765
- projectId?: string | undefined;
3766
3730
  teamId?: string | undefined;
3731
+ projectId?: string | undefined;
3767
3732
  agentSlug?: string | undefined;
3768
3733
  requiredRoles?: string[] | undefined;
3769
3734
  allowedRoles?: string[] | undefined;
@@ -3775,8 +3740,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3775
3740
  }, "strict", z.ZodTypeAny, {
3776
3741
  defaultAnswerPolicy?: {
3777
3742
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
3778
- projectId?: string | undefined;
3779
3743
  teamId?: string | undefined;
3744
+ projectId?: string | undefined;
3780
3745
  agentSlug?: string | undefined;
3781
3746
  requiredRoles?: string[] | undefined;
3782
3747
  allowedRoles?: string[] | undefined;
@@ -3789,8 +3754,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3789
3754
  }, {
3790
3755
  defaultAnswerPolicy?: {
3791
3756
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
3792
- projectId?: string | undefined;
3793
3757
  teamId?: string | undefined;
3758
+ projectId?: string | undefined;
3794
3759
  agentSlug?: string | undefined;
3795
3760
  requiredRoles?: string[] | undefined;
3796
3761
  allowedRoles?: string[] | undefined;
@@ -3836,6 +3801,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3836
3801
  closeoutSeconds?: number | undefined;
3837
3802
  closeoutWarningSeconds?: number | undefined;
3838
3803
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
3804
+ nativeLimits?: {
3805
+ amount: number;
3806
+ unit: string;
3807
+ enforceable?: boolean | undefined;
3808
+ }[] | undefined;
3839
3809
  maxRuntimeSeconds?: number | undefined;
3840
3810
  maxRetries?: number | undefined;
3841
3811
  verificationRequired?: boolean | undefined;
@@ -3843,11 +3813,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3843
3813
  warningTokens?: number | undefined;
3844
3814
  maxCostAmount?: number | undefined;
3845
3815
  costCurrency?: string | undefined;
3846
- nativeLimits?: {
3847
- amount: number;
3848
- unit: string;
3849
- enforceable?: boolean | undefined;
3850
- }[] | undefined;
3851
3816
  pricingGeneration?: string | undefined;
3852
3817
  allowedPaths?: string[] | undefined;
3853
3818
  forbiddenPaths?: string[] | undefined;
@@ -3857,6 +3822,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3857
3822
  closeoutSeconds?: number | undefined;
3858
3823
  closeoutWarningSeconds?: number | undefined;
3859
3824
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
3825
+ nativeLimits?: {
3826
+ amount: number;
3827
+ unit: string;
3828
+ enforceable?: boolean | undefined;
3829
+ }[] | undefined;
3860
3830
  maxRuntimeSeconds?: number | undefined;
3861
3831
  maxRetries?: number | undefined;
3862
3832
  verificationRequired?: boolean | undefined;
@@ -3864,11 +3834,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3864
3834
  warningTokens?: number | undefined;
3865
3835
  maxCostAmount?: number | undefined;
3866
3836
  costCurrency?: string | undefined;
3867
- nativeLimits?: {
3868
- amount: number;
3869
- unit: string;
3870
- enforceable?: boolean | undefined;
3871
- }[] | undefined;
3872
3837
  pricingGeneration?: string | undefined;
3873
3838
  allowedPaths?: string[] | undefined;
3874
3839
  forbiddenPaths?: string[] | undefined;
@@ -3905,6 +3870,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3905
3870
  closeoutSeconds?: number | undefined;
3906
3871
  closeoutWarningSeconds?: number | undefined;
3907
3872
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
3873
+ nativeLimits?: {
3874
+ amount: number;
3875
+ unit: string;
3876
+ enforceable?: boolean | undefined;
3877
+ }[] | undefined;
3908
3878
  maxRuntimeSeconds?: number | undefined;
3909
3879
  maxRetries?: number | undefined;
3910
3880
  verificationRequired?: boolean | undefined;
@@ -3912,11 +3882,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3912
3882
  warningTokens?: number | undefined;
3913
3883
  maxCostAmount?: number | undefined;
3914
3884
  costCurrency?: string | undefined;
3915
- nativeLimits?: {
3916
- amount: number;
3917
- unit: string;
3918
- enforceable?: boolean | undefined;
3919
- }[] | undefined;
3920
3885
  pricingGeneration?: string | undefined;
3921
3886
  allowedPaths?: string[] | undefined;
3922
3887
  forbiddenPaths?: string[] | undefined;
@@ -3934,6 +3899,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3934
3899
  id: string;
3935
3900
  revision: number;
3936
3901
  }[] | undefined;
3902
+ capabilityRequirements?: {
3903
+ capabilityId: string;
3904
+ requirement: "required" | "preferred";
3905
+ versionRange: string;
3906
+ configuration?: Record<string, {
3907
+ requirement: "required" | "preferred";
3908
+ value?: unknown;
3909
+ }> | undefined;
3910
+ alternativeGroup?: string | null | undefined;
3911
+ requiredFeatures?: string[] | undefined;
3912
+ }[] | undefined;
3937
3913
  permissions?: {
3938
3914
  repository?: {
3939
3915
  allowCodeMutation?: boolean | undefined;
@@ -3969,18 +3945,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
3969
3945
  requiredArtifactKinds?: string[] | undefined;
3970
3946
  blockOnOpenQuestions?: boolean | undefined;
3971
3947
  } | undefined;
3972
- providerOverrides?: {
3973
- requiredCapabilities?: string[] | undefined;
3974
- instructionTemplateRefs?: {
3975
- id: string;
3976
- revision: number;
3977
- }[] | undefined;
3978
- maxRuntimeSeconds?: number | undefined;
3979
- maxTotalTokens?: number | undefined;
3980
- maxCostAmount?: number | undefined;
3981
- disallowedProviderIds?: string[] | undefined;
3982
- promptRef?: string | undefined;
3983
- } | undefined;
3984
3948
  signals?: {
3985
3949
  subscribesTo?: {
3986
3950
  contract: string;
@@ -4034,8 +3998,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4034
3998
  questionPolicy?: {
4035
3999
  defaultAnswerPolicy?: {
4036
4000
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
4037
- projectId?: string | undefined;
4038
4001
  teamId?: string | undefined;
4002
+ projectId?: string | undefined;
4039
4003
  agentSlug?: string | undefined;
4040
4004
  requiredRoles?: string[] | undefined;
4041
4005
  allowedRoles?: string[] | undefined;
@@ -4078,6 +4042,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4078
4042
  closeoutSeconds?: number | undefined;
4079
4043
  closeoutWarningSeconds?: number | undefined;
4080
4044
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
4045
+ nativeLimits?: {
4046
+ amount: number;
4047
+ unit: string;
4048
+ enforceable?: boolean | undefined;
4049
+ }[] | undefined;
4081
4050
  maxRuntimeSeconds?: number | undefined;
4082
4051
  maxRetries?: number | undefined;
4083
4052
  verificationRequired?: boolean | undefined;
@@ -4085,11 +4054,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4085
4054
  warningTokens?: number | undefined;
4086
4055
  maxCostAmount?: number | undefined;
4087
4056
  costCurrency?: string | undefined;
4088
- nativeLimits?: {
4089
- amount: number;
4090
- unit: string;
4091
- enforceable?: boolean | undefined;
4092
- }[] | undefined;
4093
4057
  pricingGeneration?: string | undefined;
4094
4058
  allowedPaths?: string[] | undefined;
4095
4059
  forbiddenPaths?: string[] | undefined;
@@ -4107,6 +4071,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4107
4071
  id: string;
4108
4072
  revision: number;
4109
4073
  }[] | undefined;
4074
+ capabilityRequirements?: {
4075
+ capabilityId: string;
4076
+ requirement: "required" | "preferred";
4077
+ versionRange: string;
4078
+ configuration?: Record<string, {
4079
+ requirement: "required" | "preferred";
4080
+ value?: unknown;
4081
+ }> | undefined;
4082
+ alternativeGroup?: string | null | undefined;
4083
+ requiredFeatures?: string[] | undefined;
4084
+ }[] | undefined;
4110
4085
  permissions?: {
4111
4086
  repository?: {
4112
4087
  allowCodeMutation?: boolean | undefined;
@@ -4142,18 +4117,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4142
4117
  requiredArtifactKinds?: string[] | undefined;
4143
4118
  blockOnOpenQuestions?: boolean | undefined;
4144
4119
  } | undefined;
4145
- providerOverrides?: {
4146
- requiredCapabilities?: string[] | undefined;
4147
- instructionTemplateRefs?: {
4148
- id: string;
4149
- revision: number;
4150
- }[] | undefined;
4151
- maxRuntimeSeconds?: number | undefined;
4152
- maxTotalTokens?: number | undefined;
4153
- maxCostAmount?: number | undefined;
4154
- disallowedProviderIds?: string[] | undefined;
4155
- promptRef?: string | undefined;
4156
- } | undefined;
4157
4120
  signals?: {
4158
4121
  subscribesTo?: {
4159
4122
  contract: string;
@@ -4207,8 +4170,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4207
4170
  questionPolicy?: {
4208
4171
  defaultAnswerPolicy?: {
4209
4172
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
4210
- projectId?: string | undefined;
4211
4173
  teamId?: string | undefined;
4174
+ projectId?: string | undefined;
4212
4175
  agentSlug?: string | undefined;
4213
4176
  requiredRoles?: string[] | undefined;
4214
4177
  allowedRoles?: string[] | undefined;
@@ -4251,6 +4214,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4251
4214
  closeoutSeconds?: number | undefined;
4252
4215
  closeoutWarningSeconds?: number | undefined;
4253
4216
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
4217
+ nativeLimits?: {
4218
+ amount: number;
4219
+ unit: string;
4220
+ enforceable?: boolean | undefined;
4221
+ }[] | undefined;
4254
4222
  maxRuntimeSeconds?: number | undefined;
4255
4223
  maxRetries?: number | undefined;
4256
4224
  verificationRequired?: boolean | undefined;
@@ -4258,11 +4226,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4258
4226
  warningTokens?: number | undefined;
4259
4227
  maxCostAmount?: number | undefined;
4260
4228
  costCurrency?: string | undefined;
4261
- nativeLimits?: {
4262
- amount: number;
4263
- unit: string;
4264
- enforceable?: boolean | undefined;
4265
- }[] | undefined;
4266
4229
  pricingGeneration?: string | undefined;
4267
4230
  allowedPaths?: string[] | undefined;
4268
4231
  forbiddenPaths?: string[] | undefined;
@@ -4280,6 +4243,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4280
4243
  id: string;
4281
4244
  revision: number;
4282
4245
  }[] | undefined;
4246
+ capabilityRequirements?: {
4247
+ capabilityId: string;
4248
+ requirement: "required" | "preferred";
4249
+ versionRange: string;
4250
+ configuration?: Record<string, {
4251
+ requirement: "required" | "preferred";
4252
+ value?: unknown;
4253
+ }> | undefined;
4254
+ alternativeGroup?: string | null | undefined;
4255
+ requiredFeatures?: string[] | undefined;
4256
+ }[] | undefined;
4283
4257
  permissions?: {
4284
4258
  repository?: {
4285
4259
  allowCodeMutation?: boolean | undefined;
@@ -4315,18 +4289,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4315
4289
  requiredArtifactKinds?: string[] | undefined;
4316
4290
  blockOnOpenQuestions?: boolean | undefined;
4317
4291
  } | undefined;
4318
- providerOverrides?: {
4319
- requiredCapabilities?: string[] | undefined;
4320
- instructionTemplateRefs?: {
4321
- id: string;
4322
- revision: number;
4323
- }[] | undefined;
4324
- maxRuntimeSeconds?: number | undefined;
4325
- maxTotalTokens?: number | undefined;
4326
- maxCostAmount?: number | undefined;
4327
- disallowedProviderIds?: string[] | undefined;
4328
- promptRef?: string | undefined;
4329
- } | undefined;
4330
4292
  signals?: {
4331
4293
  subscribesTo?: {
4332
4294
  contract: string;
@@ -4380,8 +4342,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4380
4342
  questionPolicy?: {
4381
4343
  defaultAnswerPolicy?: {
4382
4344
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
4383
- projectId?: string | undefined;
4384
4345
  teamId?: string | undefined;
4346
+ projectId?: string | undefined;
4385
4347
  agentSlug?: string | undefined;
4386
4348
  requiredRoles?: string[] | undefined;
4387
4349
  allowedRoles?: string[] | undefined;
@@ -4424,6 +4386,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4424
4386
  closeoutSeconds?: number | undefined;
4425
4387
  closeoutWarningSeconds?: number | undefined;
4426
4388
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
4389
+ nativeLimits?: {
4390
+ amount: number;
4391
+ unit: string;
4392
+ enforceable?: boolean | undefined;
4393
+ }[] | undefined;
4427
4394
  maxRuntimeSeconds?: number | undefined;
4428
4395
  maxRetries?: number | undefined;
4429
4396
  verificationRequired?: boolean | undefined;
@@ -4431,11 +4398,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4431
4398
  warningTokens?: number | undefined;
4432
4399
  maxCostAmount?: number | undefined;
4433
4400
  costCurrency?: string | undefined;
4434
- nativeLimits?: {
4435
- amount: number;
4436
- unit: string;
4437
- enforceable?: boolean | undefined;
4438
- }[] | undefined;
4439
4401
  pricingGeneration?: string | undefined;
4440
4402
  allowedPaths?: string[] | undefined;
4441
4403
  forbiddenPaths?: string[] | undefined;
@@ -4453,6 +4415,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4453
4415
  id: string;
4454
4416
  revision: number;
4455
4417
  }[] | undefined;
4418
+ capabilityRequirements?: {
4419
+ capabilityId: string;
4420
+ requirement: "required" | "preferred";
4421
+ versionRange: string;
4422
+ configuration?: Record<string, {
4423
+ requirement: "required" | "preferred";
4424
+ value?: unknown;
4425
+ }> | undefined;
4426
+ alternativeGroup?: string | null | undefined;
4427
+ requiredFeatures?: string[] | undefined;
4428
+ }[] | undefined;
4456
4429
  permissions?: {
4457
4430
  repository?: {
4458
4431
  allowCodeMutation?: boolean | undefined;
@@ -4488,18 +4461,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4488
4461
  requiredArtifactKinds?: string[] | undefined;
4489
4462
  blockOnOpenQuestions?: boolean | undefined;
4490
4463
  } | undefined;
4491
- providerOverrides?: {
4492
- requiredCapabilities?: string[] | undefined;
4493
- instructionTemplateRefs?: {
4494
- id: string;
4495
- revision: number;
4496
- }[] | undefined;
4497
- maxRuntimeSeconds?: number | undefined;
4498
- maxTotalTokens?: number | undefined;
4499
- maxCostAmount?: number | undefined;
4500
- disallowedProviderIds?: string[] | undefined;
4501
- promptRef?: string | undefined;
4502
- } | undefined;
4503
4464
  signals?: {
4504
4465
  subscribesTo?: {
4505
4466
  contract: string;
@@ -4553,8 +4514,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4553
4514
  questionPolicy?: {
4554
4515
  defaultAnswerPolicy?: {
4555
4516
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
4556
- projectId?: string | undefined;
4557
4517
  teamId?: string | undefined;
4518
+ projectId?: string | undefined;
4558
4519
  agentSlug?: string | undefined;
4559
4520
  requiredRoles?: string[] | undefined;
4560
4521
  allowedRoles?: string[] | undefined;
@@ -4743,6 +4704,43 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4743
4704
  id: string;
4744
4705
  revision: number;
4745
4706
  }[]>>;
4707
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
4708
+ capabilityId: z.ZodString;
4709
+ versionRange: z.ZodString;
4710
+ requirement: z.ZodEnum<["required", "preferred"]>;
4711
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4712
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4713
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4714
+ value: z.ZodUnknown;
4715
+ requirement: z.ZodEnum<["required", "preferred"]>;
4716
+ }, "strict", z.ZodTypeAny, {
4717
+ requirement: "required" | "preferred";
4718
+ value?: unknown;
4719
+ }, {
4720
+ requirement: "required" | "preferred";
4721
+ value?: unknown;
4722
+ }>>>;
4723
+ }, "strict", z.ZodTypeAny, {
4724
+ capabilityId: string;
4725
+ requirement: "required" | "preferred";
4726
+ versionRange: string;
4727
+ configuration?: Record<string, {
4728
+ requirement: "required" | "preferred";
4729
+ value?: unknown;
4730
+ }> | undefined;
4731
+ alternativeGroup?: string | null | undefined;
4732
+ requiredFeatures?: string[] | undefined;
4733
+ }, {
4734
+ capabilityId: string;
4735
+ requirement: "required" | "preferred";
4736
+ versionRange: string;
4737
+ configuration?: Record<string, {
4738
+ requirement: "required" | "preferred";
4739
+ value?: unknown;
4740
+ }> | undefined;
4741
+ alternativeGroup?: string | null | undefined;
4742
+ requiredFeatures?: string[] | undefined;
4743
+ }>, "many">>;
4746
4744
  permissions: z.ZodOptional<z.ZodObject<{
4747
4745
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4748
4746
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -4874,52 +4872,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
4874
4872
  requiredArtifactKinds?: string[] | undefined;
4875
4873
  blockOnOpenQuestions?: boolean | undefined;
4876
4874
  }>>;
4877
- providerOverrides: z.ZodOptional<z.ZodObject<{
4878
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4879
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4880
- promptRef: z.ZodOptional<z.ZodString>;
4881
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
4882
- id: z.ZodString;
4883
- revision: z.ZodNumber;
4884
- }, "strict", z.ZodTypeAny, {
4885
- id: string;
4886
- revision: number;
4887
- }, {
4888
- id: string;
4889
- revision: number;
4890
- }>, "many">, {
4891
- id: string;
4892
- revision: number;
4893
- }[], {
4894
- id: string;
4895
- revision: number;
4896
- }[]>>;
4897
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
4898
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
4899
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
4900
- }, "strict", z.ZodTypeAny, {
4901
- requiredCapabilities?: string[] | undefined;
4902
- instructionTemplateRefs?: {
4903
- id: string;
4904
- revision: number;
4905
- }[] | undefined;
4906
- maxRuntimeSeconds?: number | undefined;
4907
- maxTotalTokens?: number | undefined;
4908
- maxCostAmount?: number | undefined;
4909
- disallowedProviderIds?: string[] | undefined;
4910
- promptRef?: string | undefined;
4911
- }, {
4912
- requiredCapabilities?: string[] | undefined;
4913
- instructionTemplateRefs?: {
4914
- id: string;
4915
- revision: number;
4916
- }[] | undefined;
4917
- maxRuntimeSeconds?: number | undefined;
4918
- maxTotalTokens?: number | undefined;
4919
- maxCostAmount?: number | undefined;
4920
- disallowedProviderIds?: string[] | undefined;
4921
- promptRef?: string | undefined;
4922
- }>>;
4923
4875
  tools: z.ZodObject<{
4924
4876
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
4925
4877
  denied: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
@@ -5273,8 +5225,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5273
5225
  agentSlug: z.ZodOptional<z.ZodString>;
5274
5226
  }, "strict", z.ZodTypeAny, {
5275
5227
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5276
- projectId?: string | undefined;
5277
5228
  teamId?: string | undefined;
5229
+ projectId?: string | undefined;
5278
5230
  agentSlug?: string | undefined;
5279
5231
  requiredRoles?: string[] | undefined;
5280
5232
  allowedRoles?: string[] | undefined;
@@ -5284,8 +5236,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5284
5236
  teamMemberId?: string | undefined;
5285
5237
  }, {
5286
5238
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5287
- projectId?: string | undefined;
5288
5239
  teamId?: string | undefined;
5240
+ projectId?: string | undefined;
5289
5241
  agentSlug?: string | undefined;
5290
5242
  requiredRoles?: string[] | undefined;
5291
5243
  allowedRoles?: string[] | undefined;
@@ -5297,8 +5249,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5297
5249
  }, "strict", z.ZodTypeAny, {
5298
5250
  defaultAnswerPolicy?: {
5299
5251
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5300
- projectId?: string | undefined;
5301
5252
  teamId?: string | undefined;
5253
+ projectId?: string | undefined;
5302
5254
  agentSlug?: string | undefined;
5303
5255
  requiredRoles?: string[] | undefined;
5304
5256
  allowedRoles?: string[] | undefined;
@@ -5311,8 +5263,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5311
5263
  }, {
5312
5264
  defaultAnswerPolicy?: {
5313
5265
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5314
- projectId?: string | undefined;
5315
5266
  teamId?: string | undefined;
5267
+ projectId?: string | undefined;
5316
5268
  agentSlug?: string | undefined;
5317
5269
  requiredRoles?: string[] | undefined;
5318
5270
  allowedRoles?: string[] | undefined;
@@ -5358,6 +5310,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5358
5310
  closeoutSeconds?: number | undefined;
5359
5311
  closeoutWarningSeconds?: number | undefined;
5360
5312
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5313
+ nativeLimits?: {
5314
+ amount: number;
5315
+ unit: string;
5316
+ enforceable?: boolean | undefined;
5317
+ }[] | undefined;
5361
5318
  maxRuntimeSeconds?: number | undefined;
5362
5319
  maxRetries?: number | undefined;
5363
5320
  verificationRequired?: boolean | undefined;
@@ -5365,11 +5322,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5365
5322
  warningTokens?: number | undefined;
5366
5323
  maxCostAmount?: number | undefined;
5367
5324
  costCurrency?: string | undefined;
5368
- nativeLimits?: {
5369
- amount: number;
5370
- unit: string;
5371
- enforceable?: boolean | undefined;
5372
- }[] | undefined;
5373
5325
  pricingGeneration?: string | undefined;
5374
5326
  allowedPaths?: string[] | undefined;
5375
5327
  forbiddenPaths?: string[] | undefined;
@@ -5379,6 +5331,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5379
5331
  closeoutSeconds?: number | undefined;
5380
5332
  closeoutWarningSeconds?: number | undefined;
5381
5333
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5334
+ nativeLimits?: {
5335
+ amount: number;
5336
+ unit: string;
5337
+ enforceable?: boolean | undefined;
5338
+ }[] | undefined;
5382
5339
  maxRuntimeSeconds?: number | undefined;
5383
5340
  maxRetries?: number | undefined;
5384
5341
  verificationRequired?: boolean | undefined;
@@ -5386,11 +5343,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5386
5343
  warningTokens?: number | undefined;
5387
5344
  maxCostAmount?: number | undefined;
5388
5345
  costCurrency?: string | undefined;
5389
- nativeLimits?: {
5390
- amount: number;
5391
- unit: string;
5392
- enforceable?: boolean | undefined;
5393
- }[] | undefined;
5394
5346
  pricingGeneration?: string | undefined;
5395
5347
  allowedPaths?: string[] | undefined;
5396
5348
  forbiddenPaths?: string[] | undefined;
@@ -5427,6 +5379,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5427
5379
  closeoutSeconds?: number | undefined;
5428
5380
  closeoutWarningSeconds?: number | undefined;
5429
5381
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5382
+ nativeLimits?: {
5383
+ amount: number;
5384
+ unit: string;
5385
+ enforceable?: boolean | undefined;
5386
+ }[] | undefined;
5430
5387
  maxRuntimeSeconds?: number | undefined;
5431
5388
  maxRetries?: number | undefined;
5432
5389
  verificationRequired?: boolean | undefined;
@@ -5434,11 +5391,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5434
5391
  warningTokens?: number | undefined;
5435
5392
  maxCostAmount?: number | undefined;
5436
5393
  costCurrency?: string | undefined;
5437
- nativeLimits?: {
5438
- amount: number;
5439
- unit: string;
5440
- enforceable?: boolean | undefined;
5441
- }[] | undefined;
5442
5394
  pricingGeneration?: string | undefined;
5443
5395
  allowedPaths?: string[] | undefined;
5444
5396
  forbiddenPaths?: string[] | undefined;
@@ -5456,6 +5408,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5456
5408
  id: string;
5457
5409
  revision: number;
5458
5410
  }[] | undefined;
5411
+ capabilityRequirements?: {
5412
+ capabilityId: string;
5413
+ requirement: "required" | "preferred";
5414
+ versionRange: string;
5415
+ configuration?: Record<string, {
5416
+ requirement: "required" | "preferred";
5417
+ value?: unknown;
5418
+ }> | undefined;
5419
+ alternativeGroup?: string | null | undefined;
5420
+ requiredFeatures?: string[] | undefined;
5421
+ }[] | undefined;
5459
5422
  permissions?: {
5460
5423
  repository?: {
5461
5424
  allowCodeMutation?: boolean | undefined;
@@ -5491,18 +5454,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5491
5454
  requiredArtifactKinds?: string[] | undefined;
5492
5455
  blockOnOpenQuestions?: boolean | undefined;
5493
5456
  } | undefined;
5494
- providerOverrides?: {
5495
- requiredCapabilities?: string[] | undefined;
5496
- instructionTemplateRefs?: {
5497
- id: string;
5498
- revision: number;
5499
- }[] | undefined;
5500
- maxRuntimeSeconds?: number | undefined;
5501
- maxTotalTokens?: number | undefined;
5502
- maxCostAmount?: number | undefined;
5503
- disallowedProviderIds?: string[] | undefined;
5504
- promptRef?: string | undefined;
5505
- } | undefined;
5506
5457
  signals?: {
5507
5458
  subscribesTo?: {
5508
5459
  contract: string;
@@ -5556,8 +5507,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5556
5507
  questionPolicy?: {
5557
5508
  defaultAnswerPolicy?: {
5558
5509
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5559
- projectId?: string | undefined;
5560
5510
  teamId?: string | undefined;
5511
+ projectId?: string | undefined;
5561
5512
  agentSlug?: string | undefined;
5562
5513
  requiredRoles?: string[] | undefined;
5563
5514
  allowedRoles?: string[] | undefined;
@@ -5600,6 +5551,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5600
5551
  closeoutSeconds?: number | undefined;
5601
5552
  closeoutWarningSeconds?: number | undefined;
5602
5553
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5554
+ nativeLimits?: {
5555
+ amount: number;
5556
+ unit: string;
5557
+ enforceable?: boolean | undefined;
5558
+ }[] | undefined;
5603
5559
  maxRuntimeSeconds?: number | undefined;
5604
5560
  maxRetries?: number | undefined;
5605
5561
  verificationRequired?: boolean | undefined;
@@ -5607,11 +5563,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5607
5563
  warningTokens?: number | undefined;
5608
5564
  maxCostAmount?: number | undefined;
5609
5565
  costCurrency?: string | undefined;
5610
- nativeLimits?: {
5611
- amount: number;
5612
- unit: string;
5613
- enforceable?: boolean | undefined;
5614
- }[] | undefined;
5615
5566
  pricingGeneration?: string | undefined;
5616
5567
  allowedPaths?: string[] | undefined;
5617
5568
  forbiddenPaths?: string[] | undefined;
@@ -5629,6 +5580,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5629
5580
  id: string;
5630
5581
  revision: number;
5631
5582
  }[] | undefined;
5583
+ capabilityRequirements?: {
5584
+ capabilityId: string;
5585
+ requirement: "required" | "preferred";
5586
+ versionRange: string;
5587
+ configuration?: Record<string, {
5588
+ requirement: "required" | "preferred";
5589
+ value?: unknown;
5590
+ }> | undefined;
5591
+ alternativeGroup?: string | null | undefined;
5592
+ requiredFeatures?: string[] | undefined;
5593
+ }[] | undefined;
5632
5594
  permissions?: {
5633
5595
  repository?: {
5634
5596
  allowCodeMutation?: boolean | undefined;
@@ -5664,18 +5626,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5664
5626
  requiredArtifactKinds?: string[] | undefined;
5665
5627
  blockOnOpenQuestions?: boolean | undefined;
5666
5628
  } | undefined;
5667
- providerOverrides?: {
5668
- requiredCapabilities?: string[] | undefined;
5669
- instructionTemplateRefs?: {
5670
- id: string;
5671
- revision: number;
5672
- }[] | undefined;
5673
- maxRuntimeSeconds?: number | undefined;
5674
- maxTotalTokens?: number | undefined;
5675
- maxCostAmount?: number | undefined;
5676
- disallowedProviderIds?: string[] | undefined;
5677
- promptRef?: string | undefined;
5678
- } | undefined;
5679
5629
  signals?: {
5680
5630
  subscribesTo?: {
5681
5631
  contract: string;
@@ -5729,8 +5679,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5729
5679
  questionPolicy?: {
5730
5680
  defaultAnswerPolicy?: {
5731
5681
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5732
- projectId?: string | undefined;
5733
5682
  teamId?: string | undefined;
5683
+ projectId?: string | undefined;
5734
5684
  agentSlug?: string | undefined;
5735
5685
  requiredRoles?: string[] | undefined;
5736
5686
  allowedRoles?: string[] | undefined;
@@ -5773,6 +5723,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5773
5723
  closeoutSeconds?: number | undefined;
5774
5724
  closeoutWarningSeconds?: number | undefined;
5775
5725
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5726
+ nativeLimits?: {
5727
+ amount: number;
5728
+ unit: string;
5729
+ enforceable?: boolean | undefined;
5730
+ }[] | undefined;
5776
5731
  maxRuntimeSeconds?: number | undefined;
5777
5732
  maxRetries?: number | undefined;
5778
5733
  verificationRequired?: boolean | undefined;
@@ -5780,11 +5735,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5780
5735
  warningTokens?: number | undefined;
5781
5736
  maxCostAmount?: number | undefined;
5782
5737
  costCurrency?: string | undefined;
5783
- nativeLimits?: {
5784
- amount: number;
5785
- unit: string;
5786
- enforceable?: boolean | undefined;
5787
- }[] | undefined;
5788
5738
  pricingGeneration?: string | undefined;
5789
5739
  allowedPaths?: string[] | undefined;
5790
5740
  forbiddenPaths?: string[] | undefined;
@@ -5802,6 +5752,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5802
5752
  id: string;
5803
5753
  revision: number;
5804
5754
  }[] | undefined;
5755
+ capabilityRequirements?: {
5756
+ capabilityId: string;
5757
+ requirement: "required" | "preferred";
5758
+ versionRange: string;
5759
+ configuration?: Record<string, {
5760
+ requirement: "required" | "preferred";
5761
+ value?: unknown;
5762
+ }> | undefined;
5763
+ alternativeGroup?: string | null | undefined;
5764
+ requiredFeatures?: string[] | undefined;
5765
+ }[] | undefined;
5805
5766
  permissions?: {
5806
5767
  repository?: {
5807
5768
  allowCodeMutation?: boolean | undefined;
@@ -5837,18 +5798,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5837
5798
  requiredArtifactKinds?: string[] | undefined;
5838
5799
  blockOnOpenQuestions?: boolean | undefined;
5839
5800
  } | undefined;
5840
- providerOverrides?: {
5841
- requiredCapabilities?: string[] | undefined;
5842
- instructionTemplateRefs?: {
5843
- id: string;
5844
- revision: number;
5845
- }[] | undefined;
5846
- maxRuntimeSeconds?: number | undefined;
5847
- maxTotalTokens?: number | undefined;
5848
- maxCostAmount?: number | undefined;
5849
- disallowedProviderIds?: string[] | undefined;
5850
- promptRef?: string | undefined;
5851
- } | undefined;
5852
5801
  signals?: {
5853
5802
  subscribesTo?: {
5854
5803
  contract: string;
@@ -5902,8 +5851,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5902
5851
  questionPolicy?: {
5903
5852
  defaultAnswerPolicy?: {
5904
5853
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
5905
- projectId?: string | undefined;
5906
5854
  teamId?: string | undefined;
5855
+ projectId?: string | undefined;
5907
5856
  agentSlug?: string | undefined;
5908
5857
  requiredRoles?: string[] | undefined;
5909
5858
  allowedRoles?: string[] | undefined;
@@ -5946,6 +5895,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5946
5895
  closeoutSeconds?: number | undefined;
5947
5896
  closeoutWarningSeconds?: number | undefined;
5948
5897
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
5898
+ nativeLimits?: {
5899
+ amount: number;
5900
+ unit: string;
5901
+ enforceable?: boolean | undefined;
5902
+ }[] | undefined;
5949
5903
  maxRuntimeSeconds?: number | undefined;
5950
5904
  maxRetries?: number | undefined;
5951
5905
  verificationRequired?: boolean | undefined;
@@ -5953,11 +5907,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5953
5907
  warningTokens?: number | undefined;
5954
5908
  maxCostAmount?: number | undefined;
5955
5909
  costCurrency?: string | undefined;
5956
- nativeLimits?: {
5957
- amount: number;
5958
- unit: string;
5959
- enforceable?: boolean | undefined;
5960
- }[] | undefined;
5961
5910
  pricingGeneration?: string | undefined;
5962
5911
  allowedPaths?: string[] | undefined;
5963
5912
  forbiddenPaths?: string[] | undefined;
@@ -5975,6 +5924,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
5975
5924
  id: string;
5976
5925
  revision: number;
5977
5926
  }[] | undefined;
5927
+ capabilityRequirements?: {
5928
+ capabilityId: string;
5929
+ requirement: "required" | "preferred";
5930
+ versionRange: string;
5931
+ configuration?: Record<string, {
5932
+ requirement: "required" | "preferred";
5933
+ value?: unknown;
5934
+ }> | undefined;
5935
+ alternativeGroup?: string | null | undefined;
5936
+ requiredFeatures?: string[] | undefined;
5937
+ }[] | undefined;
5978
5938
  permissions?: {
5979
5939
  repository?: {
5980
5940
  allowCodeMutation?: boolean | undefined;
@@ -6010,18 +5970,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6010
5970
  requiredArtifactKinds?: string[] | undefined;
6011
5971
  blockOnOpenQuestions?: boolean | undefined;
6012
5972
  } | undefined;
6013
- providerOverrides?: {
6014
- requiredCapabilities?: string[] | undefined;
6015
- instructionTemplateRefs?: {
6016
- id: string;
6017
- revision: number;
6018
- }[] | undefined;
6019
- maxRuntimeSeconds?: number | undefined;
6020
- maxTotalTokens?: number | undefined;
6021
- maxCostAmount?: number | undefined;
6022
- disallowedProviderIds?: string[] | undefined;
6023
- promptRef?: string | undefined;
6024
- } | undefined;
6025
5973
  signals?: {
6026
5974
  subscribesTo?: {
6027
5975
  contract: string;
@@ -6075,8 +6023,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6075
6023
  questionPolicy?: {
6076
6024
  defaultAnswerPolicy?: {
6077
6025
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
6078
- projectId?: string | undefined;
6079
6026
  teamId?: string | undefined;
6027
+ projectId?: string | undefined;
6080
6028
  agentSlug?: string | undefined;
6081
6029
  requiredRoles?: string[] | undefined;
6082
6030
  allowedRoles?: string[] | undefined;
@@ -6265,6 +6213,43 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6265
6213
  id: string;
6266
6214
  revision: number;
6267
6215
  }[]>>;
6216
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
6217
+ capabilityId: z.ZodString;
6218
+ versionRange: z.ZodString;
6219
+ requirement: z.ZodEnum<["required", "preferred"]>;
6220
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6221
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
6222
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6223
+ value: z.ZodUnknown;
6224
+ requirement: z.ZodEnum<["required", "preferred"]>;
6225
+ }, "strict", z.ZodTypeAny, {
6226
+ requirement: "required" | "preferred";
6227
+ value?: unknown;
6228
+ }, {
6229
+ requirement: "required" | "preferred";
6230
+ value?: unknown;
6231
+ }>>>;
6232
+ }, "strict", z.ZodTypeAny, {
6233
+ capabilityId: string;
6234
+ requirement: "required" | "preferred";
6235
+ versionRange: string;
6236
+ configuration?: Record<string, {
6237
+ requirement: "required" | "preferred";
6238
+ value?: unknown;
6239
+ }> | undefined;
6240
+ alternativeGroup?: string | null | undefined;
6241
+ requiredFeatures?: string[] | undefined;
6242
+ }, {
6243
+ capabilityId: string;
6244
+ requirement: "required" | "preferred";
6245
+ versionRange: string;
6246
+ configuration?: Record<string, {
6247
+ requirement: "required" | "preferred";
6248
+ value?: unknown;
6249
+ }> | undefined;
6250
+ alternativeGroup?: string | null | undefined;
6251
+ requiredFeatures?: string[] | undefined;
6252
+ }>, "many">>;
6268
6253
  permissions: z.ZodOptional<z.ZodObject<{
6269
6254
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6270
6255
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -6394,53 +6379,7 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6394
6379
  warningSeconds?: number | undefined;
6395
6380
  summaryRequired?: boolean | undefined;
6396
6381
  requiredArtifactKinds?: string[] | undefined;
6397
- blockOnOpenQuestions?: boolean | undefined;
6398
- }>>;
6399
- providerOverrides: z.ZodOptional<z.ZodObject<{
6400
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
6401
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
6402
- promptRef: z.ZodOptional<z.ZodString>;
6403
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
6404
- id: z.ZodString;
6405
- revision: z.ZodNumber;
6406
- }, "strict", z.ZodTypeAny, {
6407
- id: string;
6408
- revision: number;
6409
- }, {
6410
- id: string;
6411
- revision: number;
6412
- }>, "many">, {
6413
- id: string;
6414
- revision: number;
6415
- }[], {
6416
- id: string;
6417
- revision: number;
6418
- }[]>>;
6419
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
6420
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
6421
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
6422
- }, "strict", z.ZodTypeAny, {
6423
- requiredCapabilities?: string[] | undefined;
6424
- instructionTemplateRefs?: {
6425
- id: string;
6426
- revision: number;
6427
- }[] | undefined;
6428
- maxRuntimeSeconds?: number | undefined;
6429
- maxTotalTokens?: number | undefined;
6430
- maxCostAmount?: number | undefined;
6431
- disallowedProviderIds?: string[] | undefined;
6432
- promptRef?: string | undefined;
6433
- }, {
6434
- requiredCapabilities?: string[] | undefined;
6435
- instructionTemplateRefs?: {
6436
- id: string;
6437
- revision: number;
6438
- }[] | undefined;
6439
- maxRuntimeSeconds?: number | undefined;
6440
- maxTotalTokens?: number | undefined;
6441
- maxCostAmount?: number | undefined;
6442
- disallowedProviderIds?: string[] | undefined;
6443
- promptRef?: string | undefined;
6382
+ blockOnOpenQuestions?: boolean | undefined;
6444
6383
  }>>;
6445
6384
  tools: z.ZodObject<{
6446
6385
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -6795,8 +6734,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6795
6734
  agentSlug: z.ZodOptional<z.ZodString>;
6796
6735
  }, "strict", z.ZodTypeAny, {
6797
6736
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
6798
- projectId?: string | undefined;
6799
6737
  teamId?: string | undefined;
6738
+ projectId?: string | undefined;
6800
6739
  agentSlug?: string | undefined;
6801
6740
  requiredRoles?: string[] | undefined;
6802
6741
  allowedRoles?: string[] | undefined;
@@ -6806,8 +6745,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6806
6745
  teamMemberId?: string | undefined;
6807
6746
  }, {
6808
6747
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
6809
- projectId?: string | undefined;
6810
6748
  teamId?: string | undefined;
6749
+ projectId?: string | undefined;
6811
6750
  agentSlug?: string | undefined;
6812
6751
  requiredRoles?: string[] | undefined;
6813
6752
  allowedRoles?: string[] | undefined;
@@ -6819,8 +6758,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6819
6758
  }, "strict", z.ZodTypeAny, {
6820
6759
  defaultAnswerPolicy?: {
6821
6760
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
6822
- projectId?: string | undefined;
6823
6761
  teamId?: string | undefined;
6762
+ projectId?: string | undefined;
6824
6763
  agentSlug?: string | undefined;
6825
6764
  requiredRoles?: string[] | undefined;
6826
6765
  allowedRoles?: string[] | undefined;
@@ -6833,8 +6772,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6833
6772
  }, {
6834
6773
  defaultAnswerPolicy?: {
6835
6774
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
6836
- projectId?: string | undefined;
6837
6775
  teamId?: string | undefined;
6776
+ projectId?: string | undefined;
6838
6777
  agentSlug?: string | undefined;
6839
6778
  requiredRoles?: string[] | undefined;
6840
6779
  allowedRoles?: string[] | undefined;
@@ -6880,6 +6819,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6880
6819
  closeoutSeconds?: number | undefined;
6881
6820
  closeoutWarningSeconds?: number | undefined;
6882
6821
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
6822
+ nativeLimits?: {
6823
+ amount: number;
6824
+ unit: string;
6825
+ enforceable?: boolean | undefined;
6826
+ }[] | undefined;
6883
6827
  maxRuntimeSeconds?: number | undefined;
6884
6828
  maxRetries?: number | undefined;
6885
6829
  verificationRequired?: boolean | undefined;
@@ -6887,11 +6831,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6887
6831
  warningTokens?: number | undefined;
6888
6832
  maxCostAmount?: number | undefined;
6889
6833
  costCurrency?: string | undefined;
6890
- nativeLimits?: {
6891
- amount: number;
6892
- unit: string;
6893
- enforceable?: boolean | undefined;
6894
- }[] | undefined;
6895
6834
  pricingGeneration?: string | undefined;
6896
6835
  allowedPaths?: string[] | undefined;
6897
6836
  forbiddenPaths?: string[] | undefined;
@@ -6901,6 +6840,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6901
6840
  closeoutSeconds?: number | undefined;
6902
6841
  closeoutWarningSeconds?: number | undefined;
6903
6842
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
6843
+ nativeLimits?: {
6844
+ amount: number;
6845
+ unit: string;
6846
+ enforceable?: boolean | undefined;
6847
+ }[] | undefined;
6904
6848
  maxRuntimeSeconds?: number | undefined;
6905
6849
  maxRetries?: number | undefined;
6906
6850
  verificationRequired?: boolean | undefined;
@@ -6908,11 +6852,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6908
6852
  warningTokens?: number | undefined;
6909
6853
  maxCostAmount?: number | undefined;
6910
6854
  costCurrency?: string | undefined;
6911
- nativeLimits?: {
6912
- amount: number;
6913
- unit: string;
6914
- enforceable?: boolean | undefined;
6915
- }[] | undefined;
6916
6855
  pricingGeneration?: string | undefined;
6917
6856
  allowedPaths?: string[] | undefined;
6918
6857
  forbiddenPaths?: string[] | undefined;
@@ -6949,6 +6888,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6949
6888
  closeoutSeconds?: number | undefined;
6950
6889
  closeoutWarningSeconds?: number | undefined;
6951
6890
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
6891
+ nativeLimits?: {
6892
+ amount: number;
6893
+ unit: string;
6894
+ enforceable?: boolean | undefined;
6895
+ }[] | undefined;
6952
6896
  maxRuntimeSeconds?: number | undefined;
6953
6897
  maxRetries?: number | undefined;
6954
6898
  verificationRequired?: boolean | undefined;
@@ -6956,11 +6900,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6956
6900
  warningTokens?: number | undefined;
6957
6901
  maxCostAmount?: number | undefined;
6958
6902
  costCurrency?: string | undefined;
6959
- nativeLimits?: {
6960
- amount: number;
6961
- unit: string;
6962
- enforceable?: boolean | undefined;
6963
- }[] | undefined;
6964
6903
  pricingGeneration?: string | undefined;
6965
6904
  allowedPaths?: string[] | undefined;
6966
6905
  forbiddenPaths?: string[] | undefined;
@@ -6978,6 +6917,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
6978
6917
  id: string;
6979
6918
  revision: number;
6980
6919
  }[] | undefined;
6920
+ capabilityRequirements?: {
6921
+ capabilityId: string;
6922
+ requirement: "required" | "preferred";
6923
+ versionRange: string;
6924
+ configuration?: Record<string, {
6925
+ requirement: "required" | "preferred";
6926
+ value?: unknown;
6927
+ }> | undefined;
6928
+ alternativeGroup?: string | null | undefined;
6929
+ requiredFeatures?: string[] | undefined;
6930
+ }[] | undefined;
6981
6931
  permissions?: {
6982
6932
  repository?: {
6983
6933
  allowCodeMutation?: boolean | undefined;
@@ -7013,18 +6963,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7013
6963
  requiredArtifactKinds?: string[] | undefined;
7014
6964
  blockOnOpenQuestions?: boolean | undefined;
7015
6965
  } | undefined;
7016
- providerOverrides?: {
7017
- requiredCapabilities?: string[] | undefined;
7018
- instructionTemplateRefs?: {
7019
- id: string;
7020
- revision: number;
7021
- }[] | undefined;
7022
- maxRuntimeSeconds?: number | undefined;
7023
- maxTotalTokens?: number | undefined;
7024
- maxCostAmount?: number | undefined;
7025
- disallowedProviderIds?: string[] | undefined;
7026
- promptRef?: string | undefined;
7027
- } | undefined;
7028
6966
  signals?: {
7029
6967
  subscribesTo?: {
7030
6968
  contract: string;
@@ -7078,8 +7016,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7078
7016
  questionPolicy?: {
7079
7017
  defaultAnswerPolicy?: {
7080
7018
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
7081
- projectId?: string | undefined;
7082
7019
  teamId?: string | undefined;
7020
+ projectId?: string | undefined;
7083
7021
  agentSlug?: string | undefined;
7084
7022
  requiredRoles?: string[] | undefined;
7085
7023
  allowedRoles?: string[] | undefined;
@@ -7122,6 +7060,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7122
7060
  closeoutSeconds?: number | undefined;
7123
7061
  closeoutWarningSeconds?: number | undefined;
7124
7062
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
7063
+ nativeLimits?: {
7064
+ amount: number;
7065
+ unit: string;
7066
+ enforceable?: boolean | undefined;
7067
+ }[] | undefined;
7125
7068
  maxRuntimeSeconds?: number | undefined;
7126
7069
  maxRetries?: number | undefined;
7127
7070
  verificationRequired?: boolean | undefined;
@@ -7129,11 +7072,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7129
7072
  warningTokens?: number | undefined;
7130
7073
  maxCostAmount?: number | undefined;
7131
7074
  costCurrency?: string | undefined;
7132
- nativeLimits?: {
7133
- amount: number;
7134
- unit: string;
7135
- enforceable?: boolean | undefined;
7136
- }[] | undefined;
7137
7075
  pricingGeneration?: string | undefined;
7138
7076
  allowedPaths?: string[] | undefined;
7139
7077
  forbiddenPaths?: string[] | undefined;
@@ -7151,6 +7089,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7151
7089
  id: string;
7152
7090
  revision: number;
7153
7091
  }[] | undefined;
7092
+ capabilityRequirements?: {
7093
+ capabilityId: string;
7094
+ requirement: "required" | "preferred";
7095
+ versionRange: string;
7096
+ configuration?: Record<string, {
7097
+ requirement: "required" | "preferred";
7098
+ value?: unknown;
7099
+ }> | undefined;
7100
+ alternativeGroup?: string | null | undefined;
7101
+ requiredFeatures?: string[] | undefined;
7102
+ }[] | undefined;
7154
7103
  permissions?: {
7155
7104
  repository?: {
7156
7105
  allowCodeMutation?: boolean | undefined;
@@ -7186,18 +7135,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7186
7135
  requiredArtifactKinds?: string[] | undefined;
7187
7136
  blockOnOpenQuestions?: boolean | undefined;
7188
7137
  } | undefined;
7189
- providerOverrides?: {
7190
- requiredCapabilities?: string[] | undefined;
7191
- instructionTemplateRefs?: {
7192
- id: string;
7193
- revision: number;
7194
- }[] | undefined;
7195
- maxRuntimeSeconds?: number | undefined;
7196
- maxTotalTokens?: number | undefined;
7197
- maxCostAmount?: number | undefined;
7198
- disallowedProviderIds?: string[] | undefined;
7199
- promptRef?: string | undefined;
7200
- } | undefined;
7201
7138
  signals?: {
7202
7139
  subscribesTo?: {
7203
7140
  contract: string;
@@ -7251,8 +7188,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7251
7188
  questionPolicy?: {
7252
7189
  defaultAnswerPolicy?: {
7253
7190
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
7254
- projectId?: string | undefined;
7255
7191
  teamId?: string | undefined;
7192
+ projectId?: string | undefined;
7256
7193
  agentSlug?: string | undefined;
7257
7194
  requiredRoles?: string[] | undefined;
7258
7195
  allowedRoles?: string[] | undefined;
@@ -7295,6 +7232,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7295
7232
  closeoutSeconds?: number | undefined;
7296
7233
  closeoutWarningSeconds?: number | undefined;
7297
7234
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
7235
+ nativeLimits?: {
7236
+ amount: number;
7237
+ unit: string;
7238
+ enforceable?: boolean | undefined;
7239
+ }[] | undefined;
7298
7240
  maxRuntimeSeconds?: number | undefined;
7299
7241
  maxRetries?: number | undefined;
7300
7242
  verificationRequired?: boolean | undefined;
@@ -7302,11 +7244,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7302
7244
  warningTokens?: number | undefined;
7303
7245
  maxCostAmount?: number | undefined;
7304
7246
  costCurrency?: string | undefined;
7305
- nativeLimits?: {
7306
- amount: number;
7307
- unit: string;
7308
- enforceable?: boolean | undefined;
7309
- }[] | undefined;
7310
7247
  pricingGeneration?: string | undefined;
7311
7248
  allowedPaths?: string[] | undefined;
7312
7249
  forbiddenPaths?: string[] | undefined;
@@ -7324,6 +7261,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7324
7261
  id: string;
7325
7262
  revision: number;
7326
7263
  }[] | undefined;
7264
+ capabilityRequirements?: {
7265
+ capabilityId: string;
7266
+ requirement: "required" | "preferred";
7267
+ versionRange: string;
7268
+ configuration?: Record<string, {
7269
+ requirement: "required" | "preferred";
7270
+ value?: unknown;
7271
+ }> | undefined;
7272
+ alternativeGroup?: string | null | undefined;
7273
+ requiredFeatures?: string[] | undefined;
7274
+ }[] | undefined;
7327
7275
  permissions?: {
7328
7276
  repository?: {
7329
7277
  allowCodeMutation?: boolean | undefined;
@@ -7359,18 +7307,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7359
7307
  requiredArtifactKinds?: string[] | undefined;
7360
7308
  blockOnOpenQuestions?: boolean | undefined;
7361
7309
  } | undefined;
7362
- providerOverrides?: {
7363
- requiredCapabilities?: string[] | undefined;
7364
- instructionTemplateRefs?: {
7365
- id: string;
7366
- revision: number;
7367
- }[] | undefined;
7368
- maxRuntimeSeconds?: number | undefined;
7369
- maxTotalTokens?: number | undefined;
7370
- maxCostAmount?: number | undefined;
7371
- disallowedProviderIds?: string[] | undefined;
7372
- promptRef?: string | undefined;
7373
- } | undefined;
7374
7310
  signals?: {
7375
7311
  subscribesTo?: {
7376
7312
  contract: string;
@@ -7424,8 +7360,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7424
7360
  questionPolicy?: {
7425
7361
  defaultAnswerPolicy?: {
7426
7362
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
7427
- projectId?: string | undefined;
7428
7363
  teamId?: string | undefined;
7364
+ projectId?: string | undefined;
7429
7365
  agentSlug?: string | undefined;
7430
7366
  requiredRoles?: string[] | undefined;
7431
7367
  allowedRoles?: string[] | undefined;
@@ -7468,6 +7404,11 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7468
7404
  closeoutSeconds?: number | undefined;
7469
7405
  closeoutWarningSeconds?: number | undefined;
7470
7406
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
7407
+ nativeLimits?: {
7408
+ amount: number;
7409
+ unit: string;
7410
+ enforceable?: boolean | undefined;
7411
+ }[] | undefined;
7471
7412
  maxRuntimeSeconds?: number | undefined;
7472
7413
  maxRetries?: number | undefined;
7473
7414
  verificationRequired?: boolean | undefined;
@@ -7475,11 +7416,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7475
7416
  warningTokens?: number | undefined;
7476
7417
  maxCostAmount?: number | undefined;
7477
7418
  costCurrency?: string | undefined;
7478
- nativeLimits?: {
7479
- amount: number;
7480
- unit: string;
7481
- enforceable?: boolean | undefined;
7482
- }[] | undefined;
7483
7419
  pricingGeneration?: string | undefined;
7484
7420
  allowedPaths?: string[] | undefined;
7485
7421
  forbiddenPaths?: string[] | undefined;
@@ -7497,6 +7433,17 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7497
7433
  id: string;
7498
7434
  revision: number;
7499
7435
  }[] | undefined;
7436
+ capabilityRequirements?: {
7437
+ capabilityId: string;
7438
+ requirement: "required" | "preferred";
7439
+ versionRange: string;
7440
+ configuration?: Record<string, {
7441
+ requirement: "required" | "preferred";
7442
+ value?: unknown;
7443
+ }> | undefined;
7444
+ alternativeGroup?: string | null | undefined;
7445
+ requiredFeatures?: string[] | undefined;
7446
+ }[] | undefined;
7500
7447
  permissions?: {
7501
7448
  repository?: {
7502
7449
  allowCodeMutation?: boolean | undefined;
@@ -7532,18 +7479,6 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7532
7479
  requiredArtifactKinds?: string[] | undefined;
7533
7480
  blockOnOpenQuestions?: boolean | undefined;
7534
7481
  } | undefined;
7535
- providerOverrides?: {
7536
- requiredCapabilities?: string[] | undefined;
7537
- instructionTemplateRefs?: {
7538
- id: string;
7539
- revision: number;
7540
- }[] | undefined;
7541
- maxRuntimeSeconds?: number | undefined;
7542
- maxTotalTokens?: number | undefined;
7543
- maxCostAmount?: number | undefined;
7544
- disallowedProviderIds?: string[] | undefined;
7545
- promptRef?: string | undefined;
7546
- } | undefined;
7547
7482
  signals?: {
7548
7483
  subscribesTo?: {
7549
7484
  contract: string;
@@ -7597,8 +7532,8 @@ export declare const agentDefinitionSchema: z.ZodEffects<z.ZodObject<{
7597
7532
  questionPolicy?: {
7598
7533
  defaultAnswerPolicy?: {
7599
7534
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
7600
- projectId?: string | undefined;
7601
7535
  teamId?: string | undefined;
7536
+ projectId?: string | undefined;
7602
7537
  agentSlug?: string | undefined;
7603
7538
  requiredRoles?: string[] | undefined;
7604
7539
  allowedRoles?: string[] | undefined;
@@ -7791,6 +7726,43 @@ export declare function validateAgentDefinitionModel(value: unknown): {
7791
7726
  id: string;
7792
7727
  revision: number;
7793
7728
  }[]>>;
7729
+ capabilityRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
7730
+ capabilityId: z.ZodString;
7731
+ versionRange: z.ZodString;
7732
+ requirement: z.ZodEnum<["required", "preferred"]>;
7733
+ alternativeGroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7734
+ requiredFeatures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
7735
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7736
+ value: z.ZodUnknown;
7737
+ requirement: z.ZodEnum<["required", "preferred"]>;
7738
+ }, "strict", z.ZodTypeAny, {
7739
+ requirement: "required" | "preferred";
7740
+ value?: unknown;
7741
+ }, {
7742
+ requirement: "required" | "preferred";
7743
+ value?: unknown;
7744
+ }>>>;
7745
+ }, "strict", z.ZodTypeAny, {
7746
+ capabilityId: string;
7747
+ requirement: "required" | "preferred";
7748
+ versionRange: string;
7749
+ configuration?: Record<string, {
7750
+ requirement: "required" | "preferred";
7751
+ value?: unknown;
7752
+ }> | undefined;
7753
+ alternativeGroup?: string | null | undefined;
7754
+ requiredFeatures?: string[] | undefined;
7755
+ }, {
7756
+ capabilityId: string;
7757
+ requirement: "required" | "preferred";
7758
+ versionRange: string;
7759
+ configuration?: Record<string, {
7760
+ requirement: "required" | "preferred";
7761
+ value?: unknown;
7762
+ }> | undefined;
7763
+ alternativeGroup?: string | null | undefined;
7764
+ requiredFeatures?: string[] | undefined;
7765
+ }>, "many">>;
7794
7766
  permissions: z.ZodOptional<z.ZodObject<{
7795
7767
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7796
7768
  operations: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
@@ -7922,52 +7894,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
7922
7894
  requiredArtifactKinds?: string[] | undefined;
7923
7895
  blockOnOpenQuestions?: boolean | undefined;
7924
7896
  }>>;
7925
- providerOverrides: z.ZodOptional<z.ZodObject<{
7926
- requiredCapabilities: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
7927
- disallowedProviderIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
7928
- promptRef: z.ZodOptional<z.ZodString>;
7929
- instructionTemplateRefs: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
7930
- id: z.ZodString;
7931
- revision: z.ZodNumber;
7932
- }, "strict", z.ZodTypeAny, {
7933
- id: string;
7934
- revision: number;
7935
- }, {
7936
- id: string;
7937
- revision: number;
7938
- }>, "many">, {
7939
- id: string;
7940
- revision: number;
7941
- }[], {
7942
- id: string;
7943
- revision: number;
7944
- }[]>>;
7945
- maxRuntimeSeconds: z.ZodOptional<z.ZodNumber>;
7946
- maxTotalTokens: z.ZodOptional<z.ZodNumber>;
7947
- maxCostAmount: z.ZodOptional<z.ZodNumber>;
7948
- }, "strict", z.ZodTypeAny, {
7949
- requiredCapabilities?: string[] | undefined;
7950
- instructionTemplateRefs?: {
7951
- id: string;
7952
- revision: number;
7953
- }[] | undefined;
7954
- maxRuntimeSeconds?: number | undefined;
7955
- maxTotalTokens?: number | undefined;
7956
- maxCostAmount?: number | undefined;
7957
- disallowedProviderIds?: string[] | undefined;
7958
- promptRef?: string | undefined;
7959
- }, {
7960
- requiredCapabilities?: string[] | undefined;
7961
- instructionTemplateRefs?: {
7962
- id: string;
7963
- revision: number;
7964
- }[] | undefined;
7965
- maxRuntimeSeconds?: number | undefined;
7966
- maxTotalTokens?: number | undefined;
7967
- maxCostAmount?: number | undefined;
7968
- disallowedProviderIds?: string[] | undefined;
7969
- promptRef?: string | undefined;
7970
- }>>;
7971
7897
  tools: z.ZodObject<{
7972
7898
  allowed: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
7973
7899
  denied: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
@@ -8321,8 +8247,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8321
8247
  agentSlug: z.ZodOptional<z.ZodString>;
8322
8248
  }, "strict", z.ZodTypeAny, {
8323
8249
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8324
- projectId?: string | undefined;
8325
8250
  teamId?: string | undefined;
8251
+ projectId?: string | undefined;
8326
8252
  agentSlug?: string | undefined;
8327
8253
  requiredRoles?: string[] | undefined;
8328
8254
  allowedRoles?: string[] | undefined;
@@ -8332,8 +8258,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8332
8258
  teamMemberId?: string | undefined;
8333
8259
  }, {
8334
8260
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8335
- projectId?: string | undefined;
8336
8261
  teamId?: string | undefined;
8262
+ projectId?: string | undefined;
8337
8263
  agentSlug?: string | undefined;
8338
8264
  requiredRoles?: string[] | undefined;
8339
8265
  allowedRoles?: string[] | undefined;
@@ -8345,8 +8271,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8345
8271
  }, "strict", z.ZodTypeAny, {
8346
8272
  defaultAnswerPolicy?: {
8347
8273
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8348
- projectId?: string | undefined;
8349
8274
  teamId?: string | undefined;
8275
+ projectId?: string | undefined;
8350
8276
  agentSlug?: string | undefined;
8351
8277
  requiredRoles?: string[] | undefined;
8352
8278
  allowedRoles?: string[] | undefined;
@@ -8359,8 +8285,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8359
8285
  }, {
8360
8286
  defaultAnswerPolicy?: {
8361
8287
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8362
- projectId?: string | undefined;
8363
8288
  teamId?: string | undefined;
8289
+ projectId?: string | undefined;
8364
8290
  agentSlug?: string | undefined;
8365
8291
  requiredRoles?: string[] | undefined;
8366
8292
  allowedRoles?: string[] | undefined;
@@ -8406,6 +8332,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8406
8332
  closeoutSeconds?: number | undefined;
8407
8333
  closeoutWarningSeconds?: number | undefined;
8408
8334
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8335
+ nativeLimits?: {
8336
+ amount: number;
8337
+ unit: string;
8338
+ enforceable?: boolean | undefined;
8339
+ }[] | undefined;
8409
8340
  maxRuntimeSeconds?: number | undefined;
8410
8341
  maxRetries?: number | undefined;
8411
8342
  verificationRequired?: boolean | undefined;
@@ -8413,11 +8344,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8413
8344
  warningTokens?: number | undefined;
8414
8345
  maxCostAmount?: number | undefined;
8415
8346
  costCurrency?: string | undefined;
8416
- nativeLimits?: {
8417
- amount: number;
8418
- unit: string;
8419
- enforceable?: boolean | undefined;
8420
- }[] | undefined;
8421
8347
  pricingGeneration?: string | undefined;
8422
8348
  allowedPaths?: string[] | undefined;
8423
8349
  forbiddenPaths?: string[] | undefined;
@@ -8427,6 +8353,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8427
8353
  closeoutSeconds?: number | undefined;
8428
8354
  closeoutWarningSeconds?: number | undefined;
8429
8355
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8356
+ nativeLimits?: {
8357
+ amount: number;
8358
+ unit: string;
8359
+ enforceable?: boolean | undefined;
8360
+ }[] | undefined;
8430
8361
  maxRuntimeSeconds?: number | undefined;
8431
8362
  maxRetries?: number | undefined;
8432
8363
  verificationRequired?: boolean | undefined;
@@ -8434,11 +8365,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8434
8365
  warningTokens?: number | undefined;
8435
8366
  maxCostAmount?: number | undefined;
8436
8367
  costCurrency?: string | undefined;
8437
- nativeLimits?: {
8438
- amount: number;
8439
- unit: string;
8440
- enforceable?: boolean | undefined;
8441
- }[] | undefined;
8442
8368
  pricingGeneration?: string | undefined;
8443
8369
  allowedPaths?: string[] | undefined;
8444
8370
  forbiddenPaths?: string[] | undefined;
@@ -8475,6 +8401,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8475
8401
  closeoutSeconds?: number | undefined;
8476
8402
  closeoutWarningSeconds?: number | undefined;
8477
8403
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8404
+ nativeLimits?: {
8405
+ amount: number;
8406
+ unit: string;
8407
+ enforceable?: boolean | undefined;
8408
+ }[] | undefined;
8478
8409
  maxRuntimeSeconds?: number | undefined;
8479
8410
  maxRetries?: number | undefined;
8480
8411
  verificationRequired?: boolean | undefined;
@@ -8482,11 +8413,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8482
8413
  warningTokens?: number | undefined;
8483
8414
  maxCostAmount?: number | undefined;
8484
8415
  costCurrency?: string | undefined;
8485
- nativeLimits?: {
8486
- amount: number;
8487
- unit: string;
8488
- enforceable?: boolean | undefined;
8489
- }[] | undefined;
8490
8416
  pricingGeneration?: string | undefined;
8491
8417
  allowedPaths?: string[] | undefined;
8492
8418
  forbiddenPaths?: string[] | undefined;
@@ -8504,6 +8430,17 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8504
8430
  id: string;
8505
8431
  revision: number;
8506
8432
  }[] | undefined;
8433
+ capabilityRequirements?: {
8434
+ capabilityId: string;
8435
+ requirement: "required" | "preferred";
8436
+ versionRange: string;
8437
+ configuration?: Record<string, {
8438
+ requirement: "required" | "preferred";
8439
+ value?: unknown;
8440
+ }> | undefined;
8441
+ alternativeGroup?: string | null | undefined;
8442
+ requiredFeatures?: string[] | undefined;
8443
+ }[] | undefined;
8507
8444
  permissions?: {
8508
8445
  repository?: {
8509
8446
  allowCodeMutation?: boolean | undefined;
@@ -8539,18 +8476,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8539
8476
  requiredArtifactKinds?: string[] | undefined;
8540
8477
  blockOnOpenQuestions?: boolean | undefined;
8541
8478
  } | undefined;
8542
- providerOverrides?: {
8543
- requiredCapabilities?: string[] | undefined;
8544
- instructionTemplateRefs?: {
8545
- id: string;
8546
- revision: number;
8547
- }[] | undefined;
8548
- maxRuntimeSeconds?: number | undefined;
8549
- maxTotalTokens?: number | undefined;
8550
- maxCostAmount?: number | undefined;
8551
- disallowedProviderIds?: string[] | undefined;
8552
- promptRef?: string | undefined;
8553
- } | undefined;
8554
8479
  signals?: {
8555
8480
  subscribesTo?: {
8556
8481
  contract: string;
@@ -8604,8 +8529,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8604
8529
  questionPolicy?: {
8605
8530
  defaultAnswerPolicy?: {
8606
8531
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8607
- projectId?: string | undefined;
8608
8532
  teamId?: string | undefined;
8533
+ projectId?: string | undefined;
8609
8534
  agentSlug?: string | undefined;
8610
8535
  requiredRoles?: string[] | undefined;
8611
8536
  allowedRoles?: string[] | undefined;
@@ -8648,6 +8573,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8648
8573
  closeoutSeconds?: number | undefined;
8649
8574
  closeoutWarningSeconds?: number | undefined;
8650
8575
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8576
+ nativeLimits?: {
8577
+ amount: number;
8578
+ unit: string;
8579
+ enforceable?: boolean | undefined;
8580
+ }[] | undefined;
8651
8581
  maxRuntimeSeconds?: number | undefined;
8652
8582
  maxRetries?: number | undefined;
8653
8583
  verificationRequired?: boolean | undefined;
@@ -8655,11 +8585,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8655
8585
  warningTokens?: number | undefined;
8656
8586
  maxCostAmount?: number | undefined;
8657
8587
  costCurrency?: string | undefined;
8658
- nativeLimits?: {
8659
- amount: number;
8660
- unit: string;
8661
- enforceable?: boolean | undefined;
8662
- }[] | undefined;
8663
8588
  pricingGeneration?: string | undefined;
8664
8589
  allowedPaths?: string[] | undefined;
8665
8590
  forbiddenPaths?: string[] | undefined;
@@ -8677,6 +8602,17 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8677
8602
  id: string;
8678
8603
  revision: number;
8679
8604
  }[] | undefined;
8605
+ capabilityRequirements?: {
8606
+ capabilityId: string;
8607
+ requirement: "required" | "preferred";
8608
+ versionRange: string;
8609
+ configuration?: Record<string, {
8610
+ requirement: "required" | "preferred";
8611
+ value?: unknown;
8612
+ }> | undefined;
8613
+ alternativeGroup?: string | null | undefined;
8614
+ requiredFeatures?: string[] | undefined;
8615
+ }[] | undefined;
8680
8616
  permissions?: {
8681
8617
  repository?: {
8682
8618
  allowCodeMutation?: boolean | undefined;
@@ -8712,18 +8648,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8712
8648
  requiredArtifactKinds?: string[] | undefined;
8713
8649
  blockOnOpenQuestions?: boolean | undefined;
8714
8650
  } | undefined;
8715
- providerOverrides?: {
8716
- requiredCapabilities?: string[] | undefined;
8717
- instructionTemplateRefs?: {
8718
- id: string;
8719
- revision: number;
8720
- }[] | undefined;
8721
- maxRuntimeSeconds?: number | undefined;
8722
- maxTotalTokens?: number | undefined;
8723
- maxCostAmount?: number | undefined;
8724
- disallowedProviderIds?: string[] | undefined;
8725
- promptRef?: string | undefined;
8726
- } | undefined;
8727
8651
  signals?: {
8728
8652
  subscribesTo?: {
8729
8653
  contract: string;
@@ -8777,8 +8701,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8777
8701
  questionPolicy?: {
8778
8702
  defaultAnswerPolicy?: {
8779
8703
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8780
- projectId?: string | undefined;
8781
8704
  teamId?: string | undefined;
8705
+ projectId?: string | undefined;
8782
8706
  agentSlug?: string | undefined;
8783
8707
  requiredRoles?: string[] | undefined;
8784
8708
  allowedRoles?: string[] | undefined;
@@ -8821,6 +8745,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8821
8745
  closeoutSeconds?: number | undefined;
8822
8746
  closeoutWarningSeconds?: number | undefined;
8823
8747
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8748
+ nativeLimits?: {
8749
+ amount: number;
8750
+ unit: string;
8751
+ enforceable?: boolean | undefined;
8752
+ }[] | undefined;
8824
8753
  maxRuntimeSeconds?: number | undefined;
8825
8754
  maxRetries?: number | undefined;
8826
8755
  verificationRequired?: boolean | undefined;
@@ -8828,11 +8757,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8828
8757
  warningTokens?: number | undefined;
8829
8758
  maxCostAmount?: number | undefined;
8830
8759
  costCurrency?: string | undefined;
8831
- nativeLimits?: {
8832
- amount: number;
8833
- unit: string;
8834
- enforceable?: boolean | undefined;
8835
- }[] | undefined;
8836
8760
  pricingGeneration?: string | undefined;
8837
8761
  allowedPaths?: string[] | undefined;
8838
8762
  forbiddenPaths?: string[] | undefined;
@@ -8850,6 +8774,17 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8850
8774
  id: string;
8851
8775
  revision: number;
8852
8776
  }[] | undefined;
8777
+ capabilityRequirements?: {
8778
+ capabilityId: string;
8779
+ requirement: "required" | "preferred";
8780
+ versionRange: string;
8781
+ configuration?: Record<string, {
8782
+ requirement: "required" | "preferred";
8783
+ value?: unknown;
8784
+ }> | undefined;
8785
+ alternativeGroup?: string | null | undefined;
8786
+ requiredFeatures?: string[] | undefined;
8787
+ }[] | undefined;
8853
8788
  permissions?: {
8854
8789
  repository?: {
8855
8790
  allowCodeMutation?: boolean | undefined;
@@ -8885,18 +8820,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8885
8820
  requiredArtifactKinds?: string[] | undefined;
8886
8821
  blockOnOpenQuestions?: boolean | undefined;
8887
8822
  } | undefined;
8888
- providerOverrides?: {
8889
- requiredCapabilities?: string[] | undefined;
8890
- instructionTemplateRefs?: {
8891
- id: string;
8892
- revision: number;
8893
- }[] | undefined;
8894
- maxRuntimeSeconds?: number | undefined;
8895
- maxTotalTokens?: number | undefined;
8896
- maxCostAmount?: number | undefined;
8897
- disallowedProviderIds?: string[] | undefined;
8898
- promptRef?: string | undefined;
8899
- } | undefined;
8900
8823
  signals?: {
8901
8824
  subscribesTo?: {
8902
8825
  contract: string;
@@ -8950,8 +8873,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8950
8873
  questionPolicy?: {
8951
8874
  defaultAnswerPolicy?: {
8952
8875
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
8953
- projectId?: string | undefined;
8954
8876
  teamId?: string | undefined;
8877
+ projectId?: string | undefined;
8955
8878
  agentSlug?: string | undefined;
8956
8879
  requiredRoles?: string[] | undefined;
8957
8880
  allowedRoles?: string[] | undefined;
@@ -8994,6 +8917,11 @@ export declare function validateAgentDefinitionModel(value: unknown): {
8994
8917
  closeoutSeconds?: number | undefined;
8995
8918
  closeoutWarningSeconds?: number | undefined;
8996
8919
  enforcementConfidence?: "exact" | "bounded" | "estimated" | "opaque" | undefined;
8920
+ nativeLimits?: {
8921
+ amount: number;
8922
+ unit: string;
8923
+ enforceable?: boolean | undefined;
8924
+ }[] | undefined;
8997
8925
  maxRuntimeSeconds?: number | undefined;
8998
8926
  maxRetries?: number | undefined;
8999
8927
  verificationRequired?: boolean | undefined;
@@ -9001,11 +8929,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
9001
8929
  warningTokens?: number | undefined;
9002
8930
  maxCostAmount?: number | undefined;
9003
8931
  costCurrency?: string | undefined;
9004
- nativeLimits?: {
9005
- amount: number;
9006
- unit: string;
9007
- enforceable?: boolean | undefined;
9008
- }[] | undefined;
9009
8932
  pricingGeneration?: string | undefined;
9010
8933
  allowedPaths?: string[] | undefined;
9011
8934
  forbiddenPaths?: string[] | undefined;
@@ -9023,6 +8946,17 @@ export declare function validateAgentDefinitionModel(value: unknown): {
9023
8946
  id: string;
9024
8947
  revision: number;
9025
8948
  }[] | undefined;
8949
+ capabilityRequirements?: {
8950
+ capabilityId: string;
8951
+ requirement: "required" | "preferred";
8952
+ versionRange: string;
8953
+ configuration?: Record<string, {
8954
+ requirement: "required" | "preferred";
8955
+ value?: unknown;
8956
+ }> | undefined;
8957
+ alternativeGroup?: string | null | undefined;
8958
+ requiredFeatures?: string[] | undefined;
8959
+ }[] | undefined;
9026
8960
  permissions?: {
9027
8961
  repository?: {
9028
8962
  allowCodeMutation?: boolean | undefined;
@@ -9058,18 +8992,6 @@ export declare function validateAgentDefinitionModel(value: unknown): {
9058
8992
  requiredArtifactKinds?: string[] | undefined;
9059
8993
  blockOnOpenQuestions?: boolean | undefined;
9060
8994
  } | undefined;
9061
- providerOverrides?: {
9062
- requiredCapabilities?: string[] | undefined;
9063
- instructionTemplateRefs?: {
9064
- id: string;
9065
- revision: number;
9066
- }[] | undefined;
9067
- maxRuntimeSeconds?: number | undefined;
9068
- maxTotalTokens?: number | undefined;
9069
- maxCostAmount?: number | undefined;
9070
- disallowedProviderIds?: string[] | undefined;
9071
- promptRef?: string | undefined;
9072
- } | undefined;
9073
8995
  signals?: {
9074
8996
  subscribesTo?: {
9075
8997
  contract: string;
@@ -9123,8 +9045,8 @@ export declare function validateAgentDefinitionModel(value: unknown): {
9123
9045
  questionPolicy?: {
9124
9046
  defaultAnswerPolicy?: {
9125
9047
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
9126
- projectId?: string | undefined;
9127
9048
  teamId?: string | undefined;
9049
+ projectId?: string | undefined;
9128
9050
  agentSlug?: string | undefined;
9129
9051
  requiredRoles?: string[] | undefined;
9130
9052
  allowedRoles?: string[] | undefined;