node-karin 1.7.11 → 1.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +32 -0
- package/dist/index.d.ts +388 -259
- package/dist/index.js +2226 -1395
- package/dist/root.d.ts +86 -21
- package/dist/root.js +68 -22
- package/dist/web/assets/{404-BDxyrpJR.js → 404-C9u_NlJi.js} +1 -1
- package/dist/web/assets/Item-pd96GKIG.js.br +0 -0
- package/dist/web/assets/SelectionManager-BlXTH2VC.js.br +0 -0
- package/dist/web/assets/about-BwlDpX-c.js.br +0 -0
- package/dist/web/assets/accordion-Bj06RlD-.js.br +0 -0
- package/dist/web/assets/adapter-Du42CYBT.js.br +0 -0
- package/dist/web/assets/{bot-ZaWLa1FU.js → bot-DdYIqTVP.js} +1 -1
- package/dist/web/assets/chunk-2C6KNKEU-CBJmVWyn.js.br +0 -0
- package/dist/web/assets/chunk-2QAN2V2R-BulY1jfw.js.br +0 -0
- package/dist/web/assets/chunk-3TCFMHK3-BpJf4Q9f.js.br +0 -0
- package/dist/web/assets/chunk-4EXC76WE-DWVJR0TX.js.br +0 -0
- package/dist/web/assets/chunk-6JWJ7CFW-BDAlVmIQ.js.br +0 -0
- package/dist/web/assets/chunk-6NGXL2PC-DIPEMSmA.js.br +0 -0
- package/dist/web/assets/chunk-6VC6TS2O-sjq9IySl.js.br +0 -0
- package/dist/web/assets/chunk-736YWA4T-BK_z11TK.js.br +0 -0
- package/dist/web/assets/chunk-A6PX3NG3-BsGR2bWZ.js.br +0 -0
- package/dist/web/assets/{chunk-B75B6XQK-C5rtFucd.js → chunk-B75B6XQK-B0VUBvt8.js} +1 -1
- package/dist/web/assets/chunk-BWXGEJBS-DvCShJym.js.br +0 -0
- package/dist/web/assets/{chunk-D5XJWRAV-LJMiskFm.js → chunk-D5XJWRAV-9uH2CwV1.js} +1 -1
- package/dist/web/assets/chunk-HAJUSXOG-6BFBENy1.js.br +0 -0
- package/dist/web/assets/chunk-IHO36JMK-DKnKLDmu.js.br +0 -0
- package/dist/web/assets/chunk-J6JGI6RM-DKmnXtnU.js.br +0 -0
- package/dist/web/assets/chunk-J7I6W5JF-IqR8CF_Q.js.br +0 -0
- package/dist/web/assets/chunk-KCYYJJH4-BdofC4qA.js.br +0 -0
- package/dist/web/assets/chunk-KHLLQ6W4-CpyZzH4q.js.br +0 -0
- package/dist/web/assets/chunk-KQ5CH2X7-MWuUq5gI.js.br +0 -0
- package/dist/web/assets/{chunk-LAX3QLKM-DoQB1BLc.js → chunk-LAX3QLKM-B0tE0BjZ.js} +1 -1
- package/dist/web/assets/{chunk-LGSBTEIA-DnADaJdv.js → chunk-LGSBTEIA--Gvr91gm.js} +1 -1
- package/dist/web/assets/{chunk-M3MASYO7-B-qDSnyC.js → chunk-M3MASYO7-BVjxibqV.js} +1 -1
- package/dist/web/assets/chunk-ML27DD5T-BjYAog8d.js.br +0 -0
- package/dist/web/assets/chunk-MSDKUXDP-DKkJKxM-.js.br +0 -0
- package/dist/web/assets/chunk-MW56SEHC-CTlcS-O4.js.br +0 -0
- package/dist/web/assets/chunk-MZRCPRP2-BBG21hp8.js.br +0 -0
- package/dist/web/assets/{chunk-OH2E76JR-DI-bfsFB.js → chunk-OH2E76JR-BYurMayl.js} +1 -1
- package/dist/web/assets/{chunk-OTWYT2HS-yqSo33rl.js → chunk-OTWYT2HS-cQ8QQNDY.js} +1 -1
- package/dist/web/assets/chunk-RRTOIK23-CSPsT46O.js.br +0 -0
- package/dist/web/assets/chunk-SLABUSGS-s9w3Zt5w.js.br +0 -0
- package/dist/web/assets/{chunk-TE6SZS6W-u7OVm_y9.js → chunk-TE6SZS6W-1UK_YAGg.js} +1 -1
- package/dist/web/assets/{chunk-UX7UMZL5-D37309j2.js → chunk-UX7UMZL5-DHf8C-o1.js} +1 -1
- package/dist/web/assets/chunk-WQVQ7P2I-C4kbg9VI.js.br +0 -0
- package/dist/web/assets/config-CEElyPBT.js.br +0 -0
- package/dist/web/assets/config-DVn1FaJ-.js.br +0 -0
- package/dist/web/assets/cssMode-CXyVPoom.js.br +0 -0
- package/dist/web/assets/{default_page-Bxa6bEfR.js → default_page-BKgpdS-e.js} +1 -1
- package/dist/web/assets/detail-C5769b6q.js.br +0 -0
- package/dist/web/assets/detail-COuw3J9r.js.br +0 -0
- package/dist/web/assets/env-CSYJHsPf.js.br +0 -0
- package/dist/web/assets/{eye-B35K5uP9.js → eye-DEh2Pgsu.js} +1 -1
- package/dist/web/assets/features-animation-F-pzovue.js +1 -0
- package/dist/web/assets/focusSafely-DOspV_xj.js.br +0 -0
- package/dist/web/assets/freemarker2-BV0OzS9F.js.br +0 -0
- package/dist/web/assets/friend_request-DfiA7sPM.js.br +0 -0
- package/dist/web/assets/{github-yM0zELkv.js → github-nVmhSG0k.js} +1 -1
- package/dist/web/assets/group-CfWIxZ1S.js.br +0 -0
- package/dist/web/assets/{group_notice-62ehOcw1.js → group_notice-XufgXVhG.js} +1 -1
- package/dist/web/assets/handlebars-DSMVNR0n.js.br +0 -0
- package/dist/web/assets/html-ClQau7kT.js.br +0 -0
- package/dist/web/assets/htmlMode-CN2HUcKJ.js.br +0 -0
- package/dist/web/assets/iconBase-BbDMq9Lm.js.br +0 -0
- package/dist/web/assets/index-B2KKfeyN.js.br +0 -0
- package/dist/web/assets/index-B59L0CDQ.js.br +0 -0
- package/dist/web/assets/index-BRJPOEf0.js.br +0 -0
- package/dist/web/assets/index-BSQ_9cWz.js.br +0 -0
- package/dist/web/assets/index-BTn745-y.js.br +0 -0
- package/dist/web/assets/index-Bl5YOuTR.js.br +0 -0
- package/dist/web/assets/{index-Cu6tOi_Z.js → index-Bm-03b92.js} +1 -1
- package/dist/web/assets/index-CNKcljeW.js +1 -0
- package/dist/web/assets/index-CSkzWqtN.js.br +0 -0
- package/dist/web/assets/index-CY-NVVkv.js.br +0 -0
- package/dist/web/assets/index-CeBvj3ZH.js.br +0 -0
- package/dist/web/assets/index-DCzNSkJn.js.br +0 -0
- package/dist/web/assets/{index-CucbY0MY.js → index-DNKbYZlM.js} +1 -1
- package/dist/web/assets/index-DVsvetQP.js.br +0 -0
- package/dist/web/assets/index-D_816BTl.js.br +0 -0
- package/dist/web/assets/index-Db1iHKoe.js.br +0 -0
- package/dist/web/assets/{index-X4fgT5Gf.js → index-DjU-NtVQ.js} +1 -1
- package/dist/web/assets/index-Drqc4ASm.js.br +0 -0
- package/dist/web/assets/index-Dwnb7Xtz.js.br +0 -0
- package/dist/web/assets/index-EGWrH2j2.js +1 -0
- package/dist/web/assets/{index-CPvbcyo8.js → index-IUy6p99y.js} +1 -1
- package/dist/web/assets/index-k_Cd4_SW.js.br +0 -0
- package/dist/web/assets/index-nZMp9MWB.js.br +0 -0
- package/dist/web/assets/index.esm-BSKygSH-.js.br +0 -0
- package/dist/web/assets/inputGroup-CJGuoYUx.js.br +0 -0
- package/dist/web/assets/isSymbol-BShv9ove.js.br +0 -0
- package/dist/web/assets/javascript-BegoFNre.js.br +0 -0
- package/dist/web/assets/jsonMode-Dxf_RJRO.js.br +0 -0
- package/dist/web/assets/layout-al9rnD7b.js.br +0 -0
- package/dist/web/assets/liquid-bFSovgkX.js.br +0 -0
- package/dist/web/assets/loading-Czh_ivNv.js.br +0 -0
- package/dist/web/assets/login-DpjAzjKU.js.br +0 -0
- package/dist/web/assets/mdx-DGviX4hR.js.br +0 -0
- package/dist/web/assets/{message-B-11rrCv.js → message-mTjTgeaM.js} +1 -1
- package/dist/web/assets/message.model-B1qK1MiE.js.br +0 -0
- package/dist/web/assets/number-7W8NeZVk.js.br +0 -0
- package/dist/web/assets/pm2-CniXkaeu.js.br +0 -0
- package/dist/web/assets/private-CfG8JI8L.js.br +0 -0
- package/dist/web/assets/python-D0ZD_k1N.js.br +0 -0
- package/dist/web/assets/razor-DRYiVyDt.js.br +0 -0
- package/dist/web/assets/react-resizable-panels.browser.esm-DubqLJ4h.js.br +0 -0
- package/dist/web/assets/redis-BJLUr1tG.js.br +0 -0
- package/dist/web/assets/render-DEylqIUg.js.br +0 -0
- package/dist/web/assets/{save-Bnt-1YDP.js → save-D6wQsuGT.js} +1 -1
- package/dist/web/assets/server-CRdhk2Wy.js.br +0 -0
- package/dist/web/assets/{terminal-o3q1mfvE.js → terminal-CfCQe79-.js} +1 -1
- package/dist/web/assets/terminal-bNIVjrPM.js.br +0 -0
- package/dist/web/assets/test-url-CZXnW7jp.js.br +0 -0
- package/dist/web/assets/theme-switch-Bz2l2CwF.js.br +0 -0
- package/dist/web/assets/tsMode-DKGjerkd.js.br +0 -0
- package/dist/web/assets/typescript-CsEXAEHs.js.br +0 -0
- package/dist/web/assets/use-dialog-BrR6Szrb.js +1 -0
- package/dist/web/assets/{useEvent-BKbWLkzI.js → useEvent-DaW3_jZI.js} +1 -1
- package/dist/web/assets/useFocusable-CtLTcLFV.js.br +0 -0
- package/dist/web/assets/{useFormReset-Bli4ZkeB.js → useFormReset-CBBc4OFV.js} +1 -1
- package/dist/web/assets/useHover-NCfDbwX0.js.br +0 -0
- package/dist/web/assets/{useKeyboard-DvqJqO3T.js → useKeyboard-BZ4YtCxw.js} +1 -1
- package/dist/web/assets/{useLabel-C87RNHbp.js → useLabel-DBycc4Nu.js} +1 -1
- package/dist/web/assets/useNumberFormatter-DhAgwXM6.js.br +0 -0
- package/dist/web/assets/useRequest-BWEdMIz7.js.br +0 -0
- package/dist/web/assets/useToggle-Wuq-KqyX.js.br +0 -0
- package/dist/web/assets/{users-DylFKYhE.js → users-_IqQqJDb.js} +1 -1
- package/dist/web/assets/video_insert-Bj2IxuYI.js.br +0 -0
- package/dist/web/assets/webui-B6dfxJX4.js.br +0 -0
- package/dist/web/assets/xml-BHQFK9Jh.js.br +0 -0
- package/dist/web/assets/yaml-2He2eI3V.js.br +0 -0
- package/dist/web/index.html +1 -1
- package/package.json +2 -2
- package/dist/web/assets/Item-CpGp_gry.js.br +0 -0
- package/dist/web/assets/SelectionManager-V0633096.js.br +0 -0
- package/dist/web/assets/about-LG8kGzTW.js.br +0 -0
- package/dist/web/assets/accordion-BWBlFVku.js.br +0 -0
- package/dist/web/assets/adapter-Be2BFHta.js.br +0 -0
- package/dist/web/assets/chunk-2C6KNKEU-D5CDh2zq.js.br +0 -0
- package/dist/web/assets/chunk-2QAN2V2R-B3LbGmfU.js.br +0 -0
- package/dist/web/assets/chunk-3TCFMHK3-b6eWyB-k.js.br +0 -0
- package/dist/web/assets/chunk-4EXC76WE-Ccn4C0au.js.br +0 -0
- package/dist/web/assets/chunk-6JWJ7CFW-BOI3lC5y.js.br +0 -0
- package/dist/web/assets/chunk-6NGXL2PC-CWvJ9-ni.js.br +0 -0
- package/dist/web/assets/chunk-6VC6TS2O-CvS0c9RH.js.br +0 -0
- package/dist/web/assets/chunk-736YWA4T-CO9Kb5U7.js.br +0 -0
- package/dist/web/assets/chunk-A6PX3NG3-Cmtfkjbu.js.br +0 -0
- package/dist/web/assets/chunk-BWXGEJBS-D96lu5uY.js.br +0 -0
- package/dist/web/assets/chunk-HAJUSXOG-Cr5WEnTf.js.br +0 -0
- package/dist/web/assets/chunk-IHO36JMK-D838rHnK.js.br +0 -0
- package/dist/web/assets/chunk-J6JGI6RM-IdsOOehr.js.br +0 -0
- package/dist/web/assets/chunk-J7I6W5JF-yijG3LDg.js.br +0 -0
- package/dist/web/assets/chunk-KCYYJJH4-BcwZbY2O.js.br +0 -0
- package/dist/web/assets/chunk-KHLLQ6W4-C0VAu5c4.js.br +0 -0
- package/dist/web/assets/chunk-KQ5CH2X7-Bx48o081.js.br +0 -0
- package/dist/web/assets/chunk-ML27DD5T-Clc9q3kP.js.br +0 -0
- package/dist/web/assets/chunk-MSDKUXDP-SGvGDoWC.js.br +0 -0
- package/dist/web/assets/chunk-MW56SEHC-WpXjHiFI.js.br +0 -0
- package/dist/web/assets/chunk-MZRCPRP2-psMHIXtV.js.br +0 -0
- package/dist/web/assets/chunk-RRTOIK23-CCkNiGvZ.js.br +0 -0
- package/dist/web/assets/chunk-SLABUSGS-DsjxQT8l.js.br +0 -0
- package/dist/web/assets/chunk-WQVQ7P2I-CRZw_e0C.js.br +0 -0
- package/dist/web/assets/config-DkMBZ34n.js.br +0 -0
- package/dist/web/assets/config-R5lOQ-HR.js.br +0 -0
- package/dist/web/assets/cssMode-BQoll2bx.js.br +0 -0
- package/dist/web/assets/detail-C45oEIqQ.js.br +0 -0
- package/dist/web/assets/detail-LzjaX4PD.js.br +0 -0
- package/dist/web/assets/env-zp7-LsBE.js.br +0 -0
- package/dist/web/assets/features-animation-DiDrGEvD.js +0 -1
- package/dist/web/assets/focusSafely-k9GgORlU.js.br +0 -0
- package/dist/web/assets/freemarker2-C7dPUbfm.js.br +0 -0
- package/dist/web/assets/friend_request-oCD29owD.js.br +0 -0
- package/dist/web/assets/group-CiFMSC-N.js.br +0 -0
- package/dist/web/assets/handlebars-6Jtjd562.js.br +0 -0
- package/dist/web/assets/html-Ct4SHIym.js.br +0 -0
- package/dist/web/assets/htmlMode-DDTd73At.js.br +0 -0
- package/dist/web/assets/iconBase-ViY4nKQq.js.br +0 -0
- package/dist/web/assets/index-8s4cgP8J.js.br +0 -0
- package/dist/web/assets/index-BMtlUqmE.js.br +0 -0
- package/dist/web/assets/index-BSPHh4Yj.js.br +0 -0
- package/dist/web/assets/index-Bao_F3VG.js.br +0 -0
- package/dist/web/assets/index-BmbGN53w.js.br +0 -0
- package/dist/web/assets/index-BnI_ohaR.js.br +0 -0
- package/dist/web/assets/index-C2FHCnqh.js.br +0 -0
- package/dist/web/assets/index-CS0t5ys7.js +0 -1
- package/dist/web/assets/index-CY5zJUYF.js.br +0 -0
- package/dist/web/assets/index-D2h-aFay.js.br +0 -0
- package/dist/web/assets/index-D81UwrYt.js +0 -1
- package/dist/web/assets/index-DMS1kaSG.js.br +0 -0
- package/dist/web/assets/index-DXvGrfEc.js.br +0 -0
- package/dist/web/assets/index-DeOVgJ2O.js.br +0 -0
- package/dist/web/assets/index-G3Kih-CB.js.br +0 -0
- package/dist/web/assets/index-amBx18Ll.js.br +0 -0
- package/dist/web/assets/index-neHpjEWr.js.br +0 -0
- package/dist/web/assets/index-sdlMqiOR.js.br +0 -0
- package/dist/web/assets/index-u-_c9--B.js.br +0 -0
- package/dist/web/assets/index.esm-Bwvw0oit.js.br +0 -0
- package/dist/web/assets/inputGroup-XwdQdQtc.js.br +0 -0
- package/dist/web/assets/isSymbol-D_rmss4V.js.br +0 -0
- package/dist/web/assets/javascript-DLFXZuVI.js.br +0 -0
- package/dist/web/assets/jsonMode-DS2q7JVN.js.br +0 -0
- package/dist/web/assets/layout-CJztNDrQ.js.br +0 -0
- package/dist/web/assets/liquid-DcfNt83x.js.br +0 -0
- package/dist/web/assets/loading-DOsJZb1N.js.br +0 -0
- package/dist/web/assets/login-dZDR4vCe.js.br +0 -0
- package/dist/web/assets/mdx-BAN2-jzr.js.br +0 -0
- package/dist/web/assets/message.model-CJNs33De.js.br +0 -0
- package/dist/web/assets/number-BcmfMApH.js.br +0 -0
- package/dist/web/assets/pm2-B9DYeVVZ.js.br +0 -0
- package/dist/web/assets/private-dQ-KIF3T.js.br +0 -0
- package/dist/web/assets/python-xW_3fDpw.js.br +0 -0
- package/dist/web/assets/razor-wkewt1dM.js.br +0 -0
- package/dist/web/assets/react-resizable-panels.browser.esm-CLFdImna.js.br +0 -0
- package/dist/web/assets/redis-C_GNoOqo.js.br +0 -0
- package/dist/web/assets/render-CBv8-jeM.js.br +0 -0
- package/dist/web/assets/server-C2QJWInE.js.br +0 -0
- package/dist/web/assets/terminal-bB5q8DtG.js.br +0 -0
- package/dist/web/assets/test-url-B4sEb6XF.js.br +0 -0
- package/dist/web/assets/theme-switch-DnJYAaGf.js.br +0 -0
- package/dist/web/assets/tsMode-BgfNoYvD.js.br +0 -0
- package/dist/web/assets/typescript-KD7-bpCC.js.br +0 -0
- package/dist/web/assets/use-dialog-Bx8lzUKc.js +0 -1
- package/dist/web/assets/useFocusable-De4gySN0.js.br +0 -0
- package/dist/web/assets/useHover-Cs1Xzmx0.js.br +0 -0
- package/dist/web/assets/useNumberFormatter-FeEZ6Qsw.js.br +0 -0
- package/dist/web/assets/useRequest-TZ9DGtNT.js.br +0 -0
- package/dist/web/assets/useToggle-CpoiL5K-.js.br +0 -5
- package/dist/web/assets/video_insert-Ts1YtD5C.js.br +0 -0
- package/dist/web/assets/webui-BjBRU3Bx.js.br +0 -0
- package/dist/web/assets/xml-Cobn0Pfk.js.br +0 -0
- package/dist/web/assets/yaml-KnrYcdoe.js.br +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import chalk__default from 'chalk';
|
|
|
4
4
|
import { Logger as Logger$1, Configuration } from 'log4js';
|
|
5
5
|
import { RedisClientType, RedisClientOptions } from 'redis';
|
|
6
6
|
import _default 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';
|
|
7
|
+
export { basePath, commentPath, configPath, consolePath, dataPath, dbPath, defaultConfigPath, defaultViewPath, htmlPath, isPackaged, isPkg, karinDir, karinMain, karinPathBase, karinPathComment, karinPathConfig, karinPathConsole, karinPathData, karinPathDb, karinPathDefaultConfig, karinPathDefaultView, karinPathHtml, karinPathKv, karinPathLogs, karinPathMain, karinPathPlugins, karinPathPm2Config, karinPathRedisSqlite3, karinPathResource, karinPathRoot, karinPathSandboxData, karinPathSandboxTemp, karinPathTemp, kvPath, logsPath, pluginDir, pm2Path, redisSqlite3Path, resourcePath, sandboxDataPath, sandboxTempPath, tempPath } from './root.js';
|
|
8
8
|
import schedule from 'node-schedule';
|
|
9
9
|
import fs$1, { WriteStream } from 'node:fs';
|
|
10
10
|
import { Readable } from 'node:stream';
|
|
@@ -7097,6 +7097,12 @@ interface Renders$1 {
|
|
|
7097
7097
|
url: string;
|
|
7098
7098
|
/** 令牌 */
|
|
7099
7099
|
token: string;
|
|
7100
|
+
/** 是否为snapka */
|
|
7101
|
+
isSnapka: boolean;
|
|
7102
|
+
/** 重连时间 单位毫秒 默认5000 */
|
|
7103
|
+
reconnectTime?: number;
|
|
7104
|
+
/** 心跳时间 单位毫秒 默认30000 */
|
|
7105
|
+
heartbeatTime?: number;
|
|
7100
7106
|
}[];
|
|
7101
7107
|
/** http服务器配置`反向http` */
|
|
7102
7108
|
http_server: {
|
|
@@ -7106,6 +7112,8 @@ interface Renders$1 {
|
|
|
7106
7112
|
url: string;
|
|
7107
7113
|
/** 令牌 */
|
|
7108
7114
|
token: string;
|
|
7115
|
+
/** 是否为snapka */
|
|
7116
|
+
isSnapka: boolean;
|
|
7109
7117
|
}[];
|
|
7110
7118
|
}
|
|
7111
7119
|
|
|
@@ -7895,6 +7903,244 @@ declare const createGroupInviteRequest: (options: GroupInviteRequestOptions) =>
|
|
|
7895
7903
|
*/
|
|
7896
7904
|
declare const createPrivateApplyRequest: (options: PrivateApplyRequestOptions) => PrivateApplyRequest;
|
|
7897
7905
|
|
|
7906
|
+
/** 通知、请求事件联合类型 */
|
|
7907
|
+
type NoticeAndRequest = NoticeEventMap & RequestEventMap;
|
|
7908
|
+
/** 通知、请求事件接收方法 */
|
|
7909
|
+
interface Accept<T extends keyof NoticeAndRequest = keyof NoticeAndRequest> extends AdapterOptions {
|
|
7910
|
+
/** 插件包基本属性 */
|
|
7911
|
+
pkg: PkgInfo;
|
|
7912
|
+
/** 插件方法基本属性 */
|
|
7913
|
+
file: PluginFile<'accept'>;
|
|
7914
|
+
/** 监听事件 */
|
|
7915
|
+
event: T;
|
|
7916
|
+
/** 优先级 */
|
|
7917
|
+
priority: number;
|
|
7918
|
+
/** 打印触发插件日志方法 */
|
|
7919
|
+
log: Log<true>;
|
|
7920
|
+
/** 插件方法 */
|
|
7921
|
+
fnc: (
|
|
7922
|
+
/** 事件 */
|
|
7923
|
+
e: NoticeAndRequest[T],
|
|
7924
|
+
/** 调用后将继续匹配下一个插件 */
|
|
7925
|
+
next: () => unknown) => Promise<unknown> | unknown;
|
|
7926
|
+
}
|
|
7927
|
+
|
|
7928
|
+
type ButtonType = ButtonElement | KeyboardElement | Array<ButtonElement | KeyboardElement>;
|
|
7929
|
+
/** 按钮插件类型 */
|
|
7930
|
+
interface Button {
|
|
7931
|
+
/** 插件包基本属性 */
|
|
7932
|
+
pkg: PkgInfo;
|
|
7933
|
+
/** 插件方法基本属性 */
|
|
7934
|
+
file: PluginFile<'button'>;
|
|
7935
|
+
/** 优先级 */
|
|
7936
|
+
priority: number;
|
|
7937
|
+
/** 插件正则 */
|
|
7938
|
+
reg: RegExp;
|
|
7939
|
+
/** 优先级 */
|
|
7940
|
+
rank: number;
|
|
7941
|
+
/** 执行方法 */
|
|
7942
|
+
fnc: (
|
|
7943
|
+
/** 是否继续匹配下一个按钮 默认否 调用后则继续 */
|
|
7944
|
+
next: () => void,
|
|
7945
|
+
/** 自定义参数 如果传e需要符合标准 */
|
|
7946
|
+
args?: {
|
|
7947
|
+
e?: Event;
|
|
7948
|
+
[key: string]: any;
|
|
7949
|
+
}) => Promise<ButtonType> | ButtonType;
|
|
7950
|
+
}
|
|
7951
|
+
|
|
7952
|
+
interface PluginRule {
|
|
7953
|
+
/** 命令正则 */
|
|
7954
|
+
reg: string | RegExp;
|
|
7955
|
+
/** 命令执行方法名称 */
|
|
7956
|
+
fnc: string;
|
|
7957
|
+
/** 监听子事件 */
|
|
7958
|
+
event?: keyof Omit<MessageEventMap, 'message'>;
|
|
7959
|
+
/** 优先级 默认为10000 */
|
|
7960
|
+
priority?: number;
|
|
7961
|
+
/** 插件触发权限 例如只有主人才可触发 */
|
|
7962
|
+
permission?: Permission;
|
|
7963
|
+
/** 打印日志 默认为true */
|
|
7964
|
+
log?: boolean;
|
|
7965
|
+
/** 生效的适配器 */
|
|
7966
|
+
adapter?: AdapterProtocol[];
|
|
7967
|
+
/** 禁用的适配器 */
|
|
7968
|
+
dsbAdapter?: AdapterProtocol[];
|
|
7969
|
+
/**
|
|
7970
|
+
* 如果无权触发插件 是否打印日志
|
|
7971
|
+
* - `true`: `暂无权限,只有主人才能操作`
|
|
7972
|
+
* - `false`: ``
|
|
7973
|
+
* - `string`: `自定义提示`
|
|
7974
|
+
*/
|
|
7975
|
+
authFailMsg?: boolean | string;
|
|
7976
|
+
}
|
|
7977
|
+
interface PluginOptions<T extends keyof MessageEventMap> {
|
|
7978
|
+
/** 插件名称 */
|
|
7979
|
+
name: string;
|
|
7980
|
+
/** 插件描述 */
|
|
7981
|
+
desc?: string;
|
|
7982
|
+
/** 插件事件 */
|
|
7983
|
+
event?: T;
|
|
7984
|
+
/** 优先级 */
|
|
7985
|
+
priority?: number;
|
|
7986
|
+
/** 指令规则 */
|
|
7987
|
+
rule: PluginRule[];
|
|
7988
|
+
}
|
|
7989
|
+
|
|
7990
|
+
/** 消息事件插件类 */
|
|
7991
|
+
declare class Plugin<T extends keyof MessageEventMap = keyof MessageEventMap> {
|
|
7992
|
+
/** 插件名称 */
|
|
7993
|
+
name: PluginOptions<T>['name'];
|
|
7994
|
+
/** 指令规则集 */
|
|
7995
|
+
rule: PluginOptions<T>['rule'];
|
|
7996
|
+
/** 插件描述 */
|
|
7997
|
+
desc: PluginOptions<T>['desc'];
|
|
7998
|
+
/** 插件事件 */
|
|
7999
|
+
event: T;
|
|
8000
|
+
/** 优先级 */
|
|
8001
|
+
priority: PluginOptions<T>['priority'];
|
|
8002
|
+
/** 消息事件对象 */
|
|
8003
|
+
e: T extends keyof MessageEventMap ? MessageEventMap[T] : Message$2;
|
|
8004
|
+
/** 调用后将继续匹配下一个插件 */
|
|
8005
|
+
next: () => unknown;
|
|
8006
|
+
/** 快速回复 */
|
|
8007
|
+
reply: Message$2['reply'];
|
|
8008
|
+
constructor(options: PluginOptions<T> & {
|
|
8009
|
+
event?: T;
|
|
8010
|
+
});
|
|
8011
|
+
/**
|
|
8012
|
+
* 快速回复合并转发
|
|
8013
|
+
* @param element 合并转发消息元素节点
|
|
8014
|
+
*/
|
|
8015
|
+
replyForward(element: NodeElement[]): Promise<{
|
|
8016
|
+
/** @deprecated 已废弃 请请使用 messageId */
|
|
8017
|
+
message_id: string;
|
|
8018
|
+
messageId: string;
|
|
8019
|
+
}>;
|
|
8020
|
+
}
|
|
8021
|
+
|
|
8022
|
+
/** 函数命令插件方法 */
|
|
8023
|
+
type CmdFnc<T extends keyof MessageEventMap> = (
|
|
8024
|
+
/** 消息事件 */
|
|
8025
|
+
e: MessageEventMap[T],
|
|
8026
|
+
/** 调用后将继续匹配下一个插件 */
|
|
8027
|
+
next: () => unknown) => unknown;
|
|
8028
|
+
/** 函数方法命令插件 */
|
|
8029
|
+
interface Command<T extends keyof MessageEventMap = keyof MessageEventMap> extends AdapterOptions {
|
|
8030
|
+
/** 插件包基本属性 */
|
|
8031
|
+
pkg: PkgInfo;
|
|
8032
|
+
/** 插件方法基本属性 */
|
|
8033
|
+
file: PluginFile<'command'>;
|
|
8034
|
+
/** 插件子类型 */
|
|
8035
|
+
type: 'fnc';
|
|
8036
|
+
/** 插件正则 */
|
|
8037
|
+
reg: RegExp;
|
|
8038
|
+
/** 监听事件 */
|
|
8039
|
+
event: T;
|
|
8040
|
+
/** 优先级 */
|
|
8041
|
+
priority: number;
|
|
8042
|
+
/** 插件触发权限 */
|
|
8043
|
+
permission: Permission;
|
|
8044
|
+
/**
|
|
8045
|
+
* 如果无权触发插件 是否打印日志
|
|
8046
|
+
* - `true`: `暂无权限,只有主人才能操作`
|
|
8047
|
+
* - `false`: ``
|
|
8048
|
+
* - `string`: `自定义提示`
|
|
8049
|
+
*/
|
|
8050
|
+
authFailMsg: boolean | string;
|
|
8051
|
+
/** 打印触发插件日志方法 */
|
|
8052
|
+
log: Log<true>;
|
|
8053
|
+
/** 插件方法 */
|
|
8054
|
+
fnc: CmdFnc<T>;
|
|
8055
|
+
}
|
|
8056
|
+
/** 类方法命令插件 */
|
|
8057
|
+
interface CommandClass<T extends keyof MessageEventMap = keyof MessageEventMap> extends AdapterOptions {
|
|
8058
|
+
/** 插件包基本属性 */
|
|
8059
|
+
pkg: PkgInfo;
|
|
8060
|
+
/** 插件方法基本属性 */
|
|
8061
|
+
file: PluginFile<'command'>;
|
|
8062
|
+
/** 插件子类型 */
|
|
8063
|
+
type: 'class';
|
|
8064
|
+
/** 插件正则 */
|
|
8065
|
+
reg: RegExp;
|
|
8066
|
+
/** 监听事件 */
|
|
8067
|
+
event: T;
|
|
8068
|
+
/** 优先级 */
|
|
8069
|
+
priority: number;
|
|
8070
|
+
/** 插件触发权限 */
|
|
8071
|
+
permission: Permission;
|
|
8072
|
+
/**
|
|
8073
|
+
* 如果无权触发插件 是否打印日志
|
|
8074
|
+
* - `true`: `暂无权限,只有主人才能操作`
|
|
8075
|
+
* - `false`: ``
|
|
8076
|
+
* - `string`: `自定义提示`
|
|
8077
|
+
*/
|
|
8078
|
+
authFailMsg: boolean | string;
|
|
8079
|
+
/** 插件类 */
|
|
8080
|
+
Cls: new () => Plugin<T>;
|
|
8081
|
+
/** 打印触发插件日志方法 */
|
|
8082
|
+
log: Log<true>;
|
|
8083
|
+
}
|
|
8084
|
+
|
|
8085
|
+
/** handler类型 */
|
|
8086
|
+
interface Handler {
|
|
8087
|
+
/** 插件包基本属性 */
|
|
8088
|
+
pkg: PkgInfo;
|
|
8089
|
+
/** 插件方法基本属性 */
|
|
8090
|
+
file: PluginFile<'handler'>;
|
|
8091
|
+
/** 优先级 */
|
|
8092
|
+
priority: number;
|
|
8093
|
+
/** 入口key */
|
|
8094
|
+
key: string;
|
|
8095
|
+
/** handler的处理方法 */
|
|
8096
|
+
fnc: (
|
|
8097
|
+
/** 自定义参数 由调用方传递 */
|
|
8098
|
+
args: {
|
|
8099
|
+
[key: string]: any;
|
|
8100
|
+
},
|
|
8101
|
+
/** 调用后将继续执行下一个handler */
|
|
8102
|
+
next: (msg?: string) => void) => unknown;
|
|
8103
|
+
}
|
|
8104
|
+
|
|
8105
|
+
interface Count {
|
|
8106
|
+
accept: number;
|
|
8107
|
+
command: number;
|
|
8108
|
+
task: number;
|
|
8109
|
+
button: number;
|
|
8110
|
+
handler: {
|
|
8111
|
+
/** 入口key */
|
|
8112
|
+
key: number;
|
|
8113
|
+
/** handler处理函数 */
|
|
8114
|
+
fnc: number;
|
|
8115
|
+
};
|
|
8116
|
+
}
|
|
8117
|
+
/** 缓存 */
|
|
8118
|
+
interface Cache {
|
|
8119
|
+
/** 插件索引 */
|
|
8120
|
+
index: Record<number, PkgInfo>;
|
|
8121
|
+
/** accept */
|
|
8122
|
+
accept: Accept<keyof NoticeAndRequest>[];
|
|
8123
|
+
/** command */
|
|
8124
|
+
command: Array<CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>;
|
|
8125
|
+
/** 定时任务 */
|
|
8126
|
+
task: Array<Task>;
|
|
8127
|
+
/** 按钮 */
|
|
8128
|
+
button: Button[];
|
|
8129
|
+
/** 插件数量统计 */
|
|
8130
|
+
count: Count;
|
|
8131
|
+
/** 插件名称:缺失的依赖 */
|
|
8132
|
+
missing: Map<string, string>;
|
|
8133
|
+
/** apps监听 */
|
|
8134
|
+
watcher: Map<string, FSWatcher>;
|
|
8135
|
+
/** handler */
|
|
8136
|
+
handler: Record<string, Handler[]>;
|
|
8137
|
+
/** 静态资源目录 */
|
|
8138
|
+
static: string[];
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8141
|
+
/** 缓存 */
|
|
8142
|
+
declare const cache: Cache;
|
|
8143
|
+
|
|
7898
8144
|
type UnionMessage = Message$2 | FriendMessage | GroupMessage | GuildMessage | DirectMessage | GroupTempMessage;
|
|
7899
8145
|
/** 调用后继续执行下一个钩子 如果没钩子则继续正常流程 */
|
|
7900
8146
|
type HookNext = () => void;
|
|
@@ -7914,6 +8160,22 @@ interface MessageHookItem<T extends UnionMessage> {
|
|
|
7914
8160
|
/** 钩子回调函数 */
|
|
7915
8161
|
callback: HookCallback<T>;
|
|
7916
8162
|
}
|
|
8163
|
+
/**
|
|
8164
|
+
* 事件调用插件钩子回调函数
|
|
8165
|
+
* @param event 事件
|
|
8166
|
+
* @param plugin 插件对象
|
|
8167
|
+
* @param next 继续执行下一个钩子的函数
|
|
8168
|
+
*/
|
|
8169
|
+
type EventCallCallback<T, P> = (event: T, plugin: P, next: HookNext) => void | Promise<void>;
|
|
8170
|
+
/** 事件调用插件钩子项 */
|
|
8171
|
+
interface EventCallHookItem<T, P> {
|
|
8172
|
+
/** 钩子ID */
|
|
8173
|
+
id: number;
|
|
8174
|
+
/** 钩子优先级 */
|
|
8175
|
+
priority: number;
|
|
8176
|
+
/** 钩子回调函数 */
|
|
8177
|
+
callback: EventCallCallback<T, P>;
|
|
8178
|
+
}
|
|
7917
8179
|
/**
|
|
7918
8180
|
* 发送基础消息回调类型
|
|
7919
8181
|
* @param contact 联系人
|
|
@@ -7973,8 +8235,45 @@ interface HookCache {
|
|
|
7973
8235
|
/** 转发消息 */
|
|
7974
8236
|
forward: SendMsgHookItem<ForwardMessageCallback>[];
|
|
7975
8237
|
};
|
|
7976
|
-
/**
|
|
7977
|
-
|
|
8238
|
+
/** 未找到匹配插件钩子 */
|
|
8239
|
+
empty: {
|
|
8240
|
+
/** 消息 */
|
|
8241
|
+
message: MessageHookItem<Message$2>[];
|
|
8242
|
+
/** 通知 */
|
|
8243
|
+
notice: GeneralHookItem<Notice>[];
|
|
8244
|
+
/** 请求 */
|
|
8245
|
+
request: GeneralHookItem<Request>[];
|
|
8246
|
+
};
|
|
8247
|
+
/** 事件调用插件钩子 */
|
|
8248
|
+
eventCall: {
|
|
8249
|
+
/** 通用消息事件 */
|
|
8250
|
+
message: EventCallHookItem<Message$2, typeof cache.command[number]>[];
|
|
8251
|
+
/** 群聊事件 */
|
|
8252
|
+
group: EventCallHookItem<GroupMessage, typeof cache.command[number]>[];
|
|
8253
|
+
/** 频道事件 */
|
|
8254
|
+
guild: EventCallHookItem<GuildMessage, typeof cache.command[number]>[];
|
|
8255
|
+
/** 群临时事件 */
|
|
8256
|
+
groupTemp: EventCallHookItem<GroupTempMessage, typeof cache.command[number]>[];
|
|
8257
|
+
/** 好友事件 */
|
|
8258
|
+
friend: EventCallHookItem<FriendMessage, typeof cache.command[number]>[];
|
|
8259
|
+
/** 私聊事件 */
|
|
8260
|
+
direct: EventCallHookItem<DirectMessage, typeof cache.command[number]>[];
|
|
8261
|
+
/** 通知事件 */
|
|
8262
|
+
notice: EventCallHookItem<Notice, typeof cache.accept[number]>[];
|
|
8263
|
+
/** 请求事件 */
|
|
8264
|
+
request: EventCallHookItem<Request, typeof cache.accept[number]>[];
|
|
8265
|
+
};
|
|
8266
|
+
}
|
|
8267
|
+
/** 通用事件钩子回调函数 */
|
|
8268
|
+
type GeneralHookCallback<T> = (event: T, next: HookNext) => void | Promise<void>;
|
|
8269
|
+
/** 通用事件钩子项 */
|
|
8270
|
+
interface GeneralHookItem<T> {
|
|
8271
|
+
/** 钩子ID */
|
|
8272
|
+
id: number;
|
|
8273
|
+
/** 钩子优先级 */
|
|
8274
|
+
priority: number;
|
|
8275
|
+
/** 钩子回调函数 */
|
|
8276
|
+
callback: GeneralHookCallback<T>;
|
|
7978
8277
|
}
|
|
7979
8278
|
|
|
7980
8279
|
/**
|
|
@@ -8132,246 +8431,11 @@ interface Task {
|
|
|
8132
8431
|
schedule?: schedule.Job;
|
|
8133
8432
|
}
|
|
8134
8433
|
|
|
8135
|
-
type ButtonType = ButtonElement | KeyboardElement | Array<ButtonElement | KeyboardElement>;
|
|
8136
|
-
/** 按钮插件类型 */
|
|
8137
|
-
interface Button {
|
|
8138
|
-
/** 插件包基本属性 */
|
|
8139
|
-
pkg: PkgInfo;
|
|
8140
|
-
/** 插件方法基本属性 */
|
|
8141
|
-
file: PluginFile<'button'>;
|
|
8142
|
-
/** 优先级 */
|
|
8143
|
-
priority: number;
|
|
8144
|
-
/** 插件正则 */
|
|
8145
|
-
reg: RegExp;
|
|
8146
|
-
/** 优先级 */
|
|
8147
|
-
rank: number;
|
|
8148
|
-
/** 执行方法 */
|
|
8149
|
-
fnc: (
|
|
8150
|
-
/** 是否继续匹配下一个按钮 默认否 调用后则继续 */
|
|
8151
|
-
next: () => void,
|
|
8152
|
-
/** 自定义参数 如果传e需要符合标准 */
|
|
8153
|
-
args?: {
|
|
8154
|
-
e?: Event;
|
|
8155
|
-
[key: string]: any;
|
|
8156
|
-
}) => Promise<ButtonType> | ButtonType;
|
|
8157
|
-
}
|
|
8158
|
-
|
|
8159
|
-
/** 通知、请求事件联合类型 */
|
|
8160
|
-
type NoticeAndRequest = NoticeEventMap & RequestEventMap;
|
|
8161
|
-
/** 通知、请求事件接收方法 */
|
|
8162
|
-
interface Accept<T extends keyof NoticeAndRequest = keyof NoticeAndRequest> extends AdapterOptions {
|
|
8163
|
-
/** 插件包基本属性 */
|
|
8164
|
-
pkg: PkgInfo;
|
|
8165
|
-
/** 插件方法基本属性 */
|
|
8166
|
-
file: PluginFile<'accept'>;
|
|
8167
|
-
/** 监听事件 */
|
|
8168
|
-
event: T;
|
|
8169
|
-
/** 优先级 */
|
|
8170
|
-
priority: number;
|
|
8171
|
-
/** 打印触发插件日志方法 */
|
|
8172
|
-
log: Log<true>;
|
|
8173
|
-
/** 插件方法 */
|
|
8174
|
-
fnc: (
|
|
8175
|
-
/** 事件 */
|
|
8176
|
-
e: NoticeAndRequest[T],
|
|
8177
|
-
/** 调用后将继续匹配下一个插件 */
|
|
8178
|
-
next: () => unknown) => Promise<unknown> | unknown;
|
|
8179
|
-
}
|
|
8180
|
-
|
|
8181
|
-
/** handler类型 */
|
|
8182
|
-
interface Handler {
|
|
8183
|
-
/** 插件包基本属性 */
|
|
8184
|
-
pkg: PkgInfo;
|
|
8185
|
-
/** 插件方法基本属性 */
|
|
8186
|
-
file: PluginFile<'handler'>;
|
|
8187
|
-
/** 优先级 */
|
|
8188
|
-
priority: number;
|
|
8189
|
-
/** 入口key */
|
|
8190
|
-
key: string;
|
|
8191
|
-
/** handler的处理方法 */
|
|
8192
|
-
fnc: (
|
|
8193
|
-
/** 自定义参数 由调用方传递 */
|
|
8194
|
-
args: {
|
|
8195
|
-
[key: string]: any;
|
|
8196
|
-
},
|
|
8197
|
-
/** 调用后将继续执行下一个handler */
|
|
8198
|
-
next: (msg?: string) => void) => unknown;
|
|
8199
|
-
}
|
|
8200
|
-
|
|
8201
|
-
interface PluginRule {
|
|
8202
|
-
/** 命令正则 */
|
|
8203
|
-
reg: string | RegExp;
|
|
8204
|
-
/** 命令执行方法名称 */
|
|
8205
|
-
fnc: string;
|
|
8206
|
-
/** 监听子事件 */
|
|
8207
|
-
event?: keyof Omit<MessageEventMap, 'message'>;
|
|
8208
|
-
/** 优先级 默认为10000 */
|
|
8209
|
-
priority?: number;
|
|
8210
|
-
/** 插件触发权限 例如只有主人才可触发 */
|
|
8211
|
-
permission?: Permission;
|
|
8212
|
-
/** 打印日志 默认为true */
|
|
8213
|
-
log?: boolean;
|
|
8214
|
-
/** 生效的适配器 */
|
|
8215
|
-
adapter?: AdapterProtocol[];
|
|
8216
|
-
/** 禁用的适配器 */
|
|
8217
|
-
dsbAdapter?: AdapterProtocol[];
|
|
8218
|
-
/**
|
|
8219
|
-
* 如果无权触发插件 是否打印日志
|
|
8220
|
-
* - `true`: `暂无权限,只有主人才能操作`
|
|
8221
|
-
* - `false`: ``
|
|
8222
|
-
* - `string`: `自定义提示`
|
|
8223
|
-
*/
|
|
8224
|
-
authFailMsg?: boolean | string;
|
|
8225
|
-
}
|
|
8226
|
-
interface PluginOptions<T extends keyof MessageEventMap> {
|
|
8227
|
-
/** 插件名称 */
|
|
8228
|
-
name: string;
|
|
8229
|
-
/** 插件描述 */
|
|
8230
|
-
desc?: string;
|
|
8231
|
-
/** 插件事件 */
|
|
8232
|
-
event?: T;
|
|
8233
|
-
/** 优先级 */
|
|
8234
|
-
priority?: number;
|
|
8235
|
-
/** 指令规则 */
|
|
8236
|
-
rule: PluginRule[];
|
|
8237
|
-
}
|
|
8238
|
-
|
|
8239
|
-
/** 消息事件插件类 */
|
|
8240
|
-
declare class Plugin<T extends keyof MessageEventMap = keyof MessageEventMap> {
|
|
8241
|
-
/** 插件名称 */
|
|
8242
|
-
name: PluginOptions<T>['name'];
|
|
8243
|
-
/** 指令规则集 */
|
|
8244
|
-
rule: PluginOptions<T>['rule'];
|
|
8245
|
-
/** 插件描述 */
|
|
8246
|
-
desc: PluginOptions<T>['desc'];
|
|
8247
|
-
/** 插件事件 */
|
|
8248
|
-
event: T;
|
|
8249
|
-
/** 优先级 */
|
|
8250
|
-
priority: PluginOptions<T>['priority'];
|
|
8251
|
-
/** 消息事件对象 */
|
|
8252
|
-
e: T extends keyof MessageEventMap ? MessageEventMap[T] : Message$2;
|
|
8253
|
-
/** 调用后将继续匹配下一个插件 */
|
|
8254
|
-
next: () => unknown;
|
|
8255
|
-
/** 快速回复 */
|
|
8256
|
-
reply: Message$2['reply'];
|
|
8257
|
-
constructor(options: PluginOptions<T> & {
|
|
8258
|
-
event?: T;
|
|
8259
|
-
});
|
|
8260
|
-
/**
|
|
8261
|
-
* 快速回复合并转发
|
|
8262
|
-
* @param element 合并转发消息元素节点
|
|
8263
|
-
*/
|
|
8264
|
-
replyForward(element: NodeElement[]): Promise<{
|
|
8265
|
-
/** @deprecated 已废弃 请请使用 messageId */
|
|
8266
|
-
message_id: string;
|
|
8267
|
-
messageId: string;
|
|
8268
|
-
}>;
|
|
8269
|
-
}
|
|
8270
|
-
|
|
8271
|
-
/** 函数命令插件方法 */
|
|
8272
|
-
type CmdFnc<T extends keyof MessageEventMap> = (
|
|
8273
|
-
/** 消息事件 */
|
|
8274
|
-
e: MessageEventMap[T],
|
|
8275
|
-
/** 调用后将继续匹配下一个插件 */
|
|
8276
|
-
next: () => unknown) => unknown;
|
|
8277
|
-
/** 函数方法命令插件 */
|
|
8278
|
-
interface Command<T extends keyof MessageEventMap = keyof MessageEventMap> extends AdapterOptions {
|
|
8279
|
-
/** 插件包基本属性 */
|
|
8280
|
-
pkg: PkgInfo;
|
|
8281
|
-
/** 插件方法基本属性 */
|
|
8282
|
-
file: PluginFile<'command'>;
|
|
8283
|
-
/** 插件子类型 */
|
|
8284
|
-
type: 'fnc';
|
|
8285
|
-
/** 插件正则 */
|
|
8286
|
-
reg: RegExp;
|
|
8287
|
-
/** 监听事件 */
|
|
8288
|
-
event: T;
|
|
8289
|
-
/** 优先级 */
|
|
8290
|
-
priority: number;
|
|
8291
|
-
/** 插件触发权限 */
|
|
8292
|
-
permission: Permission;
|
|
8293
|
-
/**
|
|
8294
|
-
* 如果无权触发插件 是否打印日志
|
|
8295
|
-
* - `true`: `暂无权限,只有主人才能操作`
|
|
8296
|
-
* - `false`: ``
|
|
8297
|
-
* - `string`: `自定义提示`
|
|
8298
|
-
*/
|
|
8299
|
-
authFailMsg: boolean | string;
|
|
8300
|
-
/** 打印触发插件日志方法 */
|
|
8301
|
-
log: Log<true>;
|
|
8302
|
-
/** 插件方法 */
|
|
8303
|
-
fnc: CmdFnc<T>;
|
|
8304
|
-
}
|
|
8305
|
-
/** 类方法命令插件 */
|
|
8306
|
-
interface CommandClass<T extends keyof MessageEventMap = keyof MessageEventMap> extends AdapterOptions {
|
|
8307
|
-
/** 插件包基本属性 */
|
|
8308
|
-
pkg: PkgInfo;
|
|
8309
|
-
/** 插件方法基本属性 */
|
|
8310
|
-
file: PluginFile<'command'>;
|
|
8311
|
-
/** 插件子类型 */
|
|
8312
|
-
type: 'class';
|
|
8313
|
-
/** 插件正则 */
|
|
8314
|
-
reg: RegExp;
|
|
8315
|
-
/** 监听事件 */
|
|
8316
|
-
event: T;
|
|
8317
|
-
/** 优先级 */
|
|
8318
|
-
priority: number;
|
|
8319
|
-
/** 插件触发权限 */
|
|
8320
|
-
permission: Permission;
|
|
8321
|
-
/**
|
|
8322
|
-
* 如果无权触发插件 是否打印日志
|
|
8323
|
-
* - `true`: `暂无权限,只有主人才能操作`
|
|
8324
|
-
* - `false`: ``
|
|
8325
|
-
* - `string`: `自定义提示`
|
|
8326
|
-
*/
|
|
8327
|
-
authFailMsg: boolean | string;
|
|
8328
|
-
/** 插件类 */
|
|
8329
|
-
Cls: new () => Plugin<T>;
|
|
8330
|
-
/** 打印触发插件日志方法 */
|
|
8331
|
-
log: Log<true>;
|
|
8332
|
-
}
|
|
8333
|
-
|
|
8334
8434
|
/**
|
|
8335
8435
|
* 全部插件方法联合类型
|
|
8336
8436
|
*/
|
|
8337
8437
|
type AllPluginMethods = Accept | Button | Handler | Task | Command | CommandClass;
|
|
8338
8438
|
|
|
8339
|
-
interface Count {
|
|
8340
|
-
accept: number;
|
|
8341
|
-
command: number;
|
|
8342
|
-
task: number;
|
|
8343
|
-
button: number;
|
|
8344
|
-
handler: {
|
|
8345
|
-
/** 入口key */
|
|
8346
|
-
key: number;
|
|
8347
|
-
/** handler处理函数 */
|
|
8348
|
-
fnc: number;
|
|
8349
|
-
};
|
|
8350
|
-
}
|
|
8351
|
-
/** 缓存 */
|
|
8352
|
-
interface Cache {
|
|
8353
|
-
/** 插件索引 */
|
|
8354
|
-
index: Record<number, PkgInfo>;
|
|
8355
|
-
/** accept */
|
|
8356
|
-
accept: Accept<keyof NoticeAndRequest>[];
|
|
8357
|
-
/** command */
|
|
8358
|
-
command: Array<CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>;
|
|
8359
|
-
/** 定时任务 */
|
|
8360
|
-
task: Array<Task>;
|
|
8361
|
-
/** 按钮 */
|
|
8362
|
-
button: Button[];
|
|
8363
|
-
/** 插件数量统计 */
|
|
8364
|
-
count: Count;
|
|
8365
|
-
/** 插件名称:缺失的依赖 */
|
|
8366
|
-
missing: Map<string, string>;
|
|
8367
|
-
/** apps监听 */
|
|
8368
|
-
watcher: Map<string, FSWatcher>;
|
|
8369
|
-
/** handler */
|
|
8370
|
-
handler: Record<string, Handler[]>;
|
|
8371
|
-
/** 静态资源目录 */
|
|
8372
|
-
static: string[];
|
|
8373
|
-
}
|
|
8374
|
-
|
|
8375
8439
|
/** pkg环境变量类型 */
|
|
8376
8440
|
interface PkgEnv {
|
|
8377
8441
|
/** 变量名 */
|
|
@@ -8406,6 +8470,17 @@ interface PkgData {
|
|
|
8406
8470
|
files?: string[];
|
|
8407
8471
|
/** 环境变量配置 */
|
|
8408
8472
|
env?: PkgEnv[];
|
|
8473
|
+
/** 引擎兼容性 官方的翻译。。。奇奇怪怪的 */
|
|
8474
|
+
engines?: {
|
|
8475
|
+
/**
|
|
8476
|
+
* @description karin版本
|
|
8477
|
+
* @example ^0.0.1
|
|
8478
|
+
* @example >=0.0.1
|
|
8479
|
+
* @example 0.0.1
|
|
8480
|
+
* @example 0.0.x
|
|
8481
|
+
*/
|
|
8482
|
+
karin?: string;
|
|
8483
|
+
};
|
|
8409
8484
|
};
|
|
8410
8485
|
[key: string]: any;
|
|
8411
8486
|
}
|
|
@@ -8703,9 +8778,9 @@ interface Options extends screenshot {
|
|
|
8703
8778
|
/** 单页或多页截图返回 */
|
|
8704
8779
|
type RenderResult<T extends screenshot> = T['multiPage'] extends true | number ? string[] : string;
|
|
8705
8780
|
/**
|
|
8706
|
-
*
|
|
8781
|
+
* snapka截图参数
|
|
8707
8782
|
*/
|
|
8708
|
-
interface
|
|
8783
|
+
interface Snapka extends screenshot {
|
|
8709
8784
|
/**
|
|
8710
8785
|
* 截图类型
|
|
8711
8786
|
* @default 'png'
|
|
@@ -8731,8 +8806,8 @@ interface Options2 extends screenshot {
|
|
|
8731
8806
|
/** 渲染参数 */
|
|
8732
8807
|
data?: Record<string, any>;
|
|
8733
8808
|
}
|
|
8734
|
-
/**
|
|
8735
|
-
type
|
|
8809
|
+
/** snapka截图返回 */
|
|
8810
|
+
type SnapkaResult<T extends Snapka> = T['multiPage'] extends true | number ? string[] : string;
|
|
8736
8811
|
|
|
8737
8812
|
interface Renders {
|
|
8738
8813
|
/**
|
|
@@ -9221,12 +9296,13 @@ declare const copyConfig: (defaulPath: string, userPath: string, suffixs?: strin
|
|
|
9221
9296
|
* 递归获取目录下的所有文件
|
|
9222
9297
|
* @param dir 目录路径
|
|
9223
9298
|
* @param options 选项
|
|
9224
|
-
* @returns
|
|
9299
|
+
* @returns 符合条件的文件路径列表
|
|
9225
9300
|
* @example
|
|
9226
9301
|
* ```ts
|
|
9227
9302
|
* getAllFilesSync('dir')
|
|
9228
9303
|
* getAllFilesSync('dir', { suffixs: ['yaml', '.json'] })
|
|
9229
9304
|
* getAllFilesSync('dir', { exclude: ['.yaml', 'json'] })
|
|
9305
|
+
* getAllFilesSync('dir', { returnType: 'abs' })
|
|
9230
9306
|
* ```
|
|
9231
9307
|
*/
|
|
9232
9308
|
declare const getAllFilesSync: (dir: string, options?: {
|
|
@@ -9234,17 +9310,20 @@ declare const getAllFilesSync: (dir: string, options?: {
|
|
|
9234
9310
|
suffixs?: string[];
|
|
9235
9311
|
/** 排除指定后缀的文件 与 suffixs 互斥 */
|
|
9236
9312
|
exclude?: string[];
|
|
9313
|
+
/** 返回类型 'rel':相对路径 'abs':绝对路径 */
|
|
9314
|
+
returnType?: "rel" | "abs";
|
|
9237
9315
|
}) => string[];
|
|
9238
9316
|
/**
|
|
9239
9317
|
* 递归获取目录下的所有文件(异步版本)
|
|
9240
9318
|
* @param dir 目录路径
|
|
9241
9319
|
* @param options 选项
|
|
9242
|
-
* @returns
|
|
9320
|
+
* @returns 符合条件的文件路径列表
|
|
9243
9321
|
* @example
|
|
9244
9322
|
* ```ts
|
|
9245
9323
|
* await getFilesRecursive('dir')
|
|
9246
9324
|
* await getFilesRecursive('dir', { suffixs: ['yaml', '.json'] })
|
|
9247
9325
|
* await getFilesRecursive('dir', { exclude: ['.yaml', 'json'] })
|
|
9326
|
+
* await getFilesRecursive('dir', { returnType: 'abs' })
|
|
9248
9327
|
* ```
|
|
9249
9328
|
*/
|
|
9250
9329
|
declare const getAllFiles: (dir: string, options?: {
|
|
@@ -9252,6 +9331,8 @@ declare const getAllFiles: (dir: string, options?: {
|
|
|
9252
9331
|
suffixs?: string[];
|
|
9253
9332
|
/** 排除指定后缀的文件 与 suffixs 互斥 */
|
|
9254
9333
|
exclude?: string[];
|
|
9334
|
+
/** 返回类型 'rel':相对路径 'abs':绝对路径 默认相对路径 */
|
|
9335
|
+
returnType?: "rel" | "abs";
|
|
9255
9336
|
}) => Promise<string[]>;
|
|
9256
9337
|
|
|
9257
9338
|
/**
|
|
@@ -9412,7 +9493,7 @@ declare const requireFileSync: RequireFunctionSync;
|
|
|
9412
9493
|
* @param filePath 文件路径
|
|
9413
9494
|
* @returns 是否是静态资源中的文件
|
|
9414
9495
|
*/
|
|
9415
|
-
declare const
|
|
9496
|
+
declare const isPublic: (filePath: string) => boolean;
|
|
9416
9497
|
|
|
9417
9498
|
type YamlValue = string | boolean | number | object | any[];
|
|
9418
9499
|
type YamlComment = Record<string, string> | Record<string, {
|
|
@@ -9768,8 +9849,8 @@ declare const WS_CLOSE_ONEBOT = "ws:close:onebot";
|
|
|
9768
9849
|
declare const WS_CLOSE_PUPPETEER = "ws:close:puppeteer";
|
|
9769
9850
|
/** 传递sandbox ws关闭 */
|
|
9770
9851
|
declare const WS_CLOSE_SANDBOX = "ws:close:sandbox";
|
|
9771
|
-
/** 传递
|
|
9772
|
-
declare const
|
|
9852
|
+
/** 传递 snapka ws连接 */
|
|
9853
|
+
declare const WS_SNAPKA = "ws:connection:snapka";
|
|
9773
9854
|
|
|
9774
9855
|
declare const key_EVENT_COUNT: typeof EVENT_COUNT;
|
|
9775
9856
|
declare const key_FILE_CHANGE: typeof FILE_CHANGE;
|
|
@@ -9782,11 +9863,11 @@ declare const key_WS_CLOSE_SANDBOX: typeof WS_CLOSE_SANDBOX;
|
|
|
9782
9863
|
declare const key_WS_CONNECTION: typeof WS_CONNECTION;
|
|
9783
9864
|
declare const key_WS_CONNECTION_ONEBOT: typeof WS_CONNECTION_ONEBOT;
|
|
9784
9865
|
declare const key_WS_CONNECTION_PUPPETEER: typeof WS_CONNECTION_PUPPETEER;
|
|
9785
|
-
declare const key_WS_CONNECTION_PUPPETEER_2: typeof WS_CONNECTION_PUPPETEER_2;
|
|
9786
9866
|
declare const key_WS_CONNECTION_SANDBOX: typeof WS_CONNECTION_SANDBOX;
|
|
9787
9867
|
declare const key_WS_CONNECTION_TERMINAL: typeof WS_CONNECTION_TERMINAL;
|
|
9868
|
+
declare const key_WS_SNAPKA: typeof WS_SNAPKA;
|
|
9788
9869
|
declare namespace key {
|
|
9789
|
-
export { key_EVENT_COUNT as EVENT_COUNT, key_FILE_CHANGE as FILE_CHANGE, key_RECV_MSG as RECV_MSG, key_SEND_MSG as SEND_MSG, key_WS_CLOSE as WS_CLOSE, key_WS_CLOSE_ONEBOT as WS_CLOSE_ONEBOT, key_WS_CLOSE_PUPPETEER as WS_CLOSE_PUPPETEER, key_WS_CLOSE_SANDBOX as WS_CLOSE_SANDBOX, key_WS_CONNECTION as WS_CONNECTION, key_WS_CONNECTION_ONEBOT as WS_CONNECTION_ONEBOT, key_WS_CONNECTION_PUPPETEER as WS_CONNECTION_PUPPETEER,
|
|
9870
|
+
export { key_EVENT_COUNT as EVENT_COUNT, key_FILE_CHANGE as FILE_CHANGE, key_RECV_MSG as RECV_MSG, key_SEND_MSG as SEND_MSG, key_WS_CLOSE as WS_CLOSE, key_WS_CLOSE_ONEBOT as WS_CLOSE_ONEBOT, key_WS_CLOSE_PUPPETEER as WS_CLOSE_PUPPETEER, key_WS_CLOSE_SANDBOX as WS_CLOSE_SANDBOX, key_WS_CONNECTION as WS_CONNECTION, key_WS_CONNECTION_ONEBOT as WS_CONNECTION_ONEBOT, key_WS_CONNECTION_PUPPETEER as WS_CONNECTION_PUPPETEER, key_WS_CONNECTION_SANDBOX as WS_CONNECTION_SANDBOX, key_WS_CONNECTION_TERMINAL as WS_CONNECTION_TERMINAL, key_WS_SNAPKA as WS_SNAPKA };
|
|
9790
9871
|
}
|
|
9791
9872
|
|
|
9792
9873
|
type fs_CacheEntry<T = any> = CacheEntry<T>;
|
|
@@ -9832,7 +9913,7 @@ declare const fs_isDirSync: typeof isDirSync;
|
|
|
9832
9913
|
declare const fs_isFile: typeof isFile;
|
|
9833
9914
|
declare const fs_isFileSync: typeof isFileSync;
|
|
9834
9915
|
declare const fs_isPlugin: typeof isPlugin;
|
|
9835
|
-
declare const
|
|
9916
|
+
declare const fs_isPublic: typeof isPublic;
|
|
9836
9917
|
declare const fs_isSubPath: typeof isSubPath;
|
|
9837
9918
|
declare const fs_key: typeof key;
|
|
9838
9919
|
declare const fs_lock: typeof lock;
|
|
@@ -9865,7 +9946,7 @@ declare const fs_writeJson: typeof writeJson;
|
|
|
9865
9946
|
declare const fs_writeJsonSync: typeof writeJsonSync;
|
|
9866
9947
|
declare const fs_yaml: typeof yaml;
|
|
9867
9948
|
declare namespace fs {
|
|
9868
|
-
export { type fs_CacheEntry as CacheEntry, type fs_Parser as Parser, type fs_PkgData as PkgData, type fs_PkgEnv as PkgEnv, type fs_RequireFunction as RequireFunction, type fs_RequireFunctionSync as RequireFunctionSync, type fs_RequireOptions as RequireOptions, fs_Watch as Watch, fs_Watcher as Watcher, type fs_YamlComment as YamlComment, fs_YamlEditor as YamlEditor, type fs_YamlValue as YamlValue, fs_absPath as absPath, fs_applyComments as applyComments, fs_base64 as base64, fs_buffer as buffer, fs_clearRequire as clearRequire, fs_clearRequireFile as clearRequireFile, fs_comment as comment, fs_copyConfig as copyConfig, fs_copyConfigSync as copyConfigSync, fs_copyFiles as copyFiles, fs_copyFilesSync as copyFilesSync, fs_createPluginDir as createPluginDir, fs_downFile as downFile, fs_existToMkdir as existToMkdir, fs_existToMkdirSync as existToMkdirSync, fs_exists as exists, fs_existsSync as existsSync, fs_filesByExt as filesByExt, fs_getAllFiles as getAllFiles, fs_getAllFilesSync as getAllFilesSync, fs_getFiles as getFiles, fs_getPluginInfo as getPluginInfo, fs_getRelPath as getRelPath, fs_isDir as isDir, fs_isDirSync as isDirSync, fs_isFile as isFile, fs_isFileSync as isFileSync, fs_isPlugin as isPlugin,
|
|
9949
|
+
export { type fs_CacheEntry as CacheEntry, type fs_Parser as Parser, type fs_PkgData as PkgData, type fs_PkgEnv as PkgEnv, type fs_RequireFunction as RequireFunction, type fs_RequireFunctionSync as RequireFunctionSync, type fs_RequireOptions as RequireOptions, fs_Watch as Watch, fs_Watcher as Watcher, type fs_YamlComment as YamlComment, fs_YamlEditor as YamlEditor, type fs_YamlValue as YamlValue, fs_absPath as absPath, fs_applyComments as applyComments, fs_base64 as base64, fs_buffer as buffer, fs_clearRequire as clearRequire, fs_clearRequireFile as clearRequireFile, fs_comment as comment, fs_copyConfig as copyConfig, fs_copyConfigSync as copyConfigSync, fs_copyFiles as copyFiles, fs_copyFilesSync as copyFilesSync, fs_createPluginDir as createPluginDir, fs_downFile as downFile, fs_existToMkdir as existToMkdir, fs_existToMkdirSync as existToMkdirSync, fs_exists as exists, fs_existsSync as existsSync, fs_filesByExt as filesByExt, fs_getAllFiles as getAllFiles, fs_getAllFilesSync as getAllFilesSync, fs_getFiles as getFiles, fs_getPluginInfo as getPluginInfo, fs_getRelPath as getRelPath, fs_isDir as isDir, fs_isDirSync as isDirSync, fs_isFile as isFile, fs_isFileSync as isFileSync, fs_isPlugin as isPlugin, fs_isPublic as isPublic, fs_isSubPath as isSubPath, json$1 as json, fs_key as key, fs_lock as lock, fs_lockMethod as lockMethod, fs_lockProp as lockProp, fs_log as log, fs_logs as logs, fs_mkdir as mkdir, fs_mkdirSync as mkdirSync, fs_parseChangelog as parseChangelog, fs_pkgRoot as pkgRoot, fs_randomStr as randomStr, fs_range as range, fs_read as read, fs_readFile as readFile, fs_readJson as readJson, fs_readJsonSync as readJsonSync, fs_requireFile as requireFile, fs_requireFileSync as requireFileSync, fs_rmSync as rmSync, fs_save as save, fs_sep as sep, fs_splitPath as splitPath, fs_stream as stream, fs_urlToPath as urlToPath, fs_watch as watch, fs_watchAndMerge as watchAndMerge, fs_write as write, fs_writeJson as writeJson, fs_writeJsonSync as writeJsonSync, fs_yaml as yaml };
|
|
9869
9950
|
}
|
|
9870
9951
|
|
|
9871
9952
|
type index$3_CacheEntry<T = any> = CacheEntry<T>;
|
|
@@ -9886,9 +9967,9 @@ declare const index$3_WS_CLOSE_SANDBOX: typeof WS_CLOSE_SANDBOX;
|
|
|
9886
9967
|
declare const index$3_WS_CONNECTION: typeof WS_CONNECTION;
|
|
9887
9968
|
declare const index$3_WS_CONNECTION_ONEBOT: typeof WS_CONNECTION_ONEBOT;
|
|
9888
9969
|
declare const index$3_WS_CONNECTION_PUPPETEER: typeof WS_CONNECTION_PUPPETEER;
|
|
9889
|
-
declare const index$3_WS_CONNECTION_PUPPETEER_2: typeof WS_CONNECTION_PUPPETEER_2;
|
|
9890
9970
|
declare const index$3_WS_CONNECTION_SANDBOX: typeof WS_CONNECTION_SANDBOX;
|
|
9891
9971
|
declare const index$3_WS_CONNECTION_TERMINAL: typeof WS_CONNECTION_TERMINAL;
|
|
9972
|
+
declare const index$3_WS_SNAPKA: typeof WS_SNAPKA;
|
|
9892
9973
|
type index$3_Watch<T> = Watch<T>;
|
|
9893
9974
|
declare const index$3_Watch: typeof Watch;
|
|
9894
9975
|
type index$3_Watcher<T> = Watcher<T>;
|
|
@@ -9925,7 +10006,7 @@ declare const index$3_isDirSync: typeof isDirSync;
|
|
|
9925
10006
|
declare const index$3_isFile: typeof isFile;
|
|
9926
10007
|
declare const index$3_isFileSync: typeof isFileSync;
|
|
9927
10008
|
declare const index$3_isPlugin: typeof isPlugin;
|
|
9928
|
-
declare const index$
|
|
10009
|
+
declare const index$3_isPublic: typeof isPublic;
|
|
9929
10010
|
declare const index$3_isSubPath: typeof isSubPath;
|
|
9930
10011
|
declare const index$3_key: typeof key;
|
|
9931
10012
|
declare const index$3_lock: typeof lock;
|
|
@@ -9958,7 +10039,7 @@ declare const index$3_writeJson: typeof writeJson;
|
|
|
9958
10039
|
declare const index$3_writeJsonSync: typeof writeJsonSync;
|
|
9959
10040
|
declare const index$3_yaml: typeof yaml;
|
|
9960
10041
|
declare namespace index$3 {
|
|
9961
|
-
export { type index$3_CacheEntry as CacheEntry, index$3_EVENT_COUNT as EVENT_COUNT, index$3_FILE_CHANGE as FILE_CHANGE, type index$3_Parser as Parser, type index$3_PkgData as PkgData, type index$3_PkgEnv as PkgEnv, index$3_RECV_MSG as RECV_MSG, type index$3_RequireFunction as RequireFunction, type index$3_RequireFunctionSync as RequireFunctionSync, type index$3_RequireOptions as RequireOptions, index$3_SEND_MSG as SEND_MSG, index$3_WS_CLOSE as WS_CLOSE, index$3_WS_CLOSE_ONEBOT as WS_CLOSE_ONEBOT, index$3_WS_CLOSE_PUPPETEER as WS_CLOSE_PUPPETEER, index$3_WS_CLOSE_SANDBOX as WS_CLOSE_SANDBOX, index$3_WS_CONNECTION as WS_CONNECTION, index$3_WS_CONNECTION_ONEBOT as WS_CONNECTION_ONEBOT, index$3_WS_CONNECTION_PUPPETEER as WS_CONNECTION_PUPPETEER, index$
|
|
10042
|
+
export { type index$3_CacheEntry as CacheEntry, index$3_EVENT_COUNT as EVENT_COUNT, index$3_FILE_CHANGE as FILE_CHANGE, type index$3_Parser as Parser, type index$3_PkgData as PkgData, type index$3_PkgEnv as PkgEnv, index$3_RECV_MSG as RECV_MSG, type index$3_RequireFunction as RequireFunction, type index$3_RequireFunctionSync as RequireFunctionSync, type index$3_RequireOptions as RequireOptions, index$3_SEND_MSG as SEND_MSG, index$3_WS_CLOSE as WS_CLOSE, index$3_WS_CLOSE_ONEBOT as WS_CLOSE_ONEBOT, index$3_WS_CLOSE_PUPPETEER as WS_CLOSE_PUPPETEER, index$3_WS_CLOSE_SANDBOX as WS_CLOSE_SANDBOX, index$3_WS_CONNECTION as WS_CONNECTION, index$3_WS_CONNECTION_ONEBOT as WS_CONNECTION_ONEBOT, index$3_WS_CONNECTION_PUPPETEER as WS_CONNECTION_PUPPETEER, index$3_WS_CONNECTION_SANDBOX as WS_CONNECTION_SANDBOX, index$3_WS_CONNECTION_TERMINAL as WS_CONNECTION_TERMINAL, index$3_WS_SNAPKA as WS_SNAPKA, index$3_Watch as Watch, index$3_Watcher as Watcher, type index$3_YamlComment as YamlComment, index$3_YamlEditor as YamlEditor, type index$3_YamlValue as YamlValue, index$3_absPath as absPath, index$3_applyComments as applyComments, index$3_base64 as base64, index$3_buffer as buffer, index$3_clearRequire as clearRequire, index$3_clearRequireFile as clearRequireFile, index$3_comment as comment, index$3_copyConfig as copyConfig, index$3_copyConfigSync as copyConfigSync, index$3_copyFiles as copyFiles, index$3_copyFilesSync as copyFilesSync, index$3_createPluginDir as createPluginDir, index$3_downFile as downFile, index$3_existToMkdir as existToMkdir, index$3_existToMkdirSync as existToMkdirSync, index$3_exists as exists, index$3_existsSync as existsSync, fs as file, index$3_filesByExt as filesByExt, index$3_getAllFiles as getAllFiles, index$3_getAllFilesSync as getAllFilesSync, index$3_getFiles as getFiles, index$3_getPluginInfo as getPluginInfo, index$3_getRelPath as getRelPath, index$3_isDir as isDir, index$3_isDirSync as isDirSync, index$3_isFile as isFile, index$3_isFileSync as isFileSync, index$3_isPlugin as isPlugin, index$3_isPublic as isPublic, index$3_isSubPath as isSubPath, json$1 as json, index$3_key as key, index$3_lock as lock, index$3_lockMethod as lockMethod, index$3_lockProp as lockProp, index$3_log as log, index$3_logs as logs, index$3_mkdir as mkdir, index$3_mkdirSync as mkdirSync, index$3_parseChangelog as parseChangelog, index$3_pkgRoot as pkgRoot, index$3_randomStr as randomStr, index$3_range as range, index$3_read as read, index$3_readFile as readFile, index$3_readJson as readJson, index$3_readJsonSync as readJsonSync, index$3_requireFile as requireFile, index$3_requireFileSync as requireFileSync, index$3_rmSync as rmSync, index$3_save as save, index$3_sep as sep, index$3_splitPath as splitPath, index$3_stream as stream, index$3_urlToPath as urlToPath, index$3_watch as watch, index$3_watchAndMerge as watchAndMerge, index$3_write as write, index$3_writeJson as writeJson, index$3_writeJsonSync as writeJsonSync, index$3_yaml as yaml };
|
|
9962
10043
|
}
|
|
9963
10044
|
|
|
9964
10045
|
/**
|
|
@@ -10265,6 +10346,39 @@ declare const fileToUrlHandlerKey = "fileToUrl";
|
|
|
10265
10346
|
*/
|
|
10266
10347
|
declare const fileToUrl: FileToUrlHandler;
|
|
10267
10348
|
|
|
10349
|
+
/**
|
|
10350
|
+
* 一个简单的版本范围检查函数
|
|
10351
|
+
* @param range 版本范围
|
|
10352
|
+
* @param version 版本
|
|
10353
|
+
* @description 检查版本是否在范围内
|
|
10354
|
+
* @example
|
|
10355
|
+
* ```ts
|
|
10356
|
+
* console.log(range('^1.0.0', '1.0.1')) // true
|
|
10357
|
+
* console.log(range('^1.0.0', '2.0.0')) // false
|
|
10358
|
+
* console.log(range('^1.0.0', '0.0.1')) // false
|
|
10359
|
+
* console.log(range('>=1.0.0', '1.0.0')) // true
|
|
10360
|
+
* console.log(range('>=1.0.0', '0.0.1')) // false
|
|
10361
|
+
* console.log(range('<=1.0.0', '1.0.0')) // true
|
|
10362
|
+
* console.log(range('<=1.0.0', '2.0.0')) // false
|
|
10363
|
+
* console.log(range('>=1.0.0 <2.0.0', '1.0.0')) // true
|
|
10364
|
+
* console.log(range('1.0.0-alpha', '1.0.0-beta')) // false
|
|
10365
|
+
* console.log(range('1.0.0-beta', '1.0.0-alpha')) // false
|
|
10366
|
+
* console.log(range('^1.0.0-beta', '1.0.0-alpha')) // false
|
|
10367
|
+
* console.log(range('>=1.0.0-beta', '1.0.0-alpha')) // false
|
|
10368
|
+
* console.log(range('^1.0.0-alpha', '1.0.0-beta')) // true
|
|
10369
|
+
* console.log(range('^1.0.0-beta', '1.0.0-beta')) // true
|
|
10370
|
+
* console.log(range('^1.0.0-alpha', '1.0.0-alpha')) // true
|
|
10371
|
+
*
|
|
10372
|
+
* // 通配符示例
|
|
10373
|
+
* console.log(range('1.0.x', '1.0.1')) // true
|
|
10374
|
+
* console.log(range('1.0.x', '1.1.0')) // false
|
|
10375
|
+
* console.log(range('1.x.x', '1.2.3')) // true
|
|
10376
|
+
* console.log(range('1.x.0', '1.2.0')) // true
|
|
10377
|
+
* console.log(range('1.x.0', '1.2.1')) // false
|
|
10378
|
+
* ```
|
|
10379
|
+
*/
|
|
10380
|
+
declare const satisfies: (range: string, version: string) => boolean;
|
|
10381
|
+
|
|
10268
10382
|
declare const index$2_checkGitPluginUpdate: typeof checkGitPluginUpdate;
|
|
10269
10383
|
declare const index$2_checkPkgUpdate: typeof checkPkgUpdate;
|
|
10270
10384
|
declare const index$2_errorToString: typeof errorToString;
|
|
@@ -10294,13 +10408,14 @@ declare const index$2_isRoot: typeof isRoot;
|
|
|
10294
10408
|
declare const index$2_isWin: typeof isWin;
|
|
10295
10409
|
declare const index$2_restart: typeof restart;
|
|
10296
10410
|
declare const index$2_restartDirect: typeof restartDirect;
|
|
10411
|
+
declare const index$2_satisfies: typeof satisfies;
|
|
10297
10412
|
declare const index$2_stringifyError: typeof stringifyError;
|
|
10298
10413
|
declare const index$2_updateAllGitPlugin: typeof updateAllGitPlugin;
|
|
10299
10414
|
declare const index$2_updateAllPkg: typeof updateAllPkg;
|
|
10300
10415
|
declare const index$2_updateGitPlugin: typeof updateGitPlugin;
|
|
10301
10416
|
declare const index$2_updatePkg: typeof updatePkg;
|
|
10302
10417
|
declare namespace index$2 {
|
|
10303
|
-
export { index$2_checkGitPluginUpdate as checkGitPluginUpdate, index$2_checkPkgUpdate as checkPkgUpdate, index$2_errorToString as errorToString, index$2_exec as exec, index$2_ffmpeg as ffmpeg, index$2_ffplay as ffplay, index$2_ffprobe as ffprobe, index$2_fileToUrl as fileToUrl, index$2_fileToUrlHandlerKey as fileToUrlHandlerKey, formatTime$1 as formatTime, index$2_getCommit as getCommit, index$2_getHash as getHash, index$2_getPid as getPid, index$2_getPkgVersion as getPkgVersion, index$2_getRemotePkgVersion as getRemotePkgVersion, index$2_getRequestIp as getRequestIp, index$2_getTime as getTime, index$2_importModule as importModule, index$2_isClass as isClass, index$2_isDocker as isDocker, index$2_isIPv4Loop as isIPv4Loop, index$2_isIPv6Loop as isIPv6Loop, index$2_isLinux as isLinux, index$2_isLocalRequest as isLocalRequest, index$2_isLoopback as isLoopback, index$2_isMac as isMac, index$2_isRoot as isRoot, index$2_isWin as isWin, index$2_restart as restart, index$2_restartDirect as restartDirect, index$2_stringifyError as stringifyError, index$2_updateAllGitPlugin as updateAllGitPlugin, index$2_updateAllPkg as updateAllPkg, index$2_updateGitPlugin as updateGitPlugin, index$2_updatePkg as updatePkg, uptime$1 as uptime };
|
|
10418
|
+
export { index$2_checkGitPluginUpdate as checkGitPluginUpdate, index$2_checkPkgUpdate as checkPkgUpdate, index$2_errorToString as errorToString, index$2_exec as exec, index$2_ffmpeg as ffmpeg, index$2_ffplay as ffplay, index$2_ffprobe as ffprobe, index$2_fileToUrl as fileToUrl, index$2_fileToUrlHandlerKey as fileToUrlHandlerKey, formatTime$1 as formatTime, index$2_getCommit as getCommit, index$2_getHash as getHash, index$2_getPid as getPid, index$2_getPkgVersion as getPkgVersion, index$2_getRemotePkgVersion as getRemotePkgVersion, index$2_getRequestIp as getRequestIp, index$2_getTime as getTime, index$2_importModule as importModule, index$2_isClass as isClass, index$2_isDocker as isDocker, index$2_isIPv4Loop as isIPv4Loop, index$2_isIPv6Loop as isIPv6Loop, index$2_isLinux as isLinux, index$2_isLocalRequest as isLocalRequest, index$2_isLoopback as isLoopback, index$2_isMac as isMac, index$2_isRoot as isRoot, index$2_isWin as isWin, index$2_restart as restart, index$2_restartDirect as restartDirect, index$2_satisfies as satisfies, index$2_stringifyError as stringifyError, index$2_updateAllGitPlugin as updateAllGitPlugin, index$2_updateAllPkg as updateAllPkg, index$2_updateGitPlugin as updateGitPlugin, index$2_updatePkg as updatePkg, uptime$1 as uptime };
|
|
10304
10419
|
}
|
|
10305
10420
|
|
|
10306
10421
|
/**
|
|
@@ -11239,7 +11354,7 @@ declare const server: http.Server<typeof http.IncomingMessage, typeof http.Serve
|
|
|
11239
11354
|
/** 渲染函数类型 */
|
|
11240
11355
|
interface Render {
|
|
11241
11356
|
<T extends Options>(options: T): Promise<RenderResult<T>>;
|
|
11242
|
-
<T extends
|
|
11357
|
+
<T extends Snapka>(options: T): Promise<SnapkaResult<T>>;
|
|
11243
11358
|
}
|
|
11244
11359
|
/**
|
|
11245
11360
|
* @description 注册渲染器
|
|
@@ -11702,8 +11817,22 @@ declare const hooks: {
|
|
|
11702
11817
|
forward: (callback: ForwardMessageCallback, options?: HookOptions) => number;
|
|
11703
11818
|
remove: (id: number) => void;
|
|
11704
11819
|
};
|
|
11705
|
-
/**
|
|
11706
|
-
|
|
11820
|
+
/** 未找到匹配插件钩子 */
|
|
11821
|
+
empty: ((callback: HookCallback<Message$2>, options?: HookOptions) => number) & {
|
|
11822
|
+
message(callback: HookCallback<Message$2>, options?: HookOptions): number;
|
|
11823
|
+
notice(callback: GeneralHookCallback<Notice>, options?: HookOptions): number;
|
|
11824
|
+
request(callback: GeneralHookCallback<Request>, options?: HookOptions): number;
|
|
11825
|
+
remove(id: number): void;
|
|
11826
|
+
};
|
|
11827
|
+
/** 事件调用插件钩子 */
|
|
11828
|
+
eventCall: ((callback: EventCallCallback<Message$2, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions) => number) & {
|
|
11829
|
+
group(callback: EventCallCallback<GroupMessage, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions): number;
|
|
11830
|
+
guild(callback: EventCallCallback<GuildMessage, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions): number;
|
|
11831
|
+
groupTemp(callback: EventCallCallback<GroupTempMessage, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions): number;
|
|
11832
|
+
friend(callback: EventCallCallback<FriendMessage, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions): number;
|
|
11833
|
+
direct(callback: EventCallCallback<DirectMessage, CommandClass<keyof MessageEventMap> | Command<keyof MessageEventMap>>, options?: HookOptions): number;
|
|
11834
|
+
notice(callback: EventCallCallback<Notice, Accept<keyof NoticeEventMap | keyof RequestEventMap>>, options?: HookOptions): number;
|
|
11835
|
+
request(callback: EventCallCallback<Request, Accept<keyof NoticeEventMap | keyof RequestEventMap>>, options?: HookOptions): number;
|
|
11707
11836
|
remove(id: number): void;
|
|
11708
11837
|
};
|
|
11709
11838
|
};
|
|
@@ -11779,4 +11908,4 @@ declare let redis: Client;
|
|
|
11779
11908
|
*/
|
|
11780
11909
|
declare const start: () => Promise<void>;
|
|
11781
11910
|
|
|
11782
|
-
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, type Options2, 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, type RenderResult2, Renderer, type Renders$1 as 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_PUPPETEER_2, 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$1 as 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, getAllFiles, getAllFilesSync, 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, renderTpl, 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 };
|
|
11911
|
+
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 EventCallCallback, type EventCallHookItem, 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 GeneralHookCallback, type GeneralHookItem, 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$1 as 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 Snapka, type SnapkaResult, 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, WS_SNAPKA, 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$1 as 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, getAllFiles, getAllFilesSync, 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, isPublic, isRoot, 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, renderTpl, requireFile, requireFileSync, restart, restartDirect, rmSync, router, satisfies, 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 };
|