@okxweb3/a2a-node 0.0.16 → 0.0.17-beta-db5dca184d-260624144716

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/index.js CHANGED
@@ -68297,7 +68297,7 @@ var SessionStore = class {
68297
68297
  `);
68298
68298
  }
68299
68299
  ensurePendingGatewayDeliveriesSchema() {
68300
- const expectedKindCheck = "kind IN ('session_send', 'chat_inject', 'dispatch_user_latest', 'prompt_user_latest')";
68300
+ const expectedKindCheck = this.pendingGatewayDeliveryKindCheck();
68301
68301
  this.db.exec(`
68302
68302
  CREATE TABLE IF NOT EXISTS pending_gateway_deliveries (
68303
68303
  id TEXT PRIMARY KEY,
@@ -68308,6 +68308,9 @@ var SessionStore = class {
68308
68308
  content TEXT NOT NULL,
68309
68309
  llm_content TEXT,
68310
68310
  message_id TEXT UNIQUE,
68311
+ attention_id TEXT,
68312
+ delivery_state_json TEXT,
68313
+ payload_json TEXT,
68311
68314
  attempts INTEGER NOT NULL DEFAULT 0,
68312
68315
  last_error TEXT,
68313
68316
  created_at TEXT NOT NULL,
@@ -68315,7 +68318,7 @@ var SessionStore = class {
68315
68318
  )
68316
68319
  `);
68317
68320
  const row = this.db.prepare("SELECT sql FROM sqlite_master WHERE type='table' AND name='pending_gateway_deliveries'").get();
68318
- if (row?.sql?.includes("dispatch_user_latest")) {
68321
+ if (row?.sql?.includes("attention_id") && row.sql.includes("delivery_state_json") && row.sql.includes("payload_json")) {
68319
68322
  return;
68320
68323
  }
68321
68324
  this.db.exec("ALTER TABLE pending_gateway_deliveries RENAME TO pending_gateway_deliveries_old");
@@ -68329,6 +68332,9 @@ var SessionStore = class {
68329
68332
  content TEXT NOT NULL,
68330
68333
  llm_content TEXT,
68331
68334
  message_id TEXT UNIQUE,
68335
+ attention_id TEXT,
68336
+ delivery_state_json TEXT,
68337
+ payload_json TEXT,
68332
68338
  attempts INTEGER NOT NULL DEFAULT 0,
68333
68339
  last_error TEXT,
68334
68340
  created_at TEXT NOT NULL,
@@ -68338,15 +68344,19 @@ var SessionStore = class {
68338
68344
  this.db.exec(`
68339
68345
  INSERT INTO pending_gateway_deliveries (
68340
68346
  id, kind, provider, session_key, job_id, content, llm_content,
68341
- message_id, attempts, last_error, created_at, last_attempt_at
68347
+ message_id, attention_id, delivery_state_json, payload_json,
68348
+ attempts, last_error, created_at, last_attempt_at
68342
68349
  )
68343
68350
  SELECT
68344
68351
  id, kind, provider, session_key, job_id, content, llm_content,
68345
- message_id, attempts, last_error, created_at, last_attempt_at
68352
+ message_id, NULL, NULL, NULL, attempts, last_error, created_at, last_attempt_at
68346
68353
  FROM pending_gateway_deliveries_old
68347
68354
  `);
68348
68355
  this.db.exec("DROP TABLE pending_gateway_deliveries_old");
68349
68356
  }
68357
+ pendingGatewayDeliveryKindCheck() {
68358
+ return "kind IN ('session_send', 'chat_inject', 'dispatch_user_latest', 'prompt_user_latest')";
68359
+ }
68350
68360
  close() {
68351
68361
  this.db.close();
68352
68362
  }
@@ -69076,9 +69086,10 @@ var SessionStore = class {
69076
69086
  this.db.prepare(`
69077
69087
  INSERT INTO pending_gateway_deliveries (
69078
69088
  id, kind, provider, session_key, job_id, content, llm_content,
69079
- message_id, attempts, last_error, created_at, last_attempt_at
69089
+ message_id, attention_id, delivery_state_json, payload_json,
69090
+ attempts, last_error, created_at, last_attempt_at
69080
69091
  )
69081
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, 0, NULL, ?, NULL)
69092
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, NULL, ?, NULL)
69082
69093
  `).run(
69083
69094
  id,
69084
69095
  input.kind,
@@ -69088,6 +69099,9 @@ var SessionStore = class {
69088
69099
  input.content,
69089
69100
  input.llmContent ?? null,
69090
69101
  messageId,
69102
+ input.attentionId ?? null,
69103
+ input.deliveryStateJson ?? null,
69104
+ input.payloadJson ?? null,
69091
69105
  createdAt
69092
69106
  );
69093
69107
  const row = this.getPendingGatewayDelivery(id);
@@ -69365,6 +69379,9 @@ function mapPendingGatewayDeliveryRow(row) {
69365
69379
  ...row.job_id ? { jobId: row.job_id } : {},
69366
69380
  ...row.llm_content ? { llmContent: row.llm_content } : {},
69367
69381
  ...row.message_id ? { messageId: row.message_id } : {},
69382
+ ...row.attention_id ? { attentionId: row.attention_id } : {},
69383
+ ...row.delivery_state_json ? { deliveryStateJson: row.delivery_state_json } : {},
69384
+ ...row.payload_json ? { payloadJson: row.payload_json } : {},
69368
69385
  ...row.last_error ? { lastError: row.last_error } : {},
69369
69386
  ...row.last_attempt_at ? { lastAttemptAt: row.last_attempt_at } : {}
69370
69387
  };
@@ -86204,7 +86221,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
86204
86221
  client: {
86205
86222
  id: "gateway-client",
86206
86223
  displayName: "okx-a2a-node",
86207
- version: "0.0.16",
86224
+ version: "0.0.17-beta-db5dca184d-260624144716",
86208
86225
  platform: "node",
86209
86226
  mode: "backend",
86210
86227
  instanceId
@@ -86215,7 +86232,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
86215
86232
  commands: [],
86216
86233
  permissions: {},
86217
86234
  locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
86218
- userAgent: `okx-a2a-node/${"0.0.16"}`,
86235
+ userAgent: `okx-a2a-node/${"0.0.17-beta-db5dca184d-260624144716"}`,
86219
86236
  auth: {
86220
86237
  ...config.token ? { token: config.token } : {},
86221
86238
  ...config.password ? { password: config.password } : {}
@@ -90364,7 +90381,7 @@ function userWatchEventDeliveredSentryExtra(event) {
90364
90381
  var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
90365
90382
  var SENTRY_CONFIG = {
90366
90383
  projectName: "okx/openclaw-okx-a2a-extension",
90367
- release: "0.0.16",
90384
+ release: "0.0.17-beta-db5dca184d-260624144716",
90368
90385
  environment
90369
90386
  };
90370
90387
 
@@ -90499,12 +90516,12 @@ async function runListenerWithLock(options, paths) {
90499
90516
  }));
90500
90517
  }
90501
90518
  });
90502
- service.setPluginVersion("0.0.16");
90519
+ service.setPluginVersion("0.0.17-beta-db5dca184d-260624144716");
90503
90520
  await service.init();
90504
90521
  const pluginVersionStatus = service.pluginVersionStatus;
90505
90522
  if (pluginVersionStatus.unavailable) {
90506
90523
  throw new Error(
90507
- `@okxweb3/a2a-node v${"0.0.16"} is below the required minimum v${pluginVersionStatus.minVersion}`
90524
+ `@okxweb3/a2a-node v${"0.0.17-beta-db5dca184d-260624144716"} is below the required minimum v${pluginVersionStatus.minVersion}`
90508
90525
  );
90509
90526
  }
90510
90527
  const systemConfig = service.getSystemConfig();
@@ -90522,7 +90539,7 @@ async function runListenerWithLock(options, paths) {
90522
90539
  onchainosAgentId: "*",
90523
90540
  reason: "system-config missing sentryDsn",
90524
90541
  pluginId: "@okxweb3/a2a-node",
90525
- pluginVersion: "0.0.16"
90542
+ pluginVersion: "0.0.17-beta-db5dca184d-260624144716"
90526
90543
  });
90527
90544
  }
90528
90545
  logWithTimestamp(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okxweb3/a2a-node",
3
- "version": "0.0.16",
3
+ "version": "0.0.17-beta-db5dca184d-260624144716",
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": {