@okxweb3/a2a-node 0.0.9 → 0.0.10

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.9",
7155
+ version: "0.0.10",
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.9"}`,
7166
+ userAgent: `okx-a2a-node/${"0.0.10"}`,
7167
7167
  auth: {
7168
7168
  ...config.token ? { token: config.token } : {},
7169
7169
  ...config.password ? { password: config.password } : {}
@@ -23657,7 +23657,7 @@ var init_sentry_config = __esm({
23657
23657
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
23658
23658
  SENTRY_CONFIG = {
23659
23659
  projectName: "okx/openclaw-okx-a2a-extension",
23660
- release: "0.0.9",
23660
+ release: "0.0.10",
23661
23661
  environment
23662
23662
  };
23663
23663
  }
@@ -90585,12 +90585,12 @@ async function runListenerWithLock(options, paths) {
90585
90585
  }));
90586
90586
  }
90587
90587
  });
90588
- service.setPluginVersion("0.0.9");
90588
+ service.setPluginVersion("0.0.10");
90589
90589
  await service.init();
90590
90590
  const pluginVersionStatus = service.pluginVersionStatus;
90591
90591
  if (pluginVersionStatus.unavailable) {
90592
90592
  throw new Error(
90593
- `@okxweb3/a2a-node v${"0.0.9"} is below the required minimum v${pluginVersionStatus.minVersion}`
90593
+ `@okxweb3/a2a-node v${"0.0.10"} is below the required minimum v${pluginVersionStatus.minVersion}`
90594
90594
  );
90595
90595
  }
90596
90596
  const systemConfig = service.getSystemConfig();
@@ -90608,7 +90608,7 @@ async function runListenerWithLock(options, paths) {
90608
90608
  onchainosAgentId: "*",
90609
90609
  reason: "system-config missing sentryDsn",
90610
90610
  pluginId: "@okxweb3/a2a-node",
90611
- pluginVersion: "0.0.9"
90611
+ pluginVersion: "0.0.10"
90612
90612
  });
90613
90613
  }
90614
90614
  console.log(
@@ -93194,7 +93194,7 @@ function isPrereleaseVersion(version2) {
93194
93194
  }
93195
93195
  function getCurrentNodeCliVersion() {
93196
93196
  try {
93197
- return "0.0.9";
93197
+ return "0.0.10";
93198
93198
  } catch {
93199
93199
  return null;
93200
93200
  }
@@ -93243,12 +93243,18 @@ async function restartHermesGatewayAfterSetupConfigChange() {
93243
93243
  async function updateOpenClaw(release, options) {
93244
93244
  const label = options.label ?? "update";
93245
93245
  assertNotRunningInsideGateway("openclaw");
93246
+ const version2 = await resolveNpmPackageVersion("openclaw", release);
93247
+ if (!version2) {
93248
+ throw new Error(`Unable to resolve ${UPDATE_PACKAGES.openclaw}@${release}`);
93249
+ }
93246
93250
  const spec = buildNpmPackageSpec("openclaw", release);
93247
93251
  console.log(`[${label}] installing ${spec}`);
93248
93252
  await runCommand("npm", ["install", "-g", spec]);
93249
- await updateMatchingNode("openclaw", release, label);
93250
- console.log(`[${label}] refreshing OpenClaw plugin okx-a2a`);
93251
- await runCommand("openclaw", ["plugins", "update", "okx-a2a"]);
93253
+ await updateMatchingNode("openclaw", release, label, version2);
93254
+ const pluginSpec = buildNpmPackageSpec("openclaw", version2);
93255
+ console.log(`[${label}] reinstalling OpenClaw plugin okx-a2a from ${pluginSpec}`);
93256
+ await runCommand("openclaw", ["plugins", "uninstall", "okx-a2a", "--force"]);
93257
+ await runCommand("openclaw", ["plugins", "install", pluginSpec]);
93252
93258
  if (options.restart) {
93253
93259
  console.log(`[${label}] restarting OpenClaw gateway`);
93254
93260
  await runCommand("openclaw", ["gateway", "restart"]);
@@ -93387,8 +93393,8 @@ function assertNotRunningInsideGateway(target) {
93387
93393
  `Refusing to update ${target} from inside the ${target} gateway runtime. Run this command from a normal terminal so the updater can safely refresh and restart the gateway.`
93388
93394
  );
93389
93395
  }
93390
- async function updateMatchingNode(target, release, label = "update") {
93391
- const version2 = await resolveNpmPackageVersion(target, release);
93396
+ async function updateMatchingNode(target, release, label = "update", resolvedVersion) {
93397
+ const version2 = resolvedVersion ?? await resolveNpmPackageVersion(target, release);
93392
93398
  if (!version2) {
93393
93399
  console.warn(`[${label}] WARNING: unable to resolve ${UPDATE_PACKAGES[target]}@${release}; skipping matching okx-a2a node CLI update`);
93394
93400
  return;
@@ -93651,7 +93657,7 @@ init_task_config();
93651
93657
  init_sentry_logger();
93652
93658
  init_sentry_config();
93653
93659
  function printUsage2() {
93654
- console.log(`okx-a2a ${"0.0.9"}
93660
+ console.log(`okx-a2a ${"0.0.10"}
93655
93661
 
93656
93662
  Usage:
93657
93663
  okx-a2a <command> [options]
@@ -93688,7 +93694,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
93688
93694
  `);
93689
93695
  }
93690
93696
  function printVersion() {
93691
- console.log("0.0.9");
93697
+ console.log("0.0.10");
93692
93698
  }
93693
93699
  function printDaemonUsage() {
93694
93700
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status> [options]
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.9",
85804
+ version: "0.0.10",
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.9"}`,
85815
+ userAgent: `okx-a2a-node/${"0.0.10"}`,
85816
85816
  auth: {
85817
85817
  ...config.token ? { token: config.token } : {},
85818
85818
  ...config.password ? { password: config.password } : {}
@@ -89163,7 +89163,7 @@ function userWatchEventDeliveredSentryExtra(event) {
89163
89163
  var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
89164
89164
  var SENTRY_CONFIG = {
89165
89165
  projectName: "okx/openclaw-okx-a2a-extension",
89166
- release: "0.0.9",
89166
+ release: "0.0.10",
89167
89167
  environment
89168
89168
  };
89169
89169
 
@@ -89282,12 +89282,12 @@ async function runListenerWithLock(options, paths) {
89282
89282
  }));
89283
89283
  }
89284
89284
  });
89285
- service.setPluginVersion("0.0.9");
89285
+ service.setPluginVersion("0.0.10");
89286
89286
  await service.init();
89287
89287
  const pluginVersionStatus = service.pluginVersionStatus;
89288
89288
  if (pluginVersionStatus.unavailable) {
89289
89289
  throw new Error(
89290
- `@okxweb3/a2a-node v${"0.0.9"} is below the required minimum v${pluginVersionStatus.minVersion}`
89290
+ `@okxweb3/a2a-node v${"0.0.10"} is below the required minimum v${pluginVersionStatus.minVersion}`
89291
89291
  );
89292
89292
  }
89293
89293
  const systemConfig = service.getSystemConfig();
@@ -89305,7 +89305,7 @@ async function runListenerWithLock(options, paths) {
89305
89305
  onchainosAgentId: "*",
89306
89306
  reason: "system-config missing sentryDsn",
89307
89307
  pluginId: "@okxweb3/a2a-node",
89308
- pluginVersion: "0.0.9"
89308
+ pluginVersion: "0.0.10"
89309
89309
  });
89310
89310
  }
89311
89311
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
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": {