agentbnb 8.2.1 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-7Q2XUXSA.js → chunk-4IPJJRTP.js} +1 -1
- package/dist/{chunk-EZVOG7QS.js → chunk-CKOOVZOI.js} +15 -18
- package/dist/chunk-CQFBNTGT.js +145 -0
- package/dist/{chunk-WKWJWKX7.js → chunk-DYQOFGGI.js} +155 -445
- package/dist/{chunk-NP55V7RQ.js → chunk-EG6RS4JC.js} +70 -46
- package/dist/{chunk-KBQNTUTN.js → chunk-LKLKYXLV.js} +1 -1
- package/dist/{chunk-STJLWMXH.js → chunk-MCED4GDW.js} +467 -98
- package/dist/{chunk-GWMMYVLL.js → chunk-MWOXW7JQ.js} +7 -7
- package/dist/{chunk-GJETGML6.js → chunk-QCGIG7WW.js} +4 -6
- package/dist/{chunk-UYCD3JBZ.js → chunk-QHZGOG3O.js} +148 -46
- package/dist/{chunk-JLNHMNES.js → chunk-RYISHSHB.js} +286 -1
- package/dist/{chunk-SRBVKO2V.js → chunk-S3V6R3EN.js} +66 -39
- package/dist/{chunk-RBXTWWUH.js → chunk-WNXXLCV5.js} +1 -1
- package/dist/{chunk-LOUEJI6X.js → chunk-XBGVQMQJ.js} +71 -47
- package/dist/{chunk-DEWY7OQK.js → chunk-Z2GEFFDO.js} +1 -1
- package/dist/cli/index.js +25 -28
- package/dist/{client-66TFS7RS.js → client-XOLP5IUZ.js} +1 -1
- package/dist/{conduct-A6COHLHY.js → conduct-AZFLNUX3.js} +9 -10
- package/dist/{conduct-IUVAXUAV.js → conduct-VPUYTNEA.js} +9 -10
- package/dist/{conductor-mode-L2MB44BW.js → conductor-mode-PLTB6MS3.js} +6 -7
- package/dist/{conductor-mode-D5TFQW5L.js → conductor-mode-WKB42PYM.js} +6 -3
- package/dist/{execute-WOS457HW.js → execute-NNDCXTN4.js} +3 -2
- package/dist/{execute-5AWLARB5.js → execute-RIRHTIBU.js} +5 -4
- package/dist/index.d.ts +5069 -0
- package/dist/index.js +208 -610
- package/dist/{publish-capability-JJCBBMSX.js → publish-capability-QDR2QIZ2.js} +2 -2
- package/dist/{request-6YQLA7K3.js → request-NX7GSPIG.js} +30 -40
- package/dist/{serve-skill-X7TZSILV.js → serve-skill-E6EJQYAK.js} +9 -8
- package/dist/{server-5TSP4DBX.js → server-VBCT32FC.js} +10 -14
- package/dist/{service-coordinator-WTUSMPY6.js → service-coordinator-KMSA6BST.js} +77 -32
- package/dist/skills/agentbnb/bootstrap.js +113 -69
- package/package.json +1 -1
- package/dist/chunk-BZOJ7HBT.js +0 -170
- package/dist/chunk-KF3TZHA5.js +0 -91
|
@@ -315,7 +315,10 @@ var V2_FTS_TRIGGERS = `
|
|
|
315
315
|
new.id,
|
|
316
316
|
new.owner,
|
|
317
317
|
COALESCE(
|
|
318
|
-
(SELECT group_concat(
|
|
318
|
+
(SELECT group_concat(
|
|
319
|
+
COALESCE(json_extract(value, '$.id'), '') || ' ' || COALESCE(json_extract(value, '$.name'), ''),
|
|
320
|
+
' '
|
|
321
|
+
)
|
|
319
322
|
FROM json_each(json_extract(new.data, '$.skills'))),
|
|
320
323
|
json_extract(new.data, '$.name'),
|
|
321
324
|
''
|
|
@@ -355,7 +358,10 @@ var V2_FTS_TRIGGERS = `
|
|
|
355
358
|
old.id,
|
|
356
359
|
old.owner,
|
|
357
360
|
COALESCE(
|
|
358
|
-
(SELECT group_concat(
|
|
361
|
+
(SELECT group_concat(
|
|
362
|
+
COALESCE(json_extract(value, '$.id'), '') || ' ' || COALESCE(json_extract(value, '$.name'), ''),
|
|
363
|
+
' '
|
|
364
|
+
)
|
|
359
365
|
FROM json_each(json_extract(old.data, '$.skills'))),
|
|
360
366
|
json_extract(old.data, '$.name'),
|
|
361
367
|
''
|
|
@@ -391,7 +397,10 @@ var V2_FTS_TRIGGERS = `
|
|
|
391
397
|
new.id,
|
|
392
398
|
new.owner,
|
|
393
399
|
COALESCE(
|
|
394
|
-
(SELECT group_concat(
|
|
400
|
+
(SELECT group_concat(
|
|
401
|
+
COALESCE(json_extract(value, '$.id'), '') || ' ' || COALESCE(json_extract(value, '$.name'), ''),
|
|
402
|
+
' '
|
|
403
|
+
)
|
|
395
404
|
FROM json_each(json_extract(new.data, '$.skills'))),
|
|
396
405
|
json_extract(new.data, '$.name'),
|
|
397
406
|
''
|
|
@@ -431,7 +440,10 @@ var V2_FTS_TRIGGERS = `
|
|
|
431
440
|
old.id,
|
|
432
441
|
old.owner,
|
|
433
442
|
COALESCE(
|
|
434
|
-
(SELECT group_concat(
|
|
443
|
+
(SELECT group_concat(
|
|
444
|
+
COALESCE(json_extract(value, '$.id'), '') || ' ' || COALESCE(json_extract(value, '$.name'), ''),
|
|
445
|
+
' '
|
|
446
|
+
)
|
|
435
447
|
FROM json_each(json_extract(old.data, '$.skills'))),
|
|
436
448
|
json_extract(old.data, '$.name'),
|
|
437
449
|
''
|
|
@@ -518,6 +530,10 @@ function runMigrations(db) {
|
|
|
518
530
|
const version = db.pragma("user_version")[0]?.user_version ?? 0;
|
|
519
531
|
if (version < 2) {
|
|
520
532
|
migrateV1toV2(db);
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
if (version < 3) {
|
|
536
|
+
migrateV2toV3(db);
|
|
521
537
|
}
|
|
522
538
|
}
|
|
523
539
|
function migrateV1toV2(db) {
|
|
@@ -559,44 +575,55 @@ function migrateV1toV2(db) {
|
|
|
559
575
|
);
|
|
560
576
|
}
|
|
561
577
|
db.exec(V2_FTS_TRIGGERS);
|
|
562
|
-
db
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
let tags;
|
|
573
|
-
if (skills.length > 0) {
|
|
574
|
-
name = skills.map((s) => String(s["name"] ?? "")).join(" ");
|
|
575
|
-
description = skills.map((s) => String(s["description"] ?? "")).join(" ");
|
|
576
|
-
tags = [
|
|
577
|
-
// tags from metadata.tags[]
|
|
578
|
-
...skills.flatMap((s) => {
|
|
579
|
-
const meta = s["metadata"];
|
|
580
|
-
return meta?.["tags"] ?? [];
|
|
581
|
-
}),
|
|
582
|
-
// capability_type (singular)
|
|
583
|
-
...skills.map((s) => s["capability_type"]).filter((v) => typeof v === "string" && v.length > 0),
|
|
584
|
-
// capability_types[] (plural)
|
|
585
|
-
...skills.flatMap((s) => s["capability_types"] ?? [])
|
|
586
|
-
].join(" ");
|
|
587
|
-
} else {
|
|
588
|
-
name = String(data["name"] ?? "");
|
|
589
|
-
description = String(data["description"] ?? "");
|
|
590
|
-
const meta = data["metadata"];
|
|
591
|
-
const rawTags = meta?.["tags"] ?? [];
|
|
592
|
-
tags = rawTags.join(" ");
|
|
593
|
-
}
|
|
594
|
-
ftsInsert.run(row.rowid, row.id, row.owner, name, description, tags);
|
|
595
|
-
}
|
|
596
|
-
db.pragma("user_version = 2");
|
|
578
|
+
rebuildCardsFts(db);
|
|
579
|
+
db.pragma("user_version = 3");
|
|
580
|
+
});
|
|
581
|
+
migrate();
|
|
582
|
+
}
|
|
583
|
+
function migrateV2toV3(db) {
|
|
584
|
+
const migrate = db.transaction(() => {
|
|
585
|
+
db.exec(V2_FTS_TRIGGERS);
|
|
586
|
+
rebuildCardsFts(db);
|
|
587
|
+
db.pragma("user_version = 3");
|
|
597
588
|
});
|
|
598
589
|
migrate();
|
|
599
590
|
}
|
|
591
|
+
function rebuildCardsFts(db) {
|
|
592
|
+
db.exec(`INSERT INTO cards_fts(cards_fts) VALUES('delete-all')`);
|
|
593
|
+
const allRows = db.prepare("SELECT rowid, id, owner, data FROM capability_cards").all();
|
|
594
|
+
const ftsInsert = db.prepare(
|
|
595
|
+
"INSERT INTO cards_fts(rowid, id, owner, name, description, tags) VALUES (?, ?, ?, ?, ?, ?)"
|
|
596
|
+
);
|
|
597
|
+
for (const row of allRows) {
|
|
598
|
+
const data = JSON.parse(row.data);
|
|
599
|
+
const skills = data["skills"] ?? [];
|
|
600
|
+
let name;
|
|
601
|
+
let description;
|
|
602
|
+
let tags;
|
|
603
|
+
if (skills.length > 0) {
|
|
604
|
+
name = skills.map((s) => `${String(s["id"] ?? "")} ${String(s["name"] ?? "")}`.trim()).join(" ");
|
|
605
|
+
description = skills.map((s) => String(s["description"] ?? "")).join(" ");
|
|
606
|
+
tags = [
|
|
607
|
+
// tags from metadata.tags[]
|
|
608
|
+
...skills.flatMap((s) => {
|
|
609
|
+
const meta = s["metadata"];
|
|
610
|
+
return meta?.["tags"] ?? [];
|
|
611
|
+
}),
|
|
612
|
+
// capability_type (singular)
|
|
613
|
+
...skills.map((s) => s["capability_type"]).filter((v) => typeof v === "string" && v.length > 0),
|
|
614
|
+
// capability_types[] (plural)
|
|
615
|
+
...skills.flatMap((s) => s["capability_types"] ?? [])
|
|
616
|
+
].join(" ");
|
|
617
|
+
} else {
|
|
618
|
+
name = String(data["name"] ?? "");
|
|
619
|
+
description = String(data["description"] ?? "");
|
|
620
|
+
const meta = data["metadata"];
|
|
621
|
+
const rawTags = meta?.["tags"] ?? [];
|
|
622
|
+
tags = rawTags.join(" ");
|
|
623
|
+
}
|
|
624
|
+
ftsInsert.run(row.rowid, row.id, row.owner, name, description, tags);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
600
627
|
function insertCard(db, card) {
|
|
601
628
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
602
629
|
const withTimestamps = { ...card, created_at: card.created_at ?? now, updated_at: now };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
settleProviderEarning
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WNXXLCV5.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveTargetCapability
|
|
6
|
+
} from "./chunk-CQFBNTGT.js";
|
|
4
7
|
import {
|
|
5
8
|
getBalance,
|
|
6
9
|
holdEscrow,
|
|
7
10
|
releaseEscrow,
|
|
8
11
|
settleEscrow
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RYISHSHB.js";
|
|
10
13
|
import {
|
|
11
14
|
verifyEscrowReceipt
|
|
12
15
|
} from "./chunk-EJKW57ZV.js";
|
|
@@ -17,7 +20,7 @@ import {
|
|
|
17
20
|
getCard,
|
|
18
21
|
insertRequestLog,
|
|
19
22
|
updateReputation
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S3V6R3EN.js";
|
|
21
24
|
import {
|
|
22
25
|
AgentBnBError
|
|
23
26
|
} from "./chunk-WVY2W7AA.js";
|
|
@@ -272,8 +275,12 @@ async function executeCapabilityBatch(options) {
|
|
|
272
275
|
};
|
|
273
276
|
}
|
|
274
277
|
const executeItem = async (item, index) => {
|
|
275
|
-
const
|
|
276
|
-
|
|
278
|
+
const resolved = await resolveTargetCapability(item.skill_id, {
|
|
279
|
+
registryDb,
|
|
280
|
+
registryUrl: options.registryUrl,
|
|
281
|
+
onlineOnly: true
|
|
282
|
+
});
|
|
283
|
+
if (!resolved) {
|
|
277
284
|
return {
|
|
278
285
|
request_index: index,
|
|
279
286
|
status: "failed",
|
|
@@ -282,26 +289,11 @@ async function executeCapabilityBatch(options) {
|
|
|
282
289
|
error: `Card/skill not found: ${item.skill_id}`
|
|
283
290
|
};
|
|
284
291
|
}
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
const skill = v2card.skills[0];
|
|
291
|
-
if (!skill) {
|
|
292
|
-
return {
|
|
293
|
-
request_index: index,
|
|
294
|
-
status: "failed",
|
|
295
|
-
credits_spent: 0,
|
|
296
|
-
credits_refunded: 0,
|
|
297
|
-
error: `No skills defined on card: ${item.skill_id}`
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
creditsNeeded = skill.pricing.credits_per_call;
|
|
301
|
-
resolvedSkillId = skill.id;
|
|
302
|
-
} else {
|
|
303
|
-
creditsNeeded = card.pricing.credits_per_call;
|
|
304
|
-
}
|
|
292
|
+
const localCard = getCard(registryDb, resolved.cardId);
|
|
293
|
+
const localCardRaw = localCard;
|
|
294
|
+
const cardName = typeof localCardRaw?.["name"] === "string" ? localCardRaw["name"] : typeof localCardRaw?.["agent_name"] === "string" ? localCardRaw["agent_name"] : resolved.cardId;
|
|
295
|
+
const creditsNeeded = resolved.credits_per_call;
|
|
296
|
+
const resolvedSkillId = resolved.skillId;
|
|
305
297
|
if (creditsNeeded > item.max_credits) {
|
|
306
298
|
return {
|
|
307
299
|
request_index: index,
|
|
@@ -323,7 +315,7 @@ async function executeCapabilityBatch(options) {
|
|
|
323
315
|
error: "Insufficient credits"
|
|
324
316
|
};
|
|
325
317
|
}
|
|
326
|
-
escrowId = holdEscrow(creditDb, owner, creditsNeeded,
|
|
318
|
+
escrowId = holdEscrow(creditDb, owner, creditsNeeded, resolved.cardId);
|
|
327
319
|
} catch (err) {
|
|
328
320
|
const msg = err instanceof AgentBnBError ? err.message : "Failed to hold escrow";
|
|
329
321
|
return {
|
|
@@ -335,30 +327,62 @@ async function executeCapabilityBatch(options) {
|
|
|
335
327
|
};
|
|
336
328
|
}
|
|
337
329
|
const startMs = Date.now();
|
|
338
|
-
const latencyMs = Date.now() - startMs;
|
|
339
|
-
settleEscrow(creditDb, escrowId, card.owner);
|
|
340
|
-
updateReputation(registryDb, card.id, true, latencyMs);
|
|
341
330
|
try {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
331
|
+
const result = options.dispatchRequest ? await options.dispatchRequest({
|
|
332
|
+
target: resolved,
|
|
333
|
+
params: item.params,
|
|
334
|
+
requester: owner
|
|
335
|
+
}) : { card_id: resolved.cardId, skill_id: resolvedSkillId };
|
|
336
|
+
const latencyMs = Date.now() - startMs;
|
|
337
|
+
settleEscrow(creditDb, escrowId, resolved.owner);
|
|
338
|
+
updateReputation(registryDb, resolved.cardId, true, latencyMs);
|
|
339
|
+
try {
|
|
340
|
+
insertRequestLog(registryDb, {
|
|
341
|
+
id: randomUUID(),
|
|
342
|
+
card_id: resolved.cardId,
|
|
343
|
+
card_name: cardName,
|
|
344
|
+
skill_id: resolvedSkillId,
|
|
345
|
+
requester: owner,
|
|
346
|
+
status: "success",
|
|
347
|
+
latency_ms: latencyMs,
|
|
348
|
+
credits_charged: creditsNeeded,
|
|
349
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
350
|
+
});
|
|
351
|
+
} catch {
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
request_index: index,
|
|
348
355
|
status: "success",
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
} catch {
|
|
356
|
+
result,
|
|
357
|
+
credits_spent: creditsNeeded,
|
|
358
|
+
credits_refunded: 0
|
|
359
|
+
};
|
|
360
|
+
} catch (err) {
|
|
361
|
+
releaseEscrow(creditDb, escrowId);
|
|
362
|
+
const latencyMs = Date.now() - startMs;
|
|
363
|
+
try {
|
|
364
|
+
insertRequestLog(registryDb, {
|
|
365
|
+
id: randomUUID(),
|
|
366
|
+
card_id: resolved.cardId,
|
|
367
|
+
card_name: cardName,
|
|
368
|
+
skill_id: resolvedSkillId,
|
|
369
|
+
requester: owner,
|
|
370
|
+
status: "failure",
|
|
371
|
+
latency_ms: latencyMs,
|
|
372
|
+
credits_charged: 0,
|
|
373
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
374
|
+
failure_reason: "not_found"
|
|
375
|
+
});
|
|
376
|
+
} catch {
|
|
377
|
+
}
|
|
378
|
+
return {
|
|
379
|
+
request_index: index,
|
|
380
|
+
status: "failed",
|
|
381
|
+
credits_spent: 0,
|
|
382
|
+
credits_refunded: creditsNeeded,
|
|
383
|
+
error: err instanceof Error ? err.message : String(err)
|
|
384
|
+
};
|
|
354
385
|
}
|
|
355
|
-
return {
|
|
356
|
-
request_index: index,
|
|
357
|
-
status: "success",
|
|
358
|
-
result: { card_id: card.id, skill_id: resolvedSkillId },
|
|
359
|
-
credits_spent: creditsNeeded,
|
|
360
|
-
credits_refunded: 0
|
|
361
|
-
};
|
|
362
386
|
};
|
|
363
387
|
let results;
|
|
364
388
|
if (strategy === "sequential") {
|
package/dist/cli/index.js
CHANGED
|
@@ -7,50 +7,44 @@ import {
|
|
|
7
7
|
discoverLocalAgents,
|
|
8
8
|
getPricingStats,
|
|
9
9
|
resolveSelfCli
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import {
|
|
12
|
-
releaseRequesterEscrow,
|
|
13
|
-
settleRequesterEscrow
|
|
14
|
-
} from "../chunk-RBXTWWUH.js";
|
|
10
|
+
} from "../chunk-Z2GEFFDO.js";
|
|
15
11
|
import {
|
|
16
12
|
createLedger,
|
|
17
13
|
ensureIdentity,
|
|
18
14
|
loadOrRepairIdentity
|
|
19
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-LKLKYXLV.js";
|
|
20
16
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
releaseRequesterEscrow,
|
|
18
|
+
settleRequesterEscrow
|
|
19
|
+
} from "../chunk-WNXXLCV5.js";
|
|
23
20
|
import {
|
|
24
21
|
AutoRequestor,
|
|
25
22
|
BudgetManager,
|
|
26
23
|
DEFAULT_BUDGET_CONFIG
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import {
|
|
29
|
-
fetchRemoteCards,
|
|
30
|
-
mergeResults
|
|
31
|
-
} from "../chunk-KF3TZHA5.js";
|
|
24
|
+
} from "../chunk-QHZGOG3O.js";
|
|
32
25
|
import {
|
|
33
26
|
DEFAULT_AUTONOMY_CONFIG
|
|
34
27
|
} from "../chunk-GKVTD4EZ.js";
|
|
35
|
-
import
|
|
36
|
-
filterCards,
|
|
37
|
-
searchCards
|
|
38
|
-
} from "../chunk-BZOJ7HBT.js";
|
|
28
|
+
import "../chunk-CQFBNTGT.js";
|
|
39
29
|
import {
|
|
40
30
|
bootstrapAgent,
|
|
41
31
|
createAgentRecord,
|
|
32
|
+
fetchRemoteCards,
|
|
33
|
+
filterCards,
|
|
42
34
|
getBalance,
|
|
43
35
|
getTransactions,
|
|
44
36
|
holdEscrow,
|
|
45
37
|
lookupAgent,
|
|
46
38
|
lookupAgentByOwner,
|
|
39
|
+
mergeResults,
|
|
47
40
|
migrateOwner,
|
|
48
|
-
openCreditDb
|
|
49
|
-
|
|
41
|
+
openCreditDb,
|
|
42
|
+
searchCards
|
|
43
|
+
} from "../chunk-RYISHSHB.js";
|
|
50
44
|
import "../chunk-NWIQJ2CL.js";
|
|
51
45
|
import {
|
|
52
46
|
requestCapability
|
|
53
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-CKOOVZOI.js";
|
|
54
48
|
import {
|
|
55
49
|
generateKeyPair,
|
|
56
50
|
loadKeyPair,
|
|
@@ -68,13 +62,16 @@ import {
|
|
|
68
62
|
loadConfig,
|
|
69
63
|
saveConfig
|
|
70
64
|
} from "../chunk-75OC6E4F.js";
|
|
65
|
+
import {
|
|
66
|
+
parseSoulMd
|
|
67
|
+
} from "../chunk-4IPJJRTP.js";
|
|
71
68
|
import {
|
|
72
69
|
deleteCard,
|
|
73
70
|
getCard,
|
|
74
71
|
insertCard,
|
|
75
72
|
listCards,
|
|
76
73
|
openDatabase
|
|
77
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-S3V6R3EN.js";
|
|
78
75
|
import {
|
|
79
76
|
AgentBnBError,
|
|
80
77
|
AnyCardSchema,
|
|
@@ -922,7 +919,7 @@ Skills: ${skills.skillCount} skill(s) in ${skills.path}`);
|
|
|
922
919
|
if (!skipServe) {
|
|
923
920
|
try {
|
|
924
921
|
const { ProcessGuard } = await import("../process-guard-GH5LRNWO.js");
|
|
925
|
-
const { ServiceCoordinator } = await import("../service-coordinator-
|
|
922
|
+
const { ServiceCoordinator } = await import("../service-coordinator-KMSA6BST.js");
|
|
926
923
|
const guard = new ProcessGuard(join3(initResult.configDir, ".pid"));
|
|
927
924
|
const coordinator = new ServiceCoordinator(initResult.config, guard);
|
|
928
925
|
const result = await coordinator.ensureRunning({
|
|
@@ -984,7 +981,7 @@ Skills: ${skills.skillCount} skill(s) in ${skills.path}`);
|
|
|
984
981
|
}
|
|
985
982
|
|
|
986
983
|
// src/cli/index.ts
|
|
987
|
-
var VERSION = "8.2.
|
|
984
|
+
var VERSION = "8.2.2";
|
|
988
985
|
function loadIdentityAuth2(owner) {
|
|
989
986
|
const configDir = getConfigDir();
|
|
990
987
|
let keys;
|
|
@@ -1165,7 +1162,7 @@ program.command("publish-skills").description("Publish capabilities from skills.
|
|
|
1165
1162
|
process.exit(1);
|
|
1166
1163
|
}
|
|
1167
1164
|
const { parseSkillsFile } = await import("../skill-config-FETXPNVP.js");
|
|
1168
|
-
const { skillConfigToSkill } = await import("../publish-capability-
|
|
1165
|
+
const { skillConfigToSkill } = await import("../publish-capability-QDR2QIZ2.js");
|
|
1169
1166
|
const skillsPath = typeof opts.fromSkills === "string" ? opts.fromSkills : "./skills.yaml";
|
|
1170
1167
|
let yamlContent;
|
|
1171
1168
|
try {
|
|
@@ -1699,7 +1696,7 @@ Batch Results (${res.results.length} items):`);
|
|
|
1699
1696
|
};
|
|
1700
1697
|
const tryViaRelay = async () => {
|
|
1701
1698
|
const { RelayClient } = await import("../websocket-client-QOVARTRN.js");
|
|
1702
|
-
const { requestViaRelay } = await import("../client-
|
|
1699
|
+
const { requestViaRelay } = await import("../client-XOLP5IUZ.js");
|
|
1703
1700
|
const requesterId = `${config.owner}:req:${randomUUID4()}`;
|
|
1704
1701
|
const tempRelay = new RelayClient({
|
|
1705
1702
|
registryUrl: config.registry,
|
|
@@ -1829,7 +1826,7 @@ program.command("serve").description("Start the AgentBnB gateway server").option
|
|
|
1829
1826
|
process.exit(1);
|
|
1830
1827
|
}
|
|
1831
1828
|
const { ProcessGuard } = await import("../process-guard-GH5LRNWO.js");
|
|
1832
|
-
const { ServiceCoordinator } = await import("../service-coordinator-
|
|
1829
|
+
const { ServiceCoordinator } = await import("../service-coordinator-KMSA6BST.js");
|
|
1833
1830
|
const port = opts.port ? parseInt(opts.port, 10) : config.gateway_port;
|
|
1834
1831
|
const registryPort = parseInt(opts.registryPort, 10);
|
|
1835
1832
|
if (!Number.isFinite(port) || !Number.isFinite(registryPort)) {
|
|
@@ -2203,7 +2200,7 @@ openclaw.command("rules").description("Print HEARTBEAT.md rules block (or inject
|
|
|
2203
2200
|
}
|
|
2204
2201
|
});
|
|
2205
2202
|
program.command("conduct <task>").description("Orchestrate a complex task across the AgentBnB network").option("--plan-only", "Show execution plan without executing").option("--max-budget <credits>", "Maximum credits to spend", "100").option("--json", "Output as JSON").action(async (task, opts) => {
|
|
2206
|
-
const { conductAction } = await import("../conduct-
|
|
2203
|
+
const { conductAction } = await import("../conduct-VPUYTNEA.js");
|
|
2207
2204
|
const result = await conductAction(task, opts);
|
|
2208
2205
|
if (opts.json) {
|
|
2209
2206
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -2315,7 +2312,7 @@ Feedback for skill: ${opts.skill} (${feedbacks.length} entries)
|
|
|
2315
2312
|
});
|
|
2316
2313
|
program.command("quickstart").alias("qs").description("One-command setup: init + skills.yaml + MCP registration + serve daemon").option("--owner <name>", "Agent owner name").option("--port <port>", "Gateway port", "7700").option("--no-serve", "Skip starting background daemon").option("--no-mcp", "Skip MCP registration with Claude Code").option("--json", "Output as JSON").action(runQuickstart);
|
|
2317
2314
|
program.command("mcp-server").description("Start an MCP (Model Context Protocol) server for IDE integration").action(async () => {
|
|
2318
|
-
const { startMcpServer } = await import("../server-
|
|
2315
|
+
const { startMcpServer } = await import("../server-VBCT32FC.js");
|
|
2319
2316
|
await startMcpServer();
|
|
2320
2317
|
});
|
|
2321
2318
|
await program.parseAsync(process.argv);
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
conductAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-SSK653A6.js";
|
|
6
|
-
import "./chunk-GJETGML6.js";
|
|
3
|
+
} from "./chunk-MWOXW7JQ.js";
|
|
4
|
+
import "./chunk-QCGIG7WW.js";
|
|
7
5
|
import "./chunk-3MJT4PZG.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-KF3TZHA5.js";
|
|
6
|
+
import "./chunk-QHZGOG3O.js";
|
|
10
7
|
import "./chunk-GKVTD4EZ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CQFBNTGT.js";
|
|
9
|
+
import "./chunk-RYISHSHB.js";
|
|
13
10
|
import "./chunk-NWIQJ2CL.js";
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CKOOVZOI.js";
|
|
15
12
|
import "./chunk-EJKW57ZV.js";
|
|
16
13
|
import "./chunk-5AH3CMOX.js";
|
|
17
14
|
import "./chunk-75OC6E4F.js";
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-Z4MCGKTL.js";
|
|
16
|
+
import "./chunk-SSK653A6.js";
|
|
17
|
+
import "./chunk-S3V6R3EN.js";
|
|
19
18
|
import "./chunk-WVY2W7AA.js";
|
|
20
19
|
|
|
21
20
|
// src/mcp/tools/conduct.ts
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
conductAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-SSK653A6.js";
|
|
6
|
-
import "./chunk-GJETGML6.js";
|
|
3
|
+
} from "./chunk-MWOXW7JQ.js";
|
|
4
|
+
import "./chunk-QCGIG7WW.js";
|
|
7
5
|
import "./chunk-3MJT4PZG.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-KF3TZHA5.js";
|
|
6
|
+
import "./chunk-QHZGOG3O.js";
|
|
10
7
|
import "./chunk-GKVTD4EZ.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CQFBNTGT.js";
|
|
9
|
+
import "./chunk-RYISHSHB.js";
|
|
13
10
|
import "./chunk-NWIQJ2CL.js";
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CKOOVZOI.js";
|
|
15
12
|
import "./chunk-EJKW57ZV.js";
|
|
16
13
|
import "./chunk-5AH3CMOX.js";
|
|
17
14
|
import "./chunk-75OC6E4F.js";
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-Z4MCGKTL.js";
|
|
16
|
+
import "./chunk-SSK653A6.js";
|
|
17
|
+
import "./chunk-S3V6R3EN.js";
|
|
19
18
|
import "./chunk-WVY2W7AA.js";
|
|
20
19
|
export {
|
|
21
20
|
conductAction
|
|
@@ -4,26 +4,25 @@ import {
|
|
|
4
4
|
matchSubTasks,
|
|
5
5
|
orchestrate,
|
|
6
6
|
validateAndNormalizeSubtasks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QCGIG7WW.js";
|
|
8
8
|
import "./chunk-3MJT4PZG.js";
|
|
9
9
|
import {
|
|
10
10
|
BudgetManager
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-KF3TZHA5.js";
|
|
11
|
+
} from "./chunk-QHZGOG3O.js";
|
|
13
12
|
import "./chunk-GKVTD4EZ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-CQFBNTGT.js";
|
|
14
|
+
import "./chunk-RYISHSHB.js";
|
|
16
15
|
import "./chunk-NWIQJ2CL.js";
|
|
17
16
|
import {
|
|
18
17
|
requestCapability
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CKOOVZOI.js";
|
|
20
19
|
import "./chunk-EJKW57ZV.js";
|
|
21
20
|
import "./chunk-5AH3CMOX.js";
|
|
22
21
|
import "./chunk-75OC6E4F.js";
|
|
23
22
|
import {
|
|
24
23
|
getCardsByCapabilityType,
|
|
25
24
|
getCardsBySkillCapability
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S3V6R3EN.js";
|
|
27
26
|
import "./chunk-WVY2W7AA.js";
|
|
28
27
|
|
|
29
28
|
// src/conductor/team-formation.ts
|
|
@@ -4,15 +4,18 @@ import {
|
|
|
4
4
|
decompose,
|
|
5
5
|
matchSubTasks,
|
|
6
6
|
orchestrate,
|
|
7
|
-
requestCapability,
|
|
8
7
|
validateAndNormalizeSubtasks
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DYQOFGGI.js";
|
|
9
|
+
import {
|
|
10
|
+
requestCapability
|
|
11
|
+
} from "./chunk-CKOOVZOI.js";
|
|
10
12
|
import "./chunk-HLUEOLSZ.js";
|
|
11
13
|
import {
|
|
12
14
|
getCardsByCapabilityType,
|
|
13
15
|
getCardsBySkillCapability
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MCED4GDW.js";
|
|
15
17
|
import "./chunk-NWIQJ2CL.js";
|
|
18
|
+
import "./chunk-EJKW57ZV.js";
|
|
16
19
|
import "./chunk-IVOYM3WG.js";
|
|
17
20
|
import "./chunk-WVY2W7AA.js";
|
|
18
21
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCapabilityBatch,
|
|
3
3
|
executeCapabilityRequest
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-EG6RS4JC.js";
|
|
5
|
+
import "./chunk-MCED4GDW.js";
|
|
6
6
|
import "./chunk-NWIQJ2CL.js";
|
|
7
|
+
import "./chunk-EJKW57ZV.js";
|
|
7
8
|
import "./chunk-IVOYM3WG.js";
|
|
8
9
|
import "./chunk-WVY2W7AA.js";
|
|
9
10
|
export {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCapabilityBatch,
|
|
3
3
|
executeCapabilityRequest
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-XBGVQMQJ.js";
|
|
5
|
+
import "./chunk-WNXXLCV5.js";
|
|
6
|
+
import "./chunk-CQFBNTGT.js";
|
|
7
|
+
import "./chunk-RYISHSHB.js";
|
|
7
8
|
import "./chunk-NWIQJ2CL.js";
|
|
8
9
|
import "./chunk-EJKW57ZV.js";
|
|
9
10
|
import "./chunk-75OC6E4F.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-S3V6R3EN.js";
|
|
11
12
|
import "./chunk-WVY2W7AA.js";
|
|
12
13
|
export {
|
|
13
14
|
executeCapabilityBatch,
|