agentbnb 5.1.6 → 5.1.7

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.
@@ -149,7 +149,19 @@ async function executeCapabilityRequest(opts) {
149
149
  return { success: true, result: successResult };
150
150
  };
151
151
  if (skillExecutor) {
152
- const targetSkillId = resolvedSkillId ?? skillId ?? cardId;
152
+ let targetSkillId = resolvedSkillId ?? skillId;
153
+ if (!targetSkillId) {
154
+ const available = skillExecutor.listSkills();
155
+ if (available.length > 0) {
156
+ targetSkillId = available[0];
157
+ } else {
158
+ return handleFailure(
159
+ "failure",
160
+ Date.now() - startMs,
161
+ "No skill_id specified and no skills registered on this provider."
162
+ );
163
+ }
164
+ }
153
165
  try {
154
166
  const execResult = await skillExecutor.execute(targetSkillId, params, onProgress);
155
167
  if (!execResult.success) {
@@ -710,7 +710,19 @@ async function executeCapabilityRequest(opts) {
710
710
  return { success: true, result: successResult };
711
711
  };
712
712
  if (skillExecutor) {
713
- const targetSkillId = resolvedSkillId ?? skillId ?? cardId;
713
+ let targetSkillId = resolvedSkillId ?? skillId;
714
+ if (!targetSkillId) {
715
+ const available = skillExecutor.listSkills();
716
+ if (available.length > 0) {
717
+ targetSkillId = available[0];
718
+ } else {
719
+ return handleFailure(
720
+ "failure",
721
+ Date.now() - startMs,
722
+ "No skill_id specified and no skills registered on this provider."
723
+ );
724
+ }
725
+ }
714
726
  try {
715
727
  const execResult = await skillExecutor.execute(targetSkillId, params, onProgress);
716
728
  if (!execResult.success) {
package/dist/cli/index.js CHANGED
@@ -1559,7 +1559,7 @@ program.command("serve").description("Start the AgentBnB gateway server").option
1559
1559
  process.exit(1);
1560
1560
  }
1561
1561
  const { ProcessGuard } = await import("../process-guard-CC7CNRQJ.js");
1562
- const { ServiceCoordinator } = await import("../service-coordinator-JB6VM6SF.js");
1562
+ const { ServiceCoordinator } = await import("../service-coordinator-H53LPOB4.js");
1563
1563
  const port = opts.port ? parseInt(opts.port, 10) : config.gateway_port;
1564
1564
  const registryPort = parseInt(opts.registryPort, 10);
1565
1565
  if (!Number.isFinite(port) || !Number.isFinite(registryPort)) {
@@ -1928,7 +1928,7 @@ Feedback for skill: ${opts.skill} (${feedbacks.length} entries)
1928
1928
  }
1929
1929
  });
1930
1930
  program.command("mcp-server").description("Start an MCP (Model Context Protocol) server for IDE integration").action(async () => {
1931
- const { startMcpServer } = await import("../server-RKVZ4HXC.js");
1931
+ const { startMcpServer } = await import("../server-ARYOX2EE.js");
1932
1932
  await startMcpServer();
1933
1933
  });
1934
1934
  await program.parseAsync(process.argv);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeCapabilityBatch,
3
3
  executeCapabilityRequest
4
- } from "./chunk-ZZVFYYUA.js";
4
+ } from "./chunk-FQYADBO5.js";
5
5
  import "./chunk-UKT6H7YT.js";
6
6
  import "./chunk-DFBX3BBD.js";
7
7
  import "./chunk-EANI2N2V.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeCapabilityBatch,
3
3
  executeCapabilityRequest
4
- } from "./chunk-DC5AC6UA.js";
4
+ } from "./chunk-MU226LM7.js";
5
5
  import "./chunk-CRFCWD6V.js";
6
6
  import "./chunk-WGZ5AGOX.js";
7
7
  export {
package/dist/index.js CHANGED
@@ -1055,7 +1055,19 @@ async function executeCapabilityRequest(opts) {
1055
1055
  return { success: true, result: successResult };
1056
1056
  };
1057
1057
  if (skillExecutor) {
1058
- const targetSkillId = resolvedSkillId ?? skillId ?? cardId;
1058
+ let targetSkillId = resolvedSkillId ?? skillId;
1059
+ if (!targetSkillId) {
1060
+ const available = skillExecutor.listSkills();
1061
+ if (available.length > 0) {
1062
+ targetSkillId = available[0];
1063
+ } else {
1064
+ return handleFailure(
1065
+ "failure",
1066
+ Date.now() - startMs,
1067
+ "No skill_id specified and no skills registered on this provider."
1068
+ );
1069
+ }
1070
+ }
1059
1071
  try {
1060
1072
  const execResult = await skillExecutor.execute(targetSkillId, params, onProgress);
1061
1073
  if (!execResult.success) {
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-QT7TEVNV.js";
5
5
  import {
6
6
  executeCapabilityRequest
7
- } from "./chunk-ZZVFYYUA.js";
7
+ } from "./chunk-FQYADBO5.js";
8
8
  import "./chunk-UKT6H7YT.js";
9
9
  import {
10
10
  listCards,
@@ -277,7 +277,7 @@ async function startMcpServer() {
277
277
  registerPublishTool(server, ctx);
278
278
  const { registerRequestTool } = await import("./request-YOWPXVLQ.js");
279
279
  const { registerConductTool } = await import("./conduct-KM6ZNJGE.js");
280
- const { registerServeSkillTool } = await import("./serve-skill-EZSFLMAM.js");
280
+ const { registerServeSkillTool } = await import("./serve-skill-SDZHK2KG.js");
281
281
  registerRequestTool(server, ctx);
282
282
  registerConductTool(server, ctx);
283
283
  registerServeSkillTool(server, ctx);
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  executeCapabilityBatch,
43
43
  executeCapabilityRequest
44
- } from "./chunk-ZZVFYYUA.js";
44
+ } from "./chunk-FQYADBO5.js";
45
45
  import "./chunk-UKT6H7YT.js";
46
46
  import {
47
47
  getActivityFeed,
@@ -4593,7 +4593,7 @@ var ServiceCoordinator = class {
4593
4593
  }
4594
4594
  if (opts.registryUrl && opts.relay) {
4595
4595
  const { RelayClient } = await import("./websocket-client-6IIDGXKB.js");
4596
- const { executeCapabilityRequest: executeCapabilityRequest2 } = await import("./execute-RKBWFIDK.js");
4596
+ const { executeCapabilityRequest: executeCapabilityRequest2 } = await import("./execute-CB32MISD.js");
4597
4597
  const cards = listCards(this.runtime.registryDb, this.config.owner);
4598
4598
  const card = cards[0] ?? {
4599
4599
  id: randomUUID5(),
@@ -36,7 +36,7 @@ import {
36
36
  updateCard,
37
37
  updateSkillAvailability,
38
38
  updateSkillIdleRate
39
- } from "../../chunk-DC5AC6UA.js";
39
+ } from "../../chunk-MU226LM7.js";
40
40
  import {
41
41
  bootstrapAgent,
42
42
  generateKeyPair,
@@ -5431,7 +5431,7 @@ var ServiceCoordinator = class {
5431
5431
  }
5432
5432
  if (opts.registryUrl && opts.relay) {
5433
5433
  const { RelayClient: RelayClient2 } = await import("../../websocket-client-WRN3HO73.js");
5434
- const { executeCapabilityRequest: executeCapabilityRequest2 } = await import("../../execute-BH7A37T4.js");
5434
+ const { executeCapabilityRequest: executeCapabilityRequest2 } = await import("../../execute-LN7Q65J4.js");
5435
5435
  const cards = listCards(this.runtime.registryDb, this.config.owner);
5436
5436
  const card = cards[0] ?? {
5437
5437
  id: randomUUID6(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "5.1.6",
6
+ "version": "5.1.7",
7
7
  "description": "P2P Agent Capability Sharing Protocol — Airbnb for AI agent pipelines",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: "Requires Node.js >= 20 and pnpm. Designed for OpenClaw agents. Compatible with Claude Code, Gemini CLI, and other AgentSkills-compatible tools."
6
6
  metadata:
7
7
  author: "Cheng Wen Chen"
8
- version: "5.1.6"
8
+ version: "5.1.7"
9
9
  tags: "ai-agent-skill,claude-code,agent-skills,p2p,capability-sharing"
10
10
  ---
11
11