squad-openclaw 2026.2.1815 → 2026.2.1816

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 +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1254,7 +1254,7 @@ 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;
1257
+ let 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
1260
  console.log(`[relay-client] User ${userId} connected via relay \u2014 creating local WS`);
@@ -1274,6 +1274,19 @@ var RelayClient = class {
1274
1274
  conn = this.userConnections.get(userId);
1275
1275
  if (!conn) return;
1276
1276
  }
1277
+ if (msg._e2e && conn.e2e) {
1278
+ try {
1279
+ const plaintext = conn.e2e.decrypt({
1280
+ ciphertext: msg.ciphertext,
1281
+ iv: msg.iv,
1282
+ tag: msg.tag
1283
+ });
1284
+ msg = JSON.parse(plaintext);
1285
+ } catch (err2) {
1286
+ console.error(`[relay-client] E2E decrypt error for ${userId}:`, err2);
1287
+ return;
1288
+ }
1289
+ }
1277
1290
  if (msg.type === "req" && msg.method === "connect") {
1278
1291
  if (conn.connectHandshakeComplete) {
1279
1292
  console.log(`[relay-client] New connect from ${userId} \u2014 creating fresh local WS for handshake`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squad-openclaw",
3
- "version": "2026.2.1815",
3
+ "version": "2026.2.1816",
4
4
  "description": "Entity registry, filesystem tools, and version management plugin for OpenClaw gateway",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",