@okxweb3/a2a-node 0.2.10 → 0.2.11-beta-8fef2ef558-260901172338

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 +1302 -221
  2. package/dist/index.js +22 -16
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -108,6 +108,7 @@ 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"),
111
112
  pendingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "pending"),
112
113
  processingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "processing"),
113
114
  completedCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "completed"),
@@ -32437,7 +32438,7 @@ var init_sentry_config = __esm({
32437
32438
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
32438
32439
  SENTRY_CONFIG = {
32439
32440
  projectName: "okx/openclaw-okx-a2a-extension",
32440
- release: "0.2.10",
32441
+ release: "0.2.11-beta-8fef2ef558-260901172338",
32441
32442
  environment,
32442
32443
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
32443
32444
  };
@@ -33378,7 +33379,7 @@ async function getCurrentNodeCliVersion() {
33378
33379
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
33379
33380
  }
33380
33381
  function getBundledNodeCliVersion() {
33381
- return true ? "0.2.10" : null;
33382
+ return true ? "0.2.11-beta-8fef2ef558-260901172338" : null;
33382
33383
  }
33383
33384
  function readConfiguredAiProvider() {
33384
33385
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -33588,7 +33589,7 @@ async function updateHermes(release, options) {
33588
33589
  }
33589
33590
  }
33590
33591
  async function installGatewayPluginForDoctor(target) {
33591
- const release = isPrereleaseVersion("0.2.10") ? "beta" : "latest";
33592
+ const release = isPrereleaseVersion("0.2.11-beta-8fef2ef558-260901172338") ? "beta" : "latest";
33592
33593
  const insideTargetGateway = detectGatewayInvocation() === target;
33593
33594
  const options = {
33594
33595
  restart: !insideTargetGateway,
@@ -60158,7 +60159,7 @@ async function fetchAgentPage(page, timeoutMs) {
60158
60159
  ({ stdout, stderr } = await exec(
60159
60160
  [
60160
60161
  "agent",
60161
- "get",
60162
+ "get-my-agents",
60162
60163
  "--page",
60163
60164
  String(page),
60164
60165
  "--page-size",
@@ -60197,7 +60198,7 @@ async function fetchAgentPage(page, timeoutMs) {
60197
60198
  guardSessionExpired2(stdout, "list-agents");
60198
60199
  const detail = typeof res.error === "string" ? res.error.trim() : "";
60199
60200
  const parseErr = new Error(
60200
- detail ? `onchainos agent get failed: ${detail}` : "onchainos agent get failed"
60201
+ detail ? `onchainos agent get-my-agents failed: ${detail}` : "onchainos agent get-my-agents failed"
60201
60202
  );
60202
60203
  logger.error(
60203
60204
  LogEvent.ONCHAINOS_CLI_ERROR,
@@ -60217,14 +60218,14 @@ async function fetchAgentsByIds(agentIds) {
60217
60218
  const requested = [...new Set(agentIds.filter(Boolean))];
60218
60219
  if (requested.length > 0) {
60219
60220
  logWithTimestamp(
60220
- `[onchainos] executing: onchainos agent get --agent-ids ${requested.join(",")}`
60221
+ `[onchainos] executing: onchainos agent get-agents --agent-ids ${requested.join(",")}`
60221
60222
  );
60222
60223
  let stdout;
60223
60224
  let stderr;
60224
60225
  try {
60225
60226
  ({ stdout, stderr } = await exec([
60226
60227
  "agent",
60227
- "get",
60228
+ "get-agents",
60228
60229
  "--agent-ids",
60229
60230
  requested.join(",")
60230
60231
  ]));
@@ -60242,7 +60243,7 @@ async function fetchAgentsByIds(agentIds) {
60242
60243
  );
60243
60244
  if (!res.ok) {
60244
60245
  guardSessionExpired2(stdout, "get-agents-by-ids");
60245
- const parseErr = new Error("onchainos agent get --agent-ids failed");
60246
+ const parseErr = new Error("onchainos agent get-agents --agent-ids failed");
60246
60247
  logger.error(
60247
60248
  LogEvent.ONCHAINOS_CLI_ERROR,
60248
60249
  parseErr,
@@ -60252,7 +60253,7 @@ async function fetchAgentsByIds(agentIds) {
60252
60253
  );
60253
60254
  throw parseErr;
60254
60255
  }
60255
- for (const agent of normalizeAgentPage(res.data).list) {
60256
+ for (const agent of res.data) {
60256
60257
  agentByIdCache.set(agent.agentId, agent);
60257
60258
  }
60258
60259
  }
@@ -61346,7 +61347,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61346
61347
  client: {
61347
61348
  id: "gateway-client",
61348
61349
  displayName: "okx-a2a-node",
61349
- version: "0.2.10",
61350
+ version: "0.2.11-beta-8fef2ef558-260901172338",
61350
61351
  platform: "node",
61351
61352
  mode: "backend",
61352
61353
  instanceId
@@ -61357,7 +61358,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
61357
61358
  commands: [],
61358
61359
  permissions: {},
61359
61360
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
61360
- userAgent: `okx-a2a-node/${"0.2.10"}`,
61361
+ userAgent: `okx-a2a-node/${"0.2.11-beta-8fef2ef558-260901172338"}`,
61361
61362
  auth: {
61362
61363
  ...config.token ? { token: config.token } : {},
61363
61364
  ...config.password ? { password: config.password } : {}
@@ -67724,12 +67725,12 @@ async function runListenerWithLock(options, paths) {
67724
67725
  });
67725
67726
  }
67726
67727
  });
67727
- service.setPluginVersion("0.2.10");
67728
+ service.setPluginVersion("0.2.11-beta-8fef2ef558-260901172338");
67728
67729
  await service.init();
67729
67730
  const pluginVersionStatus = service.pluginVersionStatus;
67730
67731
  if (pluginVersionStatus.unavailable) {
67731
67732
  throw new Error(
67732
- `@okxweb3/a2a-node v${"0.2.10"} is below the required minimum v${pluginVersionStatus.minVersion}`
67733
+ `@okxweb3/a2a-node v${"0.2.11-beta-8fef2ef558-260901172338"} is below the required minimum v${pluginVersionStatus.minVersion}`
67733
67734
  );
67734
67735
  }
67735
67736
  const systemConfig = service.getSystemConfig();
@@ -67757,7 +67758,7 @@ async function runListenerWithLock(options, paths) {
67757
67758
  onchainosAgentId: "*",
67758
67759
  reason: "system-config missing sentryDsn",
67759
67760
  pluginId: "@okxweb3/a2a-node",
67760
- pluginVersion: "0.2.10"
67761
+ pluginVersion: "0.2.11-beta-8fef2ef558-260901172338"
67761
67762
  });
67762
67763
  }
67763
67764
  logWithTimestamp(
@@ -69133,6 +69134,11 @@ function getA2ACapabilities() {
69133
69134
  ok: true,
69134
69135
  fixCommands: [],
69135
69136
  message: ""
69137
+ },
69138
+ tradeRecordsV1: {
69139
+ ok: true,
69140
+ fixCommands: [],
69141
+ message: ""
69136
69142
  }
69137
69143
  };
69138
69144
  }
@@ -70525,7 +70531,7 @@ async function exportDiagnosticLogs(options) {
70525
70531
  node: process.version,
70526
70532
  platform: process.platform,
70527
70533
  arch: process.arch,
70528
- packageVersion: true ? "0.2.10" : "unknown",
70534
+ packageVersion: true ? "0.2.11-beta-8fef2ef558-260901172338" : "unknown",
70529
70535
  sensitiveContentIncluded: options.includeSensitiveContent,
70530
70536
  listenerAndLlmContentIncluded: true,
70531
70537
  credentialsAlwaysRedacted: true,
@@ -72407,7 +72413,7 @@ async function runDoctor(options = {}) {
72407
72413
  platform: options.platform ?? process.platform,
72408
72414
  env: options.env ?? process.env,
72409
72415
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
72410
- cliVersion: options.cliVersion ?? (true ? "0.2.10" : "0.0.0"),
72416
+ cliVersion: options.cliVersion ?? (true ? "0.2.11-beta-8fef2ef558-260901172338" : "0.0.0"),
72411
72417
  fixMode: options.fix === true,
72412
72418
  nonInteractive: options.nonInteractive === true,
72413
72419
  packageChanged: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.2.10",
3
+ "version": "0.2.11-beta-8fef2ef558-260901172338",
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": {