@okxweb3/a2a-node 0.0.10 → 0.0.11-beta-5ac51a9b48-260619220443

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/cli.js CHANGED
@@ -7152,7 +7152,7 @@ function buildConnectParams(config, instanceId) {
7152
7152
  client: {
7153
7153
  id: "gateway-client",
7154
7154
  displayName: "okx-a2a-node",
7155
- version: "0.0.10",
7155
+ version: "0.0.11-beta-5ac51a9b48-260619220443",
7156
7156
  platform: "node",
7157
7157
  mode: "backend",
7158
7158
  instanceId
@@ -7163,7 +7163,7 @@ function buildConnectParams(config, instanceId) {
7163
7163
  commands: [],
7164
7164
  permissions: {},
7165
7165
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
7166
- userAgent: `okx-a2a-node/${"0.0.10"}`,
7166
+ userAgent: `okx-a2a-node/${"0.0.11-beta-5ac51a9b48-260619220443"}`,
7167
7167
  auth: {
7168
7168
  ...config.token ? { token: config.token } : {},
7169
7169
  ...config.password ? { password: config.password } : {}
@@ -7404,8 +7404,7 @@ function toOpenClawGatewaySessionKey(input) {
7404
7404
  return buildOpenClawGroupSessionKey(buildXmtpScopeKey({
7405
7405
  jobId: input.jobId || peer.jobId,
7406
7406
  myAgentId: input.myAgentId || peer.myAgentId,
7407
- toAgentId: input.toAgentId || peer.toAgentId,
7408
- groupId: input.groupId || "_"
7407
+ toAgentId: input.toAgentId || peer.toAgentId
7409
7408
  }));
7410
7409
  }
7411
7410
  return buildOpenClawGroupSessionKey(input.sessionKey);
@@ -7431,8 +7430,7 @@ function buildXmtpScopeKey(input) {
7431
7430
  const qs = new URLSearchParams({
7432
7431
  my: input.myAgentId,
7433
7432
  to: input.toAgentId,
7434
- job: input.jobId,
7435
- gid: input.groupId
7433
+ job: input.jobId
7436
7434
  });
7437
7435
  return `${XMTP_SCOPE_PREFIX}:${qs.toString()}`;
7438
7436
  }
@@ -23657,7 +23655,7 @@ var init_sentry_config = __esm({
23657
23655
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
23658
23656
  SENTRY_CONFIG = {
23659
23657
  projectName: "okx/openclaw-okx-a2a-extension",
23660
- release: "0.0.10",
23658
+ release: "0.0.11-beta-5ac51a9b48-260619220443",
23661
23659
  environment
23662
23660
  };
23663
23661
  }
@@ -90585,12 +90583,12 @@ async function runListenerWithLock(options, paths) {
90585
90583
  }));
90586
90584
  }
90587
90585
  });
90588
- service.setPluginVersion("0.0.10");
90586
+ service.setPluginVersion("0.0.11-beta-5ac51a9b48-260619220443");
90589
90587
  await service.init();
90590
90588
  const pluginVersionStatus = service.pluginVersionStatus;
90591
90589
  if (pluginVersionStatus.unavailable) {
90592
90590
  throw new Error(
90593
- `@okxweb3/a2a-node v${"0.0.10"} is below the required minimum v${pluginVersionStatus.minVersion}`
90591
+ `@okxweb3/a2a-node v${"0.0.11-beta-5ac51a9b48-260619220443"} is below the required minimum v${pluginVersionStatus.minVersion}`
90594
90592
  );
90595
90593
  }
90596
90594
  const systemConfig = service.getSystemConfig();
@@ -90608,7 +90606,7 @@ async function runListenerWithLock(options, paths) {
90608
90606
  onchainosAgentId: "*",
90609
90607
  reason: "system-config missing sentryDsn",
90610
90608
  pluginId: "@okxweb3/a2a-node",
90611
- pluginVersion: "0.0.10"
90609
+ pluginVersion: "0.0.11-beta-5ac51a9b48-260619220443"
90612
90610
  });
90613
90611
  }
90614
90612
  console.log(
@@ -91862,12 +91860,19 @@ function writeHermesRouteStore(path, store) {
91862
91860
  (0, import_node_fs15.renameSync)(tempPath, path);
91863
91861
  }
91864
91862
  function logHermesRouteBinding(event, fields) {
91863
+ if (!isHermesRouteBindingDebugEnabled()) {
91864
+ return;
91865
+ }
91865
91866
  console.error(JSON.stringify({
91866
91867
  component: "user_attention_cli",
91867
91868
  event,
91868
91869
  ...fields
91869
91870
  }));
91870
91871
  }
91872
+ function isHermesRouteBindingDebugEnabled() {
91873
+ const value = process.env.OKX_A2A_DEBUG_HERMES_ROUTE_BINDING ?? "";
91874
+ return value === "1" || value.toLowerCase() === "true";
91875
+ }
91871
91876
  function isRecord2(value) {
91872
91877
  return !!value && typeof value === "object" && !Array.isArray(value);
91873
91878
  }
@@ -92108,7 +92113,7 @@ Commands:
92108
92113
  delete (--session-key <key> | --job-id <id> [--to-agent-id <id>]) [--json]
92109
92114
  dispatch --job-id <id> [--session-agent-id <id>] [--message-id <id>] [--json]
92110
92115
  send (--session-key <key> | --job-id <id> [--to-agent-id <id>]) --content <text> [--agent-id <id>] [--message-id <id>] [--retry] [--json]
92111
- gen-key --job-id <id> --group-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
92116
+ gen-key --job-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
92112
92117
  `);
92113
92118
  }
92114
92119
  function printSessionSubcommandUsage(subcommand) {
@@ -92221,13 +92226,12 @@ Options:
92221
92226
  return true;
92222
92227
  }
92223
92228
  if (subcommand === "gen-key") {
92224
- console.log(`Usage: okx-a2a session gen-key --job-id <id> --group-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
92229
+ console.log(`Usage: okx-a2a session gen-key --job-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
92225
92230
 
92226
92231
  Generate a deterministic local session key.
92227
92232
 
92228
92233
  Options:
92229
92234
  --job-id <id> Job id.
92230
- --group-id <id> XMTP group id.
92231
92235
  --my-agent-id <id> Local agent id.
92232
92236
  --to-agent-id <id> Peer agent id.
92233
92237
  --my-xmtp-address <addr> Local XMTP address.
@@ -92551,7 +92555,6 @@ function resolveSendSessionTargets(parsed, store) {
92551
92555
  }
92552
92556
  function generateSessionKey(parsed) {
92553
92557
  const jobId = readRequiredOption3(parsed, "job-id");
92554
- const groupId = readRequiredOption3(parsed, "group-id");
92555
92558
  const myAgentId = parsed.options.get("my-agent-id");
92556
92559
  const toAgentId = parsed.options.get("to-agent-id");
92557
92560
  if (myAgentId || toAgentId) {
@@ -92568,8 +92571,7 @@ function generateSessionKey(parsed) {
92568
92571
  const qs = new URLSearchParams({
92569
92572
  my: myXmtpAddress,
92570
92573
  to: toXmtpAddress,
92571
- job: jobId,
92572
- gid: groupId
92574
+ job: jobId
92573
92575
  });
92574
92576
  return `okx-xmtp:${qs.toString()}`;
92575
92577
  }
@@ -93194,7 +93196,7 @@ function isPrereleaseVersion(version2) {
93194
93196
  }
93195
93197
  function getCurrentNodeCliVersion() {
93196
93198
  try {
93197
- return "0.0.10";
93199
+ return "0.0.11-beta-5ac51a9b48-260619220443";
93198
93200
  } catch {
93199
93201
  return null;
93200
93202
  }
@@ -93657,7 +93659,7 @@ init_task_config();
93657
93659
  init_sentry_logger();
93658
93660
  init_sentry_config();
93659
93661
  function printUsage2() {
93660
- console.log(`okx-a2a ${"0.0.10"}
93662
+ console.log(`okx-a2a ${"0.0.11-beta-5ac51a9b48-260619220443"}
93661
93663
 
93662
93664
  Usage:
93663
93665
  okx-a2a <command> [options]
@@ -93694,7 +93696,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
93694
93696
  `);
93695
93697
  }
93696
93698
  function printVersion() {
93697
- console.log("0.0.10");
93699
+ console.log("0.0.11-beta-5ac51a9b48-260619220443");
93698
93700
  }
93699
93701
  function printDaemonUsage() {
93700
93702
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status> [options]
@@ -93840,7 +93842,7 @@ Commands:
93840
93842
  delete (--session-key <key> | --job-id <id> [--to-agent-id <id>]) [--json]
93841
93843
  dispatch --job-id <id> [--session-agent-id <id>] [--message-id <id>] [--json]
93842
93844
  send (--session-key <key> | --job-id <id> [--to-agent-id <id>]) --content <text> [--agent-id <id>] [--message-id <id>] [--retry] [--json]
93843
- gen-key --job-id <id> --group-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
93845
+ gen-key --job-id <id> (--my-agent-id <id> --to-agent-id <id> | --my-xmtp-address <address> --to-xmtp-address <address>) [--json]
93844
93846
  `);
93845
93847
  }
93846
93848
  function printFileUsageProxy() {
package/dist/index.js CHANGED
@@ -85801,7 +85801,7 @@ function buildConnectParams(config, instanceId) {
85801
85801
  client: {
85802
85802
  id: "gateway-client",
85803
85803
  displayName: "okx-a2a-node",
85804
- version: "0.0.10",
85804
+ version: "0.0.11-beta-5ac51a9b48-260619220443",
85805
85805
  platform: "node",
85806
85806
  mode: "backend",
85807
85807
  instanceId
@@ -85812,7 +85812,7 @@ function buildConnectParams(config, instanceId) {
85812
85812
  commands: [],
85813
85813
  permissions: {},
85814
85814
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
85815
- userAgent: `okx-a2a-node/${"0.0.10"}`,
85815
+ userAgent: `okx-a2a-node/${"0.0.11-beta-5ac51a9b48-260619220443"}`,
85816
85816
  auth: {
85817
85817
  ...config.token ? { token: config.token } : {},
85818
85818
  ...config.password ? { password: config.password } : {}
@@ -85859,8 +85859,7 @@ function toOpenClawGatewaySessionKey(input) {
85859
85859
  return buildOpenClawGroupSessionKey(buildXmtpScopeKey({
85860
85860
  jobId: input.jobId || peer.jobId,
85861
85861
  myAgentId: input.myAgentId || peer.myAgentId,
85862
- toAgentId: input.toAgentId || peer.toAgentId,
85863
- groupId: input.groupId || "_"
85862
+ toAgentId: input.toAgentId || peer.toAgentId
85864
85863
  }));
85865
85864
  }
85866
85865
  return buildOpenClawGroupSessionKey(input.sessionKey);
@@ -85886,8 +85885,7 @@ function buildXmtpScopeKey(input) {
85886
85885
  const qs = new URLSearchParams({
85887
85886
  my: input.myAgentId,
85888
85887
  to: input.toAgentId,
85889
- job: input.jobId,
85890
- gid: input.groupId
85888
+ job: input.jobId
85891
85889
  });
85892
85890
  return `${XMTP_SCOPE_PREFIX}:${qs.toString()}`;
85893
85891
  }
@@ -89163,7 +89161,7 @@ function userWatchEventDeliveredSentryExtra(event) {
89163
89161
  var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
89164
89162
  var SENTRY_CONFIG = {
89165
89163
  projectName: "okx/openclaw-okx-a2a-extension",
89166
- release: "0.0.10",
89164
+ release: "0.0.11-beta-5ac51a9b48-260619220443",
89167
89165
  environment
89168
89166
  };
89169
89167
 
@@ -89282,12 +89280,12 @@ async function runListenerWithLock(options, paths) {
89282
89280
  }));
89283
89281
  }
89284
89282
  });
89285
- service.setPluginVersion("0.0.10");
89283
+ service.setPluginVersion("0.0.11-beta-5ac51a9b48-260619220443");
89286
89284
  await service.init();
89287
89285
  const pluginVersionStatus = service.pluginVersionStatus;
89288
89286
  if (pluginVersionStatus.unavailable) {
89289
89287
  throw new Error(
89290
- `@okxweb3/a2a-node v${"0.0.10"} is below the required minimum v${pluginVersionStatus.minVersion}`
89288
+ `@okxweb3/a2a-node v${"0.0.11-beta-5ac51a9b48-260619220443"} is below the required minimum v${pluginVersionStatus.minVersion}`
89291
89289
  );
89292
89290
  }
89293
89291
  const systemConfig = service.getSystemConfig();
@@ -89305,7 +89303,7 @@ async function runListenerWithLock(options, paths) {
89305
89303
  onchainosAgentId: "*",
89306
89304
  reason: "system-config missing sentryDsn",
89307
89305
  pluginId: "@okxweb3/a2a-node",
89308
- pluginVersion: "0.0.10"
89306
+ pluginVersion: "0.0.11-beta-5ac51a9b48-260619220443"
89309
89307
  });
89310
89308
  }
89311
89309
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.0.10",
3
+ "version": "0.0.11-beta-5ac51a9b48-260619220443",
4
4
  "description": "Host-agnostic Node CLI for E2E encrypted agent-to-agent communication via XMTP",
5
5
  "main": "dist/index.js",
6
6
  "bin": {