@okxweb3/a2a-node 0.0.17-beta-db5dca184d-260624232430 → 0.0.17

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.
Files changed (3) hide show
  1. package/dist/cli.js +17 -16
  2. package/dist/index.js +13 -12
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7551,7 +7551,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
7551
7551
  client: {
7552
7552
  id: "gateway-client",
7553
7553
  displayName: "okx-a2a-node",
7554
- version: "0.0.17-beta-db5dca184d-260624232430",
7554
+ version: "0.0.17",
7555
7555
  platform: "node",
7556
7556
  mode: "backend",
7557
7557
  instanceId
@@ -7562,7 +7562,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
7562
7562
  commands: [],
7563
7563
  permissions: {},
7564
7564
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
7565
- userAgent: `okx-a2a-node/${"0.0.17-beta-db5dca184d-260624232430"}`,
7565
+ userAgent: `okx-a2a-node/${"0.0.17"}`,
7566
7566
  auth: {
7567
7567
  ...config.token ? { token: config.token } : {},
7568
7568
  ...config.password ? { password: config.password } : {}
@@ -24708,7 +24708,7 @@ var init_sentry_config = __esm({
24708
24708
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
24709
24709
  SENTRY_CONFIG = {
24710
24710
  projectName: "okx/openclaw-okx-a2a-extension",
24711
- release: "0.0.17-beta-db5dca184d-260624232430",
24711
+ release: "0.0.17",
24712
24712
  environment
24713
24713
  };
24714
24714
  }
@@ -92460,12 +92460,12 @@ async function runListenerWithLock(options, paths) {
92460
92460
  }));
92461
92461
  }
92462
92462
  });
92463
- service.setPluginVersion("0.0.17-beta-db5dca184d-260624232430");
92463
+ service.setPluginVersion("0.0.17");
92464
92464
  await service.init();
92465
92465
  const pluginVersionStatus = service.pluginVersionStatus;
92466
92466
  if (pluginVersionStatus.unavailable) {
92467
92467
  throw new Error(
92468
- `@okxweb3/a2a-node v${"0.0.17-beta-db5dca184d-260624232430"} is below the required minimum v${pluginVersionStatus.minVersion}`
92468
+ `@okxweb3/a2a-node v${"0.0.17"} is below the required minimum v${pluginVersionStatus.minVersion}`
92469
92469
  );
92470
92470
  }
92471
92471
  const systemConfig = service.getSystemConfig();
@@ -92483,7 +92483,7 @@ async function runListenerWithLock(options, paths) {
92483
92483
  onchainosAgentId: "*",
92484
92484
  reason: "system-config missing sentryDsn",
92485
92485
  pluginId: "@okxweb3/a2a-node",
92486
- pluginVersion: "0.0.17-beta-db5dca184d-260624232430"
92486
+ pluginVersion: "0.0.17"
92487
92487
  });
92488
92488
  }
92489
92489
  logWithTimestamp(
@@ -95482,7 +95482,7 @@ async function getCurrentNodeCliVersion() {
95482
95482
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
95483
95483
  }
95484
95484
  function getBundledNodeCliVersion() {
95485
- return true ? "0.0.17-beta-db5dca184d-260624232430" : null;
95485
+ return true ? "0.0.17" : null;
95486
95486
  }
95487
95487
  function readConfiguredAiProvider() {
95488
95488
  const explicit = process.env.OKX_AGENT_TASK_AI_CLI ?? process.env.OKX_A2A_AI_PROVIDER;
@@ -95566,12 +95566,12 @@ async function updateOpenClaw(release, options) {
95566
95566
  }
95567
95567
  async function ensureOpenClawOkxA2aPluginConfig() {
95568
95568
  try {
95569
- const enabled = await getOpenClawConfigValue(OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH);
95569
+ const dmScope = await getOpenClawConfigValue(OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH);
95570
95570
  const allow = await getOpenClawConfigValue(OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH);
95571
95571
  const normalizedAllow = normalizeOpenClawPluginAllowValue(allow.found ? allow.value : void 0);
95572
95572
  const operations = [];
95573
- if (enabled.value !== true) {
95574
- operations.push({ path: OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH, value: true });
95573
+ if (dmScope.value !== OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE) {
95574
+ operations.push({ path: OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH, value: OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE });
95575
95575
  }
95576
95576
  if (!allow.found || normalizedAllow.changed) {
95577
95577
  operations.push({ path: OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH, value: normalizedAllow.value });
@@ -95580,11 +95580,11 @@ async function ensureOpenClawOkxA2aPluginConfig() {
95580
95580
  return false;
95581
95581
  }
95582
95582
  await runCommand("openclaw", ["config", "set", "--batch-json", JSON.stringify(operations)]);
95583
- console.log("[update] normalized OpenClaw plugins.entries/allow okx-a2a config through openclaw config set");
95583
+ console.log("[update] normalized OpenClaw session.dmScope/plugins.allow okx-a2a config through openclaw config set");
95584
95584
  return true;
95585
95585
  } catch (error) {
95586
95586
  const detail = error instanceof Error ? error.message : String(error);
95587
- console.warn(`[update] skipped OpenClaw plugins.entries/allow okx-a2a config normalization through openclaw CLI: ${detail}`);
95587
+ console.warn(`[update] skipped OpenClaw session.dmScope/plugins.allow okx-a2a config normalization through openclaw CLI: ${detail}`);
95588
95588
  return false;
95589
95589
  }
95590
95590
  }
@@ -96197,7 +96197,7 @@ async function runCommandCaptureOptional(command, args) {
96197
96197
  });
96198
96198
  });
96199
96199
  }
96200
- var import_node_child_process8, import_node_fs18, import_promises8, import_node_os9, import_node_path22, UPDATE_PACKAGES, OPENCLAW_FORCE_INSTALL_FLAG, OPENCLAW_UNSAFE_INSTALL_FLAG, OKX_A2A_PLUGIN_ID, OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH, OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH, redirectCommandStdoutToStderr;
96200
+ var import_node_child_process8, import_node_fs18, import_promises8, import_node_os9, import_node_path22, UPDATE_PACKAGES, OPENCLAW_FORCE_INSTALL_FLAG, OPENCLAW_UNSAFE_INSTALL_FLAG, OKX_A2A_PLUGIN_ID, OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH, OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE, OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH, redirectCommandStdoutToStderr;
96201
96201
  var init_update_cli = __esm({
96202
96202
  "src/update-cli.ts"() {
96203
96203
  "use strict";
@@ -96217,7 +96217,8 @@ var init_update_cli = __esm({
96217
96217
  OPENCLAW_FORCE_INSTALL_FLAG = "--force";
96218
96218
  OPENCLAW_UNSAFE_INSTALL_FLAG = "--dangerously-force-unsafe-install";
96219
96219
  OKX_A2A_PLUGIN_ID = "okx-a2a";
96220
- OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH = `plugins.entries["${OKX_A2A_PLUGIN_ID}"].enabled`;
96220
+ OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH = "session.dmScope";
96221
+ OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE = "per-channel-peer";
96221
96222
  OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH = "plugins.allow";
96222
96223
  redirectCommandStdoutToStderr = false;
96223
96224
  }
@@ -96241,7 +96242,7 @@ init_sentry_logger();
96241
96242
  init_sentry_config();
96242
96243
  var CURRENT_GATEWAY_SESSION_KEYS_ENV2 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
96243
96244
  function printUsage2() {
96244
- console.log(`okx-a2a ${"0.0.17-beta-db5dca184d-260624232430"}
96245
+ console.log(`okx-a2a ${"0.0.17"}
96245
96246
 
96246
96247
  Usage:
96247
96248
  okx-a2a <command> [options]
@@ -96278,7 +96279,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
96278
96279
  `);
96279
96280
  }
96280
96281
  function printVersion() {
96281
- console.log("0.0.17-beta-db5dca184d-260624232430");
96282
+ console.log("0.0.17");
96282
96283
  }
96283
96284
  function printDaemonUsage() {
96284
96285
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
package/dist/index.js CHANGED
@@ -86392,7 +86392,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
86392
86392
  client: {
86393
86393
  id: "gateway-client",
86394
86394
  displayName: "okx-a2a-node",
86395
- version: "0.0.17-beta-db5dca184d-260624232430",
86395
+ version: "0.0.17",
86396
86396
  platform: "node",
86397
86397
  mode: "backend",
86398
86398
  instanceId
@@ -86403,7 +86403,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
86403
86403
  commands: [],
86404
86404
  permissions: {},
86405
86405
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
86406
- userAgent: `okx-a2a-node/${"0.0.17-beta-db5dca184d-260624232430"}`,
86406
+ userAgent: `okx-a2a-node/${"0.0.17"}`,
86407
86407
  auth: {
86408
86408
  ...config.token ? { token: config.token } : {},
86409
86409
  ...config.password ? { password: config.password } : {}
@@ -90558,7 +90558,7 @@ function userWatchEventDeliveredSentryExtra(event) {
90558
90558
  var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
90559
90559
  var SENTRY_CONFIG = {
90560
90560
  projectName: "okx/openclaw-okx-a2a-extension",
90561
- release: "0.0.17-beta-db5dca184d-260624232430",
90561
+ release: "0.0.17",
90562
90562
  environment
90563
90563
  };
90564
90564
 
@@ -90785,12 +90785,12 @@ async function runListenerWithLock(options, paths) {
90785
90785
  }));
90786
90786
  }
90787
90787
  });
90788
- service.setPluginVersion("0.0.17-beta-db5dca184d-260624232430");
90788
+ service.setPluginVersion("0.0.17");
90789
90789
  await service.init();
90790
90790
  const pluginVersionStatus = service.pluginVersionStatus;
90791
90791
  if (pluginVersionStatus.unavailable) {
90792
90792
  throw new Error(
90793
- `@okxweb3/a2a-node v${"0.0.17-beta-db5dca184d-260624232430"} is below the required minimum v${pluginVersionStatus.minVersion}`
90793
+ `@okxweb3/a2a-node v${"0.0.17"} is below the required minimum v${pluginVersionStatus.minVersion}`
90794
90794
  );
90795
90795
  }
90796
90796
  const systemConfig = service.getSystemConfig();
@@ -90808,7 +90808,7 @@ async function runListenerWithLock(options, paths) {
90808
90808
  onchainosAgentId: "*",
90809
90809
  reason: "system-config missing sentryDsn",
90810
90810
  pluginId: "@okxweb3/a2a-node",
90811
- pluginVersion: "0.0.17-beta-db5dca184d-260624232430"
90811
+ pluginVersion: "0.0.17"
90812
90812
  });
90813
90813
  }
90814
90814
  logWithTimestamp(
@@ -91144,7 +91144,8 @@ var import_promises7 = require("node:fs/promises");
91144
91144
  var import_node_os7 = require("node:os");
91145
91145
  var import_node_path19 = require("node:path");
91146
91146
  var OKX_A2A_PLUGIN_ID = "okx-a2a";
91147
- var OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH = `plugins.entries["${OKX_A2A_PLUGIN_ID}"].enabled`;
91147
+ var OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH = "session.dmScope";
91148
+ var OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE = "per-channel-peer";
91148
91149
  var OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH = "plugins.allow";
91149
91150
  var redirectCommandStdoutToStderr = false;
91150
91151
  function isPrereleaseVersion(version2) {
@@ -91152,12 +91153,12 @@ function isPrereleaseVersion(version2) {
91152
91153
  }
91153
91154
  async function ensureOpenClawOkxA2aPluginConfig() {
91154
91155
  try {
91155
- const enabled = await getOpenClawConfigValue(OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH);
91156
+ const dmScope = await getOpenClawConfigValue(OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH);
91156
91157
  const allow = await getOpenClawConfigValue(OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH);
91157
91158
  const normalizedAllow = normalizeOpenClawPluginAllowValue(allow.found ? allow.value : void 0);
91158
91159
  const operations = [];
91159
- if (enabled.value !== true) {
91160
- operations.push({ path: OPENCLAW_OKX_A2A_ENABLED_CONFIG_PATH, value: true });
91160
+ if (dmScope.value !== OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE) {
91161
+ operations.push({ path: OPENCLAW_SESSION_DM_SCOPE_CONFIG_PATH, value: OPENCLAW_SESSION_DM_SCOPE_CONFIG_VALUE });
91161
91162
  }
91162
91163
  if (!allow.found || normalizedAllow.changed) {
91163
91164
  operations.push({ path: OPENCLAW_PLUGIN_ALLOW_CONFIG_PATH, value: normalizedAllow.value });
@@ -91166,11 +91167,11 @@ async function ensureOpenClawOkxA2aPluginConfig() {
91166
91167
  return false;
91167
91168
  }
91168
91169
  await runCommand("openclaw", ["config", "set", "--batch-json", JSON.stringify(operations)]);
91169
- console.log("[update] normalized OpenClaw plugins.entries/allow okx-a2a config through openclaw config set");
91170
+ console.log("[update] normalized OpenClaw session.dmScope/plugins.allow okx-a2a config through openclaw config set");
91170
91171
  return true;
91171
91172
  } catch (error) {
91172
91173
  const detail = error instanceof Error ? error.message : String(error);
91173
- console.warn(`[update] skipped OpenClaw plugins.entries/allow okx-a2a config normalization through openclaw CLI: ${detail}`);
91174
+ console.warn(`[update] skipped OpenClaw session.dmScope/plugins.allow okx-a2a config normalization through openclaw CLI: ${detail}`);
91174
91175
  return false;
91175
91176
  }
91176
91177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.0.17-beta-db5dca184d-260624232430",
3
+ "version": "0.0.17",
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": {