@napuketto/adapter 0.13.0 → 0.13.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.
@@ -2,7 +2,7 @@
2
2
  * Satori 协议适配器(P5,2026-08-08)
3
3
  * 公共面:类型 + 动作注册表 + 配置 schema + 传输装配 + 适配器。
4
4
  */
5
- import { C as ProtocolConfig, E as ActionRegistry, x as BaseProtocolAdapter } from "../index-B5uhdmil.mjs";
5
+ import { D as ActionRegistry, S as BaseProtocolAdapter, w as ProtocolConfig } from "../index-DDPMbC_c.mjs";
6
6
  import "../gray-tip-CcpfI1Og.mjs";
7
7
  import { CanonicalElement, FriendApi, GroupApi, GroupCache, GroupNotifyApi, KernelErrorCode, MsgApi, MsgEventChannel, Peer, ProfileApi } from "@napuketto/kernel";
8
8
  import { ZodType, z } from "zod";
@@ -1,4 +1,4 @@
1
- import { h as ensureSilk, v as BaseProtocolAdapter, x as ActionRegistry } from "../core-DgDKwUWD.mjs";
1
+ import { S as ActionRegistry, g as ensureSilk, y as BaseProtocolAdapter } from "../core-CMqpb5-m.mjs";
2
2
  import { t as forEachRawMessage } from "../raw-message-C1E7jbjl.mjs";
3
3
  import { t as collectGrayTipUids } from "../gray-tip-ByF-MKeV.mjs";
4
4
  import { n as createWsServerSchema, t as createHttpServerSchema } from "../transport-schema-BEzr06W3.mjs";
@@ -1553,7 +1553,7 @@ async function toSatoriMessageEvent(raw, deps) {
1553
1553
  function hasSatoriGrayTip(raw) {
1554
1554
  for (const el of raw.elements) {
1555
1555
  const g = el.grayTipElement;
1556
- if (g === void 0) continue;
1556
+ if (g == null) continue;
1557
1557
  if (g.subElementType === GrayTipSubType.REVOKE || g.subElementType === GrayTipSubType.GROUP) return true;
1558
1558
  }
1559
1559
  return false;
@@ -1568,7 +1568,7 @@ function isGroupMessage(raw) {
1568
1568
  async function toSatoriGrayTipEvent(raw, uidToUinMap) {
1569
1569
  for (const el of raw.elements) {
1570
1570
  const g = el.grayTipElement;
1571
- if (g === void 0) continue;
1571
+ if (g == null) continue;
1572
1572
  if (g.subElementType === GrayTipSubType.REVOKE) {
1573
1573
  const revoked = toRevokeEvent(raw, uidToUinMap);
1574
1574
  if (revoked !== null) return revoked;