squad-openclaw 2026.2.1811 → 2026.2.1812

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1291,6 +1291,10 @@ var RelayClient = class {
1291
1291
  }
1292
1292
  this.injectDeviceIdentity(conn, msg);
1293
1293
  }
1294
+ if (!conn.connectHandshakeComplete) {
1295
+ conn.pendingMessages.push(msg);
1296
+ return;
1297
+ }
1294
1298
  if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1295
1299
  conn.localWs.once("open", () => {
1296
1300
  conn.localWs.send(JSON.stringify(msg));
@@ -1339,7 +1343,8 @@ var RelayClient = class {
1339
1343
  e2e: null,
1340
1344
  connectHandshakeComplete: false,
1341
1345
  challengeNonce: null,
1342
- pendingConnect: null
1346
+ pendingConnect: null,
1347
+ pendingMessages: []
1343
1348
  };
1344
1349
  this.userConnections.set(userId, conn);
1345
1350
  localWs.on("open", () => {
@@ -1392,6 +1397,13 @@ var RelayClient = class {
1392
1397
  }
1393
1398
  if (parsed.type === "res" && parsed.id === "connect-1" && parsed.ok) {
1394
1399
  conn.connectHandshakeComplete = true;
1400
+ if (conn.pendingMessages.length > 0) {
1401
+ console.log(`[relay-client] Flushing ${conn.pendingMessages.length} buffered messages for ${userId}`);
1402
+ for (const queued of conn.pendingMessages) {
1403
+ conn.localWs.send(JSON.stringify(queued));
1404
+ }
1405
+ conn.pendingMessages = [];
1406
+ }
1395
1407
  }
1396
1408
  let innerMsg = msg;
1397
1409
  if (conn.e2e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1811",
3
+ "version": "2026.2.1812",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",