squad-openclaw 2026.2.1810 → 2026.2.1811

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 +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1257,9 +1257,9 @@ var RelayClient = class {
1257
1257
  const msg = innerMsg;
1258
1258
  if (msg.type === "event" && typeof msg.event === "string" && msg.event.startsWith("relay.")) {
1259
1259
  if (msg.event === "relay.user.connected") {
1260
- console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
1261
1260
  const existing = this.userConnections.get(userId);
1262
- if (!existing || existing.localWs.readyState !== NodeWebSocket.OPEN) {
1261
+ if (!existing || existing.localWs.readyState >= NodeWebSocket.CLOSING) {
1262
+ console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
1263
1263
  this.createUserConnection(userId);
1264
1264
  }
1265
1265
  }
@@ -1272,12 +1272,18 @@ var RelayClient = class {
1272
1272
  return;
1273
1273
  }
1274
1274
  let conn = this.userConnections.get(userId);
1275
- if (!conn || conn.localWs.readyState !== NodeWebSocket.OPEN) {
1275
+ if (!conn || conn.localWs.readyState >= NodeWebSocket.CLOSING) {
1276
1276
  this.createUserConnection(userId);
1277
1277
  conn = this.userConnections.get(userId);
1278
1278
  if (!conn) return;
1279
1279
  }
1280
1280
  if (msg.type === "req" && msg.method === "connect") {
1281
+ if (conn.connectHandshakeComplete) {
1282
+ console.log(`[relay-client] New connect from ${userId} \u2014 creating fresh local WS for handshake`);
1283
+ this.createUserConnection(userId);
1284
+ conn = this.userConnections.get(userId);
1285
+ if (!conn) return;
1286
+ }
1281
1287
  if (!conn.challengeNonce) {
1282
1288
  console.log(`[relay-client] Connect request for ${userId} deferred \u2014 waiting for challenge nonce`);
1283
1289
  conn.pendingConnect = msg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1810",
3
+ "version": "2026.2.1811",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",