liangzimixin 0.3.44 → 0.3.45

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.
package/dist/index.cjs CHANGED
@@ -20265,8 +20265,27 @@ var MessagePipe = class {
20265
20265
  log21.warn("\u26A0\uFE0F CallbackData \u89E3\u6790\u5931\u8D25", { error: err.message });
20266
20266
  return;
20267
20267
  }
20268
+ log21.info("\u{1F4E9} \u5165\u7AD9\u539F\u59CB\u6570\u636E", {
20269
+ appId: callbackData.appId,
20270
+ msgUid: callbackData.msgUid,
20271
+ eventType: callbackData.eventType,
20272
+ userId: callbackData.userId,
20273
+ toUserId: callbackData.toUserId,
20274
+ groupId: callbackData.groupId,
20275
+ type: callbackData.type,
20276
+ content: callbackData.content,
20277
+ extra: callbackData.extra
20278
+ });
20268
20279
  const extra = callbackData.extra;
20269
- const isEncrypted = typeof extra === "string" && extra.length > 0;
20280
+ let isEncrypted = false;
20281
+ if (typeof extra === "string" && extra.length > 0) {
20282
+ try {
20283
+ const parsed = JSON.parse(extra);
20284
+ isEncrypted = Boolean(parsed.encryptMsg);
20285
+ } catch {
20286
+ log21.debug("\u2139\uFE0F extra \u4E0D\u662F\u6709\u6548 JSON\uFF0C\u89C6\u4E3A\u660E\u6587", { msgUid: callbackData.msgUid });
20287
+ }
20288
+ }
20270
20289
  let contentObj;
20271
20290
  if (this.encryptionMode === "quantum_only") {
20272
20291
  if (!this.quantumAccount) {
@@ -20457,7 +20476,7 @@ var ConnectionManager = class {
20457
20476
  this.client.on("pong", () => {
20458
20477
  this.pongReceived = true;
20459
20478
  this.clearPongTimeout();
20460
- log22.info("heartbeat: pong received");
20479
+ log22.debug("heartbeat: pong received");
20461
20480
  });
20462
20481
  }
20463
20482
  /** 启动心跳保活 — 定时发送 WebSocket Ping 帧 */
@@ -20478,7 +20497,7 @@ var ConnectionManager = class {
20478
20497
  }
20479
20498
  this.pongReceived = false;
20480
20499
  this.client.ping();
20481
- log22.info("heartbeat: ping sent");
20500
+ log22.debug("heartbeat: ping sent");
20482
20501
  this.clearPongTimeout();
20483
20502
  this.pongTimeoutTimer = setTimeout(() => {
20484
20503
  if (!this.pongReceived && this.running) {
@@ -19309,8 +19309,27 @@ var MessagePipe = class {
19309
19309
  log12.warn("\u26A0\uFE0F CallbackData \u89E3\u6790\u5931\u8D25", { error: err.message });
19310
19310
  return;
19311
19311
  }
19312
+ log12.info("\u{1F4E9} \u5165\u7AD9\u539F\u59CB\u6570\u636E", {
19313
+ appId: callbackData.appId,
19314
+ msgUid: callbackData.msgUid,
19315
+ eventType: callbackData.eventType,
19316
+ userId: callbackData.userId,
19317
+ toUserId: callbackData.toUserId,
19318
+ groupId: callbackData.groupId,
19319
+ type: callbackData.type,
19320
+ content: callbackData.content,
19321
+ extra: callbackData.extra
19322
+ });
19312
19323
  const extra = callbackData.extra;
19313
- const isEncrypted = typeof extra === "string" && extra.length > 0;
19324
+ let isEncrypted = false;
19325
+ if (typeof extra === "string" && extra.length > 0) {
19326
+ try {
19327
+ const parsed = JSON.parse(extra);
19328
+ isEncrypted = Boolean(parsed.encryptMsg);
19329
+ } catch {
19330
+ log12.debug("\u2139\uFE0F extra \u4E0D\u662F\u6709\u6548 JSON\uFF0C\u89C6\u4E3A\u660E\u6587", { msgUid: callbackData.msgUid });
19331
+ }
19332
+ }
19314
19333
  let contentObj;
19315
19334
  if (this.encryptionMode === "quantum_only") {
19316
19335
  if (!this.quantumAccount) {
@@ -19501,7 +19520,7 @@ var ConnectionManager = class {
19501
19520
  this.client.on("pong", () => {
19502
19521
  this.pongReceived = true;
19503
19522
  this.clearPongTimeout();
19504
- log13.info("heartbeat: pong received");
19523
+ log13.debug("heartbeat: pong received");
19505
19524
  });
19506
19525
  }
19507
19526
  /** 启动心跳保活 — 定时发送 WebSocket Ping 帧 */
@@ -19522,7 +19541,7 @@ var ConnectionManager = class {
19522
19541
  }
19523
19542
  this.pongReceived = false;
19524
19543
  this.client.ping();
19525
- log13.info("heartbeat: ping sent");
19544
+ log13.debug("heartbeat: ping sent");
19526
19545
  this.clearPongTimeout();
19527
19546
  this.pongTimeoutTimer = setTimeout(() => {
19528
19547
  if (!this.pongReceived && this.running) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.44",
3
+ "version": "0.3.45",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",