node-karin 1.7.2 → 1.7.4

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 (241) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/index.d.ts +71 -32
  3. package/dist/index.js +1288 -372
  4. package/dist/module/{level.cjs → sqlite3.cjs} +5 -5
  5. package/dist/module/sqlite3.d.ts +2 -0
  6. package/dist/module/sqlite3.js +2 -0
  7. package/dist/root.d.ts +5 -10
  8. package/dist/root.js +3 -7
  9. package/dist/web/assets/{404-5FyWJLGO.js → 404-Cn57FvIk.js} +1 -1
  10. package/dist/web/assets/Item-CgJgKXCA.js.br +0 -0
  11. package/dist/web/assets/SelectionManager-Y4tiofWD.js.br +0 -0
  12. package/dist/web/assets/about-Cc5ZxNhp.js.br +0 -0
  13. package/dist/web/assets/accordion-BaATki-G.js.br +0 -0
  14. package/dist/web/assets/adapter-b38xHxoC.js.br +0 -0
  15. package/dist/web/assets/{bot-BYPMreIT.js → bot-CcOnN4Wd.js} +1 -1
  16. package/dist/web/assets/chunk-2QAN2V2R-BwEz521J.js.br +0 -0
  17. package/dist/web/assets/chunk-2TLCDWYU-BPSGRfjK.js.br +0 -0
  18. package/dist/web/assets/chunk-3TCFMHK3-BOqdsSB5.js.br +0 -0
  19. package/dist/web/assets/chunk-4EXC76WE-CK6xW5Ac.js.br +0 -0
  20. package/dist/web/assets/chunk-6NGXL2PC-DCEOhQmF.js.br +0 -0
  21. package/dist/web/assets/chunk-6VC6TS2O-oZIpw9Sq.js.br +0 -0
  22. package/dist/web/assets/chunk-736YWA4T-CV6Qz2DX.js.br +0 -0
  23. package/dist/web/assets/chunk-A6PX3NG3-rKighwb5.js.br +0 -0
  24. package/dist/web/assets/{chunk-B75B6XQK-CF3MerdJ.js → chunk-B75B6XQK-DDgmKq4Z.js} +1 -1
  25. package/dist/web/assets/chunk-BWXGEJBS-BkQsbsAU.js.br +0 -0
  26. package/dist/web/assets/{chunk-D5XJWRAV-BgEm3wWf.js → chunk-D5XJWRAV-BRu7oAs3.js} +1 -1
  27. package/dist/web/assets/chunk-DYRPAKRC-DbkMB9Bl.js.br +0 -0
  28. package/dist/web/assets/chunk-HAJUSXOG-BkCAi92X.js.br +0 -0
  29. package/dist/web/assets/chunk-IGTUIHQL-C7Y-d-5W.js.br +0 -0
  30. package/dist/web/assets/{chunk-IHO36JMK-Lxve_AMD.js → chunk-IHO36JMK-CWcWd6Vb.js} +1 -1
  31. package/dist/web/assets/chunk-J6JGI6RM-BFfJh4hg.js.br +0 -0
  32. package/dist/web/assets/chunk-J7I6W5JF-BKaAG0iX.js.br +0 -0
  33. package/dist/web/assets/chunk-KCYYJJH4-BDoSNaH-.js.br +0 -0
  34. package/dist/web/assets/chunk-KQ5CH2X7-B7QNWRTv.js.br +0 -0
  35. package/dist/web/assets/{chunk-LAX3QLKM-D9XzIwPV.js → chunk-LAX3QLKM-CVuQqyfg.js} +1 -1
  36. package/dist/web/assets/{chunk-LGSBTEIA-C5hhLgnp.js → chunk-LGSBTEIA-BlHwfrFd.js} +1 -1
  37. package/dist/web/assets/chunk-LWGPUDJ5-DgP7s4L3.js.br +0 -0
  38. package/dist/web/assets/{chunk-M3MASYO7-DnaMhPkj.js → chunk-M3MASYO7-CLm-ANeL.js} +1 -1
  39. package/dist/web/assets/chunk-ML27DD5T-DmNSFpMO.js.br +0 -0
  40. package/dist/web/assets/chunk-MW56SEHC-B3vKYCwY.js.br +0 -0
  41. package/dist/web/assets/chunk-MZRCPRP2-DPzGgeAl.js.br +0 -0
  42. package/dist/web/assets/{chunk-OH2E76JR-CUy3P8hS.js → chunk-OH2E76JR-CEjuwR-D.js} +1 -1
  43. package/dist/web/assets/{chunk-OTWYT2HS-xvgNy4Qw.js → chunk-OTWYT2HS-BZT3IJ6l.js} +1 -1
  44. package/dist/web/assets/chunk-PNCCMQP3-CeV2tkDF.js.br +0 -0
  45. package/dist/web/assets/chunk-SLABUSGS-Byq7yEJc.js.br +0 -0
  46. package/dist/web/assets/{chunk-TE6SZS6W-a4ApYAbL.js → chunk-TE6SZS6W-DkozWoow.js} +1 -1
  47. package/dist/web/assets/{chunk-UX7UMZL5-D2XO33dM.js → chunk-UX7UMZL5-BAaYx9cN.js} +1 -1
  48. package/dist/web/assets/chunk-WQVQ7P2I-zguruu0q.js.br +0 -0
  49. package/dist/web/assets/config-CNQa50FT.js.br +0 -0
  50. package/dist/web/assets/config-DBJMrG55.js.br +0 -0
  51. package/dist/web/assets/cssMode-Dw0lsgz4.js.br +0 -0
  52. package/dist/web/assets/{default_page-CXE8UF2B.js → default_page-xi0eeT5g.js} +1 -1
  53. package/dist/web/assets/detail-CDfN77dx.js.br +0 -0
  54. package/dist/web/assets/detail-QQ5BdpQE.js.br +0 -0
  55. package/dist/web/assets/env-BDpk5wGz.js.br +0 -0
  56. package/dist/web/assets/features-animation-CXk09-IO.js +1 -0
  57. package/dist/web/assets/focusSafely-Mjs8mg55.js.br +0 -0
  58. package/dist/web/assets/freemarker2-EqlfqSmH.js.br +0 -0
  59. package/dist/web/assets/friend_request-DzjKbP3h.js.br +0 -0
  60. package/dist/web/assets/group-B_bJ5V4p.js.br +0 -0
  61. package/dist/web/assets/{group_notice-BKrzoxq_.js → group_notice-BXmZQxxy.js} +1 -1
  62. package/dist/web/assets/handlebars-GjnMP0YB.js.br +0 -0
  63. package/dist/web/assets/html-DGF7hTrE.js.br +0 -0
  64. package/dist/web/assets/htmlMode-5rrJc-3Y.js.br +0 -0
  65. package/dist/web/assets/iconBase-DIRTf0MP.js.br +0 -0
  66. package/dist/web/assets/index-5Bsc8Eir.js.br +0 -0
  67. package/dist/web/assets/index-BG_GZVRz.js.br +0 -0
  68. package/dist/web/assets/index-BU1-wMCo.css.br +0 -0
  69. package/dist/web/assets/{index-D0zOAMDW.js → index-BbzFt-mA.js} +1 -1
  70. package/dist/web/assets/index-Bj41oJaC.js.br +0 -0
  71. package/dist/web/assets/index-C7LjFxhv.js.br +0 -0
  72. package/dist/web/assets/index-C7Xcnyay.js.br +0 -0
  73. package/dist/web/assets/index-CFPQCIzH.js.br +0 -0
  74. package/dist/web/assets/index-CGStAanE.js +1 -0
  75. package/dist/web/assets/index-CdyZQiE6.js.br +0 -0
  76. package/dist/web/assets/index-CjCOuMSE.js.br +0 -0
  77. package/dist/web/assets/{index-CAVmqG_P.js → index-Cm0TKvdA.js} +1 -1
  78. package/dist/web/assets/index-CmTpD77X.js.br +0 -0
  79. package/dist/web/assets/index-Cpc4uWuS.js.br +0 -0
  80. package/dist/web/assets/index-Cw8HqYVX.js.br +0 -0
  81. package/dist/web/assets/index-Cx4oloiu.js.br +0 -0
  82. package/dist/web/assets/index-DZw2Ae-5.js.br +0 -0
  83. package/dist/web/assets/index-D_OPDTYG.js.br +0 -0
  84. package/dist/web/assets/index-DhBacfbd.js +1 -0
  85. package/dist/web/assets/index-Dtrnw-Mv.js.br +0 -0
  86. package/dist/web/assets/{index-BKXXnUWB.js → index-Dz0aOGwB.js} +1 -1
  87. package/dist/web/assets/index-G1M2ov79.js +1 -0
  88. package/dist/web/assets/index-HvXYirEO.js.br +0 -0
  89. package/dist/web/assets/index-_HOsnaw9.js.br +0 -0
  90. package/dist/web/assets/index.esm-DfykxS1B.js.br +0 -0
  91. package/dist/web/assets/inputGroup-CMfxVY9M.js.br +0 -0
  92. package/dist/web/assets/isSymbol-uTXdPmrL.js.br +0 -0
  93. package/dist/web/assets/javascript-DW9hScSh.js.br +0 -0
  94. package/dist/web/assets/jsonMode-LOiWdTBX.js.br +0 -0
  95. package/dist/web/assets/layout-DpBpdrVJ.js.br +0 -0
  96. package/dist/web/assets/liquid-hMMX8w3W.js.br +0 -0
  97. package/dist/web/assets/loading-BL24u3tv.js.br +0 -0
  98. package/dist/web/assets/login-Y9Oyo0oE.js.br +0 -0
  99. package/dist/web/assets/mdx-DK9HbUxy.js.br +0 -0
  100. package/dist/web/assets/{mergeProps-Cfh5ZV_M.js → mergeProps-BW9Q5qT4.js} +1 -1
  101. package/dist/web/assets/{message-B63rQ4K_.js → message-xSGwgkYH.js} +1 -1
  102. package/dist/web/assets/message.model-uGe6MCOc.js.br +0 -0
  103. package/dist/web/assets/pm2-BIITra1Y.js.br +0 -0
  104. package/dist/web/assets/private-Bl-_abgF.js.br +0 -0
  105. package/dist/web/assets/python-nuMc8F5r.js.br +0 -0
  106. package/dist/web/assets/razor-Bm_2hu25.js.br +0 -0
  107. package/dist/web/assets/react-resizable-panels.browser.esm-BPoi8Ocd.js.br +0 -0
  108. package/dist/web/assets/redis-BEaPVOlB.js.br +0 -0
  109. package/dist/web/assets/render-Cvb83nwY.js.br +0 -0
  110. package/dist/web/assets/{save-DvxnYoMa.js → save-BghzVHqD.js} +1 -1
  111. package/dist/web/assets/server-QEru-aUR.js.br +2 -0
  112. package/dist/web/assets/{terminal-BfqwNmpG.js → terminal-CcGdsg5U.js} +1 -1
  113. package/dist/web/assets/terminal-DUbTWf-e.js.br +0 -0
  114. package/dist/web/assets/test-url-dGXTALNT.js.br +0 -0
  115. package/dist/web/assets/theme-switch-D0X8Jyu4.js.br +0 -0
  116. package/dist/web/assets/tsMode-8muJ-nHN.js.br +0 -0
  117. package/dist/web/assets/typescript-DD4IdFvl.js.br +0 -0
  118. package/dist/web/assets/use-dialog-CbonqJLV.js +1 -0
  119. package/dist/web/assets/useCloseOnScroll-CiDWtsup.js.br +0 -0
  120. package/dist/web/assets/useFocusable-BYiK9GnP.js.br +0 -0
  121. package/dist/web/assets/{useFormReset-CWuAD__f.js → useFormReset-X-NYUW5r.js} +1 -1
  122. package/dist/web/assets/useHover-BD2xmRDc.js.br +0 -0
  123. package/dist/web/assets/useId-CpjeS62S.js.br +0 -0
  124. package/dist/web/assets/{useLabel-C232LBzi.js → useLabel-B5IhuJzP.js} +1 -1
  125. package/dist/web/assets/useLocalizedStringFormatter-mlV1EJKb.js.br +0 -0
  126. package/dist/web/assets/useNumberFormatter-CZKqBNcK.js.br +0 -0
  127. package/dist/web/assets/usePress-CaiqVZT8.js.br +0 -0
  128. package/dist/web/assets/useRequest-D5ZQNAj9.js.br +0 -0
  129. package/dist/web/assets/useToggle-CWDhsTnE.js.br +0 -0
  130. package/dist/web/assets/users-dxyMrqen.js.br +0 -0
  131. package/dist/web/assets/video_insert-Dd3fZcsO.js.br +0 -0
  132. package/dist/web/assets/webui-DY0YOBk-.js.br +0 -0
  133. package/dist/web/assets/xml-B-xT_If_.js.br +0 -0
  134. package/dist/web/assets/yaml-BflTiqVa.js.br +0 -0
  135. package/dist/web/index.html +2 -2
  136. package/package.json +7 -7
  137. package/dist/module/level.d.ts +0 -2
  138. package/dist/module/level.js +0 -2
  139. package/dist/web/assets/Item-CTA2y1Ux.js.br +0 -0
  140. package/dist/web/assets/SelectionManager-CkTh2ik1.js.br +0 -0
  141. package/dist/web/assets/about-BiO2BRT5.js.br +0 -0
  142. package/dist/web/assets/accordion-BiUJ48Bc.js.br +0 -0
  143. package/dist/web/assets/adapter-BQfJUD8F.js.br +0 -0
  144. package/dist/web/assets/chunk-2QAN2V2R-BvZRh67R.js.br +0 -0
  145. package/dist/web/assets/chunk-2TLCDWYU-Bgld13o8.js.br +0 -0
  146. package/dist/web/assets/chunk-3TCFMHK3-Ci3gAvH0.js.br +0 -0
  147. package/dist/web/assets/chunk-4EXC76WE-BpVWAXO_.js.br +0 -0
  148. package/dist/web/assets/chunk-6NGXL2PC-D43M3fjg.js.br +0 -0
  149. package/dist/web/assets/chunk-6VC6TS2O-pJkpUjqi.js.br +0 -0
  150. package/dist/web/assets/chunk-736YWA4T-gQXkH0Bw.js.br +0 -0
  151. package/dist/web/assets/chunk-A6PX3NG3-DFxACrvs.js.br +0 -0
  152. package/dist/web/assets/chunk-BWXGEJBS-B6MoGKtz.js.br +0 -0
  153. package/dist/web/assets/chunk-DYRPAKRC-B2LQ25wU.js.br +0 -0
  154. package/dist/web/assets/chunk-HAJUSXOG-Cq-wnTl3.js.br +0 -0
  155. package/dist/web/assets/chunk-IGTUIHQL-d-bs_-aJ.js.br +0 -0
  156. package/dist/web/assets/chunk-J6JGI6RM-B3sUrFix.js.br +0 -0
  157. package/dist/web/assets/chunk-J7I6W5JF-C9LdiSr5.js.br +0 -0
  158. package/dist/web/assets/chunk-KCYYJJH4-B23fyHLb.js.br +0 -0
  159. package/dist/web/assets/chunk-KQ5CH2X7-B_lRvmPA.js.br +0 -0
  160. package/dist/web/assets/chunk-LWGPUDJ5-RQeXR2Zh.js.br +0 -0
  161. package/dist/web/assets/chunk-ML27DD5T-Drb4u1EJ.js.br +0 -0
  162. package/dist/web/assets/chunk-MW56SEHC-CaCfOvSm.js.br +0 -0
  163. package/dist/web/assets/chunk-MZRCPRP2-BSjG0AEb.js.br +0 -0
  164. package/dist/web/assets/chunk-PNCCMQP3-BA1tVKYL.js.br +0 -0
  165. package/dist/web/assets/chunk-SLABUSGS-BsuK0S03.js.br +0 -0
  166. package/dist/web/assets/chunk-WQVQ7P2I-C1d6s2ca.js.br +0 -0
  167. package/dist/web/assets/config-UJUDfZSU.js.br +0 -0
  168. package/dist/web/assets/config-sb0Fmstl.js.br +0 -0
  169. package/dist/web/assets/cssMode-6E_wne2v.js.br +0 -0
  170. package/dist/web/assets/detail-DWhzNDXB.js.br +0 -0
  171. package/dist/web/assets/detail-qU02CBqm.js.br +0 -0
  172. package/dist/web/assets/env-DbwhE2kO.js.br +0 -0
  173. package/dist/web/assets/features-animation-BuPi-7D9.js +0 -1
  174. package/dist/web/assets/focusSafely-s1-omcvB.js.br +0 -0
  175. package/dist/web/assets/freemarker2-C_3vLtu9.js.br +0 -0
  176. package/dist/web/assets/friend_request-BhCdtnn4.js.br +0 -0
  177. package/dist/web/assets/group-C87-ENNC.js.br +0 -0
  178. package/dist/web/assets/handlebars-pwpOCuD5.js.br +0 -0
  179. package/dist/web/assets/html-qzmD309L.js.br +0 -0
  180. package/dist/web/assets/htmlMode-DRMWAd1H.js.br +0 -0
  181. package/dist/web/assets/iconBase-Gsj9ubV0.js.br +0 -0
  182. package/dist/web/assets/index-7o6iaQSm.js.br +0 -0
  183. package/dist/web/assets/index-BF8RlPN2.js.br +0 -0
  184. package/dist/web/assets/index-BQ0APTjg.js.br +0 -0
  185. package/dist/web/assets/index-BdZughnh.js.br +0 -0
  186. package/dist/web/assets/index-Bfv5ghX0.js +0 -1
  187. package/dist/web/assets/index-BrMA34T_.js.br +0 -0
  188. package/dist/web/assets/index-ByNGQeIh.js +0 -1
  189. package/dist/web/assets/index-C3gTQC_a.js.br +0 -0
  190. package/dist/web/assets/index-C65Z7YJE.js.br +0 -0
  191. package/dist/web/assets/index-C9YdKKuZ.js.br +0 -0
  192. package/dist/web/assets/index-CGpqO8gW.js.br +0 -0
  193. package/dist/web/assets/index-C_rvITPu.js.br +0 -0
  194. package/dist/web/assets/index-DNO4WGOR.js.br +0 -0
  195. package/dist/web/assets/index-DYqjICmu.js.br +0 -0
  196. package/dist/web/assets/index-Da1UDnUH.js.br +0 -0
  197. package/dist/web/assets/index-DhCNW2Pu.js.br +0 -0
  198. package/dist/web/assets/index-DnNTYN-U.js.br +0 -0
  199. package/dist/web/assets/index-Dz1d_1vi.js.br +0 -0
  200. package/dist/web/assets/index-VZv3MNe0.css.br +0 -0
  201. package/dist/web/assets/index-bYTyyF5P.js +0 -1
  202. package/dist/web/assets/index-fQeODVzr.js.br +0 -0
  203. package/dist/web/assets/index.esm-BYwCenjs.js.br +0 -0
  204. package/dist/web/assets/inputGroup-CeySugOG.js.br +0 -0
  205. package/dist/web/assets/isSymbol-DcclOhkS.js.br +0 -0
  206. package/dist/web/assets/javascript-BS1HMT5J.js.br +0 -0
  207. package/dist/web/assets/jsonMode-B2ijaAsu.js.br +0 -0
  208. package/dist/web/assets/layout-CFpZc9RQ.js.br +0 -0
  209. package/dist/web/assets/liquid-BgK73Ng8.js.br +0 -0
  210. package/dist/web/assets/loading-DshuFFMq.js.br +0 -0
  211. package/dist/web/assets/login-Cql8Ntk_.js.br +0 -0
  212. package/dist/web/assets/mdx-CCS8eSRk.js.br +0 -0
  213. package/dist/web/assets/message.model-C453ke-f.js.br +0 -0
  214. package/dist/web/assets/pm2-C5Sy02Ji.js.br +0 -0
  215. package/dist/web/assets/private-DVAz7f-6.js.br +0 -0
  216. package/dist/web/assets/python-ikXof33R.js.br +0 -0
  217. package/dist/web/assets/razor-C5F8n6Sw.js.br +0 -0
  218. package/dist/web/assets/react-resizable-panels.browser.esm-BFxVIQsN.js.br +0 -0
  219. package/dist/web/assets/redis-D5kr-zRx.js.br +0 -0
  220. package/dist/web/assets/render-DPSaW4gh.js.br +0 -0
  221. package/dist/web/assets/server-HpD5Xyoy.js.br +0 -0
  222. package/dist/web/assets/terminal-BzdEk3Ng.js.br +0 -0
  223. package/dist/web/assets/test-url-DOV4X8SQ.js.br +0 -0
  224. package/dist/web/assets/theme-switch-f4geFrw1.js.br +0 -0
  225. package/dist/web/assets/tsMode-BDT2V166.js.br +0 -0
  226. package/dist/web/assets/typescript-BfSKvxXC.js.br +0 -0
  227. package/dist/web/assets/use-dialog-CCZhn6t0.js +0 -1
  228. package/dist/web/assets/useCloseOnScroll-U4K9v5wg.js.br +0 -0
  229. package/dist/web/assets/useFocusable-DFZFw-mK.js.br +0 -0
  230. package/dist/web/assets/useHover-CFWHHJuf.js.br +0 -0
  231. package/dist/web/assets/useId-Bbn1WLmv.js.br +0 -0
  232. package/dist/web/assets/useLocalizedStringFormatter-D8EAhnRs.js.br +0 -0
  233. package/dist/web/assets/useNumberFormatter-DW9T1dUM.js.br +0 -0
  234. package/dist/web/assets/usePress-DS9LLYmP.js.br +0 -0
  235. package/dist/web/assets/useRequest-BiEzsYxU.js.br +0 -0
  236. package/dist/web/assets/useToggle-Ctteg_kF.js.br +0 -0
  237. package/dist/web/assets/users-DJ_1askY.js.br +0 -0
  238. package/dist/web/assets/video_insert-JhW9xRlW.js.br +0 -0
  239. package/dist/web/assets/webui-DgivJcU-.js.br +0 -0
  240. package/dist/web/assets/xml-BgeptCwK.js.br +0 -0
  241. package/dist/web/assets/yaml-YqWbZJqo.js.br +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.7.4](https://github.com/KarinJS/Karin/compare/core-v1.7.3...core-v1.7.4) (2025-03-17)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * close [#313](https://github.com/KarinJS/Karin/issues/313) ([665ee4f](https://github.com/KarinJS/Karin/commit/665ee4f4771310f658532e05099cbb1bfd0a97bd))
9
+
10
+
11
+ ### ⚡️ Performance
12
+
13
+ * 缓存一周 ([23dd2d7](https://github.com/KarinJS/Karin/commit/23dd2d71a1fda0f5a4c1ff042389ccc80adb5141))
14
+
15
+
16
+ ### 📦️ Build System
17
+
18
+ * fix error ([a29345e](https://github.com/KarinJS/Karin/commit/a29345e91a858b1446b93d23753c1049608541fe))
19
+
20
+ ## [1.7.3](https://github.com/KarinJS/Karin/compare/core-v1.7.2...core-v1.7.3) (2025-03-14)
21
+
22
+
23
+ ### ♻️ Code Refactoring
24
+
25
+ * 去除level 使用sqlite3代替 ([d4d950f](https://github.com/KarinJS/Karin/commit/d4d950f923bd7357c90a39e474418157baa7a22e))
26
+
3
27
  ## [1.7.2](https://github.com/KarinJS/Karin/compare/core-v1.7.1...core-v1.7.2) (2025-03-12)
4
28
 
5
29
 
package/dist/index.d.ts CHANGED
@@ -2,10 +2,9 @@ import { EventEmitter } from 'node:events';
2
2
  import * as chalk from 'chalk';
3
3
  import chalk__default from 'chalk';
4
4
  import { Logger as Logger$1, Configuration } from 'log4js';
5
- import { Level } from 'level';
6
5
  import { RedisClientType, RedisClientOptions } from 'redis';
7
6
  import _default from './root.js';
8
- export { basePath, commentPath, configPath, consolePath, dataPath, dbPath, defaultConfigPath, defaultViewPath, htmlPath, isPkg, karinDir, karinMain, levelPath, logsPath, pluginDir, pm2Path, redisLevelPath, resourcePath, sandboxDataPath, sandboxLevelPath, sandboxTempPath, tempPath } from './root.js';
7
+ export { basePath, commentPath, configPath, consolePath, dataPath, dbPath, defaultConfigPath, defaultViewPath, htmlPath, isPkg, karinDir, karinMain, kvPath, logsPath, pluginDir, pm2Path, redisSqlite3Path, resourcePath, sandboxDataPath, sandboxTempPath, tempPath } from './root.js';
9
8
  import schedule from 'node-schedule';
10
9
  import fs$1, { WriteStream } from 'node:fs';
11
10
  import { Readable } from 'node:stream';
@@ -17,6 +16,7 @@ import { exec as exec$1, ExecException } from 'child_process';
17
16
  export { ExecException } from 'child_process';
18
17
  import { ExecException as ExecException$1 } from 'node:child_process';
19
18
  import * as http from 'http';
19
+ import sqlite3 from 'sqlite3';
20
20
  import { WebSocket } from 'ws';
21
21
  import { spawn } from '@karinjs/node-pty';
22
22
 
@@ -129,28 +129,6 @@ type Logger = Logger$1 & LoggerExpand;
129
129
  */
130
130
  declare const createInnerLogger: (dir: string) => Logger;
131
131
 
132
- declare class LevelDB extends Level {
133
- id: string;
134
- get: ((key: string) => Promise<any>) & typeof Level.prototype.get;
135
- constructor(path: string);
136
- /**
137
- * 和get方法一样
138
- * @param key 键
139
- * @param value 值
140
- */
141
- set(key: string, value: string | object): Promise<void>;
142
- /**
143
- * 和get方法一样 但是不抛出错误
144
- * @param key 键
145
- */
146
- has(key: string): Promise<any | null>;
147
- }
148
- /**
149
- * @description 创建 LevelDB 数据库客户端
150
- * @returns LevelDB 数据库实例
151
- */
152
- declare const createLevelDB: () => LevelDB;
153
-
154
132
  /** Redis 客户端类型 */
155
133
  type Client = RedisClientType & {
156
134
  id: 'redis' | 'mock';
@@ -8853,6 +8831,7 @@ declare const makeForward: (elements: SendMessage | Array<Elements[]>, fakeId?:
8853
8831
  * @returns 包含差异的对象
8854
8832
  * - removed: 在旧数组中存在但在新数组中不存在的对象集合
8855
8833
  * - added: 在新数组中存在但在旧数组中不存在的对象集合
8834
+ * - common: 在两个数组中都存在的对象集合
8856
8835
  * @example
8857
8836
  * const diff = diffArray(
8858
8837
  * [{ self_id: 123, token: '123' }, { self_id: 222, token: '123' }],
@@ -8860,12 +8839,36 @@ declare const makeForward: (elements: SendMessage | Array<Elements[]>, fakeId?:
8860
8839
  * )
8861
8840
  * // 结果: {
8862
8841
  * // removed: [{ self_id: 222, token: '123' }],
8863
- * // added: [{ self_id: 333, token: '123' }]
8842
+ * // added: [{ self_id: 333, token: '123' }],
8843
+ * // common: [{ self_id: 123, token: '123' }]
8864
8844
  * // }
8865
8845
  */
8866
8846
  declare const diffArray: <T extends Record<string, any>, K extends Record<string, any>>(old: T[], data: K[]) => {
8867
8847
  removed: T[];
8868
8848
  added: K[];
8849
+ common: T[];
8850
+ };
8851
+ /**
8852
+ * 比较两个单维数组,找出它们之间的差异
8853
+ * @description 返回在旧数组中被移除的元素和在新数组中新增的元素
8854
+ * @param old 旧数组 - 作为比较基准的原始数组
8855
+ * @param data 新数组 - 需要与基准数组进行比较的目标数组
8856
+ * @returns 包含差异的对象
8857
+ * - removed: 在旧数组中存在但在新数组中不存在的元素集合
8858
+ * - added: 在新数组中存在但在旧数组中不存在的元素集合
8859
+ * - common: 在两个数组中都存在的元素集合
8860
+ * @example
8861
+ * const result = diffSimpleArray([1, 2, 3], [2, 3, 4])
8862
+ * // 结果: {
8863
+ * // removed: [1],
8864
+ * // added: [4],
8865
+ * // common: [2, 3]
8866
+ * // }
8867
+ */
8868
+ declare const diffSimpleArray: <T>(old: T[], data: T[]) => {
8869
+ removed: T[];
8870
+ added: T[];
8871
+ common: T[];
8869
8872
  };
8870
8873
  /**
8871
8874
  * 确保数值在指定范围内
@@ -9074,6 +9077,7 @@ declare const index$1_buffer: typeof buffer;
9074
9077
  declare const index$1_clamp: typeof clamp;
9075
9078
  declare const index$1_createRawMessage: typeof createRawMessage;
9076
9079
  declare const index$1_diffArray: typeof diffArray;
9080
+ declare const index$1_diffSimpleArray: typeof diffSimpleArray;
9077
9081
  declare const index$1_downFile: typeof downFile;
9078
9082
  declare const index$1_formatNumber: typeof formatNumber;
9079
9083
  declare const index$1_formatTime: typeof formatTime;
@@ -9100,7 +9104,7 @@ declare const index$1_updateYaml: typeof updateYaml;
9100
9104
  declare const index$1_uptime: typeof uptime;
9101
9105
  declare const index$1_urlToPath: typeof urlToPath;
9102
9106
  declare namespace index$1 {
9103
- export { type index$1_AxiosFn as AxiosFn, type index$1_NpmInfo as NpmInfo, index$1_absPath as absPath, index$1_average as average, index$1_axios as axios, index$1_base64 as base64, index$1_buffer as buffer, karinToQQBot as buttonToQQBot, index$1_clamp as clamp, index$1_createRawMessage as createRawMessage, index$1_diffArray as diffArray, index$1_downFile as downFile, existToMkdir as exists, index$1_formatNumber as formatNumber, index$1_formatTime as formatTime, index$1_formatUnit as formatUnit, index$1_getAbsPath as getAbsPath, index$1_getGitPlugins as getGitPlugins, index$1_getNpmPlugins as getNpmPlugins, getPlugins$1 as getPlugins, index$1_getRelPath as getRelPath, index$1_isDir as isDir, index$1_isEven as isEven, index$1_isPlugin as isPlugin, index$1_karinToQQBot as karinToQQBot, index$1_makeForward as makeForward, index$1_makeMessage as makeMessage, createRawMessage as makeMessageLog, index$1_mergeImage as mergeImage, mkdirSync as mkdir, index$1_percentage as percentage, getPluginInfo as pkgJson, pkgRoot as pkgroot, index$1_qqbotToKarin as qqbotToKarin, index$1_random as random, readJsonSync as readJson, read as readYaml, index$1_round as round, index$1_sleep as sleep, index$1_splitPath as splitPath, index$1_stream as stream, index$1_updateYaml as updateYaml, index$1_uptime as uptime, index$1_urlToPath as urlToPath, writeJsonSync as writeJson, write as writeYaml };
9107
+ export { type index$1_AxiosFn as AxiosFn, type index$1_NpmInfo as NpmInfo, index$1_absPath as absPath, index$1_average as average, index$1_axios as axios, index$1_base64 as base64, index$1_buffer as buffer, karinToQQBot as buttonToQQBot, index$1_clamp as clamp, index$1_createRawMessage as createRawMessage, index$1_diffArray as diffArray, index$1_diffSimpleArray as diffSimpleArray, index$1_downFile as downFile, existToMkdir as exists, index$1_formatNumber as formatNumber, index$1_formatTime as formatTime, index$1_formatUnit as formatUnit, index$1_getAbsPath as getAbsPath, index$1_getGitPlugins as getGitPlugins, index$1_getNpmPlugins as getNpmPlugins, getPlugins$1 as getPlugins, index$1_getRelPath as getRelPath, index$1_isDir as isDir, index$1_isEven as isEven, index$1_isPlugin as isPlugin, index$1_karinToQQBot as karinToQQBot, index$1_makeForward as makeForward, index$1_makeMessage as makeMessage, createRawMessage as makeMessageLog, index$1_mergeImage as mergeImage, mkdirSync as mkdir, index$1_percentage as percentage, getPluginInfo as pkgJson, pkgRoot as pkgroot, index$1_qqbotToKarin as qqbotToKarin, index$1_random as random, readJsonSync as readJson, read as readYaml, index$1_round as round, index$1_sleep as sleep, index$1_splitPath as splitPath, index$1_stream as stream, index$1_updateYaml as updateYaml, index$1_uptime as uptime, index$1_urlToPath as urlToPath, writeJsonSync as writeJson, write as writeYaml };
9104
9108
  }
9105
9109
 
9106
9110
  /**
@@ -11182,6 +11186,46 @@ declare const hooks: {
11182
11186
  */
11183
11187
  declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInfo?: T, isForce?: boolean, isFirst?: boolean) => Promise<GetPluginReturn<T>>;
11184
11188
 
11189
+ /**
11190
+ * @description 简单的kv存储
11191
+ */
11192
+ declare class SQLiteWrapper {
11193
+ dbPath: string;
11194
+ _db: sqlite3.Database;
11195
+ constructor(dbPath: string);
11196
+ _init(): Promise<this>;
11197
+ /**
11198
+ * 设置键值对
11199
+ * @param key 键名
11200
+ * @param value 值
11201
+ * @returns 操作是否成功
11202
+ */
11203
+ set<T>(key: string, value: T): Promise<boolean>;
11204
+ /**
11205
+ * 获取所有匹配模式的键
11206
+ * @param pattern 匹配模式,支持SQL LIKE语法的通配符
11207
+ * @returns 匹配的键列表,失败时返回空数组
11208
+ */
11209
+ keys(pattern?: string): Promise<string[]>;
11210
+ /**
11211
+ * 获取键对应的值
11212
+ * @param key 键名
11213
+ * @returns 值,如果键不存在或值损坏则返回null
11214
+ */
11215
+ get<T>(key: string): Promise<T | null>;
11216
+ /**
11217
+ * 删除键
11218
+ * @param key 要删除的键
11219
+ * @returns 是否删除成功
11220
+ */
11221
+ del(key: string): Promise<boolean>;
11222
+ }
11223
+
11224
+ /**
11225
+ * @description kv数据库
11226
+ */
11227
+ declare let db: SQLiteWrapper;
11228
+
11185
11229
  /**
11186
11230
  * 登录号信息
11187
11231
  */
@@ -11634,15 +11678,10 @@ declare let logger: ReturnType<typeof createInnerLogger>;
11634
11678
  * @description Redis数据库
11635
11679
  */
11636
11680
  declare let redis: Client;
11637
- /**
11638
- * @public
11639
- * @description LevelDB数据库
11640
- */
11641
- declare let level: ReturnType<typeof createLevelDB>;
11642
11681
  /**
11643
11682
  * @public
11644
11683
  * @description 启动框架
11645
11684
  */
11646
11685
  declare const start: () => Promise<void>;
11647
11686
 
11648
- export { type Accept, type AccordionItemProps, type AccordionKV, type AccordionProProps, type AccordionProResult, type AccordionProps, type AccordionResult, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type ArrayField, type AtElement, type AtSegment, BATCH_UPDATE_PLUGINS_ROUTER, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BaseForwardCallback, type BaseMessageCallback, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, CHECK_PLUGIN_ROUTER, CLOSE_TERMINAL_ROUTER, CONSOLE_ROUTER, CREATE_TERMINAL_ROUTER, type Cache, type CacheEntry, type CheckboxField, type CheckboxGroupProps, type CheckboxProps, type CheckboxResult, type Children, type CmdFnc, type Command, type CommandClass, type ComponentConfig, type ComponentProps, type ComponentType, type Components, type ComponentsClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CreatePty, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DbStreamStatus, type DbStreams, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DividerField, type DividerProps, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, EXIT_ROUTER, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, FILE_CHANGE, type FaceElement, type FaceSegment, type FieldType, type FileElement, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type FormField, type ForwardMessageCallback, type ForwardOptions, type ForwardSegment, type FriendContact, type FriendData, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendRequestOptions, type FriendSender, GET_BOTS_ROUTER, GET_CONFIG_ROUTER, GET_LOCAL_PLUGIN_LIST_ROUTER, GET_LOG_FILE_LIST_ROUTER, GET_LOG_FILE_ROUTER, GET_LOG_ROUTER, GET_NETWORK_STATUS_ROUTER, GET_ONLINE_PLUGIN_LIST_ROUTER, GET_PLUGIN_APPS_ROUTER, GET_PLUGIN_CONFIG_ROUTER, GET_PLUGIN_FILE_ROUTER, GET_PLUGIN_LIST_ROUTER, GET_TASK_LIST_ROUTER, GET_TASK_STATUS_ROUTER, GET_TERMINAL_LIST_ROUTER, GET_UPDATABLE_PLUGINS_ROUTER, GET_WEBUI_PLUGIN_LIST_ROUTER, GET_WEBUI_PLUGIN_VERSIONS_ROUTER, type GetAtAllCountResponse, type GetBot, type GetConfigRequest, type GetConfigResponse, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, type GroupData, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, type GroupMemberData, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GroupsObjectValue, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type HookCache, type HookCallback, type HookEmitForward, type HookEmitMessage, type HookNext, type HookOptions, INSTALL_PLUGIN_ROUTER, INSTALL_WEBUI_PLUGIN_ROUTER, IS_PLUGIN_CONFIG_EXIST_ROUTER, type ImageElement, type ImageSegment, type InputGroupProps, type InputProps, type InputResult, type JsonElement, type JsonSegment, type JwtVerifyBase, type JwtVerifyError, type JwtVerifyExpired, type JwtVerifyResult, type JwtVerifySuccess, type JwtVerifyUnauthorized, type KarinButton, type KeyboardElement, LOGIN_ROUTER, type LocalApiResponse, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageHookItem, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NetworkStatus, type NodeElement, type NormalMessageCallback, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type NumberField, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11OtherFriendMessage, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type ObjectArrayField, type ObjectField, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type OnlinePluginInfo, type Option, type Options, PING_ROUTER, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgEnv, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginLists, type PluginOptions, type PluginRule, type PluginUpdateInfo, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PrivatesObjectValue, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, REFRESH_ROUTER, RESTART_ROUTER, type Radio, type RadioField, type RadioGroupProps, type RadioResult, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SAVE_CONFIG_ROUTER, SAVE_PLUGIN_CONFIG_ROUTER, SEND_MSG, SET_LOG_LEVEL_ROUTER, SYSTEM_INFO_ROUTER, SYSTEM_STATUS_KARIN_ROUTER, SYSTEM_STATUS_ROUTER, SYSTEM_STATUS_WS_ROUTER, type SandBoxAccountInfo, type SandboxMsgRecord, type SandboxSendApi, type SandboxSendSendFriendMsg, type SandboxSendSendGroupMsg, type SandboxSendSendMsg, type SaveResult, type Scene, type ScreenshotClip, type ScreenshotOptions, type SectionField, type Segment, type SelectField, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgHookItem, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type SwitchField, type SwitchProps, type SwitchResult, type Task, type TerminalInstance, type TerminalShell, type TextElement, type TextField, type TextSegment, type TitleField, UNINSTALL_PLUGIN_ROUTER, UNINSTALL_WEBUI_PLUGIN_ROUTER, UPDATE_CORE_ROUTER, UPDATE_PLUGIN_ROUTER, UPDATE_TASK_STATUS_ROUTER, UPDATE_WEBUI_PLUGIN_VERSION_ROUTER, type UnionMessage, type UnregisterBot, type UserInfo, type ValidationRule, type ValueType, type VideoElement, type VideoSegment, WS_CLOSE, WS_CLOSE_ONEBOT, WS_CLOSE_PUPPETEER, WS_CLOSE_SANDBOX, WS_CONNECTION, WS_CONNECTION_ONEBOT, WS_CONNECTION_PUPPETEER, WS_CONNECTION_SANDBOX, WS_CONNECTION_TERMINAL, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, accordion, accordionItem, accordionPro, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, components, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createClient, createDirectMessage, createFriendDecreaseNotice, createFriendIncreaseNotice, createFriendMessage, createGroupAdminChangedNotice, createGroupApplyRequest, createGroupCardChangedNotice, createGroupFileUploadedNotice, createGroupHlightsChangedNotice, createGroupHonorChangedNotice, createGroupInviteRequest, createGroupLuckKingNotice, createGroupMemberAddNotice, createGroupMemberBanNotice, createGroupMemberDelNotice, createGroupMemberTitleUpdatedNotice, createGroupMessage, createGroupMessageReactionNotice, createGroupPokeNotice, createGroupRecallNotice, createGroupSignInNotice, createGroupTempMessage, createGroupWholeBanNotice, createGuildMessage, createHttp, createInnerLogger, createPluginDir, createPrivateApplyRequest, createPrivateFileUploadedNotice, createPrivatePokeNotice, createPrivateRecallNotice, createRawMessage, createReceiveLikeNotice, debug, karin as default, divider, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, hooks, importModule, initOneBot, input, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, requireFile, requireFileSync, restart, restartDirect, rmSync, router, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, start, stream, stringifyError, switchComponent, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, yaml };
11687
+ export { type Accept, type AccordionItemProps, type AccordionKV, type AccordionProProps, type AccordionProResult, type AccordionProps, type AccordionResult, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type ArrayField, type AtElement, type AtSegment, BATCH_UPDATE_PLUGINS_ROUTER, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BaseForwardCallback, type BaseMessageCallback, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, CHECK_PLUGIN_ROUTER, CLOSE_TERMINAL_ROUTER, CONSOLE_ROUTER, CREATE_TERMINAL_ROUTER, type Cache, type CacheEntry, type CheckboxField, type CheckboxGroupProps, type CheckboxProps, type CheckboxResult, type Children, type CmdFnc, type Command, type CommandClass, type ComponentConfig, type ComponentProps, type ComponentType, type Components, type ComponentsClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CreatePty, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DbStreamStatus, type DbStreams, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DividerField, type DividerProps, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, EXIT_ROUTER, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, FILE_CHANGE, type FaceElement, type FaceSegment, type FieldType, type FileElement, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type FormField, type ForwardMessageCallback, type ForwardOptions, type ForwardSegment, type FriendContact, type FriendData, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendRequestOptions, type FriendSender, GET_BOTS_ROUTER, GET_CONFIG_ROUTER, GET_LOCAL_PLUGIN_LIST_ROUTER, GET_LOG_FILE_LIST_ROUTER, GET_LOG_FILE_ROUTER, GET_LOG_ROUTER, GET_NETWORK_STATUS_ROUTER, GET_ONLINE_PLUGIN_LIST_ROUTER, GET_PLUGIN_APPS_ROUTER, GET_PLUGIN_CONFIG_ROUTER, GET_PLUGIN_FILE_ROUTER, GET_PLUGIN_LIST_ROUTER, GET_TASK_LIST_ROUTER, GET_TASK_STATUS_ROUTER, GET_TERMINAL_LIST_ROUTER, GET_UPDATABLE_PLUGINS_ROUTER, GET_WEBUI_PLUGIN_LIST_ROUTER, GET_WEBUI_PLUGIN_VERSIONS_ROUTER, type GetAtAllCountResponse, type GetBot, type GetConfigRequest, type GetConfigResponse, type GetGroupFileListResponse, type GetGroupFileSystemInfoResponse, type GetGroupHighlightsResponse, type GetGroupInfo, type GetGroupMemberInfo, type GetGroupMuteListResponse, type GetMsg, type GetPluginReturn, type GetPluginType, type GiftElement, type GoToOptions, GroupAdminChangedNotice, type GroupAdminChangedOptions, GroupApplyRequest, type GroupApplyRequestOptions, GroupCardChangedNotice, type GroupCardChangedOptions, type GroupContact, type GroupData, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, type GroupMemberData, GroupMemberDecreaseNotice, type GroupMemberDecreaseOptions, GroupMemberIncreaseNotice, type GroupMemberIncreaseOptions, type GroupMemberInfo, GroupMemberTitleUpdatedNotice, type GroupMemberUniqueTitleChangedOptions, GroupMessage, type GroupMessageOptions, GroupMessageReactionNotice, type GroupMessageReactionOptions, GroupNotice, type GroupNoticeEventMap, GroupPokeNotice, type GroupPokeOptions, GroupRecallNotice, type GroupRecallOptions, type GroupRequestEventMap, type GroupSender, GroupSignInNotice, type GroupSignInOptions, type GroupTempContact, GroupTempMessage, type GroupTempMessageOptions, type GroupTempSender, GroupWholeBanNotice, type GroupWholeBanOptions, type Groups, type GroupsObjectValue, type GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type HookCache, type HookCallback, type HookEmitForward, type HookEmitMessage, type HookNext, type HookOptions, INSTALL_PLUGIN_ROUTER, INSTALL_WEBUI_PLUGIN_ROUTER, IS_PLUGIN_CONFIG_EXIST_ROUTER, type ImageElement, type ImageSegment, type InputGroupProps, type InputProps, type InputResult, type JsonElement, type JsonSegment, type JwtVerifyBase, type JwtVerifyError, type JwtVerifyExpired, type JwtVerifyResult, type JwtVerifySuccess, type JwtVerifyUnauthorized, type KarinButton, type KeyboardElement, LOGIN_ROUTER, type LocalApiResponse, type LocationElement, type LocationSegment, type Log, type Logger, type LoggerExpand, type LoggerLevel, type LoggerOptions, type LongMsgElement, type MarkdownElement, type MarkdownTplElement, type MarketFaceElement, type Message$2 as Message, MessageBase, type MessageEventMap, type MessageEventSub, type MessageHookItem, type MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NetworkStatus, type NodeElement, type NormalMessageCallback, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, type NumberField, type OB11AllEvent, OB11ApiAction, type OB11ApiParams, type OB11ApiRequest, OB11Event, type OB11EventBase, type OB11FriendSender, type OB11GroupMessage, type OB11GroupSender, type OB11GroupTempMessage, type OB11Message, OB11MessageSubType, OB11MessageType, type OB11Meta, type OB11NodeSegment, type OB11Notice, type OB11NoticeBaseType, OB11NoticeType, type OB11OtherFriendMessage, type OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, type ObjectArrayField, type ObjectField, type OneBot11FriendAdd, type OneBot11FriendRecall, type OneBot11FriendRequest, type OneBot11GroupAdmin, type OneBot11GroupBan, type OneBot11GroupCard, type OneBot11GroupDecrease, type OneBot11GroupEssence, type OneBot11GroupIncrease, type OneBot11GroupMessageReaction, type OneBot11GroupMessageReactionLagrange, type OneBot11GroupRecall, type OneBot11GroupRequest, type OneBot11GroupUpload, type OneBot11Heartbeat, type OneBot11Honor, type OneBot11Lifecycle, type OneBot11LuckyKing, type OneBot11Poke, type OnlinePluginInfo, type Option, type Options, PING_ROUTER, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgEnv, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginLists, type PluginOptions, type PluginRule, type PluginUpdateInfo, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PrivatesObjectValue, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, REFRESH_ROUTER, RESTART_ROUTER, type Radio, type RadioField, type RadioGroupProps, type RadioResult, type RawElement, type ReadyMusicElement, ReceiveLikeNotice, type ReceiveLikeOptions, type RecordElement, type RecordSegment, type Redis, type Render, type RenderResult, Renderer, type Renders, type Reply, type ReplyElement, type ReplySegment, type Request, RequestBase, type RequestEventMap, type RequestEventSub, type RequestOptions, type RequireFunction, type RequireFunctionSync, type RequireOptions, type Role, type RpsElement, type RpsSegment, SAVE_CONFIG_ROUTER, SAVE_PLUGIN_CONFIG_ROUTER, SEND_MSG, SET_LOG_LEVEL_ROUTER, SYSTEM_INFO_ROUTER, SYSTEM_STATUS_KARIN_ROUTER, SYSTEM_STATUS_ROUTER, SYSTEM_STATUS_WS_ROUTER, type SandBoxAccountInfo, type SandboxMsgRecord, type SandboxSendApi, type SandboxSendSendFriendMsg, type SandboxSendSendGroupMsg, type SandboxSendSendMsg, type SaveResult, type Scene, type ScreenshotClip, type ScreenshotOptions, type SectionField, type Segment, type SelectField, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgHookItem, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type SwitchField, type SwitchProps, type SwitchResult, type Task, type TerminalInstance, type TerminalShell, type TextElement, type TextField, type TextSegment, type TitleField, UNINSTALL_PLUGIN_ROUTER, UNINSTALL_WEBUI_PLUGIN_ROUTER, UPDATE_CORE_ROUTER, UPDATE_PLUGIN_ROUTER, UPDATE_TASK_STATUS_ROUTER, UPDATE_WEBUI_PLUGIN_VERSION_ROUTER, type UnionMessage, type UnregisterBot, type UserInfo, type ValidationRule, type ValueType, type VideoElement, type VideoSegment, WS_CLOSE, WS_CLOSE_ONEBOT, WS_CLOSE_PUPPETEER, WS_CLOSE_SANDBOX, WS_CONNECTION, WS_CONNECTION_ONEBOT, WS_CONNECTION_PUPPETEER, WS_CONNECTION_SANDBOX, WS_CONNECTION_TERMINAL, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, accordion, accordionItem, accordionPro, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, components, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createClient, createDirectMessage, createFriendDecreaseNotice, createFriendIncreaseNotice, createFriendMessage, createGroupAdminChangedNotice, createGroupApplyRequest, createGroupCardChangedNotice, createGroupFileUploadedNotice, createGroupHlightsChangedNotice, createGroupHonorChangedNotice, createGroupInviteRequest, createGroupLuckKingNotice, createGroupMemberAddNotice, createGroupMemberBanNotice, createGroupMemberDelNotice, createGroupMemberTitleUpdatedNotice, createGroupMessage, createGroupMessageReactionNotice, createGroupPokeNotice, createGroupRecallNotice, createGroupSignInNotice, createGroupTempMessage, createGroupWholeBanNotice, createGuildMessage, createHttp, createInnerLogger, createPluginDir, createPrivateApplyRequest, createPrivateFileUploadedNotice, createPrivatePokeNotice, createPrivateRecallNotice, createRawMessage, createReceiveLikeNotice, db, debug, karin as default, divider, downFile, errorToString, exec, existToMkdir, existToMkdirSync, exists, existsSync, ffmpeg, ffplay, ffprobe, fs as file, fileToUrl, fileToUrlHandlerKey, filesByExt, formatTime$1 as formatTime, index$3 as fs, getAllBot, getAllBotID, getAllBotList, getBot, getBotCount, getCommit, getFiles, getHash, getPid, getPkgVersion, getPluginInfo, getPlugins, getRelPath, getRemotePkgVersion, getRender, getRenderCount, getRenderList, getRequestIp, getTime, handler$1 as handler, hooks, importModule, initOneBot, input, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, requireFile, requireFileSync, restart, restartDirect, rmSync, router, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, start, stream, stringifyError, switchComponent, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, yaml };