agentbnb 8.3.0 → 8.3.1

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.
@@ -328,10 +328,11 @@ async function verifyIdentity(request, reply, options) {
328
328
  return false;
329
329
  }
330
330
  const claimedRequester = extractClaimedRequester(request);
331
- if (claimedRequester) {
331
+ if (claimedRequester && knownAgent !== null) {
332
332
  const matchesAgentId = claimedRequester === agentId;
333
- const matchesLegacyOwner = knownAgent?.legacy_owner === claimedRequester;
334
- if (!matchesAgentId && !matchesLegacyOwner) {
333
+ const matchesDisplayName = knownAgent.display_name === claimedRequester;
334
+ const matchesLegacyOwner = knownAgent.legacy_owner === claimedRequester;
335
+ if (!matchesAgentId && !matchesDisplayName && !matchesLegacyOwner) {
335
336
  await reply.code(401).send({ error: "Identity does not match requester" });
336
337
  return false;
337
338
  }
package/dist/cli/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  createLedger,
13
13
  ensureIdentity,
14
14
  loadOrRepairIdentity
15
- } from "../chunk-74LZDEDT.js";
15
+ } from "../chunk-BARHNIKG.js";
16
16
  import {
17
17
  AutoRequestor,
18
18
  BudgetManager,
@@ -920,7 +920,7 @@ Skills: ${skills.skillCount} skill(s) in ${skills.path}`);
920
920
  if (!skipServe) {
921
921
  try {
922
922
  const { ProcessGuard } = await import("../process-guard-TNSUNHSR.js");
923
- const { ServiceCoordinator } = await import("../service-coordinator-RY5AKUZS.js");
923
+ const { ServiceCoordinator } = await import("../service-coordinator-SCP2YIFT.js");
924
924
  const guard = new ProcessGuard(join3(initResult.configDir, ".pid"));
925
925
  const coordinator = new ServiceCoordinator(initResult.config, guard);
926
926
  const result = await coordinator.ensureRunning({
@@ -982,7 +982,7 @@ Skills: ${skills.skillCount} skill(s) in ${skills.path}`);
982
982
  }
983
983
 
984
984
  // src/cli/index.ts
985
- var VERSION = true ? "8.3.0" : "0.0.0-dev";
985
+ var VERSION = true ? "8.3.1" : "0.0.0-dev";
986
986
  function loadIdentityAuth2(owner) {
987
987
  const configDir = getConfigDir();
988
988
  let keys;
@@ -1759,7 +1759,7 @@ program.command("serve").description("Start the AgentBnB gateway server").option
1759
1759
  process.exit(1);
1760
1760
  }
1761
1761
  const { ProcessGuard } = await import("../process-guard-TNSUNHSR.js");
1762
- const { ServiceCoordinator } = await import("../service-coordinator-RY5AKUZS.js");
1762
+ const { ServiceCoordinator } = await import("../service-coordinator-SCP2YIFT.js");
1763
1763
  const port = opts.port ? parseInt(opts.port, 10) : config.gateway_port;
1764
1764
  const registryPort = parseInt(opts.registryPort, 10);
1765
1765
  if (!Number.isFinite(port) || !Number.isFinite(registryPort)) {
@@ -2245,7 +2245,7 @@ Feedback for skill: ${opts.skill} (${feedbacks.length} entries)
2245
2245
  });
2246
2246
  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);
2247
2247
  program.command("mcp-server").description("Start an MCP (Model Context Protocol) server for IDE integration").action(async () => {
2248
- const { startMcpServer } = await import("../server-YV3XPTX5.js");
2248
+ const { startMcpServer } = await import("../server-YVLMQ2BO.js");
2249
2249
  await startMcpServer();
2250
2250
  });
2251
2251
  await program.parseAsync(process.argv);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLedger,
3
3
  ensureIdentity
4
- } from "./chunk-74LZDEDT.js";
4
+ } from "./chunk-BARHNIKG.js";
5
5
  import {
6
6
  fetchRemoteCards,
7
7
  getBalance,
@@ -248,7 +248,7 @@ function registerPublishTool(server, ctx) {
248
248
  }
249
249
 
250
250
  // src/mcp/server.ts
251
- var VERSION = true ? "8.3.0" : "0.0.0-dev";
251
+ var VERSION = true ? "8.3.1" : "0.0.0-dev";
252
252
  async function startMcpServer() {
253
253
  const config = loadConfig();
254
254
  if (!config) {
@@ -21,7 +21,7 @@ import {
21
21
  createLedger,
22
22
  deriveAgentId,
23
23
  identityAuthPlugin
24
- } from "./chunk-74LZDEDT.js";
24
+ } from "./chunk-BARHNIKG.js";
25
25
  import {
26
26
  DEFAULT_AUTONOMY_CONFIG,
27
27
  getAutonomyTier,
@@ -2042,10 +2042,11 @@ async function verifyIdentity(request, reply, options) {
2042
2042
  return false;
2043
2043
  }
2044
2044
  const claimedRequester = extractClaimedRequester(request);
2045
- if (claimedRequester) {
2045
+ if (claimedRequester && knownAgent !== null) {
2046
2046
  const matchesAgentId = claimedRequester === agentId;
2047
- const matchesLegacyOwner = knownAgent?.legacy_owner === claimedRequester;
2048
- if (!matchesAgentId && !matchesLegacyOwner) {
2047
+ const matchesDisplayName = knownAgent.display_name === claimedRequester;
2048
+ const matchesLegacyOwner = knownAgent.legacy_owner === claimedRequester;
2049
+ if (!matchesAgentId && !matchesDisplayName && !matchesLegacyOwner) {
2049
2050
  await reply.code(401).send({ error: "Identity does not match requester" });
2050
2051
  return false;
2051
2052
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "8.3.0",
6
+ "version": "8.3.1",
7
7
  "description": "P2P Agent Capability Sharing Protocol — Airbnb for AI agent pipelines",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",