@okxweb3/a2a-node 0.2.18 → 0.2.19-beta-d11ae45e77-261112114503

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 +62 -39
  2. package/dist/index.js +18 -21
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -495,7 +495,7 @@ function normalizeGatewayRouteChatType(explicit, parsed, threadId) {
495
495
  }
496
496
  function matchingGatewayRouteFromSessionKey(sessionKey, expected, provider) {
497
497
  const parsed = parseGatewayRouteSessionKey(sessionKey, provider);
498
- if (!parsed || parsed.platform !== expected.platform || parsed.chatId !== expected.chatId) {
498
+ if (parsed?.platform !== expected.platform || parsed.chatId !== expected.chatId) {
499
499
  return null;
500
500
  }
501
501
  return {
@@ -1765,7 +1765,7 @@ async function readDaemonLock(lockPath) {
1765
1765
  async function markDaemonReady(lockPath) {
1766
1766
  const current = await readDaemonLock(lockPath);
1767
1767
  const metadata = current.metadata;
1768
- if (!metadata || metadata.pid !== process.pid) {
1768
+ if (metadata?.pid !== process.pid) {
1769
1769
  return;
1770
1770
  }
1771
1771
  await (0, import_promises.writeFile)(ownerPath(lockPath), `${JSON.stringify({
@@ -2219,7 +2219,7 @@ async function installWindowsAutostart() {
2219
2219
  taskHome: taskPaths.homeDir,
2220
2220
  ...pathValue ? { pathValue } : {}
2221
2221
  });
2222
- await (0, import_promises2.writeFile)(paths.vbsPath, "\uFEFF" + vbsContent, "utf16le");
2222
+ await (0, import_promises2.writeFile)(paths.vbsPath, `\uFEFF${vbsContent}`, "utf16le");
2223
2223
  logWinCompat(
2224
2224
  `${WIN_COMPAT_LOG_PREFIX} autostart install: wrote vbs=${paths.vbsPath} node=${execPath} cli=${cliPath} taskHome=${taskPaths.homeDir}`
2225
2225
  );
@@ -3357,12 +3357,11 @@ async function ensureAiWorkspace(paths) {
3357
3357
  }
3358
3358
  async function waitForImmediateExit(child, timeoutMs) {
3359
3359
  return await new Promise((resolve14) => {
3360
- let timer;
3361
3360
  const onExit = () => {
3362
3361
  clearTimeout(timer);
3363
3362
  resolve14(true);
3364
3363
  };
3365
- timer = setTimeout(() => {
3364
+ const timer = setTimeout(() => {
3366
3365
  child.off("exit", onExit);
3367
3366
  resolve14(false);
3368
3367
  }, timeoutMs);
@@ -4395,13 +4394,12 @@ var init_file_store = __esm({
4395
4394
  withFileLock(path2, operation) {
4396
4395
  const previous = this.writeLocks.get(path2) ?? Promise.resolve();
4397
4396
  const next = previous.then(operation, operation);
4398
- let tracked;
4399
4397
  const release = () => {
4400
4398
  if (this.writeLocks.get(path2) === tracked) {
4401
4399
  this.writeLocks.delete(path2);
4402
4400
  }
4403
4401
  };
4404
- tracked = next.then(release, release);
4402
+ const tracked = next.then(release, release);
4405
4403
  this.writeLocks.set(path2, tracked);
4406
4404
  return next;
4407
4405
  }
@@ -27018,7 +27016,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
27018
27016
  client: {
27019
27017
  id: "gateway-client",
27020
27018
  displayName: "okx-a2a-node",
27021
- version: "0.2.18",
27019
+ version: "0.2.19-beta-d11ae45e77-261112114503",
27022
27020
  platform: "node",
27023
27021
  mode: "backend",
27024
27022
  instanceId
@@ -27029,7 +27027,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
27029
27027
  commands: [],
27030
27028
  permissions: {},
27031
27029
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
27032
- userAgent: `okx-a2a-node/${"0.2.18"}`,
27030
+ userAgent: `okx-a2a-node/${"0.2.19-beta-d11ae45e77-261112114503"}`,
27033
27031
  auth: {
27034
27032
  ...config.token ? { token: config.token } : {},
27035
27033
  ...config.password ? { password: config.password } : {}
@@ -28837,7 +28835,6 @@ async function followFile(filePath, onData, options = {}) {
28837
28835
  let done = false;
28838
28836
  await new Promise((resolvePromise, rejectPromise) => {
28839
28837
  let watcher;
28840
- let timer;
28841
28838
  const finish = (error) => {
28842
28839
  if (done) {
28843
28840
  return;
@@ -28934,7 +28931,7 @@ async function followFile(filePath, onData, options = {}) {
28934
28931
  checking = false;
28935
28932
  }
28936
28933
  };
28937
- timer = setInterval(() => {
28934
+ const timer = setInterval(() => {
28938
28935
  void check();
28939
28936
  }, pollIntervalMs);
28940
28937
  const targetName = (0, import_node_path18.basename)(filePath);
@@ -29089,7 +29086,7 @@ var init_sentry_config = __esm({
29089
29086
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
29090
29087
  SENTRY_CONFIG = {
29091
29088
  projectName: "okx/openclaw-okx-a2a-extension",
29092
- release: "0.2.18",
29089
+ release: "0.2.19-beta-d11ae45e77-261112114503",
29093
29090
  environment,
29094
29091
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
29095
29092
  };
@@ -40259,7 +40256,7 @@ async function exportDiagnosticLogs(options) {
40259
40256
  node: process.version,
40260
40257
  platform: process.platform,
40261
40258
  arch: process.arch,
40262
- packageVersion: true ? "0.2.18" : "unknown",
40259
+ packageVersion: true ? "0.2.19-beta-d11ae45e77-261112114503" : "unknown",
40263
40260
  sensitiveContentIncluded: options.includeSensitiveContent,
40264
40261
  listenerAndLlmContentIncluded: true,
40265
40262
  credentialsAlwaysRedacted: true,
@@ -41243,19 +41240,33 @@ function buildWhere(filter2, includeCursor) {
41243
41240
  } else if (filter2.onlyDeleted) {
41244
41241
  add("deleted_at IS NOT NULL");
41245
41242
  }
41246
- if (filter2.jobId) add("job_id = ?", filter2.jobId);
41247
- if (filter2.deliveryId) add("delivery_id = ?", filter2.deliveryId);
41243
+ if (filter2.jobId) {
41244
+ add("job_id = ?", filter2.jobId);
41245
+ }
41246
+ if (filter2.deliveryId) {
41247
+ add("delivery_id = ?", filter2.deliveryId);
41248
+ }
41248
41249
  if (filter2.statuses && filter2.statuses.length > 0) {
41249
41250
  add(`status IN (${filter2.statuses.map(() => "?").join(", ")})`, ...filter2.statuses);
41250
41251
  }
41251
- if (filter2.reason !== void 0) add("reason = ?", filter2.reason);
41252
+ if (filter2.reason !== void 0) {
41253
+ add("reason = ?", filter2.reason);
41254
+ }
41252
41255
  if (filter2.reasonContains !== void 0) {
41253
41256
  add("reason LIKE ? ESCAPE '\\'", `%${escapeLike(filter2.reasonContains)}%`);
41254
41257
  }
41255
- if (filter2.createdFrom !== void 0) add("created_at >= ?", filter2.createdFrom);
41256
- if (filter2.createdTo !== void 0) add("created_at <= ?", filter2.createdTo);
41257
- if (filter2.updatedFrom !== void 0) add("updated_at >= ?", filter2.updatedFrom);
41258
- if (filter2.updatedTo !== void 0) add("updated_at <= ?", filter2.updatedTo);
41258
+ if (filter2.createdFrom !== void 0) {
41259
+ add("created_at >= ?", filter2.createdFrom);
41260
+ }
41261
+ if (filter2.createdTo !== void 0) {
41262
+ add("created_at <= ?", filter2.createdTo);
41263
+ }
41264
+ if (filter2.updatedFrom !== void 0) {
41265
+ add("updated_at >= ?", filter2.updatedFrom);
41266
+ }
41267
+ if (filter2.updatedTo !== void 0) {
41268
+ add("updated_at <= ?", filter2.updatedTo);
41269
+ }
41259
41270
  for (const extra of filter2.extraEquals ?? []) {
41260
41271
  if (extra.value === null) {
41261
41272
  add("json_type(extra, ?) = 'null'", extra.path);
@@ -41879,7 +41890,9 @@ function loadInsertRecords(parsed) {
41879
41890
  }
41880
41891
  content2 = (0, import_node_fs21.readFileSync)(inputFile, "utf8");
41881
41892
  } catch (error) {
41882
- if (error instanceof TradeRecordsCliError) throw error;
41893
+ if (error instanceof TradeRecordsCliError) {
41894
+ throw error;
41895
+ }
41883
41896
  throw new TradeRecordsCliError("INVALID_INPUT_FILE", `could not read --input-file: ${String(error)}`);
41884
41897
  }
41885
41898
  return { records: parseRecordArray(content2, "--input-file") };
@@ -42082,7 +42095,9 @@ function parseExtraFilter(raw) {
42082
42095
  }
42083
42096
  function readTimestamp(parsed, name) {
42084
42097
  const raw = readSingle(parsed, name);
42085
- if (raw === void 0) return void 0;
42098
+ if (raw === void 0) {
42099
+ return void 0;
42100
+ }
42086
42101
  const value = Number(raw);
42087
42102
  if (!Number.isSafeInteger(value) || value < 0) {
42088
42103
  throw new TradeRecordsCliError("INVALID_ARGUMENT", `--${name} must be a non-negative integer`);
@@ -42096,7 +42111,9 @@ function assertRange(label, from, to) {
42096
42111
  }
42097
42112
  function readLimit(parsed) {
42098
42113
  const raw = readSingle(parsed, "limit");
42099
- if (raw === void 0) return 100;
42114
+ if (raw === void 0) {
42115
+ return 100;
42116
+ }
42100
42117
  const limit = Number(raw);
42101
42118
  if (!Number.isInteger(limit) || limit < 1 || limit > 1e3) {
42102
42119
  throw new TradeRecordsCliError("INVALID_ARGUMENT", "--limit must be an integer between 1 and 1000");
@@ -42105,7 +42122,9 @@ function readLimit(parsed) {
42105
42122
  }
42106
42123
  function readChoice(parsed, name, choices) {
42107
42124
  const value = readSingle(parsed, name);
42108
- if (value === void 0) return void 0;
42125
+ if (value === void 0) {
42126
+ return void 0;
42127
+ }
42109
42128
  if (!choices.includes(value)) {
42110
42129
  throw new TradeRecordsCliError(
42111
42130
  "INVALID_ARGUMENT",
@@ -42176,7 +42195,9 @@ function outputError(json, error) {
42176
42195
  }
42177
42196
  }
42178
42197
  function normalizeError(error) {
42179
- if (error instanceof TradeRecordsCliError) return error;
42198
+ if (error instanceof TradeRecordsCliError) {
42199
+ return error;
42200
+ }
42180
42201
  if (error instanceof TradeRecordsStoreError) {
42181
42202
  return new TradeRecordsCliError(error.code, error.message);
42182
42203
  }
@@ -42189,7 +42210,9 @@ function normalizeError(error) {
42189
42210
  );
42190
42211
  }
42191
42212
  function isBusyError(error) {
42192
- if (!(error instanceof Error)) return false;
42213
+ if (!(error instanceof Error)) {
42214
+ return false;
42215
+ }
42193
42216
  const code = error.errcode;
42194
42217
  return typeof code === "number" && ((code & 255) === 5 || (code & 255) === 6) || /database is locked|database table is locked/i.test(error.message);
42195
42218
  }
@@ -69032,7 +69055,7 @@ async function isTrustedDmSender(params) {
69032
69055
  }
69033
69056
  if (trustedInboxIds.length === 0) {
69034
69057
  logger.info(LogEvent.DM_WHITELIST_FAIL_OPEN, { ...dmExtras(), reason: "trusted_inbox_list_empty" });
69035
- return true;
69058
+ return false;
69036
69059
  }
69037
69060
  if (!matches(trustedInboxIds)) {
69038
69061
  logger.info(LogEvent.INBOUND_DROP_DM_NON_SYSTEM, {
@@ -70488,12 +70511,12 @@ async function runListenerWithLock(options, paths) {
70488
70511
  });
70489
70512
  }
70490
70513
  });
70491
- service.setPluginVersion("0.2.18");
70514
+ service.setPluginVersion("0.2.19-beta-d11ae45e77-261112114503");
70492
70515
  await service.init();
70493
70516
  const pluginVersionStatus = service.pluginVersionStatus;
70494
70517
  if (pluginVersionStatus.unavailable) {
70495
70518
  throw new Error(
70496
- `@okxweb3/a2a-node v${"0.2.18"} is below the required minimum v${pluginVersionStatus.minVersion}`
70519
+ `@okxweb3/a2a-node v${"0.2.19-beta-d11ae45e77-261112114503"} is below the required minimum v${pluginVersionStatus.minVersion}`
70497
70520
  );
70498
70521
  }
70499
70522
  const systemConfig = service.getSystemConfig();
@@ -70521,7 +70544,7 @@ async function runListenerWithLock(options, paths) {
70521
70544
  onchainosAgentId: "*",
70522
70545
  reason: "system-config missing sentryDsn",
70523
70546
  pluginId: "@okxweb3/a2a-node",
70524
- pluginVersion: "0.2.18"
70547
+ pluginVersion: "0.2.19-beta-d11ae45e77-261112114503"
70525
70548
  });
70526
70549
  }
70527
70550
  logWithTimestamp(
@@ -116377,7 +116400,7 @@ function parseTelegramTopicSuffix3(parts) {
116377
116400
  return parts.join(":");
116378
116401
  }
116379
116402
  function matchingParsedThreadId2(parsed, expected) {
116380
- if (!parsed || parsed.platform !== expected.platform || parsed.chatId !== expected.chatId) {
116403
+ if (parsed?.platform !== expected.platform || parsed.chatId !== expected.chatId) {
116381
116404
  return null;
116382
116405
  }
116383
116406
  return normalizeOptionalText3(parsed.threadId);
@@ -117298,7 +117321,7 @@ function parseTelegramTopicSuffix4(parts) {
117298
117321
  return parts.join(":");
117299
117322
  }
117300
117323
  function matchingParsedThreadId3(parsed, expected) {
117301
- if (!parsed || parsed.platform !== expected.platform || parsed.chatId !== expected.chatId) {
117324
+ if (parsed?.platform !== expected.platform || parsed.chatId !== expected.chatId) {
117302
117325
  return null;
117303
117326
  }
117304
117327
  return normalizeOptionalText4(parsed.threadId);
@@ -118864,7 +118887,7 @@ async function getCurrentNodeCliVersion() {
118864
118887
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
118865
118888
  }
118866
118889
  function getBundledNodeCliVersion() {
118867
- return true ? "0.2.18" : null;
118890
+ return true ? "0.2.19-beta-d11ae45e77-261112114503" : null;
118868
118891
  }
118869
118892
  function readConfiguredAiProvider() {
118870
118893
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -119074,7 +119097,7 @@ async function updateHermes(release, options) {
119074
119097
  }
119075
119098
  }
119076
119099
  async function installGatewayPluginForDoctor(target) {
119077
- const release = isPrereleaseVersion("0.2.18") ? "beta" : "latest";
119100
+ const release = isPrereleaseVersion("0.2.19-beta-d11ae45e77-261112114503") ? "beta" : "latest";
119078
119101
  const insideTargetGateway = detectGatewayInvocation() === target;
119079
119102
  const options = {
119080
119103
  restart: !insideTargetGateway,
@@ -120127,7 +120150,7 @@ async function runDoctor(options = {}) {
120127
120150
  platform: options.platform ?? process.platform,
120128
120151
  env: options.env ?? process.env,
120129
120152
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
120130
- cliVersion: options.cliVersion ?? (true ? "0.2.18" : "0.0.0"),
120153
+ cliVersion: options.cliVersion ?? (true ? "0.2.19-beta-d11ae45e77-261112114503" : "0.0.0"),
120131
120154
  fixMode: options.fix === true,
120132
120155
  nonInteractive: options.nonInteractive === true,
120133
120156
  packageChanged: false,
@@ -121105,7 +121128,7 @@ var init_doctor_cli = __esm({
121105
121128
  title: "Daemon autostart",
121106
121129
  status: "fail",
121107
121130
  severity: "recommended",
121108
- detail: "OS autostart is not installed. This is OPTIONAL and NOT blocking \u2014 the daemon runs fine for this session; autostart only makes the A2A service start automatically on every boot/logon so you don't have to start it manually." + (needsAdmin ? " On Windows this needs an Administrator terminal." : ""),
121131
+ detail: `OS autostart is not installed. This is OPTIONAL and NOT blocking \u2014 the daemon runs fine for this session; autostart only makes the A2A service start automatically on every boot/logon so you don't have to start it manually.${needsAdmin ? " On Windows this needs an Administrator terminal." : ""}`,
121109
121132
  fix: needsAdmin ? {
121110
121133
  kind: "manual",
121111
121134
  description: "Optional: to start the A2A daemon automatically at every logon, run this once from an Administrator PowerShell. Skipping it is fine \u2014 just run `okx-a2a daemon start` when you need the daemon.",
@@ -121234,7 +121257,7 @@ init_sentry_config();
121234
121257
  init_runtime_metadata();
121235
121258
  var CURRENT_GATEWAY_SESSION_KEYS_ENV4 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
121236
121259
  function printUsage3() {
121237
- console.log(`okx-a2a ${"0.2.18"}
121260
+ console.log(`okx-a2a ${"0.2.19-beta-d11ae45e77-261112114503"}
121238
121261
 
121239
121262
  Usage:
121240
121263
  okx-a2a <command> [options]
@@ -121276,7 +121299,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
121276
121299
  `);
121277
121300
  }
121278
121301
  function printVersion() {
121279
- console.log("0.2.18");
121302
+ console.log("0.2.19-beta-d11ae45e77-261112114503");
121280
121303
  }
121281
121304
  function printDaemonUsage() {
121282
121305
  console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
@@ -122771,7 +122794,7 @@ async function main() {
122771
122794
  if (command === "xmtp-test") {
122772
122795
  const { handleXmtpTestCommand: handleXmtpTestCommand2 } = await Promise.resolve().then(() => (init_xmtp_test_cli(), xmtp_test_cli_exports));
122773
122796
  await handleXmtpTestCommand2(process.argv.slice(3), {
122774
- packageVersion: "0.2.18",
122797
+ packageVersion: "0.2.19-beta-d11ae45e77-261112114503",
122775
122798
  agentSdkVersion: "2.3.1",
122776
122799
  nodeSdkVersion: "6.1.1",
122777
122800
  nodeBindingsVersion: "1.11.1"
package/dist/index.js CHANGED
@@ -495,7 +495,7 @@ function normalizeGatewayRouteChatType(explicit, parsed, threadId) {
495
495
  }
496
496
  function matchingGatewayRouteFromSessionKey(sessionKey, expected, provider) {
497
497
  const parsed = parseGatewayRouteSessionKey(sessionKey, provider);
498
- if (!parsed || parsed.platform !== expected.platform || parsed.chatId !== expected.chatId) {
498
+ if (parsed?.platform !== expected.platform || parsed.chatId !== expected.chatId) {
499
499
  return null;
500
500
  }
501
501
  return {
@@ -1765,7 +1765,7 @@ async function readDaemonLock(lockPath) {
1765
1765
  async function markDaemonReady(lockPath) {
1766
1766
  const current = await readDaemonLock(lockPath);
1767
1767
  const metadata = current.metadata;
1768
- if (!metadata || metadata.pid !== process.pid) {
1768
+ if (metadata?.pid !== process.pid) {
1769
1769
  return;
1770
1770
  }
1771
1771
  await (0, import_promises.writeFile)(ownerPath(lockPath), `${JSON.stringify({
@@ -2219,7 +2219,7 @@ async function installWindowsAutostart() {
2219
2219
  taskHome: taskPaths.homeDir,
2220
2220
  ...pathValue ? { pathValue } : {}
2221
2221
  });
2222
- await (0, import_promises2.writeFile)(paths.vbsPath, "\uFEFF" + vbsContent, "utf16le");
2222
+ await (0, import_promises2.writeFile)(paths.vbsPath, `\uFEFF${vbsContent}`, "utf16le");
2223
2223
  logWinCompat(
2224
2224
  `${WIN_COMPAT_LOG_PREFIX} autostart install: wrote vbs=${paths.vbsPath} node=${execPath} cli=${cliPath} taskHome=${taskPaths.homeDir}`
2225
2225
  );
@@ -3378,12 +3378,11 @@ async function ensureAiWorkspace(paths) {
3378
3378
  }
3379
3379
  async function waitForImmediateExit(child, timeoutMs) {
3380
3380
  return await new Promise((resolve11) => {
3381
- let timer;
3382
3381
  const onExit = () => {
3383
3382
  clearTimeout(timer);
3384
3383
  resolve11(true);
3385
3384
  };
3386
- timer = setTimeout(() => {
3385
+ const timer = setTimeout(() => {
3387
3386
  child.off("exit", onExit);
3388
3387
  resolve11(false);
3389
3388
  }, timeoutMs);
@@ -32465,7 +32464,7 @@ var init_sentry_config = __esm({
32465
32464
  environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
32466
32465
  SENTRY_CONFIG = {
32467
32466
  projectName: "okx/openclaw-okx-a2a-extension",
32468
- release: "0.2.18",
32467
+ release: "0.2.19-beta-d11ae45e77-261112114503",
32469
32468
  environment,
32470
32469
  runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
32471
32470
  };
@@ -33421,7 +33420,7 @@ async function getCurrentNodeCliVersion() {
33421
33420
  return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
33422
33421
  }
33423
33422
  function getBundledNodeCliVersion() {
33424
- return true ? "0.2.18" : null;
33423
+ return true ? "0.2.19-beta-d11ae45e77-261112114503" : null;
33425
33424
  }
33426
33425
  function readConfiguredAiProvider() {
33427
33426
  const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
@@ -33631,7 +33630,7 @@ async function updateHermes(release, options) {
33631
33630
  }
33632
33631
  }
33633
33632
  async function installGatewayPluginForDoctor(target) {
33634
- const release = isPrereleaseVersion("0.2.18") ? "beta" : "latest";
33633
+ const release = isPrereleaseVersion("0.2.19-beta-d11ae45e77-261112114503") ? "beta" : "latest";
33635
33634
  const insideTargetGateway = detectGatewayInvocation() === target;
33636
33635
  const options = {
33637
33636
  restart: !insideTargetGateway,
@@ -44839,13 +44838,12 @@ var TaskMessageStore = class {
44839
44838
  withFileLock(path2, operation) {
44840
44839
  const previous = this.writeLocks.get(path2) ?? Promise.resolve();
44841
44840
  const next = previous.then(operation, operation);
44842
- let tracked;
44843
44841
  const release = () => {
44844
44842
  if (this.writeLocks.get(path2) === tracked) {
44845
44843
  this.writeLocks.delete(path2);
44846
44844
  }
44847
44845
  };
44848
- tracked = next.then(release, release);
44846
+ const tracked = next.then(release, release);
44849
44847
  this.writeLocks.set(path2, tracked);
44850
44848
  return next;
44851
44849
  }
@@ -62133,7 +62131,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
62133
62131
  client: {
62134
62132
  id: "gateway-client",
62135
62133
  displayName: "okx-a2a-node",
62136
- version: "0.2.18",
62134
+ version: "0.2.19-beta-d11ae45e77-261112114503",
62137
62135
  platform: "node",
62138
62136
  mode: "backend",
62139
62137
  instanceId
@@ -62144,7 +62142,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
62144
62142
  commands: [],
62145
62143
  permissions: {},
62146
62144
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
62147
- userAgent: `okx-a2a-node/${"0.2.18"}`,
62145
+ userAgent: `okx-a2a-node/${"0.2.19-beta-d11ae45e77-261112114503"}`,
62148
62146
  auth: {
62149
62147
  ...config.token ? { token: config.token } : {},
62150
62148
  ...config.password ? { password: config.password } : {}
@@ -66742,7 +66740,7 @@ async function isTrustedDmSender(params) {
66742
66740
  }
66743
66741
  if (trustedInboxIds.length === 0) {
66744
66742
  logger.info(LogEvent.DM_WHITELIST_FAIL_OPEN, { ...dmExtras(), reason: "trusted_inbox_list_empty" });
66745
- return true;
66743
+ return false;
66746
66744
  }
66747
66745
  if (!matches(trustedInboxIds)) {
66748
66746
  logger.info(LogEvent.INBOUND_DROP_DM_NON_SYSTEM, {
@@ -68484,12 +68482,12 @@ async function runListenerWithLock(options, paths) {
68484
68482
  });
68485
68483
  }
68486
68484
  });
68487
- service.setPluginVersion("0.2.18");
68485
+ service.setPluginVersion("0.2.19-beta-d11ae45e77-261112114503");
68488
68486
  await service.init();
68489
68487
  const pluginVersionStatus = service.pluginVersionStatus;
68490
68488
  if (pluginVersionStatus.unavailable) {
68491
68489
  throw new Error(
68492
- `@okxweb3/a2a-node v${"0.2.18"} is below the required minimum v${pluginVersionStatus.minVersion}`
68490
+ `@okxweb3/a2a-node v${"0.2.19-beta-d11ae45e77-261112114503"} is below the required minimum v${pluginVersionStatus.minVersion}`
68493
68491
  );
68494
68492
  }
68495
68493
  const systemConfig = service.getSystemConfig();
@@ -68517,7 +68515,7 @@ async function runListenerWithLock(options, paths) {
68517
68515
  onchainosAgentId: "*",
68518
68516
  reason: "system-config missing sentryDsn",
68519
68517
  pluginId: "@okxweb3/a2a-node",
68520
- pluginVersion: "0.2.18"
68518
+ pluginVersion: "0.2.19-beta-d11ae45e77-261112114503"
68521
68519
  });
68522
68520
  }
68523
68521
  logWithTimestamp(
@@ -68936,7 +68934,6 @@ async function followFile(filePath, onData, options = {}) {
68936
68934
  let done = false;
68937
68935
  await new Promise((resolvePromise, rejectPromise) => {
68938
68936
  let watcher;
68939
- let timer;
68940
68937
  const finish = (error) => {
68941
68938
  if (done) {
68942
68939
  return;
@@ -69033,7 +69030,7 @@ async function followFile(filePath, onData, options = {}) {
69033
69030
  checking = false;
69034
69031
  }
69035
69032
  };
69036
- timer = setInterval(() => {
69033
+ const timer = setInterval(() => {
69037
69034
  void check();
69038
69035
  }, pollIntervalMs);
69039
69036
  const targetName = (0, import_node_path26.basename)(filePath);
@@ -71290,7 +71287,7 @@ async function exportDiagnosticLogs(options) {
71290
71287
  node: process.version,
71291
71288
  platform: process.platform,
71292
71289
  arch: process.arch,
71293
- packageVersion: true ? "0.2.18" : "unknown",
71290
+ packageVersion: true ? "0.2.19-beta-d11ae45e77-261112114503" : "unknown",
71294
71291
  sensitiveContentIncluded: options.includeSensitiveContent,
71295
71292
  listenerAndLlmContentIncluded: true,
71296
71293
  credentialsAlwaysRedacted: true,
@@ -73148,7 +73145,7 @@ var autostartChecker = {
73148
73145
  title: "Daemon autostart",
73149
73146
  status: "fail",
73150
73147
  severity: "recommended",
73151
- detail: "OS autostart is not installed. This is OPTIONAL and NOT blocking \u2014 the daemon runs fine for this session; autostart only makes the A2A service start automatically on every boot/logon so you don't have to start it manually." + (needsAdmin ? " On Windows this needs an Administrator terminal." : ""),
73148
+ detail: `OS autostart is not installed. This is OPTIONAL and NOT blocking \u2014 the daemon runs fine for this session; autostart only makes the A2A service start automatically on every boot/logon so you don't have to start it manually.${needsAdmin ? " On Windows this needs an Administrator terminal." : ""}`,
73152
73149
  fix: needsAdmin ? {
73153
73150
  kind: "manual",
73154
73151
  description: "Optional: to start the A2A daemon automatically at every logon, run this once from an Administrator PowerShell. Skipping it is fine \u2014 just run `okx-a2a daemon start` when you need the daemon.",
@@ -73202,7 +73199,7 @@ async function runDoctor(options = {}) {
73202
73199
  platform: options.platform ?? process.platform,
73203
73200
  env: options.env ?? process.env,
73204
73201
  target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
73205
- cliVersion: options.cliVersion ?? (true ? "0.2.18" : "0.0.0"),
73202
+ cliVersion: options.cliVersion ?? (true ? "0.2.19-beta-d11ae45e77-261112114503" : "0.0.0"),
73206
73203
  fixMode: options.fix === true,
73207
73204
  nonInteractive: options.nonInteractive === true,
73208
73205
  packageChanged: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.2.18",
3
+ "version": "0.2.19-beta-d11ae45e77-261112114503",
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": {