@okxweb3/a2a-node 0.2.12 → 0.2.13-beta-7449a77b9d-260910153412

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 +35 -16
  2. package/dist/index.js +32 -13
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -26938,7 +26938,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
26938
26938
  client: {
26939
26939
  id: "gateway-client",
26940
26940
  displayName: "okx-a2a-node",
26941
- version: "0.2.12",
26941
+ version: "0.2.13-beta-7449a77b9d-260910153412",
26942
26942
  platform: "node",
26943
26943
  mode: "backend",
26944
26944
  instanceId
@@ -26949,7 +26949,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
26949
26949
  commands: [],
26950
26950
  permissions: {},
26951
26951
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
26952
- userAgent: `okx-a2a-node/${"0.2.12"}`,
26952
+ userAgent: `okx-a2a-node/${"0.2.13-beta-7449a77b9d-260910153412"}`,
26953
26953
  auth: {
26954
26954
  ...config.token ? { token: config.token } : {},
26955
26955
  ...config.password ? { password: config.password } : {}
@@ -29008,7 +29008,7 @@ var init_sentry_config = __esm({
29008
29008
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
29009
29009
  SENTRY_CONFIG = {
29010
29010
  projectName: "okx/openclaw-okx-a2a-extension",
29011
- release: "0.2.12",
29011
+ release: "0.2.13-beta-7449a77b9d-260910153412",
29012
29012
  environment,
29013
29013
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
29014
29014
  };
@@ -40178,7 +40178,7 @@ async function exportDiagnosticLogs(options) {
40178
40178
  node: process.version,
40179
40179
  platform: process.platform,
40180
40180
  arch: process.arch,
40181
- packageVersion: true ? "0.2.12" : "unknown",
40181
+ packageVersion: true ? "0.2.13-beta-7449a77b9d-260910153412" : "unknown",
40182
40182
  sensitiveContentIncluded: options.includeSensitiveContent,
40183
40183
  listenerAndLlmContentIncluded: true,
40184
40184
  credentialsAlwaysRedacted: true,
@@ -69684,12 +69684,12 @@ async function runListenerWithLock(options, paths) {
69684
69684
  });
69685
69685
  }
69686
69686
  });
69687
- service.setPluginVersion("0.2.12");
69687
+ service.setPluginVersion("0.2.13-beta-7449a77b9d-260910153412");
69688
69688
  await service.init();
69689
69689
  const pluginVersionStatus = service.pluginVersionStatus;
69690
69690
  if (pluginVersionStatus.unavailable) {
69691
69691
  throw new Error(
69692
- `@okxweb3/a2a-node v${"0.2.12"} is below the required minimum v${pluginVersionStatus.minVersion}`
69692
+ `@okxweb3/a2a-node v${"0.2.13-beta-7449a77b9d-260910153412"} is below the required minimum v${pluginVersionStatus.minVersion}`
69693
69693
  );
69694
69694
  }
69695
69695
  const systemConfig = service.getSystemConfig();
@@ -69717,7 +69717,7 @@ async function runListenerWithLock(options, paths) {
69717
69717
  onchainosAgentId: "*",
69718
69718
  reason: "system-config missing sentryDsn",
69719
69719
  pluginId: "@okxweb3/a2a-node",
69720
- pluginVersion: "0.2.12"
69720
+ pluginVersion: "0.2.13-beta-7449a77b9d-260910153412"
69721
69721
  });
69722
69722
  }
69723
69723
  logWithTimestamp(
@@ -118044,7 +118044,7 @@ async function getCurrentNodeCliVersion() {
118044
118044
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
118045
118045
  }
118046
118046
  function getBundledNodeCliVersion() {
118047
- return true ? "0.2.12" : null;
118047
+ return true ? "0.2.13-beta-7449a77b9d-260910153412" : null;
118048
118048
  }
118049
118049
  function readConfiguredAiProvider() {
118050
118050
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -118254,7 +118254,7 @@ async function updateHermes(release, options) {
118254
118254
  }
118255
118255
  }
118256
118256
  async function installGatewayPluginForDoctor(target) {
118257
- const release = isPrereleaseVersion("0.2.12") ? "beta" : "latest";
118257
+ const release = isPrereleaseVersion("0.2.13-beta-7449a77b9d-260910153412") ? "beta" : "latest";
118258
118258
  const insideTargetGateway = detectGatewayInvocation() === target;
118259
118259
  const options = {
118260
118260
  restart: !insideTargetGateway,
@@ -119307,7 +119307,7 @@ async function runDoctor(options = {}) {
119307
119307
  platform: options.platform ?? process.platform,
119308
119308
  env: options.env ?? process.env,
119309
119309
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
119310
- cliVersion: options.cliVersion ?? (true ? "0.2.12" : "0.0.0"),
119310
+ cliVersion: options.cliVersion ?? (true ? "0.2.13-beta-7449a77b9d-260910153412" : "0.0.0"),
119311
119311
  fixMode: options.fix === true,
119312
119312
  nonInteractive: options.nonInteractive === true,
119313
119313
  packageChanged: false,
@@ -119426,7 +119426,7 @@ function formatDoctorReportForHumans(report) {
119426
119426
  if (check.fix?.applied) {
119427
119427
  lines.push(` [applied] ${check.fix.applied}${check.fix.appliedDetail ? ` \u2014 ${check.fix.appliedDetail}` : ""}`);
119428
119428
  }
119429
- if (check.status === "fail" && check.fix) {
119429
+ if ((check.status === "fail" || check.status === "warn") && check.fix) {
119430
119430
  const fixLabel = isOptional ? "optional" : check.fix.kind === "auto" ? "auto-fix" : "manual";
119431
119431
  lines.push(` [${fixLabel}] ${check.fix.description}`);
119432
119432
  if (check.fix.command) {
@@ -119847,13 +119847,32 @@ var init_doctor_cli = __esm({
119847
119847
  }
119848
119848
  const quoted = /[^A-Za-z0-9_@+=:,./\\-]/.test(resolved) ? `"${resolved}"` : resolved;
119849
119849
  const loginCommand = provider === "codex" ? `${quoted} login --device-auth` : `${quoted} auth login`;
119850
+ if (auth.reason === "provider_cli_not_logged_in") {
119851
+ return {
119852
+ id: "provider_cli",
119853
+ title: "AI provider CLI",
119854
+ status: "warn",
119855
+ severity: "required",
119856
+ // Authentication is needed before this provider can execute work, but
119857
+ // doctor must remain a non-blocking diagnostic when the user simply has
119858
+ // not logged in yet. In particular, `doctor --fix` must not launch an
119859
+ // interactive browser/device flow and wait on human input.
119860
+ // No resolved path in `detail`: it is forwarded to Sentry.
119861
+ detail: `${provider} CLI is installed but not logged in (${auth.reason})`,
119862
+ fix: {
119863
+ kind: "manual",
119864
+ description: "Log in when you want to use this provider; this warning does not block doctor.",
119865
+ command: loginCommand
119866
+ },
119867
+ data: { provider, command: resolved, reason: auth.reason, loginCommand }
119868
+ };
119869
+ }
119850
119870
  return {
119851
119871
  id: "provider_cli",
119852
119872
  title: "AI provider CLI",
119853
119873
  status: "fail",
119854
119874
  severity: "required",
119855
- // No resolved path in `detail`: it is forwarded to Sentry.
119856
- detail: `${provider} CLI is installed but not logged in (${auth.reason})`,
119875
+ detail: `${provider} CLI authentication status could not be verified (${auth.reason})`,
119857
119876
  // Logging in needs a human (device/browser auth). In --non-interactive
119858
119877
  // mode never launch it — degrade to a manual instruction so unattended
119859
119878
  // callers (install scripts) cannot hang waiting on stdin.
@@ -120384,7 +120403,7 @@ init_sentry_config();
120384
120403
  init_runtime_metadata();
120385
120404
  var CURRENT_GATEWAY_SESSION_KEYS_ENV4 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
120386
120405
  function printUsage3() {
120387
- console.log(`okx-a2a ${"0.2.12"}
120406
+ console.log(`okx-a2a ${"0.2.13-beta-7449a77b9d-260910153412"}
120388
120407
 
120389
120408
  Usage:
120390
120409
  okx-a2a <command> [options]
@@ -120426,7 +120445,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
120426
120445
  `);
120427
120446
  }
120428
120447
  function printVersion() {
120429
- console.log("0.2.12");
120448
+ console.log("0.2.13-beta-7449a77b9d-260910153412");
120430
120449
  }
120431
120450
  function printDaemonUsage() {
120432
120451
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
@@ -121916,7 +121935,7 @@ async function main() {
121916
121935
  if (command === "xmtp-test") {
121917
121936
  const { handleXmtpTestCommand: handleXmtpTestCommand2 } = await Promise.resolve().then(() => (init_xmtp_test_cli(), xmtp_test_cli_exports));
121918
121937
  await handleXmtpTestCommand2(process.argv.slice(3), {
121919
- packageVersion: "0.2.12",
121938
+ packageVersion: "0.2.13-beta-7449a77b9d-260910153412",
121920
121939
  agentSdkVersion: "2.3.0",
121921
121940
  nodeSdkVersion: "6.1.0",
121922
121941
  nodeBindingsVersion: "1.11.0"
package/dist/index.js CHANGED
@@ -32441,7 +32441,7 @@ var init_sentry_config = __esm({
32441
32441
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
32442
32442
  SENTRY_CONFIG = {
32443
32443
  projectName: "okx/openclaw-okx-a2a-extension",
32444
- release: "0.2.12",
32444
+ release: "0.2.13-beta-7449a77b9d-260910153412",
32445
32445
  environment,
32446
32446
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
32447
32447
  };
@@ -33382,7 +33382,7 @@ async function getCurrentNodeCliVersion() {
33382
33382
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
33383
33383
  }
33384
33384
  function getBundledNodeCliVersion() {
33385
- return true ? "0.2.12" : null;
33385
+ return true ? "0.2.13-beta-7449a77b9d-260910153412" : null;
33386
33386
  }
33387
33387
  function readConfiguredAiProvider() {
33388
33388
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -33592,7 +33592,7 @@ async function updateHermes(release, options) {
33592
33592
  }
33593
33593
  }
33594
33594
  async function installGatewayPluginForDoctor(target) {
33595
- const release = isPrereleaseVersion("0.2.12") ? "beta" : "latest";
33595
+ const release = isPrereleaseVersion("0.2.13-beta-7449a77b9d-260910153412") ? "beta" : "latest";
33596
33596
  const insideTargetGateway = detectGatewayInvocation() === target;
33597
33597
  const options = {
33598
33598
  restart: !insideTargetGateway,
@@ -61310,7 +61310,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61310
61310
  client: {
61311
61311
  id: "gateway-client",
61312
61312
  displayName: "okx-a2a-node",
61313
- version: "0.2.12",
61313
+ version: "0.2.13-beta-7449a77b9d-260910153412",
61314
61314
  platform: "node",
61315
61315
  mode: "backend",
61316
61316
  instanceId
@@ -61321,7 +61321,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61321
61321
  commands: [],
61322
61322
  permissions: {},
61323
61323
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
61324
- userAgent: `okx-a2a-node/${"0.2.12"}`,
61324
+ userAgent: `okx-a2a-node/${"0.2.13-beta-7449a77b9d-260910153412"}`,
61325
61325
  auth: {
61326
61326
  ...config.token ? { token: config.token } : {},
61327
61327
  ...config.password ? { password: config.password } : {}
@@ -67660,12 +67660,12 @@ async function runListenerWithLock(options, paths) {
67660
67660
  });
67661
67661
  }
67662
67662
  });
67663
- service.setPluginVersion("0.2.12");
67663
+ service.setPluginVersion("0.2.13-beta-7449a77b9d-260910153412");
67664
67664
  await service.init();
67665
67665
  const pluginVersionStatus = service.pluginVersionStatus;
67666
67666
  if (pluginVersionStatus.unavailable) {
67667
67667
  throw new Error(
67668
- `@okxweb3/a2a-node v${"0.2.12"} is below the required minimum v${pluginVersionStatus.minVersion}`
67668
+ `@okxweb3/a2a-node v${"0.2.13-beta-7449a77b9d-260910153412"} is below the required minimum v${pluginVersionStatus.minVersion}`
67669
67669
  );
67670
67670
  }
67671
67671
  const systemConfig = service.getSystemConfig();
@@ -67693,7 +67693,7 @@ async function runListenerWithLock(options, paths) {
67693
67693
  onchainosAgentId: "*",
67694
67694
  reason: "system-config missing sentryDsn",
67695
67695
  pluginId: "@okxweb3/a2a-node",
67696
- pluginVersion: "0.2.12"
67696
+ pluginVersion: "0.2.13-beta-7449a77b9d-260910153412"
67697
67697
  });
67698
67698
  }
67699
67699
  logWithTimestamp(
@@ -70466,7 +70466,7 @@ async function exportDiagnosticLogs(options) {
70466
70466
  node: process.version,
70467
70467
  platform: process.platform,
70468
70468
  arch: process.arch,
70469
- packageVersion: true ? "0.2.12" : "unknown",
70469
+ packageVersion: true ? "0.2.13-beta-7449a77b9d-260910153412" : "unknown",
70470
70470
  sensitiveContentIncluded: options.includeSensitiveContent,
70471
70471
  listenerAndLlmContentIncluded: true,
70472
70472
  credentialsAlwaysRedacted: true,
@@ -71886,13 +71886,32 @@ var providerCliChecker = {
71886
71886
  }
71887
71887
  const quoted = /[^A-Za-z0-9_@+=:,./\\-]/.test(resolved) ? `"${resolved}"` : resolved;
71888
71888
  const loginCommand = provider === "codex" ? `${quoted} login --device-auth` : `${quoted} auth login`;
71889
+ if (auth.reason === "provider_cli_not_logged_in") {
71890
+ return {
71891
+ id: "provider_cli",
71892
+ title: "AI provider CLI",
71893
+ status: "warn",
71894
+ severity: "required",
71895
+ // Authentication is needed before this provider can execute work, but
71896
+ // doctor must remain a non-blocking diagnostic when the user simply has
71897
+ // not logged in yet. In particular, `doctor --fix` must not launch an
71898
+ // interactive browser/device flow and wait on human input.
71899
+ // No resolved path in `detail`: it is forwarded to Sentry.
71900
+ detail: `${provider} CLI is installed but not logged in (${auth.reason})`,
71901
+ fix: {
71902
+ kind: "manual",
71903
+ description: "Log in when you want to use this provider; this warning does not block doctor.",
71904
+ command: loginCommand
71905
+ },
71906
+ data: { provider, command: resolved, reason: auth.reason, loginCommand }
71907
+ };
71908
+ }
71889
71909
  return {
71890
71910
  id: "provider_cli",
71891
71911
  title: "AI provider CLI",
71892
71912
  status: "fail",
71893
71913
  severity: "required",
71894
- // No resolved path in `detail`: it is forwarded to Sentry.
71895
- detail: `${provider} CLI is installed but not logged in (${auth.reason})`,
71914
+ detail: `${provider} CLI authentication status could not be verified (${auth.reason})`,
71896
71915
  // Logging in needs a human (device/browser auth). In --non-interactive
71897
71916
  // mode never launch it — degrade to a manual instruction so unattended
71898
71917
  // callers (install scripts) cannot hang waiting on stdin.
@@ -72348,7 +72367,7 @@ async function runDoctor(options = {}) {
72348
72367
  platform: options.platform ?? process.platform,
72349
72368
  env: options.env ?? process.env,
72350
72369
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
72351
- cliVersion: options.cliVersion ?? (true ? "0.2.12" : "0.0.0"),
72370
+ cliVersion: options.cliVersion ?? (true ? "0.2.13-beta-7449a77b9d-260910153412" : "0.0.0"),
72352
72371
  fixMode: options.fix === true,
72353
72372
  nonInteractive: options.nonInteractive === true,
72354
72373
  packageChanged: false,
@@ -72473,7 +72492,7 @@ function formatDoctorReportForHumans(report) {
72473
72492
  if (check.fix?.applied) {
72474
72493
  lines.push(` [applied] ${check.fix.applied}${check.fix.appliedDetail ? ` \u2014 ${check.fix.appliedDetail}` : ""}`);
72475
72494
  }
72476
- if (check.status === "fail" && check.fix) {
72495
+ if ((check.status === "fail" || check.status === "warn") && check.fix) {
72477
72496
  const fixLabel = isOptional ? "optional" : check.fix.kind === "auto" ? "auto-fix" : "manual";
72478
72497
  lines.push(` [${fixLabel}] ${check.fix.description}`);
72479
72498
  if (check.fix.command) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.2.12",
3
+ "version": "0.2.13-beta-7449a77b9d-260910153412",
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": {