@okxweb3/a2a-node 0.1.8 → 0.1.9-beta-696b77ade0-260715144522

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
@@ -8302,7 +8302,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
8302
8302
  client: {
8303
8303
  id: "gateway-client",
8304
8304
  displayName: "okx-a2a-node",
8305
- version: "0.1.8",
8305
+ version: "0.1.9-beta-696b77ade0-260715144522",
8306
8306
  platform: "node",
8307
8307
  mode: "backend",
8308
8308
  instanceId
@@ -8313,7 +8313,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
8313
8313
  commands: [],
8314
8314
  permissions: {},
8315
8315
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
8316
- userAgent: `okx-a2a-node/${"0.1.8"}`,
8316
+ userAgent: `okx-a2a-node/${"0.1.9-beta-696b77ade0-260715144522"}`,
8317
8317
  auth: {
8318
8318
  ...config.token ? { token: config.token } : {},
8319
8319
  ...config.password ? { password: config.password } : {}
@@ -25584,7 +25584,7 @@ var init_sentry_config = __esm({
25584
25584
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
25585
25585
  SENTRY_CONFIG = {
25586
25586
  projectName: "okx/openclaw-okx-a2a-extension",
25587
- release: "0.1.8",
25587
+ release: "0.1.9-beta-696b77ade0-260715144522",
25588
25588
  environment,
25589
25589
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
25590
25590
  };
@@ -94241,12 +94241,12 @@ async function runListenerWithLock(options, paths) {
94241
94241
  });
94242
94242
  }
94243
94243
  });
94244
- service.setPluginVersion("0.1.8");
94244
+ service.setPluginVersion("0.1.9-beta-696b77ade0-260715144522");
94245
94245
  await service.init();
94246
94246
  const pluginVersionStatus = service.pluginVersionStatus;
94247
94247
  if (pluginVersionStatus.unavailable) {
94248
94248
  throw new Error(
94249
- `@okxweb3/a2a-node v${"0.1.8"} is below the required minimum v${pluginVersionStatus.minVersion}`
94249
+ `@okxweb3/a2a-node v${"0.1.9-beta-696b77ade0-260715144522"} is below the required minimum v${pluginVersionStatus.minVersion}`
94250
94250
  );
94251
94251
  }
94252
94252
  const systemConfig = service.getSystemConfig();
@@ -94264,7 +94264,7 @@ async function runListenerWithLock(options, paths) {
94264
94264
  onchainosAgentId: "*",
94265
94265
  reason: "system-config missing sentryDsn",
94266
94266
  pluginId: "@okxweb3/a2a-node",
94267
- pluginVersion: "0.1.8"
94267
+ pluginVersion: "0.1.9-beta-696b77ade0-260715144522"
94268
94268
  });
94269
94269
  }
94270
94270
  logWithTimestamp(
@@ -98285,7 +98285,7 @@ async function getCurrentNodeCliVersion() {
98285
98285
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
98286
98286
  }
98287
98287
  function getBundledNodeCliVersion() {
98288
- return true ? "0.1.8" : null;
98288
+ return true ? "0.1.9-beta-696b77ade0-260715144522" : null;
98289
98289
  }
98290
98290
  function readConfiguredAiProvider() {
98291
98291
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -98495,7 +98495,7 @@ async function updateHermes(release, options) {
98495
98495
  }
98496
98496
  }
98497
98497
  async function installGatewayPluginForDoctor(target) {
98498
- const release = isPrereleaseVersion("0.1.8") ? "beta" : "latest";
98498
+ const release = isPrereleaseVersion("0.1.9-beta-696b77ade0-260715144522") ? "beta" : "latest";
98499
98499
  const insideTargetGateway = detectGatewayInvocation() === target;
98500
98500
  const options = {
98501
98501
  restart: !insideTargetGateway,
@@ -99483,7 +99483,7 @@ async function runDoctor(options = {}) {
99483
99483
  platform: options.platform ?? process.platform,
99484
99484
  env: options.env ?? process.env,
99485
99485
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
99486
- cliVersion: options.cliVersion ?? (true ? "0.1.8" : "0.0.0"),
99486
+ cliVersion: options.cliVersion ?? (true ? "0.1.9-beta-696b77ade0-260715144522" : "0.0.0"),
99487
99487
  fixMode: options.fix === true,
99488
99488
  nonInteractive: options.nonInteractive === true,
99489
99489
  packageChanged: false,
@@ -100615,7 +100615,7 @@ init_sentry_logger();
100615
100615
  init_sentry_config();
100616
100616
  var CURRENT_GATEWAY_SESSION_KEYS_ENV4 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
100617
100617
  function printUsage2() {
100618
- console.log(`okx-a2a ${"0.1.8"}
100618
+ console.log(`okx-a2a ${"0.1.9-beta-696b77ade0-260715144522"}
100619
100619
 
100620
100620
  Usage:
100621
100621
  okx-a2a <command> [options]
@@ -100653,7 +100653,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
100653
100653
  `);
100654
100654
  }
100655
100655
  function printVersion() {
100656
- console.log("0.1.8");
100656
+ console.log("0.1.9-beta-696b77ade0-260715144522");
100657
100657
  }
100658
100658
  function printDaemonUsage() {
100659
100659
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
@@ -100966,31 +100966,47 @@ async function printDaemonStatus() {
100966
100966
  console.log("stopped");
100967
100967
  }
100968
100968
  }
100969
+ async function tailLogFileWithNode(logPath, reason) {
100970
+ logWinCompat(`${WIN_COMPAT_LOG_PREFIX} using pure-Node tail path=${logPath} reason=${reason}`);
100971
+ try {
100972
+ process.stdout.write(await readLastLines(logPath, 600));
100973
+ await followFile(logPath, (chunk) => {
100974
+ process.stdout.write(chunk);
100975
+ });
100976
+ } catch (error) {
100977
+ logWinCompat(
100978
+ `${WIN_COMPAT_LOG_PREFIX} pure-Node tail failed path=${logPath} errorCode=${error.code ?? "unknown"}: ${error.message}`
100979
+ );
100980
+ throw error;
100981
+ }
100982
+ }
100969
100983
  async function tailLogFile(logPath) {
100970
100984
  if (process.platform === "win32") {
100971
- logWinCompat(`${WIN_COMPAT_LOG_PREFIX} tail binary unavailable on win32; using pure-Node tail path=${logPath}`);
100972
- try {
100973
- process.stdout.write(await readLastLines(logPath, 600));
100974
- await followFile(logPath, (chunk) => {
100975
- process.stdout.write(chunk);
100976
- });
100977
- } catch (error) {
100978
- logWinCompat(
100979
- `${WIN_COMPAT_LOG_PREFIX} pure-Node tail failed path=${logPath} errorCode=${error.code ?? "unknown"}: ${error.message}`
100980
- );
100981
- throw error;
100982
- }
100985
+ await tailLogFileWithNode(logPath, "win32");
100983
100986
  return;
100984
100987
  }
100985
100988
  await new Promise((resolve9, reject) => {
100986
- const child = (0, import_node_child_process9.spawn)("tail", ["-600", "-f", logPath], { stdio: "inherit" });
100987
- child.on("error", reject);
100989
+ let fallbackStarted = false;
100990
+ const fallback = (reason) => {
100991
+ if (fallbackStarted) {
100992
+ return;
100993
+ }
100994
+ fallbackStarted = true;
100995
+ tailLogFileWithNode(logPath, reason).then(resolve9, reject);
100996
+ };
100997
+ const child = (0, import_node_child_process9.spawn)("tail", ["-n", "600", "-f", logPath], { stdio: "inherit" });
100998
+ child.on("error", (error) => {
100999
+ fallback(`tail_spawn_${error.code ?? "error"}`);
101000
+ });
100988
101001
  child.on("close", (code2, signal) => {
101002
+ if (fallbackStarted) {
101003
+ return;
101004
+ }
100989
101005
  if (signal || code2 === 0) {
100990
101006
  resolve9();
100991
101007
  return;
100992
101008
  }
100993
- reject(new Error(`tail exited with code=${code2}`));
101009
+ fallback(`tail_exit_${code2 ?? "unknown"}`);
100994
101010
  });
100995
101011
  });
100996
101012
  }
package/dist/index.js CHANGED
@@ -71981,7 +71981,7 @@ var init_sentry_config = __esm({
71981
71981
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
71982
71982
  SENTRY_CONFIG = {
71983
71983
  projectName: "okx/openclaw-okx-a2a-extension",
71984
- release: "0.1.8",
71984
+ release: "0.1.9-beta-696b77ade0-260715144522",
71985
71985
  environment,
71986
71986
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
71987
71987
  };
@@ -72911,7 +72911,7 @@ async function getCurrentNodeCliVersion() {
72911
72911
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
72912
72912
  }
72913
72913
  function getBundledNodeCliVersion() {
72914
- return true ? "0.1.8" : null;
72914
+ return true ? "0.1.9-beta-696b77ade0-260715144522" : null;
72915
72915
  }
72916
72916
  function readConfiguredAiProvider() {
72917
72917
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -73121,7 +73121,7 @@ async function updateHermes(release, options) {
73121
73121
  }
73122
73122
  }
73123
73123
  async function installGatewayPluginForDoctor(target) {
73124
- const release = isPrereleaseVersion("0.1.8") ? "beta" : "latest";
73124
+ const release = isPrereleaseVersion("0.1.9-beta-696b77ade0-260715144522") ? "beta" : "latest";
73125
73125
  const insideTargetGateway = detectGatewayInvocation() === target;
73126
73126
  const options = {
73127
73127
  restart: !insideTargetGateway,
@@ -89613,7 +89613,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
89613
89613
  client: {
89614
89614
  id: "gateway-client",
89615
89615
  displayName: "okx-a2a-node",
89616
- version: "0.1.8",
89616
+ version: "0.1.9-beta-696b77ade0-260715144522",
89617
89617
  platform: "node",
89618
89618
  mode: "backend",
89619
89619
  instanceId
@@ -89624,7 +89624,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
89624
89624
  commands: [],
89625
89625
  permissions: {},
89626
89626
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
89627
- userAgent: `okx-a2a-node/${"0.1.8"}`,
89627
+ userAgent: `okx-a2a-node/${"0.1.9-beta-696b77ade0-260715144522"}`,
89628
89628
  auth: {
89629
89629
  ...config.token ? { token: config.token } : {},
89630
89630
  ...config.password ? { password: config.password } : {}
@@ -94420,12 +94420,12 @@ async function runListenerWithLock(options, paths) {
94420
94420
  });
94421
94421
  }
94422
94422
  });
94423
- service.setPluginVersion("0.1.8");
94423
+ service.setPluginVersion("0.1.9-beta-696b77ade0-260715144522");
94424
94424
  await service.init();
94425
94425
  const pluginVersionStatus = service.pluginVersionStatus;
94426
94426
  if (pluginVersionStatus.unavailable) {
94427
94427
  throw new Error(
94428
- `@okxweb3/a2a-node v${"0.1.8"} is below the required minimum v${pluginVersionStatus.minVersion}`
94428
+ `@okxweb3/a2a-node v${"0.1.9-beta-696b77ade0-260715144522"} is below the required minimum v${pluginVersionStatus.minVersion}`
94429
94429
  );
94430
94430
  }
94431
94431
  const systemConfig = service.getSystemConfig();
@@ -94443,7 +94443,7 @@ async function runListenerWithLock(options, paths) {
94443
94443
  onchainosAgentId: "*",
94444
94444
  reason: "system-config missing sentryDsn",
94445
94445
  pluginId: "@okxweb3/a2a-node",
94446
- pluginVersion: "0.1.8"
94446
+ pluginVersion: "0.1.9-beta-696b77ade0-260715144522"
94447
94447
  });
94448
94448
  }
94449
94449
  logWithTimestamp(
@@ -96211,7 +96211,7 @@ async function runDoctor(options = {}) {
96211
96211
  platform: options.platform ?? process.platform,
96212
96212
  env: options.env ?? process.env,
96213
96213
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
96214
- cliVersion: options.cliVersion ?? (true ? "0.1.8" : "0.0.0"),
96214
+ cliVersion: options.cliVersion ?? (true ? "0.1.9-beta-696b77ade0-260715144522" : "0.0.0"),
96215
96215
  fixMode: options.fix === true,
96216
96216
  nonInteractive: options.nonInteractive === true,
96217
96217
  packageChanged: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.1.8",
3
+ "version": "0.1.9-beta-696b77ade0-260715144522",
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": {