agentbnb 5.1.10 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{card-RSGDCHCV.js → card-REW7BSWW.js} +1 -1
  2. package/dist/{chunk-EPIWHNB2.js → chunk-2TLZ6G2B.js} +446 -373
  3. package/dist/{chunk-WGZ5AGOX.js → chunk-3CIMVISQ.js} +24 -1
  4. package/dist/{chunk-NH2FIERR.js → chunk-574W3HHE.js} +1 -1
  5. package/dist/{chunk-B5FTAGFN.js → chunk-7XHDSWRD.js} +75 -75
  6. package/dist/{chunk-NLAWT4DT.js → chunk-7YLFLC5C.js} +6 -6
  7. package/dist/chunk-BP3L2TET.js +148 -0
  8. package/dist/{chunk-EGUOAHCW.js → chunk-C2T4BMRW.js} +12 -12
  9. package/dist/{chunk-5KFI5X7B.js → chunk-F53QQIM2.js} +1 -1
  10. package/dist/chunk-JR6TJDIF.js +425 -0
  11. package/dist/{chunk-DFBX3BBD.js → chunk-KA2VIEGM.js} +211 -16
  12. package/dist/chunk-NQTE577Q.js +159 -0
  13. package/dist/{chunk-WTXRY7R2.js → chunk-NYV3NE5Z.js} +157 -9
  14. package/dist/{chunk-UKT6H7YT.js → chunk-OZXCRLP3.js} +1 -1
  15. package/dist/{chunk-QITOPASZ.js → chunk-PSQHUZ7X.js} +1 -1
  16. package/dist/{chunk-EANI2N2V.js → chunk-RVYQSC6L.js} +2 -99
  17. package/dist/{chunk-MLS6IGGG.js → chunk-TQDV254A.js} +1 -1
  18. package/dist/{chunk-QQFBFV4V.js → chunk-TR6UZDNX.js} +57 -18
  19. package/dist/{chunk-ZX5623ER.js → chunk-VMH2YS2I.js} +1 -1
  20. package/dist/{chunk-XND2DWTZ.js → chunk-VPQ44XKE.js} +2 -2
  21. package/dist/{chunk-CSATDXZC.js → chunk-Y7T6IMM3.js} +1 -1
  22. package/dist/{chunk-FLY3WIQR.js → chunk-YRRVFTDR.js} +3 -3
  23. package/dist/cli/index.js +261 -125
  24. package/dist/{client-T5MTY3CS.js → client-HRYRJKSA.js} +3 -3
  25. package/dist/{conduct-WU3VEXB6.js → conduct-LF6FYPLD.js} +11 -11
  26. package/dist/conduct-QAFZIEY6.js +21 -0
  27. package/dist/{conductor-mode-ZMTFZGJP.js → conductor-mode-NUDQLZFM.js} +309 -13
  28. package/dist/conductor-mode-YQ6QSPPT.js +275 -0
  29. package/dist/{execute-4D4ITQCL.js → execute-ITHIYYOX.js} +4 -3
  30. package/dist/execute-PNJFABVJ.js +14 -0
  31. package/dist/index.d.ts +555 -0
  32. package/dist/index.js +592 -83
  33. package/dist/{process-guard-CC7CNRQJ.js → process-guard-QCCBGILS.js} +1 -1
  34. package/dist/publish-capability-TS6CNR5G.js +12 -0
  35. package/dist/{request-VOXBFUOG.js → request-P6QCTCCG.js} +14 -14
  36. package/dist/{serve-skill-IH7UAJNR.js → serve-skill-EZOL7UYN.js} +10 -9
  37. package/dist/{server-JVQW2TID.js → server-3G6ZTASA.js} +16 -16
  38. package/dist/{service-coordinator-EYRDTHL5.js → service-coordinator-CRSE4GWC.js} +174 -242
  39. package/dist/skill-config-4W5W5O6T.js +22 -0
  40. package/dist/skills/agentbnb/bootstrap.js +227 -67
  41. package/openclaw.plugin.json +1 -1
  42. package/package.json +1 -1
  43. package/skills/agentbnb/SKILL.md +50 -1
  44. package/skills/agentbnb/bootstrap.ts +126 -8
  45. package/skills/agentbnb/install.sh +49 -9
  46. package/dist/chunk-CRFCWD6V.js +0 -366
  47. package/dist/conduct-6LKIJJKQ.js +0 -21
  48. package/dist/conductor-mode-Q4IIDY5E.js +0 -123
  49. package/dist/execute-T7Y6RKSW.js +0 -13
package/dist/index.d.ts CHANGED
@@ -116,6 +116,8 @@ declare const CapabilityCardSchema: z.ZodObject<{
116
116
  }>>;
117
117
  created_at: z.ZodOptional<z.ZodString>;
118
118
  updated_at: z.ZodOptional<z.ZodString>;
119
+ /** Exact-match capability type key for network routing (e.g. 'task_decomposition'). Optional — backward-compatible. */
120
+ capability_type: z.ZodOptional<z.ZodString>;
119
121
  }, "strip", z.ZodTypeAny, {
120
122
  name: string;
121
123
  description: string;
@@ -161,6 +163,7 @@ declare const CapabilityCardSchema: z.ZodObject<{
161
163
  } | undefined;
162
164
  created_at?: string | undefined;
163
165
  updated_at?: string | undefined;
166
+ capability_type?: string | undefined;
164
167
  }, {
165
168
  name: string;
166
169
  description: string;
@@ -206,6 +209,7 @@ declare const CapabilityCardSchema: z.ZodObject<{
206
209
  } | undefined;
207
210
  created_at?: string | undefined;
208
211
  updated_at?: string | undefined;
212
+ capability_type?: string | undefined;
209
213
  }>;
210
214
  type CapabilityCard = z.infer<typeof CapabilityCardSchema>;
211
215
  /**
@@ -231,6 +235,25 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
231
235
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
232
236
  /** Optional grouping category, e.g. 'tts' | 'video_gen' | 'code_review'. */
233
237
  category: z.ZodOptional<z.ZodString>;
238
+ /** Exact-match capability type key for network routing (e.g. 'task_decomposition'). Optional — per-skill routing hint. */
239
+ capability_type: z.ZodOptional<z.ZodString>;
240
+ /**
241
+ * Multi-value capability routing tags — what this skill IS / offers to the outside.
242
+ * Used by Conductor for precise skill-level matching.
243
+ * Example: ["audio_generation", "audio_editing", "content_production"]
244
+ */
245
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
+ /**
247
+ * Capabilities this skill internally depends on when executing.
248
+ * Used by Conductor for decomposition planning and cost estimation.
249
+ * Example: ["tts", "sound_effects", "audio_mixing"]
250
+ */
251
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
+ /**
253
+ * Publishing visibility. 'private' skills are excluded from published CapabilityCards.
254
+ * Defaults to 'public' when omitted.
255
+ */
256
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
234
257
  inputs: z.ZodArray<z.ZodObject<{
235
258
  name: z.ZodString;
236
259
  type: z.ZodEnum<["text", "json", "file", "audio", "image", "video", "stream"]>;
@@ -379,7 +402,11 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
379
402
  calls_per_hour: number;
380
403
  } | undefined;
381
404
  } | undefined;
405
+ capability_type?: string | undefined;
382
406
  category?: string | undefined;
407
+ capability_types?: string[] | undefined;
408
+ requires_capabilities?: string[] | undefined;
409
+ visibility?: "public" | "private" | undefined;
383
410
  }, {
384
411
  name: string;
385
412
  description: string;
@@ -422,7 +449,11 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
422
449
  calls_per_hour?: number | undefined;
423
450
  } | undefined;
424
451
  } | undefined;
452
+ capability_type?: string | undefined;
425
453
  category?: string | undefined;
454
+ capability_types?: string[] | undefined;
455
+ requires_capabilities?: string[] | undefined;
456
+ visibility?: "public" | "private" | undefined;
426
457
  }>, "many">;
427
458
  availability: z.ZodObject<{
428
459
  online: z.ZodBoolean;
@@ -543,6 +574,8 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
543
574
  _internal: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
544
575
  /** Public gateway URL where this agent accepts requests. Populated on remote publish. */
545
576
  gateway_url: z.ZodOptional<z.ZodString>;
577
+ /** Exact-match capability type key for network routing (e.g. 'task_decomposition'). Optional — backward-compatible. */
578
+ capability_type: z.ZodOptional<z.ZodString>;
546
579
  created_at: z.ZodOptional<z.ZodString>;
547
580
  updated_at: z.ZodOptional<z.ZodString>;
548
581
  }, "strip", z.ZodTypeAny, {
@@ -596,12 +629,17 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
596
629
  calls_per_hour: number;
597
630
  } | undefined;
598
631
  } | undefined;
632
+ capability_type?: string | undefined;
599
633
  category?: string | undefined;
634
+ capability_types?: string[] | undefined;
635
+ requires_capabilities?: string[] | undefined;
636
+ visibility?: "public" | "private" | undefined;
600
637
  }[];
601
638
  _internal?: Record<string, unknown> | undefined;
602
639
  gateway_url?: string | undefined;
603
640
  created_at?: string | undefined;
604
641
  updated_at?: string | undefined;
642
+ capability_type?: string | undefined;
605
643
  short_description?: string | undefined;
606
644
  environment?: {
607
645
  runtime: string;
@@ -680,12 +718,17 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
680
718
  calls_per_hour?: number | undefined;
681
719
  } | undefined;
682
720
  } | undefined;
721
+ capability_type?: string | undefined;
683
722
  category?: string | undefined;
723
+ capability_types?: string[] | undefined;
724
+ requires_capabilities?: string[] | undefined;
725
+ visibility?: "public" | "private" | undefined;
684
726
  }[];
685
727
  _internal?: Record<string, unknown> | undefined;
686
728
  gateway_url?: string | undefined;
687
729
  created_at?: string | undefined;
688
730
  updated_at?: string | undefined;
731
+ capability_type?: string | undefined;
689
732
  short_description?: string | undefined;
690
733
  environment?: {
691
734
  runtime: string;
@@ -819,6 +862,10 @@ declare function getBalance(db: Database.Database, owner: string): number;
819
862
  * Wraps a REST API call with input/output mapping.
820
863
  */
821
864
  declare const ApiSkillConfigSchema: z.ZodObject<{
865
+ description: z.ZodOptional<z.ZodString>;
866
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
867
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
868
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
822
869
  id: z.ZodString;
823
870
  type: z.ZodLiteral<"api">;
824
871
  name: z.ZodString;
@@ -876,6 +923,13 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
876
923
  timeout_ms: z.ZodDefault<z.ZodNumber>;
877
924
  retries: z.ZodDefault<z.ZodNumber>;
878
925
  provider: z.ZodOptional<z.ZodString>;
926
+ capacity: z.ZodOptional<z.ZodObject<{
927
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ max_concurrent?: number | undefined;
930
+ }, {
931
+ max_concurrent?: number | undefined;
932
+ }>>;
879
933
  }, "strip", z.ZodTypeAny, {
880
934
  name: string;
881
935
  type: "api";
@@ -891,7 +945,14 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
891
945
  output_mapping: Record<string, string>;
892
946
  timeout_ms: number;
893
947
  retries: number;
948
+ description?: string | undefined;
894
949
  provider?: string | undefined;
950
+ capability_types?: string[] | undefined;
951
+ requires_capabilities?: string[] | undefined;
952
+ visibility?: "public" | "private" | undefined;
953
+ capacity?: {
954
+ max_concurrent?: number | undefined;
955
+ } | undefined;
895
956
  auth?: {
896
957
  type: "bearer";
897
958
  token: string;
@@ -915,7 +976,14 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
915
976
  };
916
977
  endpoint: string;
917
978
  method: "GET" | "POST" | "PUT" | "DELETE";
979
+ description?: string | undefined;
918
980
  provider?: string | undefined;
981
+ capability_types?: string[] | undefined;
982
+ requires_capabilities?: string[] | undefined;
983
+ visibility?: "public" | "private" | undefined;
984
+ capacity?: {
985
+ max_concurrent?: number | undefined;
986
+ } | undefined;
919
987
  auth?: {
920
988
  type: "bearer";
921
989
  token: string;
@@ -938,6 +1006,10 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
938
1006
  * Chains multiple skills or commands sequentially.
939
1007
  */
940
1008
  declare const PipelineSkillConfigSchema: z.ZodObject<{
1009
+ description: z.ZodOptional<z.ZodString>;
1010
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1011
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1012
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
941
1013
  id: z.ZodString;
942
1014
  type: z.ZodLiteral<"pipeline">;
943
1015
  name: z.ZodString;
@@ -974,6 +1046,13 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
974
1046
  free_tier?: number | undefined;
975
1047
  }>;
976
1048
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1049
+ capacity: z.ZodOptional<z.ZodObject<{
1050
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ max_concurrent?: number | undefined;
1053
+ }, {
1054
+ max_concurrent?: number | undefined;
1055
+ }>>;
977
1056
  }, "strip", z.ZodTypeAny, {
978
1057
  name: string;
979
1058
  type: "pipeline";
@@ -990,6 +1069,13 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
990
1069
  input_mapping: Record<string, string>;
991
1070
  command: string;
992
1071
  })[];
1072
+ description?: string | undefined;
1073
+ capability_types?: string[] | undefined;
1074
+ requires_capabilities?: string[] | undefined;
1075
+ visibility?: "public" | "private" | undefined;
1076
+ capacity?: {
1077
+ max_concurrent?: number | undefined;
1078
+ } | undefined;
993
1079
  timeout_ms?: number | undefined;
994
1080
  }, {
995
1081
  name: string;
@@ -1007,6 +1093,13 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
1007
1093
  command: string;
1008
1094
  input_mapping?: Record<string, string> | undefined;
1009
1095
  })[];
1096
+ description?: string | undefined;
1097
+ capability_types?: string[] | undefined;
1098
+ requires_capabilities?: string[] | undefined;
1099
+ visibility?: "public" | "private" | undefined;
1100
+ capacity?: {
1101
+ max_concurrent?: number | undefined;
1102
+ } | undefined;
1010
1103
  timeout_ms?: number | undefined;
1011
1104
  }>;
1012
1105
  /**
@@ -1014,6 +1107,10 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
1014
1107
  * Forwards execution to a local OpenClaw agent.
1015
1108
  */
1016
1109
  declare const OpenClawSkillConfigSchema: z.ZodObject<{
1110
+ description: z.ZodOptional<z.ZodString>;
1111
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1112
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1113
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1017
1114
  id: z.ZodString;
1018
1115
  type: z.ZodLiteral<"openclaw">;
1019
1116
  name: z.ZodString;
@@ -1033,6 +1130,13 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
1033
1130
  free_tier?: number | undefined;
1034
1131
  }>;
1035
1132
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1133
+ capacity: z.ZodOptional<z.ZodObject<{
1134
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ max_concurrent?: number | undefined;
1137
+ }, {
1138
+ max_concurrent?: number | undefined;
1139
+ }>>;
1036
1140
  }, "strip", z.ZodTypeAny, {
1037
1141
  name: string;
1038
1142
  type: "openclaw";
@@ -1044,6 +1148,13 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
1044
1148
  };
1045
1149
  agent_name: string;
1046
1150
  channel: "telegram" | "webhook" | "process";
1151
+ description?: string | undefined;
1152
+ capability_types?: string[] | undefined;
1153
+ requires_capabilities?: string[] | undefined;
1154
+ visibility?: "public" | "private" | undefined;
1155
+ capacity?: {
1156
+ max_concurrent?: number | undefined;
1157
+ } | undefined;
1047
1158
  timeout_ms?: number | undefined;
1048
1159
  }, {
1049
1160
  name: string;
@@ -1056,6 +1167,13 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
1056
1167
  };
1057
1168
  agent_name: string;
1058
1169
  channel: "telegram" | "webhook" | "process";
1170
+ description?: string | undefined;
1171
+ capability_types?: string[] | undefined;
1172
+ requires_capabilities?: string[] | undefined;
1173
+ visibility?: "public" | "private" | undefined;
1174
+ capacity?: {
1175
+ max_concurrent?: number | undefined;
1176
+ } | undefined;
1059
1177
  timeout_ms?: number | undefined;
1060
1178
  }>;
1061
1179
  /**
@@ -1063,6 +1181,10 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
1063
1181
  * Runs local shell commands with parameter substitution.
1064
1182
  */
1065
1183
  declare const CommandSkillConfigSchema: z.ZodObject<{
1184
+ description: z.ZodOptional<z.ZodString>;
1185
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1186
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1187
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1066
1188
  id: z.ZodString;
1067
1189
  type: z.ZodLiteral<"command">;
1068
1190
  name: z.ZodString;
@@ -1084,6 +1206,13 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
1084
1206
  credits_per_minute?: number | undefined;
1085
1207
  free_tier?: number | undefined;
1086
1208
  }>;
1209
+ capacity: z.ZodOptional<z.ZodObject<{
1210
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ max_concurrent?: number | undefined;
1213
+ }, {
1214
+ max_concurrent?: number | undefined;
1215
+ }>>;
1087
1216
  }, "strip", z.ZodTypeAny, {
1088
1217
  name: string;
1089
1218
  type: "command";
@@ -1096,6 +1225,13 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
1096
1225
  timeout_ms: number;
1097
1226
  command: string;
1098
1227
  output_type: "text" | "json" | "file";
1228
+ description?: string | undefined;
1229
+ capability_types?: string[] | undefined;
1230
+ requires_capabilities?: string[] | undefined;
1231
+ visibility?: "public" | "private" | undefined;
1232
+ capacity?: {
1233
+ max_concurrent?: number | undefined;
1234
+ } | undefined;
1099
1235
  allowed_commands?: string[] | undefined;
1100
1236
  working_dir?: string | undefined;
1101
1237
  }, {
@@ -1109,6 +1245,13 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
1109
1245
  };
1110
1246
  command: string;
1111
1247
  output_type: "text" | "json" | "file";
1248
+ description?: string | undefined;
1249
+ capability_types?: string[] | undefined;
1250
+ requires_capabilities?: string[] | undefined;
1251
+ visibility?: "public" | "private" | undefined;
1252
+ capacity?: {
1253
+ max_concurrent?: number | undefined;
1254
+ } | undefined;
1112
1255
  timeout_ms?: number | undefined;
1113
1256
  allowed_commands?: string[] | undefined;
1114
1257
  working_dir?: string | undefined;
@@ -1118,6 +1261,10 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
1118
1261
  * Routes execution to the ConductorMode for task decomposition and multi-agent orchestration.
1119
1262
  */
1120
1263
  declare const ConductorSkillConfigSchema: z.ZodObject<{
1264
+ description: z.ZodOptional<z.ZodString>;
1265
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1267
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1121
1268
  id: z.ZodString;
1122
1269
  type: z.ZodLiteral<"conductor">;
1123
1270
  name: z.ZodString;
@@ -1136,6 +1283,13 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
1136
1283
  free_tier?: number | undefined;
1137
1284
  }>;
1138
1285
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1286
+ capacity: z.ZodOptional<z.ZodObject<{
1287
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ max_concurrent?: number | undefined;
1290
+ }, {
1291
+ max_concurrent?: number | undefined;
1292
+ }>>;
1139
1293
  }, "strip", z.ZodTypeAny, {
1140
1294
  name: string;
1141
1295
  type: "conductor";
@@ -1146,6 +1300,13 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
1146
1300
  free_tier?: number | undefined;
1147
1301
  };
1148
1302
  conductor_skill: "orchestrate" | "plan";
1303
+ description?: string | undefined;
1304
+ capability_types?: string[] | undefined;
1305
+ requires_capabilities?: string[] | undefined;
1306
+ visibility?: "public" | "private" | undefined;
1307
+ capacity?: {
1308
+ max_concurrent?: number | undefined;
1309
+ } | undefined;
1149
1310
  timeout_ms?: number | undefined;
1150
1311
  }, {
1151
1312
  name: string;
@@ -1157,6 +1318,13 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
1157
1318
  free_tier?: number | undefined;
1158
1319
  };
1159
1320
  conductor_skill: "orchestrate" | "plan";
1321
+ description?: string | undefined;
1322
+ capability_types?: string[] | undefined;
1323
+ requires_capabilities?: string[] | undefined;
1324
+ visibility?: "public" | "private" | undefined;
1325
+ capacity?: {
1326
+ max_concurrent?: number | undefined;
1327
+ } | undefined;
1160
1328
  timeout_ms?: number | undefined;
1161
1329
  }>;
1162
1330
  /**
@@ -1164,6 +1332,10 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
1164
1332
  * Used by SkillExecutor to dispatch to the correct executor mode.
1165
1333
  */
1166
1334
  declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1335
+ description: z.ZodOptional<z.ZodString>;
1336
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1337
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1338
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1167
1339
  id: z.ZodString;
1168
1340
  type: z.ZodLiteral<"api">;
1169
1341
  name: z.ZodString;
@@ -1221,6 +1393,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1221
1393
  timeout_ms: z.ZodDefault<z.ZodNumber>;
1222
1394
  retries: z.ZodDefault<z.ZodNumber>;
1223
1395
  provider: z.ZodOptional<z.ZodString>;
1396
+ capacity: z.ZodOptional<z.ZodObject<{
1397
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ max_concurrent?: number | undefined;
1400
+ }, {
1401
+ max_concurrent?: number | undefined;
1402
+ }>>;
1224
1403
  }, "strip", z.ZodTypeAny, {
1225
1404
  name: string;
1226
1405
  type: "api";
@@ -1236,7 +1415,14 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1236
1415
  output_mapping: Record<string, string>;
1237
1416
  timeout_ms: number;
1238
1417
  retries: number;
1418
+ description?: string | undefined;
1239
1419
  provider?: string | undefined;
1420
+ capability_types?: string[] | undefined;
1421
+ requires_capabilities?: string[] | undefined;
1422
+ visibility?: "public" | "private" | undefined;
1423
+ capacity?: {
1424
+ max_concurrent?: number | undefined;
1425
+ } | undefined;
1240
1426
  auth?: {
1241
1427
  type: "bearer";
1242
1428
  token: string;
@@ -1260,7 +1446,14 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1260
1446
  };
1261
1447
  endpoint: string;
1262
1448
  method: "GET" | "POST" | "PUT" | "DELETE";
1449
+ description?: string | undefined;
1263
1450
  provider?: string | undefined;
1451
+ capability_types?: string[] | undefined;
1452
+ requires_capabilities?: string[] | undefined;
1453
+ visibility?: "public" | "private" | undefined;
1454
+ capacity?: {
1455
+ max_concurrent?: number | undefined;
1456
+ } | undefined;
1264
1457
  auth?: {
1265
1458
  type: "bearer";
1266
1459
  token: string;
@@ -1278,6 +1471,10 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1278
1471
  timeout_ms?: number | undefined;
1279
1472
  retries?: number | undefined;
1280
1473
  }>, z.ZodObject<{
1474
+ description: z.ZodOptional<z.ZodString>;
1475
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1476
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1477
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1281
1478
  id: z.ZodString;
1282
1479
  type: z.ZodLiteral<"pipeline">;
1283
1480
  name: z.ZodString;
@@ -1314,6 +1511,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1314
1511
  free_tier?: number | undefined;
1315
1512
  }>;
1316
1513
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1514
+ capacity: z.ZodOptional<z.ZodObject<{
1515
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ max_concurrent?: number | undefined;
1518
+ }, {
1519
+ max_concurrent?: number | undefined;
1520
+ }>>;
1317
1521
  }, "strip", z.ZodTypeAny, {
1318
1522
  name: string;
1319
1523
  type: "pipeline";
@@ -1330,6 +1534,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1330
1534
  input_mapping: Record<string, string>;
1331
1535
  command: string;
1332
1536
  })[];
1537
+ description?: string | undefined;
1538
+ capability_types?: string[] | undefined;
1539
+ requires_capabilities?: string[] | undefined;
1540
+ visibility?: "public" | "private" | undefined;
1541
+ capacity?: {
1542
+ max_concurrent?: number | undefined;
1543
+ } | undefined;
1333
1544
  timeout_ms?: number | undefined;
1334
1545
  }, {
1335
1546
  name: string;
@@ -1347,8 +1558,19 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1347
1558
  command: string;
1348
1559
  input_mapping?: Record<string, string> | undefined;
1349
1560
  })[];
1561
+ description?: string | undefined;
1562
+ capability_types?: string[] | undefined;
1563
+ requires_capabilities?: string[] | undefined;
1564
+ visibility?: "public" | "private" | undefined;
1565
+ capacity?: {
1566
+ max_concurrent?: number | undefined;
1567
+ } | undefined;
1350
1568
  timeout_ms?: number | undefined;
1351
1569
  }>, z.ZodObject<{
1570
+ description: z.ZodOptional<z.ZodString>;
1571
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1572
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1573
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1352
1574
  id: z.ZodString;
1353
1575
  type: z.ZodLiteral<"openclaw">;
1354
1576
  name: z.ZodString;
@@ -1368,6 +1590,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1368
1590
  free_tier?: number | undefined;
1369
1591
  }>;
1370
1592
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1593
+ capacity: z.ZodOptional<z.ZodObject<{
1594
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ max_concurrent?: number | undefined;
1597
+ }, {
1598
+ max_concurrent?: number | undefined;
1599
+ }>>;
1371
1600
  }, "strip", z.ZodTypeAny, {
1372
1601
  name: string;
1373
1602
  type: "openclaw";
@@ -1379,6 +1608,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1379
1608
  };
1380
1609
  agent_name: string;
1381
1610
  channel: "telegram" | "webhook" | "process";
1611
+ description?: string | undefined;
1612
+ capability_types?: string[] | undefined;
1613
+ requires_capabilities?: string[] | undefined;
1614
+ visibility?: "public" | "private" | undefined;
1615
+ capacity?: {
1616
+ max_concurrent?: number | undefined;
1617
+ } | undefined;
1382
1618
  timeout_ms?: number | undefined;
1383
1619
  }, {
1384
1620
  name: string;
@@ -1391,8 +1627,19 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1391
1627
  };
1392
1628
  agent_name: string;
1393
1629
  channel: "telegram" | "webhook" | "process";
1630
+ description?: string | undefined;
1631
+ capability_types?: string[] | undefined;
1632
+ requires_capabilities?: string[] | undefined;
1633
+ visibility?: "public" | "private" | undefined;
1634
+ capacity?: {
1635
+ max_concurrent?: number | undefined;
1636
+ } | undefined;
1394
1637
  timeout_ms?: number | undefined;
1395
1638
  }>, z.ZodObject<{
1639
+ description: z.ZodOptional<z.ZodString>;
1640
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1641
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1642
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1396
1643
  id: z.ZodString;
1397
1644
  type: z.ZodLiteral<"command">;
1398
1645
  name: z.ZodString;
@@ -1414,6 +1661,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1414
1661
  credits_per_minute?: number | undefined;
1415
1662
  free_tier?: number | undefined;
1416
1663
  }>;
1664
+ capacity: z.ZodOptional<z.ZodObject<{
1665
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ max_concurrent?: number | undefined;
1668
+ }, {
1669
+ max_concurrent?: number | undefined;
1670
+ }>>;
1417
1671
  }, "strip", z.ZodTypeAny, {
1418
1672
  name: string;
1419
1673
  type: "command";
@@ -1426,6 +1680,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1426
1680
  timeout_ms: number;
1427
1681
  command: string;
1428
1682
  output_type: "text" | "json" | "file";
1683
+ description?: string | undefined;
1684
+ capability_types?: string[] | undefined;
1685
+ requires_capabilities?: string[] | undefined;
1686
+ visibility?: "public" | "private" | undefined;
1687
+ capacity?: {
1688
+ max_concurrent?: number | undefined;
1689
+ } | undefined;
1429
1690
  allowed_commands?: string[] | undefined;
1430
1691
  working_dir?: string | undefined;
1431
1692
  }, {
@@ -1439,10 +1700,21 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1439
1700
  };
1440
1701
  command: string;
1441
1702
  output_type: "text" | "json" | "file";
1703
+ description?: string | undefined;
1704
+ capability_types?: string[] | undefined;
1705
+ requires_capabilities?: string[] | undefined;
1706
+ visibility?: "public" | "private" | undefined;
1707
+ capacity?: {
1708
+ max_concurrent?: number | undefined;
1709
+ } | undefined;
1442
1710
  timeout_ms?: number | undefined;
1443
1711
  allowed_commands?: string[] | undefined;
1444
1712
  working_dir?: string | undefined;
1445
1713
  }>, z.ZodObject<{
1714
+ description: z.ZodOptional<z.ZodString>;
1715
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1716
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1717
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1446
1718
  id: z.ZodString;
1447
1719
  type: z.ZodLiteral<"conductor">;
1448
1720
  name: z.ZodString;
@@ -1461,6 +1733,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1461
1733
  free_tier?: number | undefined;
1462
1734
  }>;
1463
1735
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1736
+ capacity: z.ZodOptional<z.ZodObject<{
1737
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ max_concurrent?: number | undefined;
1740
+ }, {
1741
+ max_concurrent?: number | undefined;
1742
+ }>>;
1464
1743
  }, "strip", z.ZodTypeAny, {
1465
1744
  name: string;
1466
1745
  type: "conductor";
@@ -1471,6 +1750,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1471
1750
  free_tier?: number | undefined;
1472
1751
  };
1473
1752
  conductor_skill: "orchestrate" | "plan";
1753
+ description?: string | undefined;
1754
+ capability_types?: string[] | undefined;
1755
+ requires_capabilities?: string[] | undefined;
1756
+ visibility?: "public" | "private" | undefined;
1757
+ capacity?: {
1758
+ max_concurrent?: number | undefined;
1759
+ } | undefined;
1474
1760
  timeout_ms?: number | undefined;
1475
1761
  }, {
1476
1762
  name: string;
@@ -1482,6 +1768,13 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1482
1768
  free_tier?: number | undefined;
1483
1769
  };
1484
1770
  conductor_skill: "orchestrate" | "plan";
1771
+ description?: string | undefined;
1772
+ capability_types?: string[] | undefined;
1773
+ requires_capabilities?: string[] | undefined;
1774
+ visibility?: "public" | "private" | undefined;
1775
+ capacity?: {
1776
+ max_concurrent?: number | undefined;
1777
+ } | undefined;
1485
1778
  timeout_ms?: number | undefined;
1486
1779
  }>]>;
1487
1780
  /**
@@ -1490,6 +1783,10 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1490
1783
  */
1491
1784
  declare const SkillsFileSchema: z.ZodObject<{
1492
1785
  skills: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1786
+ description: z.ZodOptional<z.ZodString>;
1787
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1788
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1789
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1493
1790
  id: z.ZodString;
1494
1791
  type: z.ZodLiteral<"api">;
1495
1792
  name: z.ZodString;
@@ -1547,6 +1844,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1547
1844
  timeout_ms: z.ZodDefault<z.ZodNumber>;
1548
1845
  retries: z.ZodDefault<z.ZodNumber>;
1549
1846
  provider: z.ZodOptional<z.ZodString>;
1847
+ capacity: z.ZodOptional<z.ZodObject<{
1848
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ max_concurrent?: number | undefined;
1851
+ }, {
1852
+ max_concurrent?: number | undefined;
1853
+ }>>;
1550
1854
  }, "strip", z.ZodTypeAny, {
1551
1855
  name: string;
1552
1856
  type: "api";
@@ -1562,7 +1866,14 @@ declare const SkillsFileSchema: z.ZodObject<{
1562
1866
  output_mapping: Record<string, string>;
1563
1867
  timeout_ms: number;
1564
1868
  retries: number;
1869
+ description?: string | undefined;
1565
1870
  provider?: string | undefined;
1871
+ capability_types?: string[] | undefined;
1872
+ requires_capabilities?: string[] | undefined;
1873
+ visibility?: "public" | "private" | undefined;
1874
+ capacity?: {
1875
+ max_concurrent?: number | undefined;
1876
+ } | undefined;
1566
1877
  auth?: {
1567
1878
  type: "bearer";
1568
1879
  token: string;
@@ -1586,7 +1897,14 @@ declare const SkillsFileSchema: z.ZodObject<{
1586
1897
  };
1587
1898
  endpoint: string;
1588
1899
  method: "GET" | "POST" | "PUT" | "DELETE";
1900
+ description?: string | undefined;
1589
1901
  provider?: string | undefined;
1902
+ capability_types?: string[] | undefined;
1903
+ requires_capabilities?: string[] | undefined;
1904
+ visibility?: "public" | "private" | undefined;
1905
+ capacity?: {
1906
+ max_concurrent?: number | undefined;
1907
+ } | undefined;
1590
1908
  auth?: {
1591
1909
  type: "bearer";
1592
1910
  token: string;
@@ -1604,6 +1922,10 @@ declare const SkillsFileSchema: z.ZodObject<{
1604
1922
  timeout_ms?: number | undefined;
1605
1923
  retries?: number | undefined;
1606
1924
  }>, z.ZodObject<{
1925
+ description: z.ZodOptional<z.ZodString>;
1926
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1927
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1928
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1607
1929
  id: z.ZodString;
1608
1930
  type: z.ZodLiteral<"pipeline">;
1609
1931
  name: z.ZodString;
@@ -1640,6 +1962,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1640
1962
  free_tier?: number | undefined;
1641
1963
  }>;
1642
1964
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1965
+ capacity: z.ZodOptional<z.ZodObject<{
1966
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ max_concurrent?: number | undefined;
1969
+ }, {
1970
+ max_concurrent?: number | undefined;
1971
+ }>>;
1643
1972
  }, "strip", z.ZodTypeAny, {
1644
1973
  name: string;
1645
1974
  type: "pipeline";
@@ -1656,6 +1985,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1656
1985
  input_mapping: Record<string, string>;
1657
1986
  command: string;
1658
1987
  })[];
1988
+ description?: string | undefined;
1989
+ capability_types?: string[] | undefined;
1990
+ requires_capabilities?: string[] | undefined;
1991
+ visibility?: "public" | "private" | undefined;
1992
+ capacity?: {
1993
+ max_concurrent?: number | undefined;
1994
+ } | undefined;
1659
1995
  timeout_ms?: number | undefined;
1660
1996
  }, {
1661
1997
  name: string;
@@ -1673,8 +2009,19 @@ declare const SkillsFileSchema: z.ZodObject<{
1673
2009
  command: string;
1674
2010
  input_mapping?: Record<string, string> | undefined;
1675
2011
  })[];
2012
+ description?: string | undefined;
2013
+ capability_types?: string[] | undefined;
2014
+ requires_capabilities?: string[] | undefined;
2015
+ visibility?: "public" | "private" | undefined;
2016
+ capacity?: {
2017
+ max_concurrent?: number | undefined;
2018
+ } | undefined;
1676
2019
  timeout_ms?: number | undefined;
1677
2020
  }>, z.ZodObject<{
2021
+ description: z.ZodOptional<z.ZodString>;
2022
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2023
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2024
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1678
2025
  id: z.ZodString;
1679
2026
  type: z.ZodLiteral<"openclaw">;
1680
2027
  name: z.ZodString;
@@ -1694,6 +2041,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1694
2041
  free_tier?: number | undefined;
1695
2042
  }>;
1696
2043
  timeout_ms: z.ZodOptional<z.ZodNumber>;
2044
+ capacity: z.ZodOptional<z.ZodObject<{
2045
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ max_concurrent?: number | undefined;
2048
+ }, {
2049
+ max_concurrent?: number | undefined;
2050
+ }>>;
1697
2051
  }, "strip", z.ZodTypeAny, {
1698
2052
  name: string;
1699
2053
  type: "openclaw";
@@ -1705,6 +2059,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1705
2059
  };
1706
2060
  agent_name: string;
1707
2061
  channel: "telegram" | "webhook" | "process";
2062
+ description?: string | undefined;
2063
+ capability_types?: string[] | undefined;
2064
+ requires_capabilities?: string[] | undefined;
2065
+ visibility?: "public" | "private" | undefined;
2066
+ capacity?: {
2067
+ max_concurrent?: number | undefined;
2068
+ } | undefined;
1708
2069
  timeout_ms?: number | undefined;
1709
2070
  }, {
1710
2071
  name: string;
@@ -1717,8 +2078,19 @@ declare const SkillsFileSchema: z.ZodObject<{
1717
2078
  };
1718
2079
  agent_name: string;
1719
2080
  channel: "telegram" | "webhook" | "process";
2081
+ description?: string | undefined;
2082
+ capability_types?: string[] | undefined;
2083
+ requires_capabilities?: string[] | undefined;
2084
+ visibility?: "public" | "private" | undefined;
2085
+ capacity?: {
2086
+ max_concurrent?: number | undefined;
2087
+ } | undefined;
1720
2088
  timeout_ms?: number | undefined;
1721
2089
  }>, z.ZodObject<{
2090
+ description: z.ZodOptional<z.ZodString>;
2091
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2092
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2093
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1722
2094
  id: z.ZodString;
1723
2095
  type: z.ZodLiteral<"command">;
1724
2096
  name: z.ZodString;
@@ -1740,6 +2112,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1740
2112
  credits_per_minute?: number | undefined;
1741
2113
  free_tier?: number | undefined;
1742
2114
  }>;
2115
+ capacity: z.ZodOptional<z.ZodObject<{
2116
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
2117
+ }, "strip", z.ZodTypeAny, {
2118
+ max_concurrent?: number | undefined;
2119
+ }, {
2120
+ max_concurrent?: number | undefined;
2121
+ }>>;
1743
2122
  }, "strip", z.ZodTypeAny, {
1744
2123
  name: string;
1745
2124
  type: "command";
@@ -1752,6 +2131,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1752
2131
  timeout_ms: number;
1753
2132
  command: string;
1754
2133
  output_type: "text" | "json" | "file";
2134
+ description?: string | undefined;
2135
+ capability_types?: string[] | undefined;
2136
+ requires_capabilities?: string[] | undefined;
2137
+ visibility?: "public" | "private" | undefined;
2138
+ capacity?: {
2139
+ max_concurrent?: number | undefined;
2140
+ } | undefined;
1755
2141
  allowed_commands?: string[] | undefined;
1756
2142
  working_dir?: string | undefined;
1757
2143
  }, {
@@ -1765,10 +2151,21 @@ declare const SkillsFileSchema: z.ZodObject<{
1765
2151
  };
1766
2152
  command: string;
1767
2153
  output_type: "text" | "json" | "file";
2154
+ description?: string | undefined;
2155
+ capability_types?: string[] | undefined;
2156
+ requires_capabilities?: string[] | undefined;
2157
+ visibility?: "public" | "private" | undefined;
2158
+ capacity?: {
2159
+ max_concurrent?: number | undefined;
2160
+ } | undefined;
1768
2161
  timeout_ms?: number | undefined;
1769
2162
  allowed_commands?: string[] | undefined;
1770
2163
  working_dir?: string | undefined;
1771
2164
  }>, z.ZodObject<{
2165
+ description: z.ZodOptional<z.ZodString>;
2166
+ capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2167
+ requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2168
+ visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
1772
2169
  id: z.ZodString;
1773
2170
  type: z.ZodLiteral<"conductor">;
1774
2171
  name: z.ZodString;
@@ -1787,6 +2184,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1787
2184
  free_tier?: number | undefined;
1788
2185
  }>;
1789
2186
  timeout_ms: z.ZodOptional<z.ZodNumber>;
2187
+ capacity: z.ZodOptional<z.ZodObject<{
2188
+ max_concurrent: z.ZodOptional<z.ZodNumber>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ max_concurrent?: number | undefined;
2191
+ }, {
2192
+ max_concurrent?: number | undefined;
2193
+ }>>;
1790
2194
  }, "strip", z.ZodTypeAny, {
1791
2195
  name: string;
1792
2196
  type: "conductor";
@@ -1797,6 +2201,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1797
2201
  free_tier?: number | undefined;
1798
2202
  };
1799
2203
  conductor_skill: "orchestrate" | "plan";
2204
+ description?: string | undefined;
2205
+ capability_types?: string[] | undefined;
2206
+ requires_capabilities?: string[] | undefined;
2207
+ visibility?: "public" | "private" | undefined;
2208
+ capacity?: {
2209
+ max_concurrent?: number | undefined;
2210
+ } | undefined;
1800
2211
  timeout_ms?: number | undefined;
1801
2212
  }, {
1802
2213
  name: string;
@@ -1808,6 +2219,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1808
2219
  free_tier?: number | undefined;
1809
2220
  };
1810
2221
  conductor_skill: "orchestrate" | "plan";
2222
+ description?: string | undefined;
2223
+ capability_types?: string[] | undefined;
2224
+ requires_capabilities?: string[] | undefined;
2225
+ visibility?: "public" | "private" | undefined;
2226
+ capacity?: {
2227
+ max_concurrent?: number | undefined;
2228
+ } | undefined;
1811
2229
  timeout_ms?: number | undefined;
1812
2230
  }>]>, "many">;
1813
2231
  }, "strip", z.ZodTypeAny, {
@@ -1826,7 +2244,14 @@ declare const SkillsFileSchema: z.ZodObject<{
1826
2244
  output_mapping: Record<string, string>;
1827
2245
  timeout_ms: number;
1828
2246
  retries: number;
2247
+ description?: string | undefined;
1829
2248
  provider?: string | undefined;
2249
+ capability_types?: string[] | undefined;
2250
+ requires_capabilities?: string[] | undefined;
2251
+ visibility?: "public" | "private" | undefined;
2252
+ capacity?: {
2253
+ max_concurrent?: number | undefined;
2254
+ } | undefined;
1830
2255
  auth?: {
1831
2256
  type: "bearer";
1832
2257
  token: string;
@@ -1855,6 +2280,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1855
2280
  input_mapping: Record<string, string>;
1856
2281
  command: string;
1857
2282
  })[];
2283
+ description?: string | undefined;
2284
+ capability_types?: string[] | undefined;
2285
+ requires_capabilities?: string[] | undefined;
2286
+ visibility?: "public" | "private" | undefined;
2287
+ capacity?: {
2288
+ max_concurrent?: number | undefined;
2289
+ } | undefined;
1858
2290
  timeout_ms?: number | undefined;
1859
2291
  } | {
1860
2292
  name: string;
@@ -1867,6 +2299,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1867
2299
  };
1868
2300
  agent_name: string;
1869
2301
  channel: "telegram" | "webhook" | "process";
2302
+ description?: string | undefined;
2303
+ capability_types?: string[] | undefined;
2304
+ requires_capabilities?: string[] | undefined;
2305
+ visibility?: "public" | "private" | undefined;
2306
+ capacity?: {
2307
+ max_concurrent?: number | undefined;
2308
+ } | undefined;
1870
2309
  timeout_ms?: number | undefined;
1871
2310
  } | {
1872
2311
  name: string;
@@ -1880,6 +2319,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1880
2319
  timeout_ms: number;
1881
2320
  command: string;
1882
2321
  output_type: "text" | "json" | "file";
2322
+ description?: string | undefined;
2323
+ capability_types?: string[] | undefined;
2324
+ requires_capabilities?: string[] | undefined;
2325
+ visibility?: "public" | "private" | undefined;
2326
+ capacity?: {
2327
+ max_concurrent?: number | undefined;
2328
+ } | undefined;
1883
2329
  allowed_commands?: string[] | undefined;
1884
2330
  working_dir?: string | undefined;
1885
2331
  } | {
@@ -1892,6 +2338,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1892
2338
  free_tier?: number | undefined;
1893
2339
  };
1894
2340
  conductor_skill: "orchestrate" | "plan";
2341
+ description?: string | undefined;
2342
+ capability_types?: string[] | undefined;
2343
+ requires_capabilities?: string[] | undefined;
2344
+ visibility?: "public" | "private" | undefined;
2345
+ capacity?: {
2346
+ max_concurrent?: number | undefined;
2347
+ } | undefined;
1895
2348
  timeout_ms?: number | undefined;
1896
2349
  })[];
1897
2350
  }, {
@@ -1906,7 +2359,14 @@ declare const SkillsFileSchema: z.ZodObject<{
1906
2359
  };
1907
2360
  endpoint: string;
1908
2361
  method: "GET" | "POST" | "PUT" | "DELETE";
2362
+ description?: string | undefined;
1909
2363
  provider?: string | undefined;
2364
+ capability_types?: string[] | undefined;
2365
+ requires_capabilities?: string[] | undefined;
2366
+ visibility?: "public" | "private" | undefined;
2367
+ capacity?: {
2368
+ max_concurrent?: number | undefined;
2369
+ } | undefined;
1910
2370
  auth?: {
1911
2371
  type: "bearer";
1912
2372
  token: string;
@@ -1939,6 +2399,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1939
2399
  command: string;
1940
2400
  input_mapping?: Record<string, string> | undefined;
1941
2401
  })[];
2402
+ description?: string | undefined;
2403
+ capability_types?: string[] | undefined;
2404
+ requires_capabilities?: string[] | undefined;
2405
+ visibility?: "public" | "private" | undefined;
2406
+ capacity?: {
2407
+ max_concurrent?: number | undefined;
2408
+ } | undefined;
1942
2409
  timeout_ms?: number | undefined;
1943
2410
  } | {
1944
2411
  name: string;
@@ -1951,6 +2418,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1951
2418
  };
1952
2419
  agent_name: string;
1953
2420
  channel: "telegram" | "webhook" | "process";
2421
+ description?: string | undefined;
2422
+ capability_types?: string[] | undefined;
2423
+ requires_capabilities?: string[] | undefined;
2424
+ visibility?: "public" | "private" | undefined;
2425
+ capacity?: {
2426
+ max_concurrent?: number | undefined;
2427
+ } | undefined;
1954
2428
  timeout_ms?: number | undefined;
1955
2429
  } | {
1956
2430
  name: string;
@@ -1963,6 +2437,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1963
2437
  };
1964
2438
  command: string;
1965
2439
  output_type: "text" | "json" | "file";
2440
+ description?: string | undefined;
2441
+ capability_types?: string[] | undefined;
2442
+ requires_capabilities?: string[] | undefined;
2443
+ visibility?: "public" | "private" | undefined;
2444
+ capacity?: {
2445
+ max_concurrent?: number | undefined;
2446
+ } | undefined;
1966
2447
  timeout_ms?: number | undefined;
1967
2448
  allowed_commands?: string[] | undefined;
1968
2449
  working_dir?: string | undefined;
@@ -1976,6 +2457,13 @@ declare const SkillsFileSchema: z.ZodObject<{
1976
2457
  free_tier?: number | undefined;
1977
2458
  };
1978
2459
  conductor_skill: "orchestrate" | "plan";
2460
+ description?: string | undefined;
2461
+ capability_types?: string[] | undefined;
2462
+ requires_capabilities?: string[] | undefined;
2463
+ visibility?: "public" | "private" | undefined;
2464
+ capacity?: {
2465
+ max_concurrent?: number | undefined;
2466
+ } | undefined;
1979
2467
  timeout_ms?: number | undefined;
1980
2468
  })[];
1981
2469
  }>;
@@ -2411,6 +2899,14 @@ interface OrchestrationResult {
2411
2899
  latency_ms: number;
2412
2900
  /** Error messages for failed sub-tasks. */
2413
2901
  errors?: string[];
2902
+ /**
2903
+ * Per-task team traceability context. Keys are subtask IDs.
2904
+ * Present only when the orchestration ran with a team.
2905
+ */
2906
+ trace?: Map<string, {
2907
+ team_id: string | null;
2908
+ capability_type: string | null;
2909
+ }>;
2414
2910
  }
2415
2911
 
2416
2912
  /**
@@ -3132,6 +3628,59 @@ declare class RelayClient {
3132
3628
  private scheduleReconnect;
3133
3629
  }
3134
3630
 
3631
+ /**
3632
+ * Capability-first team data model for Conductor team formation.
3633
+ *
3634
+ * TeamMember.capability_type is the required_capability value this member is fulfilling.
3635
+ * It is a direct match to SubTask.required_capability — not an abstract role hint.
3636
+ */
3637
+
3638
+ /**
3639
+ * A single team member: a SubTask matched to an agent.
3640
+ */
3641
+ interface TeamMember {
3642
+ /** The sub-task this member handles. */
3643
+ subtask: SubTask;
3644
+ /** The required_capability value this member is fulfilling (e.g. 'text_gen', 'tts'). */
3645
+ capability_type: string;
3646
+ /** Owner ID of the matched agent. */
3647
+ agent: string;
3648
+ /** Skill ID on the agent's card for this task. */
3649
+ skill: string;
3650
+ /** Card ID for relay-based execution. */
3651
+ card_id?: string;
3652
+ /** Negotiated credit cost. */
3653
+ credits: number;
3654
+ /** Match quality score (0-1). */
3655
+ score: number;
3656
+ }
3657
+ /**
3658
+ * A fully-formed team: matched members + unrouted subtasks.
3659
+ * Unrouted subtasks had no matching agent for their required_capability.
3660
+ */
3661
+ interface Team {
3662
+ /** Unique team identifier (UUID). */
3663
+ team_id: string;
3664
+ /** Formation strategy used to select agents. */
3665
+ strategy: FormationStrategy;
3666
+ /** Successfully matched team members. */
3667
+ matched: TeamMember[];
3668
+ /**
3669
+ * Sub-tasks that could not be matched — no available agent found in the registry
3670
+ * for the required_capability.
3671
+ * Callers should decide whether to fail-fast or proceed with partial teams.
3672
+ */
3673
+ unrouted: SubTask[];
3674
+ }
3675
+ /**
3676
+ * Agent selection strategy for team formation.
3677
+ *
3678
+ * cost_optimized — select the lowest-cost agent per sub-task
3679
+ * quality_optimized — select the highest-scored agent per sub-task (success_rate × cost_efficiency × idle_rate)
3680
+ * balanced — use the default scorePeers() composite ranking (same as standard matchSubTasks)
3681
+ */
3682
+ type FormationStrategy = 'cost_optimized' | 'quality_optimized' | 'balanced';
3683
+
3135
3684
  /**
3136
3685
  * PipelineOrchestrator — DAG-based remote execution engine for the Conductor.
3137
3686
  *
@@ -3166,6 +3715,12 @@ interface OrchestrateOptions {
3166
3715
  relayClient?: RelayClient;
3167
3716
  /** Owner identifier of the requester agent. Used for relay requests. */
3168
3717
  requesterOwner?: string;
3718
+ /**
3719
+ * Optional pre-formed team from formTeam(). When provided, agent assignments
3720
+ * for matched team members override the MatchResult selected_agent.
3721
+ * Same-role subtasks in the same wave are routed to the same agent.
3722
+ */
3723
+ team?: Team;
3169
3724
  }
3170
3725
  /**
3171
3726
  * Executes a DAG of sub-tasks across remote agents via Gateway.