@napuketto/adapter 0.10.0 → 0.11.0

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 (38) hide show
  1. package/dist/core/index.d.mts +1 -1
  2. package/dist/core/index.mjs +1 -2
  3. package/dist/{core-DW5i42XH.mjs → core-BNOfqnV-.mjs} +8 -15
  4. package/dist/{core-DW5i42XH.mjs.map → core-BNOfqnV-.mjs.map} +1 -1
  5. package/dist/{essence-DSSyWl36.mjs → essence-BRbsj_Vv.mjs} +5 -8
  6. package/dist/essence-BRbsj_Vv.mjs.map +1 -0
  7. package/dist/{gray-tip-LwBee5mo.mjs → gray-tip-ByF-MKeV.mjs} +2 -3
  8. package/dist/gray-tip-ByF-MKeV.mjs.map +1 -0
  9. package/dist/{index-h-tsUu0j.d.mts → index-DNvM3A-1.d.mts} +1 -15
  10. package/dist/index-DNvM3A-1.d.mts.map +1 -0
  11. package/dist/index.d.mts +1 -4
  12. package/dist/index.d.mts.map +1 -1
  13. package/dist/kurobot/index.d.mts +35 -45
  14. package/dist/kurobot/index.d.mts.map +1 -1
  15. package/dist/kurobot/index.mjs +7 -12
  16. package/dist/kurobot/index.mjs.map +1 -1
  17. package/dist/milky/index.d.mts +4 -20
  18. package/dist/milky/index.d.mts.map +1 -1
  19. package/dist/milky/index.mjs +192 -216
  20. package/dist/milky/index.mjs.map +1 -1
  21. package/dist/onebot11/index.d.mts +21 -57
  22. package/dist/onebot11/index.d.mts.map +1 -1
  23. package/dist/onebot11/index.mjs +99 -178
  24. package/dist/onebot11/index.mjs.map +1 -1
  25. package/dist/{raw-message-D_ecJy4C.mjs → raw-message-C1E7jbjl.mjs} +2 -3
  26. package/dist/raw-message-C1E7jbjl.mjs.map +1 -0
  27. package/dist/satori/index.d.mts +16 -50
  28. package/dist/satori/index.d.mts.map +1 -1
  29. package/dist/satori/index.mjs +28 -52
  30. package/dist/satori/index.mjs.map +1 -1
  31. package/dist/{transport-schema-CpPxyRK0.mjs → transport-schema-BEzr06W3.mjs} +2 -3
  32. package/dist/transport-schema-BEzr06W3.mjs.map +1 -0
  33. package/package.json +21 -16
  34. package/dist/essence-DSSyWl36.mjs.map +0 -1
  35. package/dist/gray-tip-LwBee5mo.mjs.map +0 -1
  36. package/dist/index-h-tsUu0j.d.mts.map +0 -1
  37. package/dist/raw-message-D_ecJy4C.mjs.map +0 -1
  38. package/dist/transport-schema-CpPxyRK0.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { _ as BaseProtocolAdapter, b as ActionRegistry, d as toHex, h as ensureSilk, i as extractSysMsgEnvelope, l as recognizeSysMsg, n as decodeProtoTree, s as narrowSysMsgBlobs, v as BaseAction } from "../core-DW5i42XH.mjs";
2
- import { n as createWsServerSchema, t as createHttpServerSchema } from "../transport-schema-CpPxyRK0.mjs";
3
- import { n as firstUntranslatedGrayTip, t as collectGrayTipUids } from "../gray-tip-LwBee5mo.mjs";
4
- import { a as MS_TO_SEC$5, i as narrowBuddyReqs, n as extractEssenceSetSysMsg, o as resolveUin, r as narrowEssenceGroupArg, t as diffEssenceList } from "../essence-DSSyWl36.mjs";
5
- import { n as subscribeRawMessages } from "../raw-message-D_ecJy4C.mjs";
1
+ import { _ as BaseProtocolAdapter, b as ActionRegistry, d as toHex, h as ensureSilk, i as extractSysMsgEnvelope, l as recognizeSysMsg, n as decodeProtoTree, s as narrowSysMsgBlobs, v as BaseAction } from "../core-BNOfqnV-.mjs";
2
+ import { a as MS_TO_SEC$5, i as narrowBuddyReqs, n as extractEssenceSetSysMsg, o as resolveUin, r as narrowEssenceGroupArg, t as diffEssenceList } from "../essence-BRbsj_Vv.mjs";
3
+ import { n as subscribeRawMessages } from "../raw-message-C1E7jbjl.mjs";
4
+ import { n as firstUntranslatedGrayTip, t as collectGrayTipUids } from "../gray-tip-ByF-MKeV.mjs";
5
+ import { n as createWsServerSchema, t as createHttpServerSchema } from "../transport-schema-BEzr06W3.mjs";
6
6
  import { ChatType, GrayTipSubType, GroupApi, GroupNotifyMsgStatus, GroupNotifyMsgType, NTGroupMemberRole, NTGroupRequestOperateTypes, TicketApi, TipGroupElementType, WebHonorType, kernelError, toCanonicalElements } from "@napuketto/kernel";
7
7
  import { downloadUrl, inferExtension } from "@napuketto/media";
8
8
  import { z } from "zod";
@@ -10,7 +10,7 @@ import { randomUUID } from "node:crypto";
10
10
  import { existsSync, mkdirSync, writeFileSync } from "node:fs";
11
11
  import { basename, join } from "node:path";
12
12
  import { HttpClient, HttpServer, WsClient, WsServer } from "@napuketto/network";
13
- //#region src/onebot11/action/error-map.ts
13
+ // src/onebot11/action/error-map.ts
14
14
  /** OB11 错误码映射表(send_msg 等所有 OB11 动作共用)。 */
15
15
  const ob11ErrorCodeMap = {
16
16
  SEND_FAILED: 100,
@@ -22,8 +22,7 @@ const ob11ErrorCodeMap = {
22
22
  INVALID_STATE: 106,
23
23
  UNKNOWN: 999
24
24
  };
25
- //#endregion
26
- //#region src/onebot11/action/resolve-uid.ts
25
+ // src/onebot11/action/resolve-uid.ts
27
26
  /**
28
27
  * OB11 用户 ID 解析(uin → uid,多个动作共用,2026-08-08 克隆合并)
29
28
  */
@@ -33,8 +32,7 @@ async function resolveUid(uin, uinToUid) {
33
32
  if (uid === void 0) throw kernelError(`用户 ${uin} 的 uid 解析失败`, "INVALID_PARAM");
34
33
  return uid;
35
34
  }
36
- //#endregion
37
- //#region src/onebot11/action/friend/delete-friend.ts
35
+ // src/onebot11/action/friend/delete-friend.ts
38
36
  /**
39
37
  * delete_friend 动作:删除好友(P2-11 接 kernel FriendApi.deleteFriend)
40
38
  */
@@ -55,8 +53,7 @@ var DeleteFriendAction = class extends BaseAction {
55
53
  return null;
56
54
  }
57
55
  };
58
- //#endregion
59
- //#region src/onebot11/action/friend/get-doubt-friends-add-request.ts
56
+ // src/onebot11/action/friend/get-doubt-friends-add-request.ts
60
57
  const getDoubtFriendsAddRequestSchema = z.object({ count: z.number().optional() });
61
58
  /** 默认获取数量。 */
62
59
  const DEFAULT_COUNT$3 = 50;
@@ -74,8 +71,7 @@ var GetDoubtFriendsAddRequestAction = class extends BaseAction {
74
71
  return this.friendApi.getDoubtFriendRequest(payload.count ?? DEFAULT_COUNT$3);
75
72
  }
76
73
  };
77
- //#endregion
78
- //#region src/onebot11/action/friend/get-friend-list.ts
74
+ // src/onebot11/action/friend/get-friend-list.ts
79
75
  const getFriendListSchema = z.object({
80
76
  /** 是否忽略缓存(go-cqhttp 扩展)。 */
81
77
  no_cache: z.boolean().optional() });
@@ -100,8 +96,7 @@ var GetFriendListAction = class extends BaseAction {
100
96
  });
101
97
  }
102
98
  };
103
- //#endregion
104
- //#region src/onebot11/action/friend/get-friends-with-category.ts
99
+ // src/onebot11/action/friend/get-friends-with-category.ts
105
100
  const getFriendsWithCategorySchema = z.object({});
106
101
  /** 获取好友列表(含分类,P2-11 接 kernel getFriendCategories)。 */
107
102
  var GetFriendsWithCategoryAction = class extends BaseAction {
@@ -117,8 +112,7 @@ var GetFriendsWithCategoryAction = class extends BaseAction {
117
112
  return this.friendApi.getFriendCategories();
118
113
  }
119
114
  };
120
- //#endregion
121
- //#region src/onebot11/action/friend/get-stranger-info.ts
115
+ // src/onebot11/action/friend/get-stranger-info.ts
122
116
  const getStrangerInfoSchema = z.object({
123
117
  user_id: z.number(),
124
118
  no_cache: z.boolean().optional()
@@ -140,8 +134,7 @@ var GetStrangerInfoAction = class extends BaseAction {
140
134
  };
141
135
  }
142
136
  };
143
- //#endregion
144
- //#region src/onebot11/action/friend/send-like.ts
137
+ // src/onebot11/action/friend/send-like.ts
145
138
  /**
146
139
  * send_like 动作:点赞(P2-14 接 kernel ProfileLikeApi.sendLike)
147
140
  */
@@ -165,8 +158,7 @@ var SendLikeAction = class extends BaseAction {
165
158
  return null;
166
159
  }
167
160
  };
168
- //#endregion
169
- //#region src/onebot11/action/friend/set-doubt-friends-add-request.ts
161
+ // src/onebot11/action/friend/set-doubt-friends-add-request.ts
170
162
  const setDoubtFriendsAddRequestSchema = z.object({
171
163
  flag: z.string(),
172
164
  approve: z.boolean().optional()
@@ -186,8 +178,7 @@ var SetDoubtFriendsAddRequestAction = class extends BaseAction {
186
178
  return Promise.resolve(null);
187
179
  }
188
180
  };
189
- //#endregion
190
- //#region src/onebot11/action/friend/set-friend-add-request.ts
181
+ // src/onebot11/action/friend/set-friend-add-request.ts
191
182
  /**
192
183
  * set_friend_add_request 动作:处理加好友请求(P2-11)
193
184
  *
@@ -217,8 +208,7 @@ var SetFriendAddRequestAction = class extends BaseAction {
217
208
  return null;
218
209
  }
219
210
  };
220
- //#endregion
221
- //#region src/onebot11/action/friend/set-friend-remark.ts
211
+ // src/onebot11/action/friend/set-friend-remark.ts
222
212
  /**
223
213
  * set_friend_remark 动作:设置好友备注(P2-11 接 kernel FriendApi.setFriendRemark)
224
214
  */
@@ -242,8 +232,7 @@ var SetFriendRemarkAction = class extends BaseAction {
242
232
  return null;
243
233
  }
244
234
  };
245
- //#endregion
246
- //#region src/onebot11/helper/message-unique.ts
235
+ // src/onebot11/helper/message-unique.ts
247
236
  /** OB11 message_id 上限(int32 max = 0x7FFF_FFFF)。 */
248
237
  const INT32_MAX = 2147483647;
249
238
  /** int32 下限。 */
@@ -330,8 +319,7 @@ function resolveMsgIdAndPeer(messageId, unique) {
330
319
  peer
331
320
  };
332
321
  }
333
- //#endregion
334
- //#region src/onebot11/action/group/set-essence-msg.ts
322
+ // src/onebot11/action/group/set-essence-msg.ts
335
323
  /**
336
324
  * set_essence_msg 动作:设置精华消息(P2-10 接 kernel GroupApi.addGroupEssence)
337
325
  *
@@ -361,8 +349,7 @@ var SetEssenceMsgAction = class extends EssenceMsgBase {
361
349
  await this.deps.groupApi.addGroupEssence(groupCode, msgId);
362
350
  }
363
351
  };
364
- //#endregion
365
- //#region src/onebot11/action/group/delete-essence-msg.ts
352
+ // src/onebot11/action/group/delete-essence-msg.ts
366
353
  /**
367
354
  * delete_essence_msg 动作:取消精华消息(P2-10 接 kernel GroupApi.removeGroupEssence)
368
355
  */
@@ -375,8 +362,7 @@ var DeleteEssenceMsgAction = class extends EssenceMsgBase {
375
362
  await this.deps.groupApi.removeGroupEssence(groupCode, msgId);
376
363
  }
377
364
  };
378
- //#endregion
379
- //#region src/onebot11/action/group/get-essence-msg-list.ts
365
+ // src/onebot11/action/group/get-essence-msg-list.ts
380
366
  const getEssenceMsgListSchema = z.object({ group_id: z.number() });
381
367
  /** 文本段类型(msg_content.msg_type)。 */
382
368
  const MSG_TYPE_TEXT = 1;
@@ -428,8 +414,7 @@ function toSegment(part) {
428
414
  };
429
415
  return null;
430
416
  }
431
- //#endregion
432
- //#region src/onebot11/action/group/get-group-add-request.ts
417
+ // src/onebot11/action/group/get-group-add-request.ts
433
418
  const getGroupAddRequestSchema = z.object({ count: z.number().optional() });
434
419
  /** 默认获取数量。 */
435
420
  const DEFAULT_COUNT$2 = 100;
@@ -489,8 +474,7 @@ function toGroupAddRequestItem(notify) {
489
474
  postscript: postscript ?? ""
490
475
  };
491
476
  }
492
- //#endregion
493
- //#region src/onebot11/action/group/get-group-at-all-remain.ts
477
+ // src/onebot11/action/group/get-group-at-all-remain.ts
494
478
  const getGroupAtAllRemainSchema = z.object({ group_id: z.number() });
495
479
  /** 获取群 @全体成员 剩余次数(P2-10 接 kernel getGroupRemainAtTimes)。 */
496
480
  var GetGroupAtAllRemainAction = class extends BaseAction {
@@ -511,8 +495,7 @@ var GetGroupAtAllRemainAction = class extends BaseAction {
511
495
  };
512
496
  }
513
497
  };
514
- //#endregion
515
- //#region src/onebot11/action/group/get-group-honor-info.ts
498
+ // src/onebot11/action/group/get-group-honor-info.ts
516
499
  const getGroupHonorInfoSchema = z.object({
517
500
  group_id: z.number(),
518
501
  type: z.string().optional()
@@ -540,8 +523,7 @@ function mapHonorType(raw) {
540
523
  if (raw === "emotion") return WebHonorType.EMOTION;
541
524
  return WebHonorType.ALL;
542
525
  }
543
- //#endregion
544
- //#region src/onebot11/helper/translate.ts
526
+ // src/onebot11/helper/translate.ts
545
527
  /**
546
528
  * OB11 翻译辅助(NT 实体 → OB11 结构,P2-4)
547
529
  *
@@ -591,8 +573,7 @@ function toOb11GroupMemberInfo(groupCode, member, uidToUin) {
591
573
  if (typeof member.age === "number") info.age = member.age;
592
574
  return info;
593
575
  }
594
- //#endregion
595
- //#region src/onebot11/action/group/get-group-info.ts
576
+ // src/onebot11/action/group/get-group-info.ts
596
577
  /**
597
578
  * get_group_info 动作:获取群信息(P2-4 接 kernel GroupApi;P2-17 读缓存)
598
579
  */
@@ -617,8 +598,7 @@ var GetGroupInfoAction = class extends BaseAction {
617
598
  return toOb11GroupInfoDetail(await this.deps.groupApi.getGroupInfo(groupCode));
618
599
  }
619
600
  };
620
- //#endregion
621
- //#region src/onebot11/action/group/get-group-list.ts
601
+ // src/onebot11/action/group/get-group-list.ts
622
602
  /**
623
603
  * get_group_list 动作:获取群列表(P2-4 接 kernel GroupApi + GroupCache)
624
604
  *
@@ -643,8 +623,7 @@ var GetGroupListAction = class extends BaseAction {
643
623
  return (this.deps.groupCache === void 0 ? await this.deps.groupApi.getGroupList(true) : payload.no_cache === true ? await this.deps.groupCache.listGroupsRefreshed() : this.deps.groupCache.listGroups()).map(toOb11GroupInfo);
644
624
  }
645
625
  };
646
- //#endregion
647
- //#region src/onebot11/action/group/get-group-member-info.ts
626
+ // src/onebot11/action/group/get-group-member-info.ts
648
627
  /**
649
628
  * get_group_member_info 动作:获取群成员信息(P2-4 接 kernel GroupApi;P2-17 读缓存)
650
629
  */
@@ -681,8 +660,7 @@ var GetGroupMemberInfoAction = class extends BaseAction {
681
660
  return await this.deps.groupCache.getMember(groupCode, uid);
682
661
  }
683
662
  };
684
- //#endregion
685
- //#region src/onebot11/action/group/get-group-member-list.ts
663
+ // src/onebot11/action/group/get-group-member-list.ts
686
664
  const getGroupMemberListSchema = z.object({
687
665
  group_id: z.number(),
688
666
  /** 是否忽略缓存(go-cqhttp 扩展)。 */
@@ -708,8 +686,7 @@ var GetGroupMemberListAction = class extends BaseAction {
708
686
  return members.map((m) => toOb11GroupMemberInfo(groupCode, m, uinMap));
709
687
  }
710
688
  };
711
- //#endregion
712
- //#region src/onebot11/action/group/get-group-shut-list.ts
689
+ // src/onebot11/action/group/get-group-shut-list.ts
713
690
  /**
714
691
  * get_group_shut_list 动作:获取群禁言列表(P2-13 接 kernel GroupNotifyApi)
715
692
  *
@@ -740,8 +717,7 @@ var GetGroupShutListAction = class extends BaseAction {
740
717
  return out;
741
718
  }
742
719
  };
743
- //#endregion
744
- //#region src/onebot11/action/group/get-group-system-msg.ts
720
+ // src/onebot11/action/group/get-group-system-msg.ts
745
721
  const getGroupSystemMsgSchema = z.object({ count: z.number().optional() });
746
722
  /** 默认获取数量。 */
747
723
  const DEFAULT_COUNT$1 = 50;
@@ -834,8 +810,10 @@ function toMessageInfo(notify, uinMap) {
834
810
  requester_nick: invitorNick
835
811
  };
836
812
  }
837
- //#endregion
838
- //#region src/onebot11/action/group/group-files-op.ts
813
+ // src/onebot11/action/limits.ts
814
+ /** 批量翻译的词条上限(translate_en2zh)。 */
815
+ const MAX_TRANSLATE_WORDS = 2e3;
816
+ // src/onebot11/action/group/group-files-op.ts
839
817
  const createGroupFileFolderSchema = z.object({
840
818
  group_id: z.number(),
841
819
  folder_name: z.string()
@@ -858,7 +836,7 @@ const deleteGroupFileSchema = z.object({
858
836
  group_id: z.number(),
859
837
  file_id: z.string(),
860
838
  /** 兼容 go-cqhttp 的 file_ids 数组(取第一个)。 */
861
- file_ids: z.array(z.string()).optional()
839
+ file_ids: z.array(z.string()).max(100).optional()
862
840
  });
863
841
  /** 删除群文件(P2-14)。 */
864
842
  var DeleteGroupFileAction = class extends BaseAction {
@@ -918,7 +896,7 @@ var RenameGroupFileAction = class extends BaseAction {
918
896
  const moveGroupFileSchema = z.object({
919
897
  group_id: z.number(),
920
898
  file_id: z.string(),
921
- file_ids: z.array(z.string()).optional(),
899
+ file_ids: z.array(z.string()).max(100).optional(),
922
900
  /** 目标文件夹 ID(空为根目录)。 */
923
901
  folder_id: z.string().optional()
924
902
  });
@@ -957,8 +935,7 @@ var TransGroupFileAction = class extends BaseAction {
957
935
  return null;
958
936
  }
959
937
  };
960
- //#endregion
961
- //#region src/onebot11/action/group/group-files-query.ts
938
+ // src/onebot11/action/group/group-files-query.ts
962
939
  const getGroupRootFilesSchema = z.object({
963
940
  group_id: z.number(),
964
941
  file_count: z.number().optional()
@@ -1057,8 +1034,7 @@ function toGroupFolderInfo(folder) {
1057
1034
  folder_name: folder.folderName
1058
1035
  };
1059
1036
  }
1060
- //#endregion
1061
- //#region src/onebot11/action/group/set-group-add-request.ts
1037
+ // src/onebot11/action/group/set-group-add-request.ts
1062
1038
  /**
1063
1039
  * set_group_add_request 动作:处理加群请求(P2-13 接 kernel GroupNotifyApi)
1064
1040
  *
@@ -1099,8 +1075,7 @@ var SetGroupAddRequestAction = class extends BaseAction {
1099
1075
  return (await this.groupNotifyApi.getSingleScreenNotifies(true, count)).find((item) => item.seq === flag) ?? null;
1100
1076
  }
1101
1077
  };
1102
- //#endregion
1103
- //#region src/onebot11/action/group/set-group-admin.ts
1078
+ // src/onebot11/action/group/set-group-admin.ts
1104
1079
  /**
1105
1080
  * set_group_admin 动作:设置群管理员(P2-10 接 kernel GroupApi.setMemberRole)
1106
1081
  *
@@ -1130,8 +1105,7 @@ var SetGroupAdminAction = class extends BaseAction {
1130
1105
  return null;
1131
1106
  }
1132
1107
  };
1133
- //#endregion
1134
- //#region src/onebot11/action/group/set-group-ban.ts
1108
+ // src/onebot11/action/group/set-group-ban.ts
1135
1109
  const setGroupBanSchema = z.object({
1136
1110
  group_id: z.number(),
1137
1111
  user_id: z.number(),
@@ -1157,8 +1131,7 @@ var SetGroupBanAction = class extends BaseAction {
1157
1131
  return null;
1158
1132
  }
1159
1133
  };
1160
- //#endregion
1161
- //#region src/onebot11/action/group/set-group-card.ts
1134
+ // src/onebot11/action/group/set-group-card.ts
1162
1135
  const setGroupCardSchema = z.object({
1163
1136
  group_id: z.number(),
1164
1137
  user_id: z.number(),
@@ -1181,8 +1154,7 @@ var SetGroupCardAction = class extends BaseAction {
1181
1154
  return null;
1182
1155
  }
1183
1156
  };
1184
- //#endregion
1185
- //#region src/onebot11/action/group/set-group-kick.ts
1157
+ // src/onebot11/action/group/set-group-kick.ts
1186
1158
  /**
1187
1159
  * set_group_kick 动作:群组踢人(P2-10 接 kernel GroupApi.kickMember)
1188
1160
  *
@@ -1218,8 +1190,7 @@ var SetGroupKickAction = class extends BaseAction {
1218
1190
  return uid;
1219
1191
  }
1220
1192
  };
1221
- //#endregion
1222
- //#region src/onebot11/action/group/set-group-leave.ts
1193
+ // src/onebot11/action/group/set-group-leave.ts
1223
1194
  const setGroupLeaveSchema = z.object({
1224
1195
  group_id: z.number(),
1225
1196
  /** 是否解散群(仅群主可用)。 */
@@ -1240,8 +1211,7 @@ var SetGroupLeaveAction = class extends BaseAction {
1240
1211
  return null;
1241
1212
  }
1242
1213
  };
1243
- //#endregion
1244
- //#region src/onebot11/action/group/set-group-name.ts
1214
+ // src/onebot11/action/group/set-group-name.ts
1245
1215
  const setGroupNameSchema = z.object({
1246
1216
  group_id: z.number(),
1247
1217
  group_name: z.string()
@@ -1261,8 +1231,7 @@ var SetGroupNameAction = class extends BaseAction {
1261
1231
  return null;
1262
1232
  }
1263
1233
  };
1264
- //#endregion
1265
- //#region src/onebot11/action/group/set-group-whole-ban.ts
1234
+ // src/onebot11/action/group/set-group-whole-ban.ts
1266
1235
  const setGroupWholeBanSchema = z.object({
1267
1236
  group_id: z.number(),
1268
1237
  /** 是否开启全员禁言。 */
@@ -1283,8 +1252,7 @@ var SetGroupWholeBanAction = class extends BaseAction {
1283
1252
  return null;
1284
1253
  }
1285
1254
  };
1286
- //#endregion
1287
- //#region src/onebot11/action/message/delete-msg.ts
1255
+ // src/onebot11/action/message/delete-msg.ts
1288
1256
  /**
1289
1257
  * delete_msg 动作:撤回消息(P2-10 接 kernel MsgApi.recallMessage)
1290
1258
  *
@@ -1308,8 +1276,7 @@ var DeleteMsgAction = class extends BaseAction {
1308
1276
  return null;
1309
1277
  }
1310
1278
  };
1311
- //#endregion
1312
- //#region src/onebot11/action/message/fetch-ptt-text.ts
1279
+ // src/onebot11/action/message/fetch-ptt-text.ts
1313
1280
  /**
1314
1281
  * fetch_ptt_text 动作:获取语音转文字结果(NapCat 扩展,P2-10)
1315
1282
  *
@@ -1332,8 +1299,7 @@ var FetchPttTextAction = class extends BaseAction {
1332
1299
  return { text: await this.deps.msgApi.fetchPttText(msgId, peer) };
1333
1300
  }
1334
1301
  };
1335
- //#endregion
1336
- //#region src/onebot11/action/message/resolve-peer.ts
1302
+ // src/onebot11/action/message/resolve-peer.ts
1337
1303
  /**
1338
1304
  * OB11 目标 Peer 解析 / 单条消息拉取(多个动作共用,2026-08-08 克隆合并)
1339
1305
  *
@@ -1369,8 +1335,7 @@ async function fetchMsgById(messageId, messageUnique, msgApi) {
1369
1335
  msgId
1370
1336
  };
1371
1337
  }
1372
- //#endregion
1373
- //#region src/onebot11/action/message/forward-single-msg.ts
1338
+ // src/onebot11/action/message/forward-single-msg.ts
1374
1339
  /**
1375
1340
  * forward_group_single_msg / forward_friend_single_msg 动作:单条转发(P2-12)
1376
1341
  *
@@ -1407,8 +1372,7 @@ var ForwardFriendSingleMsgAction = class extends ForwardSingleMsgBase {
1407
1372
  name = "forward_friend_single_msg";
1408
1373
  schema = forwardSingleMsgSchema;
1409
1374
  };
1410
- //#endregion
1411
- //#region src/onebot11/helper/codec/cqcode.ts
1375
+ // src/onebot11/helper/codec/cqcode.ts
1412
1376
  /**
1413
1377
  * CQ 码编解码(OneBot 11 消息段序列化格式)
1414
1378
  *
@@ -1483,8 +1447,7 @@ function serializeCqParts(parts) {
1483
1447
  else out += encodeCqCode(part.type, part.params);
1484
1448
  return out;
1485
1449
  }
1486
- //#endregion
1487
- //#region src/onebot11/helper/codec/segment.ts
1450
+ // src/onebot11/helper/codec/segment.ts
1488
1451
  /** OB11 媒体段 data(image/record/video 共用,url 可选)。 */
1489
1452
  function mediaData(file, url) {
1490
1453
  const data = { file };
@@ -1677,8 +1640,7 @@ function segmentsToCqMessage(segments) {
1677
1640
  else out += encodeCqCode(seg.type, seg.data);
1678
1641
  return out;
1679
1642
  }
1680
- //#endregion
1681
- //#region src/onebot11/helper/config.ts
1643
+ // src/onebot11/helper/config.ts
1682
1644
  /**
1683
1645
  * OneBot 11 协议配置(zod schema,归属本包,ADR-012)
1684
1646
  * 协议配置 schema 在各自协议包,kernel 只提供 ConfigBase 基类。
@@ -1754,8 +1716,7 @@ const ob11ConfigSchema = z.object({
1754
1716
  /** 正向 WS client 列表。 */
1755
1717
  wsReverseUrls: z.array(wsReverseSchema).default([])
1756
1718
  });
1757
- //#endregion
1758
- //#region src/onebot11/helper/data.ts
1719
+ // src/onebot11/helper/data.ts
1759
1720
  /** canonical 元素数组 → OB11 segment 数组(无法表达的元素静默跳过)。 */
1760
1721
  function canonicalToSegments(elements) {
1761
1722
  const segments = [];
@@ -1876,8 +1837,7 @@ function canonicalToCqMessage(elements) {
1876
1837
  function cqMessageToCanonical(text) {
1877
1838
  return segmentsToCanonical(cqMessageToSegments(text));
1878
1839
  }
1879
- //#endregion
1880
- //#region src/onebot11/helper/message-info.ts
1840
+ // src/onebot11/helper/message-info.ts
1881
1841
  /** 毫秒 → 秒(Unix 时间戳)。 */
1882
1842
  const MS_TO_SEC$4 = 1e3;
1883
1843
  /** RawMessage → OB11 消息信息(message_id 经 MessageUnique 映射)。
@@ -1908,8 +1868,7 @@ function toOb11MessageInfo(msg, unique, ctx = {}) {
1908
1868
  } else info.user_id = Number(msg.senderUin);
1909
1869
  return info;
1910
1870
  }
1911
- //#endregion
1912
- //#region src/onebot11/helper/notice.ts
1871
+ // src/onebot11/helper/notice.ts
1913
1872
  /** 毫秒 → 秒(Unix 时间戳)。 */
1914
1873
  const MS_TO_SEC$3 = 1e3;
1915
1874
  /** 群文件业务类型(group_upload 的 file.busid,与 kernel 群文件系列同源语义)。 */
@@ -2124,8 +2083,7 @@ function toOb11NoticeEvent(msg, ctx) {
2124
2083
  }
2125
2084
  return null;
2126
2085
  }
2127
- //#endregion
2128
- //#region src/onebot11/helper/request.ts
2086
+ // src/onebot11/helper/request.ts
2129
2087
  /**
2130
2088
  * OB11 request 事件翻译(2026-09-08)
2131
2089
  *
@@ -2193,8 +2151,7 @@ function toOb11FriendRequestEvent(req, ctx) {
2193
2151
  flag: req.reqTime
2194
2152
  };
2195
2153
  }
2196
- //#endregion
2197
- //#region src/onebot11/action/message/get-forward-msg.ts
2154
+ // src/onebot11/action/message/get-forward-msg.ts
2198
2155
  /**
2199
2156
  * get_forward_msg 动作:获取合并转发内容(P2-12 接 kernel MsgApi.fetchForwardMessage)
2200
2157
  *
@@ -2273,8 +2230,7 @@ async function fetchAndTranslateHistory(peer, messageSeq, count, deps) {
2273
2230
  });
2274
2231
  }) };
2275
2232
  }
2276
- //#endregion
2277
- //#region src/onebot11/action/message/get-friend-msg-history.ts
2233
+ // src/onebot11/action/message/get-friend-msg-history.ts
2278
2234
  /**
2279
2235
  * get_friend_msg_history 动作:获取私聊历史消息(NapCat 扩展,P2-10)
2280
2236
  *
@@ -2302,8 +2258,7 @@ var GetFriendMsgHistoryAction = class extends BaseAction {
2302
2258
  }, payload.message_seq, payload.count, this.deps);
2303
2259
  }
2304
2260
  };
2305
- //#endregion
2306
- //#region src/onebot11/action/message/get-group-msg-history.ts
2261
+ // src/onebot11/action/message/get-group-msg-history.ts
2307
2262
  /**
2308
2263
  * get_group_msg_history 动作:获取群历史消息(go-cqhttp 扩展,P2-10)
2309
2264
  *
@@ -2331,8 +2286,7 @@ var GetGroupMsgHistoryAction = class extends BaseAction {
2331
2286
  }, payload.message_seq, payload.count, this.deps);
2332
2287
  }
2333
2288
  };
2334
- //#endregion
2335
- //#region src/onebot11/action/message/get-media.ts
2289
+ // src/onebot11/action/message/get-media.ts
2336
2290
  /**
2337
2291
  * get_image / get_record 动作:获取图片/语音文件(P2-14;2026-09-08 T5 接主动下载;
2338
2292
  * 2026-09-08 B1 语音接原生 downloadRichMedia)
@@ -2476,8 +2430,7 @@ var GetRecordAction = class extends BaseAction {
2476
2430
  };
2477
2431
  }
2478
2432
  };
2479
- //#endregion
2480
- //#region src/onebot11/action/message/get-msg.ts
2433
+ // src/onebot11/action/message/get-msg.ts
2481
2434
  /**
2482
2435
  * get_msg 动作:获取消息详情(P2-10 接 kernel MsgApi.fetchMsgsByMsgId)
2483
2436
  *
@@ -2510,8 +2463,7 @@ var GetMsgAction = class extends BaseAction {
2510
2463
  return toOb11MessageInfo(msg, this.deps.messageUnique, ctx);
2511
2464
  }
2512
2465
  };
2513
- //#endregion
2514
- //#region src/onebot11/action/message/mark-msg-as-read.ts
2466
+ // src/onebot11/action/message/mark-msg-as-read.ts
2515
2467
  /**
2516
2468
  * mark_msg_as_read 动作:标记消息已读(P2-10 接 kernel MsgApi.markRead)
2517
2469
  *
@@ -2551,8 +2503,7 @@ var MarkMsgAsReadAction = class extends BaseAction {
2551
2503
  return null;
2552
2504
  }
2553
2505
  };
2554
- //#endregion
2555
- //#region src/onebot11/action/message/mark-msg-as-read-aliases.ts
2506
+ // src/onebot11/action/message/mark-msg-as-read-aliases.ts
2556
2507
  /**
2557
2508
  * mark_private_msg_as_read / mark_group_msg_as_read 动作:标记会话已读(P2-13)
2558
2509
  *
@@ -2599,8 +2550,7 @@ var MarkGroupMsgAsReadAction = class extends BaseAction {
2599
2550
  return null;
2600
2551
  }
2601
2552
  };
2602
- //#endregion
2603
- //#region src/onebot11/action/message/send-forward-msg.ts
2553
+ // src/onebot11/action/message/send-forward-msg.ts
2604
2554
  /**
2605
2555
  * send_group_forward_msg / send_private_forward_msg 动作:发送合并转发(P2-12)
2606
2556
  *
@@ -2614,11 +2564,11 @@ const forwardNodeSchema = z.object({
2614
2564
  });
2615
2565
  const sendGroupForwardMsgSchema = z.object({
2616
2566
  group_id: z.number(),
2617
- messages: z.array(z.unknown()).default([])
2567
+ messages: z.array(z.unknown()).max(500).default([])
2618
2568
  });
2619
2569
  const sendPrivateForwardMsgSchema = z.object({
2620
2570
  user_id: z.number(),
2621
- messages: z.array(z.unknown()).default([])
2571
+ messages: z.array(z.unknown()).max(500).default([])
2622
2572
  });
2623
2573
  /** 解析 node 元素列表 → 源消息 (msgId, peer) 列表(id 反查,跳过无法解析的项)。 */
2624
2574
  function resolveSourceMessages(messages, unique) {
@@ -2686,13 +2636,12 @@ var SendPrivateForwardMsgAction = class extends BaseAction {
2686
2636
  return await sendForward(payload.messages, target, this.deps);
2687
2637
  }
2688
2638
  };
2689
- //#endregion
2690
- //#region src/onebot11/action/message/send-msg.ts
2639
+ // src/onebot11/action/message/send-msg.ts
2691
2640
  const sendMsgSchema = z.object({
2692
2641
  message_type: z.enum(["group", "private"]).optional(),
2693
2642
  user_id: z.number().optional(),
2694
2643
  group_id: z.number().optional(),
2695
- message: z.union([z.string(), z.array(z.unknown())]),
2644
+ message: z.union([z.string(), z.array(z.unknown()).max(200)]),
2696
2645
  auto_escape: z.boolean().optional()
2697
2646
  });
2698
2647
  /** 共享发送核心:解析 Peer → canonical 翻译(含 auto_escape)→ sendMessage → 映射 message_id。 */
@@ -2750,14 +2699,13 @@ async function ensureVoiceSilk(elements) {
2750
2699
  else out.push(el);
2751
2700
  return out;
2752
2701
  }
2753
- //#endregion
2754
- //#region src/onebot11/action/message/send-group-msg.ts
2702
+ // src/onebot11/action/message/send-group-msg.ts
2755
2703
  /**
2756
2704
  * send_group_msg 动作:发送群聊消息(复用 sendOb11Message 核心)
2757
2705
  */
2758
2706
  const sendGroupMsgSchema = z.object({
2759
2707
  group_id: z.number(),
2760
- message: z.union([z.string(), z.array(z.unknown())]),
2708
+ message: z.union([z.string(), z.array(z.unknown()).max(200)]),
2761
2709
  auto_escape: z.boolean().optional()
2762
2710
  });
2763
2711
  /** 发送群聊消息(P2-10 复用 sendOb11Message)。 */
@@ -2774,14 +2722,13 @@ var SendGroupMsgAction = class extends BaseAction {
2774
2722
  return sendOb11Message(payload, this.deps);
2775
2723
  }
2776
2724
  };
2777
- //#endregion
2778
- //#region src/onebot11/action/message/send-private-msg.ts
2725
+ // src/onebot11/action/message/send-private-msg.ts
2779
2726
  /**
2780
2727
  * send_private_msg 动作:发送私聊消息(复用 sendOb11Message 核心)
2781
2728
  */
2782
2729
  const sendPrivateMsgSchema = z.object({
2783
2730
  user_id: z.number(),
2784
- message: z.union([z.string(), z.array(z.unknown())]),
2731
+ message: z.union([z.string(), z.array(z.unknown()).max(200)]),
2785
2732
  auto_escape: z.boolean().optional()
2786
2733
  });
2787
2734
  /** 发送私聊消息(P2-10 复用 sendOb11Message)。 */
@@ -2798,8 +2745,7 @@ var SendPrivateMsgAction = class extends BaseAction {
2798
2745
  return sendOb11Message(payload, this.deps);
2799
2746
  }
2800
2747
  };
2801
- //#endregion
2802
- //#region src/onebot11/action/message/set-input-status.ts
2748
+ // src/onebot11/action/message/set-input-status.ts
2803
2749
  /**
2804
2750
  * set_input_status 动作:发送输入状态(NapCat 扩展,P2-11)
2805
2751
  *
@@ -2832,8 +2778,7 @@ var SetInputStatusAction = class extends BaseAction {
2832
2778
  return null;
2833
2779
  }
2834
2780
  };
2835
- //#endregion
2836
- //#region src/onebot11/action/message/set-msg-emoji-like.ts
2781
+ // src/onebot11/action/message/set-msg-emoji-like.ts
2837
2782
  /**
2838
2783
  * set_msg_emoji_like 动作:消息表情表态(NapCat 扩展,P2-10)
2839
2784
  *
@@ -2869,8 +2814,7 @@ var SetMsgEmojiLikeAction = class extends BaseAction {
2869
2814
  return null;
2870
2815
  }
2871
2816
  };
2872
- //#endregion
2873
- //#region src/onebot11/action/system/can-send-image.ts
2817
+ // src/onebot11/action/system/can-send-image.ts
2874
2818
  /**
2875
2819
  * can_send_image 动作:是否可以发送图片(本地 true,P2-11)
2876
2820
  */
@@ -2884,8 +2828,7 @@ var CanSendImageAction = class extends BaseAction {
2884
2828
  return Promise.resolve({ yes: true });
2885
2829
  }
2886
2830
  };
2887
- //#endregion
2888
- //#region src/onebot11/action/system/can-send-record.ts
2831
+ // src/onebot11/action/system/can-send-record.ts
2889
2832
  /**
2890
2833
  * can_send_record 动作:是否可以发送语音(本地 true,P2-11)
2891
2834
  */
@@ -2899,8 +2842,7 @@ var CanSendRecordAction = class extends BaseAction {
2899
2842
  return Promise.resolve({ yes: true });
2900
2843
  }
2901
2844
  };
2902
- //#endregion
2903
- //#region src/onebot11/action/system/clean-cache.ts
2845
+ // src/onebot11/action/system/clean-cache.ts
2904
2846
  /**
2905
2847
  * clean_cache 动作:清理缓存(本地组装,P2-11)
2906
2848
  *
@@ -2924,8 +2866,7 @@ var CleanCacheAction = class extends BaseAction {
2924
2866
  return null;
2925
2867
  }
2926
2868
  };
2927
- //#endregion
2928
- //#region src/onebot11/action/system/download-file.ts
2869
+ // src/onebot11/action/system/download-file.ts
2929
2870
  /**
2930
2871
  * download_file 动作:下载文件到缓存目录(P2-12)
2931
2872
  *
@@ -2962,8 +2903,7 @@ var DownloadFileAction = class extends BaseAction {
2962
2903
  return { file: filePath };
2963
2904
  }
2964
2905
  };
2965
- //#endregion
2966
- //#region src/onebot11/action/system/get-clientkey.ts
2906
+ // src/onebot11/action/system/get-clientkey.ts
2967
2907
  const getClientkeySchema = z.object({});
2968
2908
  /** 获取 clientKey(P2-13 接 kernel TicketApi)。 */
2969
2909
  var GetClientkeyAction = class extends BaseAction {
@@ -2985,8 +2925,7 @@ var GetClientkeyAction = class extends BaseAction {
2985
2925
  };
2986
2926
  }
2987
2927
  };
2988
- //#endregion
2989
- //#region src/onebot11/action/system/get-cookies.ts
2928
+ // src/onebot11/action/system/get-cookies.ts
2990
2929
  /**
2991
2930
  * get_cookies 动作:获取 cookies(P2-13 接 kernel TicketApi.getCookies)
2992
2931
  *
@@ -3015,8 +2954,7 @@ var GetCookiesAction = class extends BaseAction {
3015
2954
  return this.deps.ticketApi.getCookies(domain, uin);
3016
2955
  }
3017
2956
  };
3018
- //#endregion
3019
- //#region src/onebot11/action/system/get-credentials.ts
2957
+ // src/onebot11/action/system/get-credentials.ts
3020
2958
  /**
3021
2959
  * get_csrf_token / get_credentials 动作(P2-15 接 kernel TicketApi)
3022
2960
  *
@@ -3061,8 +2999,7 @@ var GetCredentialsAction = class extends BaseAction {
3061
2999
  };
3062
3000
  }
3063
3001
  };
3064
- //#endregion
3065
- //#region src/onebot11/action/system/get-login-info.ts
3002
+ // src/onebot11/action/system/get-login-info.ts
3066
3003
  /**
3067
3004
  * get_login_info 动作:获取登录信息(P2-4 注入 self)
3068
3005
  */
@@ -3084,8 +3021,7 @@ var GetLoginInfoAction = class extends BaseAction {
3084
3021
  });
3085
3022
  }
3086
3023
  };
3087
- //#endregion
3088
- //#region src/onebot11/action/system/get-robot-uin-range.ts
3024
+ // src/onebot11/action/system/get-robot-uin-range.ts
3089
3025
  /**
3090
3026
  * get_robot_uin_range 动作:获取机器人 QQ 号范围(本地组装,P2-11)
3091
3027
  *
@@ -3108,8 +3044,7 @@ var GetRobotUinRangeAction = class extends BaseAction {
3108
3044
  });
3109
3045
  }
3110
3046
  };
3111
- //#endregion
3112
- //#region src/onebot11/action/system/get-status.ts
3047
+ // src/onebot11/action/system/get-status.ts
3113
3048
  /**
3114
3049
  * get_status 动作:获取运行状态(本地组装,P2-11)
3115
3050
  *
@@ -3128,8 +3063,7 @@ var GetStatusAction = class extends BaseAction {
3128
3063
  });
3129
3064
  }
3130
3065
  };
3131
- //#endregion
3132
- //#region src/onebot11/action/system/get-version-info.ts
3066
+ // src/onebot11/action/system/get-version-info.ts
3133
3067
  /**
3134
3068
  * get_version_info 动作:获取版本信息(本地组装,P2-11)
3135
3069
  *
@@ -3154,8 +3088,7 @@ var GetVersionInfoAction = class extends BaseAction {
3154
3088
  });
3155
3089
  }
3156
3090
  };
3157
- //#endregion
3158
- //#region src/onebot11/action/system/process-control.ts
3091
+ // src/onebot11/action/system/process-control.ts
3159
3092
  /**
3160
3093
  * bot_exit / set_restart 动作:退出 / 重启(P2-12)
3161
3094
  *
@@ -3195,8 +3128,7 @@ var SetRestartAction = class extends BaseAction {
3195
3128
  return null;
3196
3129
  }
3197
3130
  };
3198
- //#endregion
3199
- //#region src/onebot11/action/system/profile-actions.ts
3131
+ // src/onebot11/action/system/profile-actions.ts
3200
3132
  /** 资料类动作(P2-14):set_self_longnick / set_qq_profile / set_qq_avatar
3201
3133
  */
3202
3134
  /** URL 前缀(头像在线文件识别)。 */
@@ -3271,8 +3203,7 @@ var SetQQAvatarAction = class extends BaseAction {
3271
3203
  return filePath;
3272
3204
  }
3273
3205
  };
3274
- //#endregion
3275
- //#region src/onebot11/action/system/set-diy-online-status.ts
3206
+ // src/onebot11/action/system/set-diy-online-status.ts
3276
3207
  const setDiyOnlineStatusSchema = z.object({
3277
3208
  status: z.number().optional(),
3278
3209
  /** 自定义状态文案。 */
@@ -3309,8 +3240,7 @@ var SetDiyOnlineStatusAction = class extends BaseAction {
3309
3240
  return null;
3310
3241
  }
3311
3242
  };
3312
- //#endregion
3313
- //#region src/onebot11/action/system/set-online-status.ts
3243
+ // src/onebot11/action/system/set-online-status.ts
3314
3244
  const setOnlineStatusSchema = z.object({
3315
3245
  status: z.number().optional(),
3316
3246
  ext_status: z.number().optional(),
@@ -3337,9 +3267,8 @@ var SetOnlineStatusAction = class extends BaseAction {
3337
3267
  return null;
3338
3268
  }
3339
3269
  };
3340
- //#endregion
3341
- //#region src/onebot11/action/system/translate-en2zh.ts
3342
- const translateEn2ZhSchema = z.object({ words: z.array(z.string()) });
3270
+ // src/onebot11/action/system/translate-en2zh.ts
3271
+ const translateEn2ZhSchema = z.object({ words: z.array(z.string()).max(MAX_TRANSLATE_WORDS) });
3343
3272
  /** 英文单词翻译(P2-14)。 */
3344
3273
  var TranslateEn2ZhAction = class extends BaseAction {
3345
3274
  name = "translate_en2zh";
@@ -3354,8 +3283,7 @@ var TranslateEn2ZhAction = class extends BaseAction {
3354
3283
  return { words: await this.richMediaApi.translateWords(payload.words) };
3355
3284
  }
3356
3285
  };
3357
- //#endregion
3358
- //#region src/onebot11/action/index.ts
3286
+ // src/onebot11/action/index.ts
3359
3287
  /**
3360
3288
  * OneBot 11 动作注册表(ADR-013 延伸)
3361
3289
  * 各协议维护自己的 ActionRegistry,由协议 adapter 挂到请求分发。
@@ -3492,8 +3420,7 @@ function registerSystemActions(registry, deps) {
3492
3420
  registry.register(new BotExitAction(deps.api));
3493
3421
  registry.register(new SetRestartAction(deps.api));
3494
3422
  }
3495
- //#endregion
3496
- //#region src/onebot11/api/one-bot-api.ts
3423
+ // src/onebot11/api/one-bot-api.ts
3497
3424
  /**
3498
3425
  * OneBot 11 动作统一依赖聚合(P2-16)。
3499
3426
  * 各动作经 `Pick<OneBotApi, ...>` 取所需成员;注册处只构造一次本对象。
@@ -3595,8 +3522,7 @@ var OneBotApi = class {
3595
3522
  }
3596
3523
  }
3597
3524
  };
3598
- //#endregion
3599
- //#region src/onebot11/helper/message-event.ts
3525
+ // src/onebot11/helper/message-event.ts
3600
3526
  /** 毫秒 → 秒(Unix 时间戳)。 */
3601
3527
  const MS_TO_SEC$2 = 1e3;
3602
3528
  /** RawMessage → OB11 消息事件(message_id 经 MessageUnique 映射并记录 peer)。
@@ -3650,8 +3576,7 @@ function toOb11MessageEvent(msg, selfUin, unique, messageFormat = "array", ctx =
3650
3576
  sender
3651
3577
  };
3652
3578
  }
3653
- //#endregion
3654
- //#region src/onebot11/helper/notice-extra.ts
3579
+ // src/onebot11/helper/notice-extra.ts
3655
3580
  /** 毫秒 → 秒(Unix 时间戳)。 */
3656
3581
  const MS_TO_SEC$1 = 1e3;
3657
3582
  /** 候选 uin 字段(按优先级取第一个数字串;uid 串不硬转——待校准)。 */
@@ -3724,8 +3649,7 @@ function toOfflineFileNotice(item, selfUin) {
3724
3649
  }
3725
3650
  };
3726
3651
  }
3727
- //#endregion
3728
- //#region src/onebot11/helper/sysmsg.ts
3652
+ // src/onebot11/helper/sysmsg.ts
3729
3653
  /**
3730
3654
  * OB11 sysmsg 识别表(2026-11-01 自 helper/sysmsg.ts 瘦身——解码层上移
3731
3655
  * core/sysmsg.ts 共享,milky.md §0.8.3/§0.8.6)
@@ -3737,7 +3661,7 @@ function toOfflineFileNotice(item, selfUin) {
3737
3661
  * - recognizeSysMsg:绑定 OB11 表的识别入口
3738
3662
  *
3739
3663
  * 解码原语(decodeProtoTree / extractSysMsgEnvelope / narrowSysMsgBlobs 等)
3740
- * 从 `core/sysmsg.js` 导入使用。
3664
+ * 从 `core/shared/sysmsg.js` 导入使用。
3741
3665
  */
3742
3666
  /** 群号判别(strings[0] 必须是数字串)。 */
3743
3667
  const NUMERIC_RE$1 = /^\d+$/;
@@ -3779,8 +3703,7 @@ const OBSERVED_UNNAMED = /* @__PURE__ */ new Set([
3779
3703
  function recognizeOb11SysMsg(msgType, subType, table = KIND_TABLE) {
3780
3704
  return recognizeSysMsg(msgType, subType, table, OBSERVED_UNNAMED);
3781
3705
  }
3782
- //#endregion
3783
- //#region src/onebot11/transport.ts
3706
+ // src/onebot11/transport.ts
3784
3707
  /**
3785
3708
  * OB11 传输装配(P2-5,2026-08-05)
3786
3709
  *
@@ -3924,8 +3847,7 @@ function authorizeHeader(token) {
3924
3847
  if (token === void 0 || token === "") return;
3925
3848
  return { authorization: `${BEARER_PREFIX}${token}` };
3926
3849
  }
3927
- //#endregion
3928
- //#region src/onebot11/adapter.ts
3850
+ // src/onebot11/adapter.ts
3929
3851
  /** 毫秒 → 秒(Unix 时间戳)。 */
3930
3852
  const MS_TO_SEC = 1e3;
3931
3853
  /**
@@ -4427,7 +4349,6 @@ function collectGroupNotifyUids(notifies) {
4427
4349
  }
4428
4350
  return uids;
4429
4351
  }
4430
- //#endregion
4431
4352
  export { MessageUnique, NapukettoOneBot11Adapter, OneBotApi, assembleOb11Transports, canonicalToCqMessage, canonicalToSegments, cqMessageToCanonical, cqMessageToSegments, createOb11ActionRegistry, encodeCqCode, escapeCqParam, escapeCqText, ob11ConfigSchema, ob11ErrorCodeMap, parseCqMessage, segmentsToCanonical, segmentsToCqMessage, serializeCqParts, unescapeCqText };
4432
4353
 
4433
4354
  //# sourceMappingURL=index.mjs.map