node-karin 1.1.5 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/default/config/redis.json +0 -4
- package/dist/cli/index.cjs +2 -0
- package/dist/cli/index.js +2 -0
- package/dist/index.d.ts +67 -19
- package/dist/index.js +1750 -521
- package/dist/web/assets/favicon-onvkvGKB.ico +0 -0
- package/dist/web/assets/features-animation-BUrFSxHb.js +1 -0
- package/dist/web/assets/index-1L-neFLi.js +1 -0
- package/dist/web/assets/index-B3rM6WYc.js +1 -0
- package/dist/web/assets/index-DLn5IMR7.js +347 -0
- package/dist/web/assets/index-DTAhadOx.css +1 -0
- package/dist/web/index.html +24 -0
- package/dist/web/karin.png +0 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.2.1](https://github.com/KarinJS/Karin/compare/core-v1.2.0...core-v1.2.1) (2025-01-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* build web ([54fb566](https://github.com/KarinJS/Karin/commit/54fb566fda73bfb3f37f2cc445b197358e447847))
|
|
9
|
+
|
|
10
|
+
## [1.2.0](https://github.com/KarinJS/Karin/compare/core-v1.1.5...core-v1.2.0) (2025-01-18)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features
|
|
14
|
+
|
|
15
|
+
* webui ([833eb2a](https://github.com/KarinJS/Karin/commit/833eb2a7bd40225d074f51b21cbfa1261d681665))
|
|
16
|
+
* 修改当前日志等级Api ([874bb7b](https://github.com/KarinJS/Karin/commit/874bb7ba2a220275cc85cff26a2013524523b445))
|
|
17
|
+
* 系统状态 ([4380a76](https://github.com/KarinJS/Karin/commit/4380a76c170e99a74aec2956bedf5ee4a0260e92))
|
|
18
|
+
* 系统状态 ([23d8664](https://github.com/KarinJS/Karin/commit/23d8664706c8c1814b3c160ff1cf3667be4f8e8e))
|
|
19
|
+
* 获取日志Api 修复进程启动检查 ([4f762a1](https://github.com/KarinJS/Karin/commit/4f762a17cdabeba40587e456aa24424cbf8d0ac4))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### 🐛 Bug Fixes
|
|
23
|
+
|
|
24
|
+
* onebot11请求事件 ([f91edbe](https://github.com/KarinJS/Karin/commit/f91edbe01aa3b4f3213b0c0ed791baa6d00e3476))
|
|
25
|
+
* 请求方式&打包路径 ([2a52898](https://github.com/KarinJS/Karin/commit/2a52898033364185e28ad7b31047571fce2ecf44))
|
|
26
|
+
* 配置文件api ([a7ca287](https://github.com/KarinJS/Karin/commit/a7ca287277172577705d70ceb8dc785af525e41b))
|
|
27
|
+
|
|
3
28
|
## [1.1.5](https://github.com/KarinJS/Karin/compare/core-v1.1.4...core-v1.1.5) (2025-01-17)
|
|
4
29
|
|
|
5
30
|
|
package/dist/cli/index.cjs
CHANGED
|
@@ -215,6 +215,8 @@ var createOrUpdateEnv = (dir2) => {
|
|
|
215
215
|
"LOG_MAX_LOG_SIZE=0",
|
|
216
216
|
"# logger.fnc\u989C\u8272",
|
|
217
217
|
'LOG_FNC_COLOR="#E1D919"',
|
|
218
|
+
"# \u65E5\u5FD7\u5B9E\u65F6Api\u6700\u591A\u652F\u6301\u540C\u65F6\u8FDE\u63A5\u6570",
|
|
219
|
+
"LOG_API_MAX_CONNECTIONS=5",
|
|
218
220
|
"\n",
|
|
219
221
|
"# ffmpeg",
|
|
220
222
|
"FFMPEG_PATH=",
|
package/dist/cli/index.js
CHANGED
|
@@ -206,6 +206,8 @@ var createOrUpdateEnv = (dir2) => {
|
|
|
206
206
|
"LOG_MAX_LOG_SIZE=0",
|
|
207
207
|
"# logger.fnc\u989C\u8272",
|
|
208
208
|
'LOG_FNC_COLOR="#E1D919"',
|
|
209
|
+
"# \u65E5\u5FD7\u5B9E\u65F6Api\u6700\u591A\u652F\u6301\u540C\u65F6\u8FDE\u63A5\u6570",
|
|
210
|
+
"LOG_API_MAX_CONNECTIONS=5",
|
|
209
211
|
"\n",
|
|
210
212
|
"# ffmpeg",
|
|
211
213
|
"FFMPEG_PATH=",
|
package/dist/index.d.ts
CHANGED
|
@@ -2463,6 +2463,19 @@ interface OB11GroupTempMessage extends MessageBase$1 {
|
|
|
2463
2463
|
/** 发送人信息 */
|
|
2464
2464
|
sender: OB11FriendSender;
|
|
2465
2465
|
}
|
|
2466
|
+
/** 其他好友消息 已知的有 https://github.com/A-kirami/matcha */
|
|
2467
|
+
interface OB11OtherFriendMessage extends MessageBase$1 {
|
|
2468
|
+
/** 消息类型 */
|
|
2469
|
+
message_type: 'private';
|
|
2470
|
+
/** 消息子类型 */
|
|
2471
|
+
sub_type: 'other';
|
|
2472
|
+
/** 接收者QQ gocq-http拓展 */
|
|
2473
|
+
target_id?: number;
|
|
2474
|
+
/** 临时会话来源 */
|
|
2475
|
+
temp_source?: number;
|
|
2476
|
+
/** 发送人信息 */
|
|
2477
|
+
sender: OB11FriendSender;
|
|
2478
|
+
}
|
|
2466
2479
|
/** 群消息事件 */
|
|
2467
2480
|
interface OB11GroupMessage extends MessageBase$1 {
|
|
2468
2481
|
/** 消息类型 */
|
|
@@ -2475,7 +2488,7 @@ interface OB11GroupMessage extends MessageBase$1 {
|
|
|
2475
2488
|
sender: OB11GroupSender;
|
|
2476
2489
|
}
|
|
2477
2490
|
/** 消息事件 */
|
|
2478
|
-
type OB11Message = OB11PrivateMessage | OB11GroupMessage | OB11GroupTempMessage;
|
|
2491
|
+
type OB11Message = OB11PrivateMessage | OB11GroupMessage | OB11GroupTempMessage | OB11OtherFriendMessage;
|
|
2479
2492
|
/** 通知事件基类 */
|
|
2480
2493
|
interface OB11NoticeBaseType extends OB11EventBase {
|
|
2481
2494
|
/** 事件类型 */
|
|
@@ -8948,7 +8961,7 @@ interface PM2 {
|
|
|
8948
8961
|
type Redis = RedisClientOptions;
|
|
8949
8962
|
|
|
8950
8963
|
/**
|
|
8951
|
-
* `config.
|
|
8964
|
+
* `config.json` 类型
|
|
8952
8965
|
*/
|
|
8953
8966
|
interface Config {
|
|
8954
8967
|
/** 主人列表 */
|
|
@@ -9014,17 +9027,17 @@ interface Config {
|
|
|
9014
9027
|
/** 频道日志黑名单 */
|
|
9015
9028
|
log_disable_list: string[];
|
|
9016
9029
|
};
|
|
9017
|
-
/**
|
|
9030
|
+
/** 子频道消息管理 */
|
|
9018
9031
|
channels: {
|
|
9019
|
-
/**
|
|
9032
|
+
/** 是否启用子频道消息事件 */
|
|
9020
9033
|
enable: boolean;
|
|
9021
|
-
/**
|
|
9034
|
+
/** 子频道白名单 */
|
|
9022
9035
|
enable_list: string[];
|
|
9023
|
-
/**
|
|
9036
|
+
/** 子频道黑名单 */
|
|
9024
9037
|
disable_list: string[];
|
|
9025
|
-
/**
|
|
9038
|
+
/** 子频道日志白名单 */
|
|
9026
9039
|
log_enable_list: string[];
|
|
9027
|
-
/**
|
|
9040
|
+
/** 子频道日志黑名单 */
|
|
9028
9041
|
log_disable_list: string[];
|
|
9029
9042
|
};
|
|
9030
9043
|
}
|
|
@@ -9238,6 +9251,41 @@ interface FileListMap {
|
|
|
9238
9251
|
privates: Privates;
|
|
9239
9252
|
}
|
|
9240
9253
|
|
|
9254
|
+
interface Env {
|
|
9255
|
+
/** 是否启用HTTP */
|
|
9256
|
+
HTTP_ENABLE: string;
|
|
9257
|
+
/** HTTP监听端口 */
|
|
9258
|
+
HTTP_PORT: string;
|
|
9259
|
+
/** HTTP监听地址 */
|
|
9260
|
+
HTTP_HOST: string;
|
|
9261
|
+
/** HTTP鉴权秘钥 仅用于karin自身Api */
|
|
9262
|
+
HTTP_AUTH_KEY: string;
|
|
9263
|
+
/** ws_server鉴权秘钥 */
|
|
9264
|
+
WS_SERVER_AUTH_KEY: string;
|
|
9265
|
+
/** 是否启用Redis 关闭后将使用内部虚拟Redis */
|
|
9266
|
+
REDIS_ENABLE: string;
|
|
9267
|
+
/** 重启是否调用pm2 如果不调用则会直接关机 此配置适合有进程守护的程序 */
|
|
9268
|
+
PM2_RESTART: string;
|
|
9269
|
+
/** 日志等级 */
|
|
9270
|
+
LOG_LEVEL: string;
|
|
9271
|
+
/** 日志保留天数 */
|
|
9272
|
+
LOG_DAYS_TO_KEEP: string;
|
|
9273
|
+
/** 日志文件最大大小 如果此项大于0则启用日志分割 */
|
|
9274
|
+
LOG_MAX_LOG_SIZE: string;
|
|
9275
|
+
/** logger.fnc颜色 */
|
|
9276
|
+
LOG_FNC_COLOR: string;
|
|
9277
|
+
/** 运行器 "node" | "pm2" | "tsx" */
|
|
9278
|
+
RUNNER: 'node' | 'pm2' | 'tsx';
|
|
9279
|
+
/** ffmpeg路径 */
|
|
9280
|
+
FFMPEG_PATH: string;
|
|
9281
|
+
/** ffprobe路径 */
|
|
9282
|
+
FFPROBE_PATH: string;
|
|
9283
|
+
/** ffplay路径 */
|
|
9284
|
+
FFPLAY_PATH: string;
|
|
9285
|
+
/** tsx监察者模式 */
|
|
9286
|
+
TSX_WATCH: string;
|
|
9287
|
+
}
|
|
9288
|
+
|
|
9241
9289
|
declare const config: () => Config;
|
|
9242
9290
|
/** http端口 */
|
|
9243
9291
|
declare const port: () => number;
|
|
@@ -9248,9 +9296,11 @@ declare const master: () => string[];
|
|
|
9248
9296
|
/** 管理员列表 */
|
|
9249
9297
|
declare const admin: () => string[];
|
|
9250
9298
|
/** redis配置 */
|
|
9251
|
-
declare const redis: () =>
|
|
9299
|
+
declare const redis: () => Redis;
|
|
9252
9300
|
/** pm2配置 */
|
|
9253
|
-
declare const pm2: () =>
|
|
9301
|
+
declare const pm2: () => PM2;
|
|
9302
|
+
/** env配置 */
|
|
9303
|
+
declare const env: () => Env;
|
|
9254
9304
|
/** ffmpeg路径 */
|
|
9255
9305
|
declare const ffmpegPath: () => string;
|
|
9256
9306
|
/** ffprobe路径 */
|
|
@@ -9274,8 +9324,6 @@ declare const getYaml: <T extends keyof FileListMap>(name: T, type: "user" | "de
|
|
|
9274
9324
|
* @param data 配置数据
|
|
9275
9325
|
*/
|
|
9276
9326
|
declare const setYaml: <T extends keyof FileListMap>(name: T, data: Record<string, any>) => boolean;
|
|
9277
|
-
/** 每次启动清空临时文件夹 */
|
|
9278
|
-
declare const clearTemp: () => void;
|
|
9279
9327
|
/**
|
|
9280
9328
|
* 更新日志等级
|
|
9281
9329
|
* @param level 日志等级
|
|
@@ -9474,10 +9522,6 @@ declare const defaultConfig: Readonly<{
|
|
|
9474
9522
|
};
|
|
9475
9523
|
redis: {
|
|
9476
9524
|
url: string;
|
|
9477
|
-
socket: {
|
|
9478
|
-
host: string;
|
|
9479
|
-
port: number;
|
|
9480
|
-
};
|
|
9481
9525
|
username: string;
|
|
9482
9526
|
password: string;
|
|
9483
9527
|
database: number;
|
|
@@ -9538,9 +9582,9 @@ declare const watchEnv: () => Promise<void>;
|
|
|
9538
9582
|
|
|
9539
9583
|
declare const index_admin: typeof admin;
|
|
9540
9584
|
declare const index_authKey: typeof authKey;
|
|
9541
|
-
declare const index_clearTemp: typeof clearTemp;
|
|
9542
9585
|
declare const index_config: typeof config;
|
|
9543
9586
|
declare const index_defaultConfig: typeof defaultConfig;
|
|
9587
|
+
declare const index_env: typeof env;
|
|
9544
9588
|
declare const index_ffmpegPath: typeof ffmpegPath;
|
|
9545
9589
|
declare const index_ffplayPath: typeof ffplayPath;
|
|
9546
9590
|
declare const index_ffprobePath: typeof ffprobePath;
|
|
@@ -9566,7 +9610,7 @@ declare const index_updateLevel: typeof updateLevel;
|
|
|
9566
9610
|
declare const index_watchEnv: typeof watchEnv;
|
|
9567
9611
|
declare const index_webSocketServerToken: typeof webSocketServerToken;
|
|
9568
9612
|
declare namespace index {
|
|
9569
|
-
export { adapter$1 as adapter, index_admin as admin, index_authKey as authKey,
|
|
9613
|
+
export { adapter$1 as adapter, index_admin as admin, index_authKey as authKey, index_config as config, index_defaultConfig as defaultConfig, index_env as env, index_ffmpegPath as ffmpegPath, index_ffplayPath as ffplayPath, index_ffprobePath as ffprobePath, index_getDirectCfg as getDirectCfg, index_getFriendCfg as getFriendCfg, index_getGroupCfg as getGroupCfg, index_getGuildCfg as getGuildCfg, index_getYaml as getYaml, index_groups as groups, index_host as host, index_lint as lint, index_master as master, index_mergeData as mergeData, index_pkg as pkg, index_pm2 as pm2, index_port as port, index_privates as privates, index_redis as redis, render$1 as render, index_setStr as setStr, index_setYaml as setYaml, index_timeout as timeout, index_updateLevel as updateLevel, index_watchEnv as watchEnv, index_webSocketServerToken as webSocketServerToken };
|
|
9570
9614
|
}
|
|
9571
9615
|
|
|
9572
9616
|
/** ws 服务 */
|
|
@@ -9582,6 +9626,10 @@ declare const server: http.Server<typeof http.IncomingMessage, typeof http.Serve
|
|
|
9582
9626
|
* @param host 监听地址
|
|
9583
9627
|
*/
|
|
9584
9628
|
declare const listen: (port: number, host: string) => void;
|
|
9629
|
+
/**
|
|
9630
|
+
* web 服务
|
|
9631
|
+
*/
|
|
9632
|
+
declare const web: () => void;
|
|
9585
9633
|
|
|
9586
9634
|
/**
|
|
9587
9635
|
* 构建好友场景的`sender`
|
|
@@ -9844,4 +9892,4 @@ declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInf
|
|
|
9844
9892
|
*/
|
|
9845
9893
|
declare const isNpmPlugin: (name: string) => Promise<boolean>;
|
|
9846
9894
|
|
|
9847
|
-
export { type Accept, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, AdapterConsole, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CmdFnc, type Command, type CommandClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, type FaceElement, type FaceSegment, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type ForwardOptions, type ForwardSegment, type FriendContact, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendSender, type GetAtAllCountResponse, type GetBot, 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, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, 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 GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, 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 MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, 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 OB11PrivateMessage, type OB11Request, type OB11RequestBaseType, OB11RequestType, type OB11Segment, type OB11SegmentBase, type OB11SegmentType, OB11Sex, type OB11serInfo, 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 Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginOptions, type PluginRule, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, 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, SEND_MSG, type Scene, type ScreenshotClip, type ScreenshotOptions, type Segment, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type Task, type TextElement, type TextSegment, type UnregisterBot, type UserInfo, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, adapter, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createLogger, createPluginDir, createRawMessage, karin as default, 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, importModule, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isNpmPlugin, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, listen, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis$1 as redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, renderTpl, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, stream, stringifyError, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, write, writeJson, writeJsonSync, wss, yaml };
|
|
9895
|
+
export { type Accept, type AccountInfo, type Adapter, AdapterBase, type AdapterCommunication, AdapterConsole, type AdapterInfo, AdapterOneBot, type AdapterOptions, type AdapterPlatform, type AdapterProtocol, type AdapterStandard, type AdapterType, type Adapters, type AllPluginMethods, type AnonymousSegment, type Apps, type AtElement, type AtSegment, type BaseContact, BaseEvent, type BaseEventOptions, type BaseEventType, type BasketballElement, Bot, type BoundingBox, type BubbleFaceElement, type Button, type ButtonElement, type Cache, type CacheEntry, type CmdFnc, type Command, type CommandClass, type Config, type Contact, type ContactElement, type ContactSegment, type Count, type CreateGroupFolderResponse, type CustomMusicElement, type CustomMusicSegment, type CustomNodeElement, type CustomNodeSegments, type DiceElement, type DiceSegment, type DirectContact, DirectMessage, type DirectMessageOptions, type DirectNodeElement, type DirectNodeSegment, type DirectSender, type DownloadFileOptions, type DownloadFileResponse, EVENT_COUNT, type ElementTypes, type Elements, type Env, type Event, type EventParent, type EventToSubEvent, type ExecOptions, type ExecReturn, type ExecType, type FaceElement, type FaceSegment, type FileList, type FileListMap, type FileSegment, type FileToUrlHandler, type FileToUrlResult, type ForwardOptions, type ForwardSegment, type FriendContact, FriendDecreaseNotice, type FriendDecreaseOptions, FriendIncreaseNotice, type FriendIncreaseOptions, FriendMessage, type FriendMessageOptions, type FriendNoticeEventMap, type FriendRequestEventMap, type FriendSender, type GetAtAllCountResponse, type GetBot, 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, GroupFileUploadedNotice, type GroupFileUploadedOptions, GroupHlightsChangedNotice, type GroupHlightsChangedOptions, GroupHonorChangedNotice, type GroupHonorChangedOptions, type GroupInfo, GroupInviteRequest, type GroupInviteRequestOptions, GroupLuckKingNotice, type GroupLuckKingOptions, GroupMemberBanNotice, type GroupMemberBanOptions, 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 GuildContact, GuildMessage, type GuildMessageOptions, type GuildSender, type Handler, type HandlerType, type HonorInfoList, type ImageElement, type ImageSegment, type JsonElement, type JsonSegment, type KarinButton, type KeyboardElement, 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 MessageOptions, type MessageResponse, type MetaEventBase, type MusicElement, type MusicPlatform, type MusicSegment, type NodeElement, type Notice, type NoticeAndRequest, NoticeBase, type NoticeEventMap, type NoticeEventSub, type NoticeOptions, 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 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 Options, type PM2, type Package, type Parser, type PasmsgElement, type Permission, type PkgData, type PkgInfo, Plugin, type PluginFile, type PluginFncTypes, type PluginOptions, type PluginRule, type Point, type PokeSegment, PrivateApplyRequest, type PrivateApplyRequestOptions, PrivateFileUploadedNotice, type PrivateFileUploadedOptions, PrivatePokeNotice, type PrivatePokeOptions, PrivateRecallNotice, type PrivateRecallOptions, type Privates, type PuppeteerLifeCycleEvent, type QQBotButton, type QQButtonTextType, type QQGroupFileInfo, type QQGroupFolderInfo, type QQGroupHonorInfo, RECV_MSG, 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, SEND_MSG, type Scene, type ScreenshotClip, type ScreenshotOptions, type Segment, type SendElement, type SendForwardMessageResponse, type SendMessage, type SendMsgResults, type Sender, type SenderBase, type SenderGroup, type Sex, type ShakeSegment, type ShareElement, type ShareSegment, type SrcReply, type Task, type TextElement, type TextSegment, type UnregisterBot, type UserInfo, type VideoElement, type VideoSegment, type WaitForOptions, Watch, Watcher, type WeatherElement, type XmlElement, type XmlSegment, type YamlComment, YamlEditor, type YamlValue, absPath, adapter, app, applyComments, base64, buffer, buttonHandle, callRender, changelog, checkGitPluginUpdate, checkPkgUpdate, clearRequire, clearRequireFile, comment, index$1 as common, index as config, contact, contactDirect, contactFriend, contactGroup, contactGroupTemp, contactGuild, copyConfig, copyConfigSync, copyFiles, copyFilesSync, createLogger, createPluginDir, createRawMessage, karin as default, 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, importModule, isClass, isDir, isDirSync, isDocker, isFile, isFileSync, isIPv4Loop, isIPv6Loop, isLinux, isLocalRequest, isLoopback, isMac, isNpmPlugin, isPlugin, isRoot, isStatic, isSubPath, isWin, json$1 as json, karin, karinToQQBot, key, level, listen, lock, lockMethod, lockProp, log, logger, logs, makeForward, makeMessage, type messageType, mkdir, mkdirSync, parseChangelog, pkgRoot, qqbotToKarin, randomStr, range, read, readFile, readJson, readJsonSync, redis$1 as redis, registerBot, registerRender, render, renderHtml, renderMultiHtml, renderTpl, requireFile, requireFileSync, restart, restartDirect, rmSync, save, type screenshot, segment, sendMsg, sender, senderDirect, senderFriend, senderGroup, senderGroupTemp, senderGuild, sep, server, splitPath, stream, stringifyError, index$2 as system, unregisterBot, unregisterRender, updateAllGitPlugin, updateAllPkg, updateGitPlugin, updatePkg, uptime$1 as uptime, urlToPath, watch, watchAndMerge, web, write, writeJson, writeJsonSync, wss, yaml };
|