@napuketto/adapter 0.16.0 → 0.16.1

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.
@@ -1,7 +1,7 @@
1
- import { i as runAction, n as BaseProtocolAdapter, r as ActionRegistry } from "../core-Byoso-c3.mjs";
2
- import { a as MS_TO_SEC$2, c as toUin, i as hasGrayTip, n as findRevokeElement, o as numericUin, r as firstUntranslatedGrayTip, s as resolveUin, t as collectGrayTipUids } from "../gray-tip-C7lAbfOf.mjs";
3
- import { a as nodeAt, c as textOf, d as logEventFailure, f as sliceRaw, i as narrowSysMsgBlobs, l as varintAt, m as narrowBuddyReqs, n as extractEssenceSetSysMsg, o as processSysMsgBlob, r as narrowEssenceGroupArg, s as recognizeSysMsg, t as EssenceListSync, u as varintOf } from "../essence-CYb60NC6.mjs";
4
- import { r as subscribeRawMessages, t as forEachRawMessage } from "../raw-message-DE3sdJg8.mjs";
1
+ import { i as runAction, n as BaseProtocolAdapter, r as ActionRegistry } from "../core-D5c78lFV.mjs";
2
+ import { i as toUnixSeconds, r as subscribeRawMessages, t as forEachRawMessage } from "../raw-message-DE3sdJg8.mjs";
3
+ import { a as findRevokeElement, c as MS_TO_SEC, d as toUin, i as collectGrayTipUids, l as numericUin, n as sliceRaw, o as firstUntranslatedGrayTip, s as hasGrayTip, t as logEventFailure, u as resolveUin } from "../log-BsInJV_y.mjs";
4
+ import { a as nodeAt, c as textOf, d as narrowBuddyReqs, i as narrowSysMsgBlobs, l as varintAt, n as extractEssenceSetSysMsg, o as processSysMsgBlob, r as narrowEssenceGroupArg, s as recognizeSysMsg, t as EssenceListSync, u as varintOf } from "../essence-Bxs-aKSC.mjs";
5
5
  import { ChatType, GrayTipSubType, GroupApi, GroupNotifyMsgStatus, GroupNotifyMsgType, NTGroupRequestOperateTypes, TicketApi, TipGroupElementType, kernelError, toCanonicalElements } from "@napuketto/kernel";
6
6
  import { z } from "zod";
7
7
  import { randomUUID } from "node:crypto";
@@ -833,7 +833,7 @@ var MilkyApi = class {
833
833
  this.seqIndex.record(sent);
834
834
  return {
835
835
  message_seq: Number(sent.msgSeq),
836
- time: Math.floor(Number(sent.msgTime) / 1e3)
836
+ time: toUnixSeconds(sent.msgTime)
837
837
  };
838
838
  }
839
839
  };
@@ -864,7 +864,7 @@ async function findBuddyReq(api, initiatorUid) {
864
864
  function toFriendRequestEvent(req, ctx) {
865
865
  const words = req["words"];
866
866
  return {
867
- time: Math.floor(Date.now() / MS_TO_SEC$2),
867
+ time: Math.floor(Date.now() / MS_TO_SEC),
868
868
  self_id: Number(ctx.selfUin),
869
869
  event_type: "friend_request",
870
870
  data: {
@@ -880,7 +880,7 @@ function toGroupRequestEvent(notify, doubt, ctx) {
880
880
  if (notify.status !== GroupNotifyMsgStatus.KUNHANDLE) return null;
881
881
  const groupId = Number(notify.group?.groupCode ?? 0);
882
882
  const seq = Number(notify.seq);
883
- const time = Math.floor(Date.now() / MS_TO_SEC$2);
883
+ const time = Math.floor(Date.now() / MS_TO_SEC);
884
884
  const selfId = Number(ctx.selfUin);
885
885
  switch (notify.type) {
886
886
  case GroupNotifyMsgType.REQUEST_JOIN_NEED_ADMINI_STRATOR_PASS: return {
@@ -1376,8 +1376,6 @@ function fileUriToPath(uri) {
1376
1376
  * 撤回事件的 sender_id 取 RawMessage.senderUin(grayTip 系统消息的 sender
1377
1377
  * 即被撤回原消息的发送者,口径待真实事件校准)。
1378
1378
  */
1379
- /** 毫秒 → 秒(Unix 时间戳)。 */
1380
- const MS_TO_SEC$1 = 1e3;
1381
1379
  /** chatType → message_scene。 */
1382
1380
  function chatTypeToScene(chatType) {
1383
1381
  if (chatType === ChatType.GROUP) return "group";
@@ -1397,7 +1395,7 @@ function toMessageReceiveEvent(msg, ctx) {
1397
1395
  });
1398
1396
  if (ctx.forwardSegments !== void 0) segments.push(...ctx.forwardSegments);
1399
1397
  const scene = chatTypeToScene(msg.chatType);
1400
- const time = Math.floor(Number(msg.msgTime) / MS_TO_SEC$1);
1398
+ const time = toUnixSeconds(msg.msgTime);
1401
1399
  let data;
1402
1400
  if (scene === "group") data = {
1403
1401
  message_scene: "group",
@@ -1437,11 +1435,11 @@ function toMessageReceiveEvent(msg, ctx) {
1437
1435
  /** 撤回 grayTip → message_recall 事件(非撤回 grayTip 返回 null)。 */
1438
1436
  function toMessageRecallEvent(msg, ctx) {
1439
1437
  const revoke = (msg.elements.find((el) => el.grayTipElement != null)?.grayTipElement)?.revokeElement;
1440
- if (revoke === void 0) return null;
1438
+ if (revoke == null) return null;
1441
1439
  const scene = chatTypeToScene(msg.chatType);
1442
1440
  const operatorUin = ctx.uidToUin?.get(revoke.operatorUid) ?? revoke.operatorUid;
1443
1441
  return {
1444
- time: Math.floor(Number(msg.msgTime) / MS_TO_SEC$1),
1442
+ time: toUnixSeconds(msg.msgTime),
1445
1443
  self_id: Number(ctx.selfUin),
1446
1444
  event_type: "message_recall",
1447
1445
  data: {
@@ -1458,9 +1456,9 @@ function toMessageRecallEvent(msg, ctx) {
1458
1456
  function toGroupFileUploadEvent(msg, selfUin) {
1459
1457
  if (msg.chatType !== ChatType.GROUP) return null;
1460
1458
  const file = msg.elements.find((el) => el.fileElement != null)?.fileElement;
1461
- if (file === void 0) return null;
1459
+ if (file == null) return null;
1462
1460
  return {
1463
- time: Math.floor(Number(msg.msgTime) / MS_TO_SEC$1),
1461
+ time: toUnixSeconds(msg.msgTime),
1464
1462
  self_id: Number(selfUin),
1465
1463
  event_type: "group_file_upload",
1466
1464
  data: {
@@ -1550,7 +1548,7 @@ function createMessageQueryActions(api) {
1550
1548
  message_seq: Number(m.msgSeq),
1551
1549
  sender_name: await senderNameOf(api, m),
1552
1550
  avatar_url: avatarUrlOf(m.senderUin),
1553
- time: Math.floor(Number(m.msgTime) / 1e3),
1551
+ time: toUnixSeconds(m.msgTime),
1554
1552
  segments: receiveSegmentsOf(m, uidToUin)
1555
1553
  });
1556
1554
  return { messages };
@@ -2296,7 +2294,7 @@ var MessageSeqIndex = class {
2296
2294
  this.msgToMeta.set(msg.msgId, {
2297
2295
  seq,
2298
2296
  senderUin: msg.senderUin,
2299
- timeSec: Math.floor(Number(msg.msgTime) / 1e3)
2297
+ timeSec: toUnixSeconds(msg.msgTime)
2300
2298
  });
2301
2299
  this.evict();
2302
2300
  }
@@ -2472,126 +2470,6 @@ function toFriendFileUploadData(msg, selfUin, uidToUin) {
2472
2470
  is_self: isSelf
2473
2471
  };
2474
2472
  }
2475
- // src/milky/helper/event/peer-pin.ts
2476
- /**
2477
- * peer_pin_change 翻译(Milky ,RecentContact/onRecentContactListChangedVer2)
2478
- *
2479
- * 回调随消息活动高频快照(含 topFlag 的全量条目 + chatType=7 影子条目),
2480
- * 不能见条目就广播——按「同会话 topFlag 前后值翻转」检测(PinWatch)。
2481
- * 启动期以 getPinnedContacts 播种基线(重启后首个取消置顶也能观测到)。
2482
- *
2483
- * 证据:set_peer_pin 自触发翻转实验——changedList 条目
2484
- * {chatType, peerUin, topFlag(1/0), topFlagTime(秒级 unix 字符串)},与操作
2485
- * 一一对应(milky.md §0.8.6)。
2486
- */
2487
- /** uin 形判别(peer_id 必须是数字串)。 */
2488
- const NUMERIC_RE$1 = /^\d+$/;
2489
- /** 置顶翻转检测(每适配器实例一份,键 = chatType:peerUin——群号与 uin 数值空间可重叠)。 */
2490
- var PinWatch = class {
2491
- states = /* @__PURE__ */ new Map();
2492
- /** 启动基线:置顶会话播种(只记状态,不产生事件)。 */
2493
- seed(pins) {
2494
- for (const pin of pins) {
2495
- if (pin.peerUin === void 0 || pin.peerUin === "") continue;
2496
- const chatType = pin.scene === "group" ? ChatType.GROUP : ChatType.C2C;
2497
- this.states.set(`${chatType}:${pin.peerUin}`, 1);
2498
- }
2499
- }
2500
- /**
2501
- * 观测一个变更条目:topFlag 相对上次观测翻转 → true(应广播);
2502
- * 首见(基线未建立)或未变 → false。
2503
- */
2504
- observe(chatType, peerUin, topFlag) {
2505
- const key = `${chatType}:${peerUin}`;
2506
- const prev = this.states.get(key);
2507
- this.states.set(key, topFlag);
2508
- return prev !== void 0 && prev !== topFlag;
2509
- }
2510
- };
2511
- /** 场景映射(changedList 条目 chatType → Milky message_scene;影子/其他类型丢弃)。 */
2512
- function pinScene(chatType) {
2513
- if (chatType === ChatType.GROUP) return "group";
2514
- if (chatType === ChatType.C2C) return "friend";
2515
- return null;
2516
- }
2517
- /** 变更条目 → 事件载荷(null = 条目不含置顶字段/场景不支持,跳过不广播)。 */
2518
- function toPeerPinChangeData(entry) {
2519
- const scene = pinScene(entry.chatType);
2520
- if (scene === null || entry.topFlag === void 0) return null;
2521
- const peerUin = typeof entry.peerUin === "string" && entry.peerUin !== "" ? entry.peerUin : scene === "group" ? entry.peerUid : "";
2522
- if (peerUin === "" || !NUMERIC_RE$1.test(peerUin)) return null;
2523
- return {
2524
- data: {
2525
- message_scene: scene,
2526
- peer_id: Number(peerUin),
2527
- is_pinned: entry.topFlag === 1
2528
- },
2529
- topFlagTime: typeof entry.topFlagTime === "string" ? entry.topFlagTime : void 0,
2530
- peerUin
2531
- };
2532
- }
2533
- // src/milky/inbound/pin.ts
2534
- /** Milky 置顶域处理器(翻转检测 + 播种基线 + peer_pin_change 广播)。 */
2535
- var MilkyInboundPin = class {
2536
- deps;
2537
- /** peer_pin 翻转检测(启动期 getPinnedContacts 播种)。 */
2538
- pinWatch = new PinWatch();
2539
- constructor(deps) {
2540
- this.deps = deps;
2541
- }
2542
- /** 会话列表变更 → 翻转检测逐条处理(首见/未变/不支持场景静默跳过)。 */
2543
- handleChanges(lists) {
2544
- const arr = Array.isArray(lists) ? lists : [lists];
2545
- for (const list of arr) for (const entry of changedListOf(list)) this.handleEntry(entry);
2546
- }
2547
- /** 启动基线:置顶会话播种(失败补 debug 日志,不再静默)。 */
2548
- seed() {
2549
- this.deps.api.recentContactApi.getPinnedContacts().then((pins) => {
2550
- this.pinWatch.seed(pins);
2551
- }).catch((err) => {
2552
- this.deps.logger?.debug({ err: String(err) }, "milky: 置顶基线播种失败(跳过)");
2553
- });
2554
- }
2555
- /** 单个变更条目:翻译 + 翻转检测 + 广播。 */
2556
- handleEntry(entry) {
2557
- const payload = pinPayloadOf(entry);
2558
- if (payload === null) return;
2559
- if (!this.pinWatch.observe(payload.chatType, payload.peerUin, payload.topFlag)) return;
2560
- this.deps.broadcast({
2561
- time: secondsOf(payload.topFlagTime),
2562
- self_id: Number(this.deps.api.self.uin),
2563
- event_type: "peer_pin_change",
2564
- data: payload.data
2565
- });
2566
- }
2567
- };
2568
- /** 变更列表 → changedList 条目数组(形状不符 → 空)。 */
2569
- function changedListOf(list) {
2570
- if (list === null || typeof list !== "object") return [];
2571
- const changed = list.changedList;
2572
- return Array.isArray(changed) ? changed : [];
2573
- }
2574
- /** 变更条目 → 翻转检测输入(null = 条目不支持/缺置顶字段)。 */
2575
- function pinPayloadOf(entry) {
2576
- if (entry === null || typeof entry !== "object") return null;
2577
- return pinPayloadFrom(entry);
2578
- }
2579
- function pinPayloadFrom(contact) {
2580
- const topFlag = contact.topFlag;
2581
- const payload = toPeerPinChangeData(contact);
2582
- if (topFlag === void 0 || payload === null) return null;
2583
- return {
2584
- chatType: contact.chatType,
2585
- peerUin: payload.peerUin,
2586
- topFlag,
2587
- topFlagTime: payload.topFlagTime,
2588
- data: payload.data
2589
- };
2590
- }
2591
- /** 秒级时间戳归一(空/非法 → 当前时间;topFlagTime/msgTime 均为秒级字符串)。 */
2592
- function secondsOf(raw) {
2593
- return numericUin(raw ?? null) ?? Math.floor(Date.now() / 1e3);
2594
- }
2595
2473
  // src/milky/inbound/file-notice.ts
2596
2474
  /**
2597
2475
  * Milky inbound 轻量通知域:私聊文件双回调(friend_file_upload,按 msgId 去重)
@@ -2616,7 +2494,7 @@ var MilkyInboundFileNotice = class {
2616
2494
  }, "milky: friend_file_upload senderUin 缺失(user_id=0)");
2617
2495
  if (!this.fileKeys.claim(`file:${msg.msgId}`)) return;
2618
2496
  this.deps.broadcast({
2619
- time: secondsOf(msg.msgTime),
2497
+ time: toUnixSeconds(msg.msgTime),
2620
2498
  self_id: Number(this.deps.api.self.uin),
2621
2499
  event_type: "friend_file_upload",
2622
2500
  data
@@ -2638,12 +2516,10 @@ var MilkyInboundFileNotice = class {
2638
2516
  }
2639
2517
  };
2640
2518
  // src/milky/helper/event/notice.ts
2641
- /** 毫秒 → 秒(Unix 时间戳)。 */
2642
- const MS_TO_SEC = 1e3;
2643
2519
  /** 事件信封公共字段。 */
2644
2520
  function envelope(msg, ctx, eventType, data) {
2645
2521
  return {
2646
- time: Math.floor(Number(msg.msgTime) / MS_TO_SEC),
2522
+ time: toUnixSeconds(msg.msgTime),
2647
2523
  self_id: Number(ctx.selfUin),
2648
2524
  event_type: eventType,
2649
2525
  data
@@ -2664,7 +2540,7 @@ const GROUP_CHANGE_MAPPERS = {
2664
2540
  [TipGroupElementType.DISBANDED]: toDisband
2665
2541
  };
2666
2542
  function groupElementToEvent(msg, grp, ctx) {
2667
- if (grp === void 0 || grp.type === void 0) return null;
2543
+ if (grp == null || grp.type === void 0) return null;
2668
2544
  const mapper = GROUP_CHANGE_MAPPERS[grp.type];
2669
2545
  if (mapper === void 0) return null;
2670
2546
  return mapper(msg, groupChangeCommon(grp, Number(msg.peerUid)), grp, ctx);
@@ -2767,7 +2643,7 @@ function aioOpToEvent(msg, g, ctx) {
2767
2643
  function toMilkyNoticeEvent(msg, ctx) {
2768
2644
  for (const el of msg.elements) {
2769
2645
  const g = el.grayTipElement;
2770
- if (g === void 0) continue;
2646
+ if (g == null) continue;
2771
2647
  const event = translateGrayTip(msg, g, ctx);
2772
2648
  if (event !== null) return event;
2773
2649
  }
@@ -2844,6 +2720,126 @@ var MilkyInboundMessage = class {
2844
2720
  return msg.elements.find((el) => el.multiForwardMsgElement != null)?.multiForwardMsgElement;
2845
2721
  }
2846
2722
  };
2723
+ // src/milky/helper/event/peer-pin.ts
2724
+ /**
2725
+ * peer_pin_change 翻译(Milky ,RecentContact/onRecentContactListChangedVer2)
2726
+ *
2727
+ * 回调随消息活动高频快照(含 topFlag 的全量条目 + chatType=7 影子条目),
2728
+ * 不能见条目就广播——按「同会话 topFlag 前后值翻转」检测(PinWatch)。
2729
+ * 启动期以 getPinnedContacts 播种基线(重启后首个取消置顶也能观测到)。
2730
+ *
2731
+ * 证据:set_peer_pin 自触发翻转实验——changedList 条目
2732
+ * {chatType, peerUin, topFlag(1/0), topFlagTime(秒级 unix 字符串)},与操作
2733
+ * 一一对应(milky.md §0.8.6)。
2734
+ */
2735
+ /** uin 形判别(peer_id 必须是数字串)。 */
2736
+ const NUMERIC_RE$1 = /^\d+$/;
2737
+ /** 置顶翻转检测(每适配器实例一份,键 = chatType:peerUin——群号与 uin 数值空间可重叠)。 */
2738
+ var PinWatch = class {
2739
+ states = /* @__PURE__ */ new Map();
2740
+ /** 启动基线:置顶会话播种(只记状态,不产生事件)。 */
2741
+ seed(pins) {
2742
+ for (const pin of pins) {
2743
+ if (pin.peerUin === void 0 || pin.peerUin === "") continue;
2744
+ const chatType = pin.scene === "group" ? ChatType.GROUP : ChatType.C2C;
2745
+ this.states.set(`${chatType}:${pin.peerUin}`, 1);
2746
+ }
2747
+ }
2748
+ /**
2749
+ * 观测一个变更条目:topFlag 相对上次观测翻转 → true(应广播);
2750
+ * 首见(基线未建立)或未变 → false。
2751
+ */
2752
+ observe(chatType, peerUin, topFlag) {
2753
+ const key = `${chatType}:${peerUin}`;
2754
+ const prev = this.states.get(key);
2755
+ this.states.set(key, topFlag);
2756
+ return prev !== void 0 && prev !== topFlag;
2757
+ }
2758
+ };
2759
+ /** 场景映射(changedList 条目 chatType → Milky message_scene;影子/其他类型丢弃)。 */
2760
+ function pinScene(chatType) {
2761
+ if (chatType === ChatType.GROUP) return "group";
2762
+ if (chatType === ChatType.C2C) return "friend";
2763
+ return null;
2764
+ }
2765
+ /** 变更条目 → 事件载荷(null = 条目不含置顶字段/场景不支持,跳过不广播)。 */
2766
+ function toPeerPinChangeData(entry) {
2767
+ const scene = pinScene(entry.chatType);
2768
+ if (scene === null || entry.topFlag === void 0) return null;
2769
+ const peerUin = typeof entry.peerUin === "string" && entry.peerUin !== "" ? entry.peerUin : scene === "group" ? entry.peerUid : "";
2770
+ if (peerUin === "" || !NUMERIC_RE$1.test(peerUin)) return null;
2771
+ return {
2772
+ data: {
2773
+ message_scene: scene,
2774
+ peer_id: Number(peerUin),
2775
+ is_pinned: entry.topFlag === 1
2776
+ },
2777
+ topFlagTime: typeof entry.topFlagTime === "string" ? entry.topFlagTime : void 0,
2778
+ peerUin
2779
+ };
2780
+ }
2781
+ // src/milky/inbound/pin.ts
2782
+ /** Milky 置顶域处理器(翻转检测 + 播种基线 + peer_pin_change 广播)。 */
2783
+ var MilkyInboundPin = class {
2784
+ deps;
2785
+ /** peer_pin 翻转检测(启动期 getPinnedContacts 播种)。 */
2786
+ pinWatch = new PinWatch();
2787
+ constructor(deps) {
2788
+ this.deps = deps;
2789
+ }
2790
+ /** 会话列表变更 → 翻转检测逐条处理(首见/未变/不支持场景静默跳过)。 */
2791
+ handleChanges(lists) {
2792
+ const arr = Array.isArray(lists) ? lists : [lists];
2793
+ for (const list of arr) for (const entry of changedListOf(list)) this.handleEntry(entry);
2794
+ }
2795
+ /** 启动基线:置顶会话播种(失败补 debug 日志,不再静默)。 */
2796
+ seed() {
2797
+ this.deps.api.recentContactApi.getPinnedContacts().then((pins) => {
2798
+ this.pinWatch.seed(pins);
2799
+ }).catch((err) => {
2800
+ this.deps.logger?.debug({ err: String(err) }, "milky: 置顶基线播种失败(跳过)");
2801
+ });
2802
+ }
2803
+ /** 单个变更条目:翻译 + 翻转检测 + 广播。 */
2804
+ handleEntry(entry) {
2805
+ const payload = pinPayloadOf(entry);
2806
+ if (payload === null) return;
2807
+ if (!this.pinWatch.observe(payload.chatType, payload.peerUin, payload.topFlag)) return;
2808
+ this.deps.broadcast({
2809
+ time: secondsOf(payload.topFlagTime),
2810
+ self_id: Number(this.deps.api.self.uin),
2811
+ event_type: "peer_pin_change",
2812
+ data: payload.data
2813
+ });
2814
+ }
2815
+ };
2816
+ /** 变更列表 → changedList 条目数组(形状不符 → 空)。 */
2817
+ function changedListOf(list) {
2818
+ if (list === null || typeof list !== "object") return [];
2819
+ const changed = list.changedList;
2820
+ return Array.isArray(changed) ? changed : [];
2821
+ }
2822
+ /** 变更条目 → 翻转检测输入(null = 条目不支持/缺置顶字段)。 */
2823
+ function pinPayloadOf(entry) {
2824
+ if (entry === null || typeof entry !== "object") return null;
2825
+ return pinPayloadFrom(entry);
2826
+ }
2827
+ function pinPayloadFrom(contact) {
2828
+ const topFlag = contact.topFlag;
2829
+ const payload = toPeerPinChangeData(contact);
2830
+ if (topFlag === void 0 || payload === null) return null;
2831
+ return {
2832
+ chatType: contact.chatType,
2833
+ peerUin: payload.peerUin,
2834
+ topFlag,
2835
+ topFlagTime: payload.topFlagTime,
2836
+ data: payload.data
2837
+ };
2838
+ }
2839
+ /** 秒级时间戳归一(空/非法 → 当前时间;topFlagTime/msgTime 均为秒级字符串)。 */
2840
+ function secondsOf(raw) {
2841
+ return numericUin(raw ?? null) ?? Math.floor(Date.now() / 1e3);
2842
+ }
2847
2843
  // src/milky/inbound/request.ts
2848
2844
  /** Milky 请求域处理器(群通知 / 好友申请的 uid 回填与广播)。 */
2849
2845
  var MilkyInboundRequest = class {
@@ -2883,7 +2879,7 @@ var MilkyInboundRequest = class {
2883
2879
  };
2884
2880
  // src/milky/helper/event/sysmsg.ts
2885
2881
  /**
2886
- * Milky sysmsg 识别表(识别机制共享自 core/sysmsg.ts)
2882
+ * Milky sysmsg 识别表(识别机制共享自 shared/sysmsg.ts)
2887
2883
  *
2888
2884
  * 键 = 原生分发键 "msgType:subType",规则产出事件 data 体(信封 time/self_id/
2889
2885
  * event_type 由适配器统一包装)。路径依据 = 三轮录制 wire bytes 全量解码
@@ -2893,8 +2889,8 @@ var MilkyInboundRequest = class {
2893
2889
  * f3={f1 faceId 字符串, f5: 1=添加/2=撤销, f3:1 仅添加时存在}}。
2894
2890
  * operator 不在 push(f4=bot 自身 uid 占位)——user_id 省略。
2895
2891
  * - 732:1 群精华设置:f1.f1=群号, f1.f8.f8.f1=msgSeq(路径提取共享自
2896
- * core/shared/essence.ts extractEssenceSetSysMsg);取消精华无独立 sysmsg
2897
- * (remove 走 onGroupEssenceListChange 列表 diff,core/shared/essence.ts)。
2892
+ * shared/essence.ts extractEssenceSetSysMsg);取消精华无独立 sysmsg
2893
+ * (remove 走 onGroupEssenceListChange 列表 diff,shared/essence.ts)。
2898
2894
  * - 528:349/381/382 多端设备同步族:不广播。
2899
2895
  */
2900
2896
  /** 数字串判别(faceId 实证为数字字符串)。 */
@@ -2974,7 +2970,7 @@ function recognizeMilkySysMsg(msgType, subType, table = KIND_TABLE) {
2974
2970
  // src/milky/inbound/sysmsg.ts
2975
2971
  /**
2976
2972
  * Milky inbound sysmsg 域:Msg/onRecvSysMsg 总闸——参数收窄(未知形状 raw warn)
2977
- * → 单条字节块走 core/shared/sysmsg.ts 的 processSysMsgBlob 通用管线(解码 →
2973
+ * → 单条字节块走 shared/sysmsg.ts 的 processSysMsgBlob 通用管线(解码 →
2978
2974
  * 信封 → 识别 → 分流)。表命中提取 data 体 → 精华快路径 claim 去重 → 信封包装
2979
2975
  * 广播;未识别 / 提取失败落校准路径,不广播半成品。
2980
2976
  */