agentbnb 8.2.3 → 8.3.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.
- package/dist/{card-EX2EYGCZ.js → card-BN643ZOY.js} +6 -2
- package/dist/card-T2XJZA5A.js +92 -0
- package/dist/{chunk-3LWBH7P3.js → chunk-4NFJ3VYZ.js} +20 -1
- package/dist/chunk-5AIYALBX.js +857 -0
- package/dist/chunk-6QMDJVMS.js +238 -0
- package/dist/{chunk-LKLKYXLV.js → chunk-74LZDEDT.js} +6 -4
- package/dist/{chunk-GKVTD4EZ.js → chunk-77KGEDH4.js} +1 -1
- package/dist/{chunk-QCGIG7WW.js → chunk-7IQE34QK.js} +14 -7
- package/dist/{chunk-QHZGOG3O.js → chunk-D242QZCR.js} +168 -41
- package/dist/chunk-EE3V3DXK.js +60 -0
- package/dist/{chunk-RYISHSHB.js → chunk-F3KIEVJ2.js} +207 -265
- package/dist/{chunk-XBGVQMQJ.js → chunk-FELGHDCA.js} +16 -39
- package/dist/{chunk-EJKW57ZV.js → chunk-GIEJVKZZ.js} +1 -1
- package/dist/{chunk-WVY2W7AA.js → chunk-I7KWA7OB.js} +20 -0
- package/dist/{chunk-4IPJJRTP.js → chunk-IGQNP3ZO.js} +5 -2
- package/dist/chunk-NQANA6WH.js +797 -0
- package/dist/{chunk-Z4MCGKTL.js → chunk-NX27AFPA.js} +15 -2
- package/dist/{chunk-Z2GEFFDO.js → chunk-O4Q7BRG6.js} +2 -2
- package/dist/{chunk-SSK653A6.js → chunk-PQIP7EXY.js} +6 -0
- package/dist/{chunk-EG6RS4JC.js → chunk-QFPXZITP.js} +20 -65
- package/dist/chunk-R4F4XII4.js +264 -0
- package/dist/{chunk-DYQOFGGI.js → chunk-RVBW2QXU.js} +178 -49
- package/dist/{chunk-CQFBNTGT.js → chunk-S7DZHKCG.js} +25 -12
- package/dist/chunk-U6LP4KWN.js +238 -0
- package/dist/{chunk-MWOXW7JQ.js → chunk-VJ7XBEY6.js} +24 -16
- package/dist/chunk-WTHMHNKC.js +129 -0
- package/dist/{chunk-OCSU2S6W.js → chunk-WX3GZVFG.js} +2 -1
- package/dist/{chunk-CKOOVZOI.js → chunk-YKMBFQC2.js} +37 -5
- package/dist/{chunk-S3V6R3EN.js → chunk-ZU2TP7CN.js} +70 -27
- package/dist/cli/index.js +203 -237
- package/dist/client-OKJJ3UP2.js +19 -0
- package/dist/client-UQBGCIPA.js +20 -0
- package/dist/conduct-4JDMWBQD.js +22 -0
- package/dist/{conduct-AZFLNUX3.js → conduct-VYYBCPHA.js} +14 -13
- package/dist/{conductor-mode-WKB42PYM.js → conductor-mode-OPGQJFLA.js} +12 -8
- package/dist/{conductor-mode-PLTB6MS3.js → conductor-mode-SBDCRIX6.js} +16 -11
- package/dist/execute-FZLQGIXB.js +14 -0
- package/dist/execute-TEZPQ5WP.js +15 -0
- package/dist/index.d.ts +172 -11
- package/dist/index.js +1529 -433
- package/dist/{process-guard-GH5LRNWO.js → process-guard-TNSUNHSR.js} +1 -1
- package/dist/{publish-capability-QDR2QIZ2.js → publish-capability-HVYILTPR.js} +4 -3
- package/dist/{reliability-metrics-QG7WC5QK.js → reliability-metrics-G7LPUYJD.js} +3 -1
- package/dist/reliability-metrics-RRUKJ4ME.js +20 -0
- package/dist/{request-OERS5BE7.js → request-KJNKR27T.js} +76 -71
- package/dist/{serve-skill-E6EJQYAK.js → serve-skill-GC6NIQ5T.js} +10 -11
- package/dist/{server-46VEG2W7.js → server-YV3XPTX5.js} +11 -10
- package/dist/{service-coordinator-KMSA6BST.js → service-coordinator-RY5AKUZS.js} +420 -171
- package/dist/{skill-config-FETXPNVP.js → skill-config-5O2VR546.js} +1 -1
- package/dist/skills/agentbnb/bootstrap.js +528 -253
- package/dist/websocket-client-3U27WJUU.js +7 -0
- package/dist/{websocket-client-4Z5P54RU.js → websocket-client-SNDF3B6N.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-MCED4GDW.js +0 -1572
- package/dist/chunk-NWIQJ2CL.js +0 -108
- package/dist/chunk-TUCEDQGM.js +0 -44
- package/dist/chunk-WNXXLCV5.js +0 -32
- package/dist/client-XOLP5IUZ.js +0 -12
- package/dist/conduct-VPUYTNEA.js +0 -21
- package/dist/execute-NNDCXTN4.js +0 -13
- package/dist/execute-RIRHTIBU.js +0 -16
- package/dist/websocket-client-QOVARTRN.js +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,16 @@ declare const CapabilityCardSchema: z.ZodObject<{
|
|
|
80
80
|
online: boolean;
|
|
81
81
|
schedule?: string | undefined;
|
|
82
82
|
}>;
|
|
83
|
+
/**
|
|
84
|
+
* Provider-estimated typical execution duration in milliseconds.
|
|
85
|
+
* Used by requesters to derive default client-side timeouts.
|
|
86
|
+
*/
|
|
87
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
/**
|
|
89
|
+
* Provider hard timeout in milliseconds.
|
|
90
|
+
* Used as a fallback timeout hint when expected_duration_ms is unavailable.
|
|
91
|
+
*/
|
|
92
|
+
hard_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
83
93
|
powered_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
94
|
provider: z.ZodString;
|
|
85
95
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -151,6 +161,8 @@ declare const CapabilityCardSchema: z.ZodObject<{
|
|
|
151
161
|
schedule?: string | undefined;
|
|
152
162
|
};
|
|
153
163
|
agent_id?: string | undefined;
|
|
164
|
+
expected_duration_ms?: number | undefined;
|
|
165
|
+
hard_timeout_ms?: number | undefined;
|
|
154
166
|
powered_by?: {
|
|
155
167
|
provider: string;
|
|
156
168
|
model?: string | undefined;
|
|
@@ -198,6 +210,8 @@ declare const CapabilityCardSchema: z.ZodObject<{
|
|
|
198
210
|
};
|
|
199
211
|
spec_version?: "1.0" | undefined;
|
|
200
212
|
agent_id?: string | undefined;
|
|
213
|
+
expected_duration_ms?: number | undefined;
|
|
214
|
+
hard_timeout_ms?: number | undefined;
|
|
201
215
|
powered_by?: {
|
|
202
216
|
provider: string;
|
|
203
217
|
model?: string | undefined;
|
|
@@ -311,6 +325,16 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
|
|
|
311
325
|
credits_per_minute?: number | undefined;
|
|
312
326
|
free_tier?: number | undefined;
|
|
313
327
|
}>;
|
|
328
|
+
/**
|
|
329
|
+
* Provider-estimated typical execution duration in milliseconds.
|
|
330
|
+
* Used by requesters to derive default client-side timeouts.
|
|
331
|
+
*/
|
|
332
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
/**
|
|
334
|
+
* Provider hard timeout in milliseconds.
|
|
335
|
+
* Used as a fallback timeout hint when expected_duration_ms is unavailable.
|
|
336
|
+
*/
|
|
337
|
+
hard_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
314
338
|
/** Per-skill online flag — overrides card-level availability for this skill. */
|
|
315
339
|
availability: z.ZodOptional<z.ZodObject<{
|
|
316
340
|
online: z.ZodBoolean;
|
|
@@ -393,6 +417,8 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
|
|
|
393
417
|
availability?: {
|
|
394
418
|
online: boolean;
|
|
395
419
|
} | undefined;
|
|
420
|
+
expected_duration_ms?: number | undefined;
|
|
421
|
+
hard_timeout_ms?: number | undefined;
|
|
396
422
|
powered_by?: {
|
|
397
423
|
provider: string;
|
|
398
424
|
model?: string | undefined;
|
|
@@ -440,6 +466,8 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
|
|
|
440
466
|
availability?: {
|
|
441
467
|
online: boolean;
|
|
442
468
|
} | undefined;
|
|
469
|
+
expected_duration_ms?: number | undefined;
|
|
470
|
+
hard_timeout_ms?: number | undefined;
|
|
443
471
|
powered_by?: {
|
|
444
472
|
provider: string;
|
|
445
473
|
model?: string | undefined;
|
|
@@ -620,6 +648,8 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
|
|
|
620
648
|
availability?: {
|
|
621
649
|
online: boolean;
|
|
622
650
|
} | undefined;
|
|
651
|
+
expected_duration_ms?: number | undefined;
|
|
652
|
+
hard_timeout_ms?: number | undefined;
|
|
623
653
|
powered_by?: {
|
|
624
654
|
provider: string;
|
|
625
655
|
model?: string | undefined;
|
|
@@ -710,6 +740,8 @@ declare const CapabilityCardV2Schema: z.ZodObject<{
|
|
|
710
740
|
availability?: {
|
|
711
741
|
online: boolean;
|
|
712
742
|
} | undefined;
|
|
743
|
+
expected_duration_ms?: number | undefined;
|
|
744
|
+
hard_timeout_ms?: number | undefined;
|
|
713
745
|
powered_by?: {
|
|
714
746
|
provider: string;
|
|
715
747
|
model?: string | undefined;
|
|
@@ -876,6 +908,7 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
|
|
|
876
908
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
877
909
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
878
910
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
911
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
879
912
|
id: z.ZodString;
|
|
880
913
|
type: z.ZodLiteral<"api">;
|
|
881
914
|
name: z.ZodString;
|
|
@@ -957,6 +990,7 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
|
|
|
957
990
|
retries: number;
|
|
958
991
|
description?: string | undefined;
|
|
959
992
|
provider?: string | undefined;
|
|
993
|
+
expected_duration_ms?: number | undefined;
|
|
960
994
|
capability_types?: string[] | undefined;
|
|
961
995
|
requires_capabilities?: string[] | undefined;
|
|
962
996
|
visibility?: "public" | "private" | undefined;
|
|
@@ -988,6 +1022,7 @@ declare const ApiSkillConfigSchema: z.ZodObject<{
|
|
|
988
1022
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
989
1023
|
description?: string | undefined;
|
|
990
1024
|
provider?: string | undefined;
|
|
1025
|
+
expected_duration_ms?: number | undefined;
|
|
991
1026
|
capability_types?: string[] | undefined;
|
|
992
1027
|
requires_capabilities?: string[] | undefined;
|
|
993
1028
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1020,6 +1055,7 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
|
|
|
1020
1055
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1021
1056
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1022
1057
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1058
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1023
1059
|
id: z.ZodString;
|
|
1024
1060
|
type: z.ZodLiteral<"pipeline">;
|
|
1025
1061
|
name: z.ZodString;
|
|
@@ -1080,6 +1116,7 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
|
|
|
1080
1116
|
command: string;
|
|
1081
1117
|
})[];
|
|
1082
1118
|
description?: string | undefined;
|
|
1119
|
+
expected_duration_ms?: number | undefined;
|
|
1083
1120
|
capability_types?: string[] | undefined;
|
|
1084
1121
|
requires_capabilities?: string[] | undefined;
|
|
1085
1122
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1104,6 +1141,7 @@ declare const PipelineSkillConfigSchema: z.ZodObject<{
|
|
|
1104
1141
|
input_mapping?: Record<string, string> | undefined;
|
|
1105
1142
|
})[];
|
|
1106
1143
|
description?: string | undefined;
|
|
1144
|
+
expected_duration_ms?: number | undefined;
|
|
1107
1145
|
capability_types?: string[] | undefined;
|
|
1108
1146
|
requires_capabilities?: string[] | undefined;
|
|
1109
1147
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1121,6 +1159,7 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
|
|
|
1121
1159
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1122
1160
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1123
1161
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1162
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1124
1163
|
id: z.ZodString;
|
|
1125
1164
|
type: z.ZodLiteral<"openclaw">;
|
|
1126
1165
|
name: z.ZodString;
|
|
@@ -1159,6 +1198,7 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
|
|
|
1159
1198
|
agent_name: string;
|
|
1160
1199
|
channel: "telegram" | "webhook" | "process";
|
|
1161
1200
|
description?: string | undefined;
|
|
1201
|
+
expected_duration_ms?: number | undefined;
|
|
1162
1202
|
capability_types?: string[] | undefined;
|
|
1163
1203
|
requires_capabilities?: string[] | undefined;
|
|
1164
1204
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1178,6 +1218,7 @@ declare const OpenClawSkillConfigSchema: z.ZodObject<{
|
|
|
1178
1218
|
agent_name: string;
|
|
1179
1219
|
channel: "telegram" | "webhook" | "process";
|
|
1180
1220
|
description?: string | undefined;
|
|
1221
|
+
expected_duration_ms?: number | undefined;
|
|
1181
1222
|
capability_types?: string[] | undefined;
|
|
1182
1223
|
requires_capabilities?: string[] | undefined;
|
|
1183
1224
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1195,6 +1236,7 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
|
|
|
1195
1236
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1196
1237
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1197
1238
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1239
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1198
1240
|
id: z.ZodString;
|
|
1199
1241
|
type: z.ZodLiteral<"command">;
|
|
1200
1242
|
name: z.ZodString;
|
|
@@ -1252,6 +1294,7 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
|
|
|
1252
1294
|
command: string;
|
|
1253
1295
|
output_type: "text" | "json" | "file";
|
|
1254
1296
|
description?: string | undefined;
|
|
1297
|
+
expected_duration_ms?: number | undefined;
|
|
1255
1298
|
capability_types?: string[] | undefined;
|
|
1256
1299
|
requires_capabilities?: string[] | undefined;
|
|
1257
1300
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1277,6 +1320,7 @@ declare const CommandSkillConfigSchema: z.ZodObject<{
|
|
|
1277
1320
|
command: string;
|
|
1278
1321
|
output_type: "text" | "json" | "file";
|
|
1279
1322
|
description?: string | undefined;
|
|
1323
|
+
expected_duration_ms?: number | undefined;
|
|
1280
1324
|
capability_types?: string[] | undefined;
|
|
1281
1325
|
requires_capabilities?: string[] | undefined;
|
|
1282
1326
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1301,6 +1345,7 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
|
|
|
1301
1345
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1302
1346
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1303
1347
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1348
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1304
1349
|
id: z.ZodString;
|
|
1305
1350
|
type: z.ZodLiteral<"conductor">;
|
|
1306
1351
|
name: z.ZodString;
|
|
@@ -1337,6 +1382,7 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
|
|
|
1337
1382
|
};
|
|
1338
1383
|
conductor_skill: "orchestrate" | "plan";
|
|
1339
1384
|
description?: string | undefined;
|
|
1385
|
+
expected_duration_ms?: number | undefined;
|
|
1340
1386
|
capability_types?: string[] | undefined;
|
|
1341
1387
|
requires_capabilities?: string[] | undefined;
|
|
1342
1388
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1355,6 +1401,7 @@ declare const ConductorSkillConfigSchema: z.ZodObject<{
|
|
|
1355
1401
|
};
|
|
1356
1402
|
conductor_skill: "orchestrate" | "plan";
|
|
1357
1403
|
description?: string | undefined;
|
|
1404
|
+
expected_duration_ms?: number | undefined;
|
|
1358
1405
|
capability_types?: string[] | undefined;
|
|
1359
1406
|
requires_capabilities?: string[] | undefined;
|
|
1360
1407
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1372,6 +1419,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1372
1419
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1373
1420
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1374
1421
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1422
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1375
1423
|
id: z.ZodString;
|
|
1376
1424
|
type: z.ZodLiteral<"api">;
|
|
1377
1425
|
name: z.ZodString;
|
|
@@ -1453,6 +1501,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1453
1501
|
retries: number;
|
|
1454
1502
|
description?: string | undefined;
|
|
1455
1503
|
provider?: string | undefined;
|
|
1504
|
+
expected_duration_ms?: number | undefined;
|
|
1456
1505
|
capability_types?: string[] | undefined;
|
|
1457
1506
|
requires_capabilities?: string[] | undefined;
|
|
1458
1507
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1484,6 +1533,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1484
1533
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1485
1534
|
description?: string | undefined;
|
|
1486
1535
|
provider?: string | undefined;
|
|
1536
|
+
expected_duration_ms?: number | undefined;
|
|
1487
1537
|
capability_types?: string[] | undefined;
|
|
1488
1538
|
requires_capabilities?: string[] | undefined;
|
|
1489
1539
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1511,6 +1561,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1511
1561
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1512
1562
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1513
1563
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1564
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1514
1565
|
id: z.ZodString;
|
|
1515
1566
|
type: z.ZodLiteral<"pipeline">;
|
|
1516
1567
|
name: z.ZodString;
|
|
@@ -1571,6 +1622,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1571
1622
|
command: string;
|
|
1572
1623
|
})[];
|
|
1573
1624
|
description?: string | undefined;
|
|
1625
|
+
expected_duration_ms?: number | undefined;
|
|
1574
1626
|
capability_types?: string[] | undefined;
|
|
1575
1627
|
requires_capabilities?: string[] | undefined;
|
|
1576
1628
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1595,6 +1647,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1595
1647
|
input_mapping?: Record<string, string> | undefined;
|
|
1596
1648
|
})[];
|
|
1597
1649
|
description?: string | undefined;
|
|
1650
|
+
expected_duration_ms?: number | undefined;
|
|
1598
1651
|
capability_types?: string[] | undefined;
|
|
1599
1652
|
requires_capabilities?: string[] | undefined;
|
|
1600
1653
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1607,6 +1660,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1607
1660
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1608
1661
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1609
1662
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1663
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1610
1664
|
id: z.ZodString;
|
|
1611
1665
|
type: z.ZodLiteral<"openclaw">;
|
|
1612
1666
|
name: z.ZodString;
|
|
@@ -1645,6 +1699,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1645
1699
|
agent_name: string;
|
|
1646
1700
|
channel: "telegram" | "webhook" | "process";
|
|
1647
1701
|
description?: string | undefined;
|
|
1702
|
+
expected_duration_ms?: number | undefined;
|
|
1648
1703
|
capability_types?: string[] | undefined;
|
|
1649
1704
|
requires_capabilities?: string[] | undefined;
|
|
1650
1705
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1664,6 +1719,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1664
1719
|
agent_name: string;
|
|
1665
1720
|
channel: "telegram" | "webhook" | "process";
|
|
1666
1721
|
description?: string | undefined;
|
|
1722
|
+
expected_duration_ms?: number | undefined;
|
|
1667
1723
|
capability_types?: string[] | undefined;
|
|
1668
1724
|
requires_capabilities?: string[] | undefined;
|
|
1669
1725
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1676,6 +1732,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1676
1732
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1677
1733
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1678
1734
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1735
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1679
1736
|
id: z.ZodString;
|
|
1680
1737
|
type: z.ZodLiteral<"command">;
|
|
1681
1738
|
name: z.ZodString;
|
|
@@ -1733,6 +1790,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1733
1790
|
command: string;
|
|
1734
1791
|
output_type: "text" | "json" | "file";
|
|
1735
1792
|
description?: string | undefined;
|
|
1793
|
+
expected_duration_ms?: number | undefined;
|
|
1736
1794
|
capability_types?: string[] | undefined;
|
|
1737
1795
|
requires_capabilities?: string[] | undefined;
|
|
1738
1796
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1758,6 +1816,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1758
1816
|
command: string;
|
|
1759
1817
|
output_type: "text" | "json" | "file";
|
|
1760
1818
|
description?: string | undefined;
|
|
1819
|
+
expected_duration_ms?: number | undefined;
|
|
1761
1820
|
capability_types?: string[] | undefined;
|
|
1762
1821
|
requires_capabilities?: string[] | undefined;
|
|
1763
1822
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1777,6 +1836,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1777
1836
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1778
1837
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1779
1838
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1839
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1780
1840
|
id: z.ZodString;
|
|
1781
1841
|
type: z.ZodLiteral<"conductor">;
|
|
1782
1842
|
name: z.ZodString;
|
|
@@ -1813,6 +1873,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1813
1873
|
};
|
|
1814
1874
|
conductor_skill: "orchestrate" | "plan";
|
|
1815
1875
|
description?: string | undefined;
|
|
1876
|
+
expected_duration_ms?: number | undefined;
|
|
1816
1877
|
capability_types?: string[] | undefined;
|
|
1817
1878
|
requires_capabilities?: string[] | undefined;
|
|
1818
1879
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1831,6 +1892,7 @@ declare const SkillConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1831
1892
|
};
|
|
1832
1893
|
conductor_skill: "orchestrate" | "plan";
|
|
1833
1894
|
description?: string | undefined;
|
|
1895
|
+
expected_duration_ms?: number | undefined;
|
|
1834
1896
|
capability_types?: string[] | undefined;
|
|
1835
1897
|
requires_capabilities?: string[] | undefined;
|
|
1836
1898
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1849,6 +1911,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
1849
1911
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1850
1912
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1851
1913
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
1914
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1852
1915
|
id: z.ZodString;
|
|
1853
1916
|
type: z.ZodLiteral<"api">;
|
|
1854
1917
|
name: z.ZodString;
|
|
@@ -1930,6 +1993,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
1930
1993
|
retries: number;
|
|
1931
1994
|
description?: string | undefined;
|
|
1932
1995
|
provider?: string | undefined;
|
|
1996
|
+
expected_duration_ms?: number | undefined;
|
|
1933
1997
|
capability_types?: string[] | undefined;
|
|
1934
1998
|
requires_capabilities?: string[] | undefined;
|
|
1935
1999
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1961,6 +2025,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
1961
2025
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1962
2026
|
description?: string | undefined;
|
|
1963
2027
|
provider?: string | undefined;
|
|
2028
|
+
expected_duration_ms?: number | undefined;
|
|
1964
2029
|
capability_types?: string[] | undefined;
|
|
1965
2030
|
requires_capabilities?: string[] | undefined;
|
|
1966
2031
|
visibility?: "public" | "private" | undefined;
|
|
@@ -1988,6 +2053,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
1988
2053
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1989
2054
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1990
2055
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
2056
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1991
2057
|
id: z.ZodString;
|
|
1992
2058
|
type: z.ZodLiteral<"pipeline">;
|
|
1993
2059
|
name: z.ZodString;
|
|
@@ -2048,6 +2114,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2048
2114
|
command: string;
|
|
2049
2115
|
})[];
|
|
2050
2116
|
description?: string | undefined;
|
|
2117
|
+
expected_duration_ms?: number | undefined;
|
|
2051
2118
|
capability_types?: string[] | undefined;
|
|
2052
2119
|
requires_capabilities?: string[] | undefined;
|
|
2053
2120
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2072,6 +2139,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2072
2139
|
input_mapping?: Record<string, string> | undefined;
|
|
2073
2140
|
})[];
|
|
2074
2141
|
description?: string | undefined;
|
|
2142
|
+
expected_duration_ms?: number | undefined;
|
|
2075
2143
|
capability_types?: string[] | undefined;
|
|
2076
2144
|
requires_capabilities?: string[] | undefined;
|
|
2077
2145
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2084,6 +2152,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2084
2152
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2085
2153
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2086
2154
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
2155
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2087
2156
|
id: z.ZodString;
|
|
2088
2157
|
type: z.ZodLiteral<"openclaw">;
|
|
2089
2158
|
name: z.ZodString;
|
|
@@ -2122,6 +2191,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2122
2191
|
agent_name: string;
|
|
2123
2192
|
channel: "telegram" | "webhook" | "process";
|
|
2124
2193
|
description?: string | undefined;
|
|
2194
|
+
expected_duration_ms?: number | undefined;
|
|
2125
2195
|
capability_types?: string[] | undefined;
|
|
2126
2196
|
requires_capabilities?: string[] | undefined;
|
|
2127
2197
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2141,6 +2211,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2141
2211
|
agent_name: string;
|
|
2142
2212
|
channel: "telegram" | "webhook" | "process";
|
|
2143
2213
|
description?: string | undefined;
|
|
2214
|
+
expected_duration_ms?: number | undefined;
|
|
2144
2215
|
capability_types?: string[] | undefined;
|
|
2145
2216
|
requires_capabilities?: string[] | undefined;
|
|
2146
2217
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2153,6 +2224,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2153
2224
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2154
2225
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2155
2226
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
2227
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2156
2228
|
id: z.ZodString;
|
|
2157
2229
|
type: z.ZodLiteral<"command">;
|
|
2158
2230
|
name: z.ZodString;
|
|
@@ -2210,6 +2282,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2210
2282
|
command: string;
|
|
2211
2283
|
output_type: "text" | "json" | "file";
|
|
2212
2284
|
description?: string | undefined;
|
|
2285
|
+
expected_duration_ms?: number | undefined;
|
|
2213
2286
|
capability_types?: string[] | undefined;
|
|
2214
2287
|
requires_capabilities?: string[] | undefined;
|
|
2215
2288
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2235,6 +2308,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2235
2308
|
command: string;
|
|
2236
2309
|
output_type: "text" | "json" | "file";
|
|
2237
2310
|
description?: string | undefined;
|
|
2311
|
+
expected_duration_ms?: number | undefined;
|
|
2238
2312
|
capability_types?: string[] | undefined;
|
|
2239
2313
|
requires_capabilities?: string[] | undefined;
|
|
2240
2314
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2254,6 +2328,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2254
2328
|
capability_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2255
2329
|
requires_capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2256
2330
|
visibility: z.ZodOptional<z.ZodEnum<["public", "private"]>>;
|
|
2331
|
+
expected_duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2257
2332
|
id: z.ZodString;
|
|
2258
2333
|
type: z.ZodLiteral<"conductor">;
|
|
2259
2334
|
name: z.ZodString;
|
|
@@ -2290,6 +2365,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2290
2365
|
};
|
|
2291
2366
|
conductor_skill: "orchestrate" | "plan";
|
|
2292
2367
|
description?: string | undefined;
|
|
2368
|
+
expected_duration_ms?: number | undefined;
|
|
2293
2369
|
capability_types?: string[] | undefined;
|
|
2294
2370
|
requires_capabilities?: string[] | undefined;
|
|
2295
2371
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2308,6 +2384,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2308
2384
|
};
|
|
2309
2385
|
conductor_skill: "orchestrate" | "plan";
|
|
2310
2386
|
description?: string | undefined;
|
|
2387
|
+
expected_duration_ms?: number | undefined;
|
|
2311
2388
|
capability_types?: string[] | undefined;
|
|
2312
2389
|
requires_capabilities?: string[] | undefined;
|
|
2313
2390
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2334,6 +2411,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2334
2411
|
retries: number;
|
|
2335
2412
|
description?: string | undefined;
|
|
2336
2413
|
provider?: string | undefined;
|
|
2414
|
+
expected_duration_ms?: number | undefined;
|
|
2337
2415
|
capability_types?: string[] | undefined;
|
|
2338
2416
|
requires_capabilities?: string[] | undefined;
|
|
2339
2417
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2369,6 +2447,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2369
2447
|
command: string;
|
|
2370
2448
|
})[];
|
|
2371
2449
|
description?: string | undefined;
|
|
2450
|
+
expected_duration_ms?: number | undefined;
|
|
2372
2451
|
capability_types?: string[] | undefined;
|
|
2373
2452
|
requires_capabilities?: string[] | undefined;
|
|
2374
2453
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2388,6 +2467,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2388
2467
|
agent_name: string;
|
|
2389
2468
|
channel: "telegram" | "webhook" | "process";
|
|
2390
2469
|
description?: string | undefined;
|
|
2470
|
+
expected_duration_ms?: number | undefined;
|
|
2391
2471
|
capability_types?: string[] | undefined;
|
|
2392
2472
|
requires_capabilities?: string[] | undefined;
|
|
2393
2473
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2408,6 +2488,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2408
2488
|
command: string;
|
|
2409
2489
|
output_type: "text" | "json" | "file";
|
|
2410
2490
|
description?: string | undefined;
|
|
2491
|
+
expected_duration_ms?: number | undefined;
|
|
2411
2492
|
capability_types?: string[] | undefined;
|
|
2412
2493
|
requires_capabilities?: string[] | undefined;
|
|
2413
2494
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2432,6 +2513,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2432
2513
|
};
|
|
2433
2514
|
conductor_skill: "orchestrate" | "plan";
|
|
2434
2515
|
description?: string | undefined;
|
|
2516
|
+
expected_duration_ms?: number | undefined;
|
|
2435
2517
|
capability_types?: string[] | undefined;
|
|
2436
2518
|
requires_capabilities?: string[] | undefined;
|
|
2437
2519
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2454,6 +2536,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2454
2536
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2455
2537
|
description?: string | undefined;
|
|
2456
2538
|
provider?: string | undefined;
|
|
2539
|
+
expected_duration_ms?: number | undefined;
|
|
2457
2540
|
capability_types?: string[] | undefined;
|
|
2458
2541
|
requires_capabilities?: string[] | undefined;
|
|
2459
2542
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2493,6 +2576,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2493
2576
|
input_mapping?: Record<string, string> | undefined;
|
|
2494
2577
|
})[];
|
|
2495
2578
|
description?: string | undefined;
|
|
2579
|
+
expected_duration_ms?: number | undefined;
|
|
2496
2580
|
capability_types?: string[] | undefined;
|
|
2497
2581
|
requires_capabilities?: string[] | undefined;
|
|
2498
2582
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2512,6 +2596,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2512
2596
|
agent_name: string;
|
|
2513
2597
|
channel: "telegram" | "webhook" | "process";
|
|
2514
2598
|
description?: string | undefined;
|
|
2599
|
+
expected_duration_ms?: number | undefined;
|
|
2515
2600
|
capability_types?: string[] | undefined;
|
|
2516
2601
|
requires_capabilities?: string[] | undefined;
|
|
2517
2602
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2531,6 +2616,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2531
2616
|
command: string;
|
|
2532
2617
|
output_type: "text" | "json" | "file";
|
|
2533
2618
|
description?: string | undefined;
|
|
2619
|
+
expected_duration_ms?: number | undefined;
|
|
2534
2620
|
capability_types?: string[] | undefined;
|
|
2535
2621
|
requires_capabilities?: string[] | undefined;
|
|
2536
2622
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2556,6 +2642,7 @@ declare const SkillsFileSchema: z.ZodObject<{
|
|
|
2556
2642
|
};
|
|
2557
2643
|
conductor_skill: "orchestrate" | "plan";
|
|
2558
2644
|
description?: string | undefined;
|
|
2645
|
+
expected_duration_ms?: number | undefined;
|
|
2559
2646
|
capability_types?: string[] | undefined;
|
|
2560
2647
|
requires_capabilities?: string[] | undefined;
|
|
2561
2648
|
visibility?: "public" | "private" | undefined;
|
|
@@ -2878,7 +2965,7 @@ declare class PipelineExecutor implements ExecutorMode {
|
|
|
2878
2965
|
* Forwards AgentBnB skill execution requests to an OpenClaw agent via one of
|
|
2879
2966
|
* three configurable channels:
|
|
2880
2967
|
* - `webhook` — HTTP POST to OpenClaw agent's local webhook endpoint
|
|
2881
|
-
* - `process` — spawn `openclaw
|
|
2968
|
+
* - `process` — spawn `openclaw agent --agent <name> --message <JSON> --json --local`
|
|
2882
2969
|
* - `telegram` — fire-and-forget POST to Telegram Bot API
|
|
2883
2970
|
*
|
|
2884
2971
|
* Implements the {@link ExecutorMode} interface so it can be registered into
|
|
@@ -3730,6 +3817,18 @@ declare const RelayMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3730
3817
|
id: string;
|
|
3731
3818
|
message?: string | undefined;
|
|
3732
3819
|
progress?: number | undefined;
|
|
3820
|
+
}>, z.ZodObject<{
|
|
3821
|
+
type: z.ZodLiteral<"relay_started">;
|
|
3822
|
+
id: z.ZodString;
|
|
3823
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3824
|
+
}, "strip", z.ZodTypeAny, {
|
|
3825
|
+
type: "relay_started";
|
|
3826
|
+
id: string;
|
|
3827
|
+
message?: string | undefined;
|
|
3828
|
+
}, {
|
|
3829
|
+
type: "relay_started";
|
|
3830
|
+
id: string;
|
|
3831
|
+
message?: string | undefined;
|
|
3733
3832
|
}>, z.ZodObject<{
|
|
3734
3833
|
type: z.ZodLiteral<"heartbeat">;
|
|
3735
3834
|
owner: z.ZodString;
|
|
@@ -3840,19 +3939,19 @@ declare const RelayMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3840
3939
|
}, "strip", z.ZodTypeAny, {
|
|
3841
3940
|
type: "escrow_hold";
|
|
3842
3941
|
skill_id: string;
|
|
3843
|
-
amount: number;
|
|
3844
3942
|
request_id: string;
|
|
3845
3943
|
consumer_agent_id: string;
|
|
3846
3944
|
provider_agent_id: string;
|
|
3945
|
+
amount: number;
|
|
3847
3946
|
public_key?: string | undefined;
|
|
3848
3947
|
signature?: string | undefined;
|
|
3849
3948
|
}, {
|
|
3850
3949
|
type: "escrow_hold";
|
|
3851
3950
|
skill_id: string;
|
|
3852
|
-
amount: number;
|
|
3853
3951
|
request_id: string;
|
|
3854
3952
|
consumer_agent_id: string;
|
|
3855
3953
|
provider_agent_id: string;
|
|
3954
|
+
amount: number;
|
|
3856
3955
|
public_key?: string | undefined;
|
|
3857
3956
|
signature?: string | undefined;
|
|
3858
3957
|
}>, z.ZodObject<{
|
|
@@ -3890,8 +3989,8 @@ declare const RelayMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3890
3989
|
escrow_id: string;
|
|
3891
3990
|
public_key?: string | undefined;
|
|
3892
3991
|
failure_reason?: "timeout" | "bad_execution" | "overload" | "auth_error" | "not_found" | undefined;
|
|
3893
|
-
signature?: string | undefined;
|
|
3894
3992
|
consumer_agent_id?: string | undefined;
|
|
3993
|
+
signature?: string | undefined;
|
|
3895
3994
|
result_hash?: string | undefined;
|
|
3896
3995
|
}, {
|
|
3897
3996
|
type: "escrow_settle";
|
|
@@ -3900,8 +3999,8 @@ declare const RelayMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3900
3999
|
escrow_id: string;
|
|
3901
4000
|
public_key?: string | undefined;
|
|
3902
4001
|
failure_reason?: "timeout" | "bad_execution" | "overload" | "auth_error" | "not_found" | undefined;
|
|
3903
|
-
signature?: string | undefined;
|
|
3904
4002
|
consumer_agent_id?: string | undefined;
|
|
4003
|
+
signature?: string | undefined;
|
|
3905
4004
|
result_hash?: string | undefined;
|
|
3906
4005
|
}>, z.ZodObject<{
|
|
3907
4006
|
type: z.ZodLiteral<"escrow_settled">;
|
|
@@ -3963,7 +4062,19 @@ interface PendingRelayRequest {
|
|
|
3963
4062
|
originOwner: string;
|
|
3964
4063
|
/** Actual agent owner for credit operations (defaults to originOwner) */
|
|
3965
4064
|
creditOwner?: string;
|
|
4065
|
+
/** Active timeout handle (backward-compatible alias for current phase timer). */
|
|
3966
4066
|
timeout: ReturnType<typeof setTimeout>;
|
|
4067
|
+
/** Idle timeout before provider acknowledges start. */
|
|
4068
|
+
idleTimeout?: ReturnType<typeof setTimeout>;
|
|
4069
|
+
/** Hard timeout after provider start acknowledgement. */
|
|
4070
|
+
hardTimeout?: ReturnType<typeof setTimeout>;
|
|
4071
|
+
/** Grace timeout after requester disconnects post-start. */
|
|
4072
|
+
graceTimeout?: ReturnType<typeof setTimeout>;
|
|
4073
|
+
/** Lifecycle stage tracked by relay for disconnect policy. */
|
|
4074
|
+
lifecycle?: 'held' | 'started' | 'progressing' | 'abandoned';
|
|
4075
|
+
createdAt?: number;
|
|
4076
|
+
startedAt?: number;
|
|
4077
|
+
abandonedAt?: number;
|
|
3967
4078
|
/** Escrow ID for the credit hold, if credits were reserved for this request */
|
|
3968
4079
|
escrowId?: string;
|
|
3969
4080
|
/** The target provider owner, needed to release escrow on provider disconnect */
|
|
@@ -4085,10 +4196,17 @@ declare class RelayClient {
|
|
|
4085
4196
|
* @returns The result from the target agent.
|
|
4086
4197
|
*/
|
|
4087
4198
|
request(opts: RelayRequestOptions$1): Promise<unknown>;
|
|
4199
|
+
/**
|
|
4200
|
+
* Send a relay_started message to acknowledge that provider has started work.
|
|
4201
|
+
*
|
|
4202
|
+
* @param requestId - The relay request ID being processed.
|
|
4203
|
+
* @param message - Optional status message.
|
|
4204
|
+
*/
|
|
4205
|
+
sendStarted(requestId: string, message?: string): void;
|
|
4088
4206
|
/**
|
|
4089
4207
|
* Send a relay_progress message to the relay server for a given request.
|
|
4090
4208
|
* Used by the onRequest handler to forward SkillExecutor progress updates
|
|
4091
|
-
* to the requesting agent
|
|
4209
|
+
* to the requesting agent while work is in-flight.
|
|
4092
4210
|
*
|
|
4093
4211
|
* @param requestId - The relay request ID to associate progress with.
|
|
4094
4212
|
* @param info - Progress details (step, total, message).
|
|
@@ -4347,21 +4465,21 @@ declare const EscrowReceiptSchema: z.ZodObject<{
|
|
|
4347
4465
|
signature: z.ZodString;
|
|
4348
4466
|
}, "strip", z.ZodTypeAny, {
|
|
4349
4467
|
timestamp: string;
|
|
4468
|
+
card_id: string;
|
|
4469
|
+
amount: number;
|
|
4350
4470
|
signature: string;
|
|
4351
4471
|
requester_owner: string;
|
|
4352
4472
|
requester_public_key: string;
|
|
4353
|
-
amount: number;
|
|
4354
|
-
card_id: string;
|
|
4355
4473
|
nonce: string;
|
|
4356
4474
|
skill_id?: string | undefined;
|
|
4357
4475
|
requester_agent_id?: string | undefined;
|
|
4358
4476
|
}, {
|
|
4359
4477
|
timestamp: string;
|
|
4478
|
+
card_id: string;
|
|
4479
|
+
amount: number;
|
|
4360
4480
|
signature: string;
|
|
4361
4481
|
requester_owner: string;
|
|
4362
4482
|
requester_public_key: string;
|
|
4363
|
-
amount: number;
|
|
4364
|
-
card_id: string;
|
|
4365
4483
|
nonce: string;
|
|
4366
4484
|
skill_id?: string | undefined;
|
|
4367
4485
|
requester_agent_id?: string | undefined;
|
|
@@ -4400,6 +4518,11 @@ declare function createSignedEscrowReceipt(db: Database.Database, privateKey: Bu
|
|
|
4400
4518
|
};
|
|
4401
4519
|
|
|
4402
4520
|
/**
|
|
4521
|
+
* @deprecated Use relay-based settlement instead. This function deducts a 5% network
|
|
4522
|
+
* fee from the provider amount but does NOT credit `platform_treasury`, so the fee
|
|
4523
|
+
* effectively vanishes. The relay's `settleEscrow()` correctly handles the fee.
|
|
4524
|
+
* Kept for backward compatibility and audit trail.
|
|
4525
|
+
*
|
|
4403
4526
|
* Provider-side settlement: records earnings from a signed escrow receipt.
|
|
4404
4527
|
* The provider calls this after successfully executing a capability.
|
|
4405
4528
|
* Credits are recorded in the provider's own local DB.
|
|
@@ -4638,6 +4761,10 @@ interface ConsumerRequestOptions {
|
|
|
4638
4761
|
credits: number;
|
|
4639
4762
|
/** Timeout in milliseconds. Default 30000. */
|
|
4640
4763
|
timeoutMs?: number;
|
|
4764
|
+
/** Provider-published expected duration used to derive timeout when timeoutMs is omitted. */
|
|
4765
|
+
expectedDurationMs?: number;
|
|
4766
|
+
/** Provider-published hard timeout used as fallback timeout hint. */
|
|
4767
|
+
providerHardTimeoutMs?: number;
|
|
4641
4768
|
}
|
|
4642
4769
|
/**
|
|
4643
4770
|
* AgentBnBConsumer — high-level SDK class for agents consuming capabilities.
|
|
@@ -4676,6 +4803,27 @@ declare class AgentBnBConsumer {
|
|
|
4676
4803
|
*/
|
|
4677
4804
|
getIdentity(): AgentIdentity;
|
|
4678
4805
|
/**
|
|
4806
|
+
* Requests a paid capability via the relay. The relay handles escrow + network fee
|
|
4807
|
+
* server-side, avoiding the fee bypass bug in the signed receipt path.
|
|
4808
|
+
*
|
|
4809
|
+
* @param opts - Relay request options.
|
|
4810
|
+
* @returns The result from the capability execution.
|
|
4811
|
+
* @throws {AgentBnBError} on relay connection failure or execution error.
|
|
4812
|
+
*/
|
|
4813
|
+
requestViaRelay(opts: {
|
|
4814
|
+
registryUrl: string;
|
|
4815
|
+
targetOwner: string;
|
|
4816
|
+
targetAgentId?: string;
|
|
4817
|
+
cardId: string;
|
|
4818
|
+
skillId?: string;
|
|
4819
|
+
params?: Record<string, unknown>;
|
|
4820
|
+
timeoutMs?: number;
|
|
4821
|
+
}): Promise<unknown>;
|
|
4822
|
+
/**
|
|
4823
|
+
* @deprecated Use `requestViaRelay()` for paid remote requests. This method uses
|
|
4824
|
+
* local escrow + signed receipts which bypass the network fee. Still works for
|
|
4825
|
+
* free/local requests.
|
|
4826
|
+
*
|
|
4679
4827
|
* Requests a capability from a remote agent with full escrow lifecycle.
|
|
4680
4828
|
*
|
|
4681
4829
|
* 1. Creates a signed escrow receipt (holds credits locally)
|
|
@@ -4931,12 +5079,23 @@ type ExecuteResult = {
|
|
|
4931
5079
|
*/
|
|
4932
5080
|
declare function executeCapabilityRequest(opts: ExecuteRequestOptions): Promise<ExecuteResult>;
|
|
4933
5081
|
|
|
5082
|
+
/**
|
|
5083
|
+
* Timeout hints published by a provider card/skill.
|
|
5084
|
+
*/
|
|
5085
|
+
interface RequestTimeoutHint {
|
|
5086
|
+
/** Typical expected duration from provider metadata. */
|
|
5087
|
+
expected_duration_ms?: number;
|
|
5088
|
+
/** Provider-declared hard timeout from provider metadata. */
|
|
5089
|
+
hard_timeout_ms?: number;
|
|
5090
|
+
}
|
|
4934
5091
|
/**
|
|
4935
5092
|
* Options for requesting a capability via WebSocket relay.
|
|
4936
5093
|
*/
|
|
4937
5094
|
interface RelayRequestOptions {
|
|
4938
5095
|
/** Target agent owner to relay the request to. */
|
|
4939
5096
|
targetOwner: string;
|
|
5097
|
+
/** Canonical target agent identity. Preferred for routing when available. */
|
|
5098
|
+
targetAgentId?: string;
|
|
4940
5099
|
/** Capability Card ID to execute. */
|
|
4941
5100
|
cardId: string;
|
|
4942
5101
|
/** Optional skill ID within the card. */
|
|
@@ -4945,8 +5104,10 @@ interface RelayRequestOptions {
|
|
|
4945
5104
|
params?: Record<string, unknown>;
|
|
4946
5105
|
/** Signed escrow receipt for cross-machine credit verification. */
|
|
4947
5106
|
escrowReceipt?: EscrowReceipt;
|
|
4948
|
-
/** Timeout in milliseconds.
|
|
5107
|
+
/** Timeout in milliseconds. Explicit override when provided. */
|
|
4949
5108
|
timeoutMs?: number;
|
|
5109
|
+
/** Provider timeout metadata used to derive default timeout when timeoutMs is omitted. */
|
|
5110
|
+
timeoutHint?: RequestTimeoutHint;
|
|
4950
5111
|
/** Actual requester owner for credit tracking (defaults to relay client's owner). */
|
|
4951
5112
|
requester?: string;
|
|
4952
5113
|
}
|