squad-openclaw 2026.2.1812 → 2026.2.1814

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 (2) hide show
  1. package/dist/index.js +13 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1290,6 +1290,14 @@ var RelayClient = class {
1290
1290
  return;
1291
1291
  }
1292
1292
  this.injectDeviceIdentity(conn, msg);
1293
+ if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1294
+ conn.localWs.once("open", () => {
1295
+ conn.localWs.send(JSON.stringify(msg));
1296
+ });
1297
+ } else {
1298
+ conn.localWs.send(JSON.stringify(msg));
1299
+ }
1300
+ return;
1293
1301
  }
1294
1302
  if (!conn.connectHandshakeComplete) {
1295
1303
  conn.pendingMessages.push(msg);
@@ -1444,9 +1452,12 @@ var RelayClient = class {
1444
1452
  await e2e.deriveSharedSecret(browserPublicKey);
1445
1453
  conn.e2e = e2e;
1446
1454
  this.sendToRelay({
1447
- type: "relay.e2e.exchange",
1455
+ type: "relay.forward",
1448
1456
  userId,
1449
- publicKey: gatewayPublicKey
1457
+ inner: {
1458
+ type: "relay.e2e.exchange",
1459
+ publicKey: gatewayPublicKey
1460
+ }
1450
1461
  });
1451
1462
  console.log(`[relay-client] E2E established for user ${userId}`);
1452
1463
  } catch (err2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1812",
3
+ "version": "2026.2.1814",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",