squad-openclaw 2026.2.1806 → 2026.2.1807

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 +18 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1254,19 +1254,23 @@ var RelayClient = class {
1254
1254
  }
1255
1255
  /** Route a message from the relay to the appropriate user's local WS */
1256
1256
  routeToUser(userId, innerMsg) {
1257
+ const msg = innerMsg;
1258
+ if (msg.type === "event" && typeof msg.event === "string" && msg.event.startsWith("relay.")) {
1259
+ if (msg.event === "relay.user.connected") {
1260
+ console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
1261
+ const existing = this.userConnections.get(userId);
1262
+ if (!existing || existing.localWs.readyState !== NodeWebSocket.OPEN) {
1263
+ this.createUserConnection(userId);
1264
+ }
1265
+ }
1266
+ return;
1267
+ }
1257
1268
  let conn = this.userConnections.get(userId);
1258
1269
  if (!conn || conn.localWs.readyState !== NodeWebSocket.OPEN) {
1259
1270
  this.createUserConnection(userId);
1260
1271
  conn = this.userConnections.get(userId);
1261
1272
  if (!conn) return;
1262
1273
  }
1263
- if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1264
- conn.localWs.once("open", () => {
1265
- conn.localWs.send(JSON.stringify(innerMsg));
1266
- });
1267
- return;
1268
- }
1269
- const msg = innerMsg;
1270
1274
  if (msg.type === "req" && msg.method === "connect") {
1271
1275
  const params = msg.params ?? {};
1272
1276
  if (this.config.operatorToken) {
@@ -1285,6 +1289,13 @@ var RelayClient = class {
1285
1289
  );
1286
1290
  msg.params = params;
1287
1291
  conn.connectHandshakeComplete = false;
1292
+ console.log(`[relay-client] Injected device identity for user ${userId}: ${this.deviceKeys.deviceId.substring(0, 12)}...`);
1293
+ }
1294
+ if (conn.localWs.readyState === NodeWebSocket.CONNECTING) {
1295
+ conn.localWs.once("open", () => {
1296
+ conn.localWs.send(JSON.stringify(msg));
1297
+ });
1298
+ return;
1288
1299
  }
1289
1300
  conn.localWs.send(JSON.stringify(msg));
1290
1301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1806",
3
+ "version": "2026.2.1807",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",