@okxweb3/a2a-node 0.2.11-beta-8fef2ef558-260901171734 → 0.2.11

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 +228 -1304
  2. package/dist/index.js +23 -24
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -108,7 +108,6 @@ function resolveTaskPaths(homeDir = resolveTaskHome()) {
108
108
  workspaceDir: (0, import_node_path2.join)(homeDir, "workspace"),
109
109
  xmtpDir: (0, import_node_path2.join)(homeDir, "xmtp"),
110
110
  sqliteDir: (0, import_node_path2.join)(homeDir, "sqlite"),
111
- bzRecordsDir: (0, import_node_path2.join)(homeDir, "bz-records"),
112
111
  pendingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "pending"),
113
112
  processingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "processing"),
114
113
  completedCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "completed"),
@@ -32438,7 +32437,7 @@ var init_sentry_config = __esm({
32438
32437
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
32439
32438
  SENTRY_CONFIG = {
32440
32439
  projectName: "okx/openclaw-okx-a2a-extension",
32441
- release: "0.2.11-beta-8fef2ef558-260901171734",
32440
+ release: "0.2.11",
32442
32441
  environment,
32443
32442
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
32444
32443
  };
@@ -33379,7 +33378,7 @@ async function getCurrentNodeCliVersion() {
33379
33378
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
33380
33379
  }
33381
33380
  function getBundledNodeCliVersion() {
33382
- return true ? "0.2.11-beta-8fef2ef558-260901171734" : null;
33381
+ return true ? "0.2.11" : null;
33383
33382
  }
33384
33383
  function readConfiguredAiProvider() {
33385
33384
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -33589,7 +33588,7 @@ async function updateHermes(release, options) {
33589
33588
  }
33590
33589
  }
33591
33590
  async function installGatewayPluginForDoctor(target) {
33592
- const release = isPrereleaseVersion("0.2.11-beta-8fef2ef558-260901171734") ? "beta" : "latest";
33591
+ const release = isPrereleaseVersion("0.2.11") ? "beta" : "latest";
33593
33592
  const insideTargetGateway = detectGatewayInvocation() === target;
33594
33593
  const options = {
33595
33594
  restart: !insideTargetGateway,
@@ -46025,7 +46024,8 @@ var AiRunner = class {
46025
46024
  existingFailures: toolFailures.failures,
46026
46025
  errorType: fullOutputErrorType,
46027
46026
  output: runCompletedSuccessfully ? stdoutFull : fullOutputForClassification,
46028
- exitCode
46027
+ exitCode,
46028
+ runCompletedSuccessfully
46029
46029
  });
46030
46030
  const detectedToolFailures = syntheticToolFailure ? [...toolFailures.failures, syntheticToolFailure] : toolFailures.failures;
46031
46031
  const reportableToolFailures = selectReportableAiToolFailures({
@@ -47481,7 +47481,11 @@ function synthesizeCodexProsePermissionFailure(input) {
47481
47481
  if (input.existingFailures.some(isReportableAiToolFailure)) {
47482
47482
  return null;
47483
47483
  }
47484
- const output = extractCodexAgentMessagePermissionText(input.output) ?? input.output;
47484
+ const agentMessageOutput = extractCodexAgentMessagePermissionText(input.output);
47485
+ if (input.runCompletedSuccessfully && agentMessageOutput === null) {
47486
+ return null;
47487
+ }
47488
+ const output = agentMessageOutput ?? input.output;
47485
47489
  if (!looksLikeTerminalPermissionFailure(output)) {
47486
47490
  return null;
47487
47491
  }
@@ -60159,7 +60163,7 @@ async function fetchAgentPage(page, timeoutMs) {
60159
60163
  ({ stdout, stderr } = await exec(
60160
60164
  [
60161
60165
  "agent",
60162
- "get",
60166
+ "get-my-agents",
60163
60167
  "--page",
60164
60168
  String(page),
60165
60169
  "--page-size",
@@ -60198,7 +60202,7 @@ async function fetchAgentPage(page, timeoutMs) {
60198
60202
  guardSessionExpired2(stdout, "list-agents");
60199
60203
  const detail = typeof res.error === "string" ? res.error.trim() : "";
60200
60204
  const parseErr = new Error(
60201
- detail ? `onchainos agent get failed: ${detail}` : "onchainos agent get failed"
60205
+ detail ? `onchainos agent get-my-agents failed: ${detail}` : "onchainos agent get-my-agents failed"
60202
60206
  );
60203
60207
  logger.error(
60204
60208
  LogEvent.ONCHAINOS_CLI_ERROR,
@@ -60218,14 +60222,14 @@ async function fetchAgentsByIds(agentIds) {
60218
60222
  const requested = [...new Set(agentIds.filter(Boolean))];
60219
60223
  if (requested.length > 0) {
60220
60224
  logWithTimestamp(
60221
- `[onchainos] executing: onchainos agent get --agent-ids ${requested.join(",")}`
60225
+ `[onchainos] executing: onchainos agent get-agents --agent-ids ${requested.join(",")}`
60222
60226
  );
60223
60227
  let stdout;
60224
60228
  let stderr;
60225
60229
  try {
60226
60230
  ({ stdout, stderr } = await exec([
60227
60231
  "agent",
60228
- "get",
60232
+ "get-agents",
60229
60233
  "--agent-ids",
60230
60234
  requested.join(",")
60231
60235
  ]));
@@ -60243,7 +60247,7 @@ async function fetchAgentsByIds(agentIds) {
60243
60247
  );
60244
60248
  if (!res.ok) {
60245
60249
  guardSessionExpired2(stdout, "get-agents-by-ids");
60246
- const parseErr = new Error("onchainos agent get --agent-ids failed");
60250
+ const parseErr = new Error("onchainos agent get-agents --agent-ids failed");
60247
60251
  logger.error(
60248
60252
  LogEvent.ONCHAINOS_CLI_ERROR,
60249
60253
  parseErr,
@@ -60253,7 +60257,7 @@ async function fetchAgentsByIds(agentIds) {
60253
60257
  );
60254
60258
  throw parseErr;
60255
60259
  }
60256
- for (const agent of normalizeAgentPage(res.data).list) {
60260
+ for (const agent of res.data) {
60257
60261
  agentByIdCache.set(agent.agentId, agent);
60258
60262
  }
60259
60263
  }
@@ -61347,7 +61351,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61347
61351
  client: {
61348
61352
  id: "gateway-client",
61349
61353
  displayName: "okx-a2a-node",
61350
- version: "0.2.11-beta-8fef2ef558-260901171734",
61354
+ version: "0.2.11",
61351
61355
  platform: "node",
61352
61356
  mode: "backend",
61353
61357
  instanceId
@@ -61358,7 +61362,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61358
61362
  commands: [],
61359
61363
  permissions: {},
61360
61364
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
61361
- userAgent: `okx-a2a-node/${"0.2.11-beta-8fef2ef558-260901171734"}`,
61365
+ userAgent: `okx-a2a-node/${"0.2.11"}`,
61362
61366
  auth: {
61363
61367
  ...config.token ? { token: config.token } : {},
61364
61368
  ...config.password ? { password: config.password } : {}
@@ -67725,12 +67729,12 @@ async function runListenerWithLock(options, paths) {
67725
67729
  });
67726
67730
  }
67727
67731
  });
67728
- service.setPluginVersion("0.2.11-beta-8fef2ef558-260901171734");
67732
+ service.setPluginVersion("0.2.11");
67729
67733
  await service.init();
67730
67734
  const pluginVersionStatus = service.pluginVersionStatus;
67731
67735
  if (pluginVersionStatus.unavailable) {
67732
67736
  throw new Error(
67733
- `@okxweb3/a2a-node v${"0.2.11-beta-8fef2ef558-260901171734"} is below the required minimum v${pluginVersionStatus.minVersion}`
67737
+ `@okxweb3/a2a-node v${"0.2.11"} is below the required minimum v${pluginVersionStatus.minVersion}`
67734
67738
  );
67735
67739
  }
67736
67740
  const systemConfig = service.getSystemConfig();
@@ -67758,7 +67762,7 @@ async function runListenerWithLock(options, paths) {
67758
67762
  onchainosAgentId: "*",
67759
67763
  reason: "system-config missing sentryDsn",
67760
67764
  pluginId: "@okxweb3/a2a-node",
67761
- pluginVersion: "0.2.11-beta-8fef2ef558-260901171734"
67765
+ pluginVersion: "0.2.11"
67762
67766
  });
67763
67767
  }
67764
67768
  logWithTimestamp(
@@ -69134,11 +69138,6 @@ function getA2ACapabilities() {
69134
69138
  ok: true,
69135
69139
  fixCommands: [],
69136
69140
  message: ""
69137
- },
69138
- tradeRecordsV1: {
69139
- ok: true,
69140
- fixCommands: [],
69141
- message: ""
69142
69141
  }
69143
69142
  };
69144
69143
  }
@@ -70531,7 +70530,7 @@ async function exportDiagnosticLogs(options) {
70531
70530
  node: process.version,
70532
70531
  platform: process.platform,
70533
70532
  arch: process.arch,
70534
- packageVersion: true ? "0.2.11-beta-8fef2ef558-260901171734" : "unknown",
70533
+ packageVersion: true ? "0.2.11" : "unknown",
70535
70534
  sensitiveContentIncluded: options.includeSensitiveContent,
70536
70535
  listenerAndLlmContentIncluded: true,
70537
70536
  credentialsAlwaysRedacted: true,
@@ -72413,7 +72412,7 @@ async function runDoctor(options = {}) {
72413
72412
  platform: options.platform ?? process.platform,
72414
72413
  env: options.env ?? process.env,
72415
72414
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
72416
- cliVersion: options.cliVersion ?? (true ? "0.2.11-beta-8fef2ef558-260901171734" : "0.0.0"),
72415
+ cliVersion: options.cliVersion ?? (true ? "0.2.11" : "0.0.0"),
72417
72416
  fixMode: options.fix === true,
72418
72417
  nonInteractive: options.nonInteractive === true,
72419
72418
  packageChanged: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.2.11-beta-8fef2ef558-260901171734",
3
+ "version": "0.2.11",
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": {