node-karin 1.2.1 → 1.2.2
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 +13 -0
- package/dist/index.d.ts +155 -270
- package/dist/index.js +2035 -1773
- package/package.json +1 -1
- package/dist/web/assets/favicon-onvkvGKB.ico +0 -0
- package/dist/web/assets/features-animation-BUrFSxHb.js +0 -1
- package/dist/web/assets/index-1L-neFLi.js +0 -1
- package/dist/web/assets/index-B3rM6WYc.js +0 -1
- package/dist/web/assets/index-DLn5IMR7.js +0 -347
- package/dist/web/assets/index-DTAhadOx.css +0 -1
- package/dist/web/index.html +0 -24
- package/dist/web/karin.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.2.2](https://github.com/KarinJS/Karin/compare/core-v1.2.1...core-v1.2.2) (2025-01-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* @heroui/popover ([0a9039a](https://github.com/KarinJS/Karin/commit/0a9039acd447d743532f9270ff3d5715314c7e82))
|
|
9
|
+
* Components types ([447bd62](https://github.com/KarinJS/Karin/commit/447bd62fba77be04351e4b708926913174f07997))
|
|
10
|
+
* file api ([1df3ee2](https://github.com/KarinJS/Karin/commit/1df3ee22128bb77ae4ca340cd8316ca0c71601c9))
|
|
11
|
+
* set env ([c3b311e](https://github.com/KarinJS/Karin/commit/c3b311e3830f36697f369eb62d6cbaccea0df56b))
|
|
12
|
+
* 修正保存的类型错误 ([bd042fe](https://github.com/KarinJS/Karin/commit/bd042feac367b4fd768e585dd41e87564029aa00))
|
|
13
|
+
* 配置 ([aa6d02d](https://github.com/KarinJS/Karin/commit/aa6d02dfb78baa385acc0405b77da7176fbe662d))
|
|
14
|
+
* 重构配置文件格式 ([1abd5be](https://github.com/KarinJS/Karin/commit/1abd5be785074d02453cc0ddfa46022d871c62bd))
|
|
15
|
+
|
|
3
16
|
## [1.2.1](https://github.com/KarinJS/Karin/compare/core-v1.2.0...core-v1.2.1) (2025-01-18)
|
|
4
17
|
|
|
5
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7627,6 +7627,8 @@ interface CacheEntry<T = any> {
|
|
|
7627
7627
|
}
|
|
7628
7628
|
type Parser = (content: string) => any;
|
|
7629
7629
|
type RequireOptions = {
|
|
7630
|
+
/** 指定配置文件类型 */
|
|
7631
|
+
type?: 'json' | 'yaml' | 'yml';
|
|
7630
7632
|
/** 文件编码,默认utf-8 */
|
|
7631
7633
|
encoding?: BufferEncoding;
|
|
7632
7634
|
/** 是否强制读取,不使用缓存 */
|
|
@@ -8925,6 +8927,23 @@ declare const mergeData: (defData: Record<string, any>, data: Record<string, any
|
|
|
8925
8927
|
* @param data 数据
|
|
8926
8928
|
*/
|
|
8927
8929
|
declare const setStr: (data: any[]) => string[];
|
|
8930
|
+
/**
|
|
8931
|
+
* 创建缓存对象
|
|
8932
|
+
*/
|
|
8933
|
+
declare const createCount: () => Record<string, {
|
|
8934
|
+
/** 上一分钟调用次数 */
|
|
8935
|
+
start: number;
|
|
8936
|
+
/** 当前调用次数 */
|
|
8937
|
+
count: number;
|
|
8938
|
+
}>;
|
|
8939
|
+
/**
|
|
8940
|
+
* 获取缓存配置
|
|
8941
|
+
*/
|
|
8942
|
+
declare const getCacheCfg: <T>(cache: Record<string, T>, count: ReturnType<typeof createCount>, keys: string[]) => T;
|
|
8943
|
+
/**
|
|
8944
|
+
* 定时清理缓存
|
|
8945
|
+
*/
|
|
8946
|
+
declare const clearCache: <T>(count: ReturnType<typeof createCount>, cache: Record<string, T>) => void;
|
|
8928
8947
|
|
|
8929
8948
|
/**
|
|
8930
8949
|
* `pm2.json` 类型
|
|
@@ -8940,17 +8959,17 @@ interface PM2 {
|
|
|
8940
8959
|
script: string;
|
|
8941
8960
|
/** 自动重启 */
|
|
8942
8961
|
autorestart: boolean;
|
|
8943
|
-
/** 重启次数 */
|
|
8944
|
-
max_restarts: number;
|
|
8945
8962
|
/** 最大重启次数 */
|
|
8963
|
+
max_restarts: number;
|
|
8964
|
+
/** 最大内存重启 */
|
|
8946
8965
|
max_memory_restart: string;
|
|
8947
8966
|
/** 重启延迟 */
|
|
8948
8967
|
restart_delay: number;
|
|
8949
8968
|
/** 合并日志 */
|
|
8950
8969
|
merge_logs: boolean;
|
|
8951
|
-
/**
|
|
8970
|
+
/** 错误日志路径 */
|
|
8952
8971
|
error_file: string;
|
|
8953
|
-
/**
|
|
8972
|
+
/** 输出日志路径 */
|
|
8954
8973
|
out_file: string;
|
|
8955
8974
|
}>;
|
|
8956
8975
|
}
|
|
@@ -9187,9 +9206,11 @@ interface Package {
|
|
|
9187
9206
|
}
|
|
9188
9207
|
|
|
9189
9208
|
/**
|
|
9190
|
-
* `groups.json
|
|
9209
|
+
* `groups.json`中的配置类型
|
|
9191
9210
|
*/
|
|
9192
|
-
|
|
9211
|
+
interface GroupsObjectValue {
|
|
9212
|
+
/** 配置键: `Bot:selfId:groupId` */
|
|
9213
|
+
key: string;
|
|
9193
9214
|
/** 群聊、频道中所有消息冷却时间,单位秒,0则无限制 */
|
|
9194
9215
|
cd: number;
|
|
9195
9216
|
/** 群聊、频道中 每个人的消息冷却时间,单位秒,0则无限制。注意,开启后所有消息都会进CD,无论是否触发插件。 */
|
|
@@ -9203,17 +9224,21 @@ type Groups = Record<string, {
|
|
|
9203
9224
|
/** 黑名单插件、功能,黑名单中的插件、功能不会响应 `karin-plugin-test:app.js` `karin-plugin-test:测试转发` */
|
|
9204
9225
|
disable: string[];
|
|
9205
9226
|
/** 群、频道成员单独黑名单 */
|
|
9206
|
-
|
|
9227
|
+
member_enable: string[];
|
|
9207
9228
|
/** 群、频道成员单独白名单 */
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9229
|
+
member_disable: string[];
|
|
9230
|
+
}
|
|
9231
|
+
/**
|
|
9232
|
+
* `groups.json` 文件类型
|
|
9233
|
+
*/
|
|
9234
|
+
type Groups = GroupsObjectValue[];
|
|
9212
9235
|
|
|
9213
9236
|
/**
|
|
9214
|
-
* `privates.json
|
|
9237
|
+
* `privates.json`文件中数组元素的类型
|
|
9215
9238
|
*/
|
|
9216
|
-
|
|
9239
|
+
interface PrivatesObjectValue {
|
|
9240
|
+
/** 配置键 `Bot:selfId:userId` */
|
|
9241
|
+
key: string;
|
|
9217
9242
|
/** 好友消息冷却时间,单位秒,0则无限制 */
|
|
9218
9243
|
cd: number;
|
|
9219
9244
|
/** 机器人响应模式,0-所有 2-仅回应管理员 3-仅回应别名 5-管理员无限制,非管理员别名 6-仅回应主人 */
|
|
@@ -9224,32 +9249,11 @@ type Privates = Record<string, {
|
|
|
9224
9249
|
enable: string[];
|
|
9225
9250
|
/** 黑名单插件、功能,黑名单中的插件、功能不会响应 `karin-plugin-test:app.js` `karin-plugin-test:测试转发` */
|
|
9226
9251
|
disable: string[];
|
|
9227
|
-
|
|
9228
|
-
get key(): string;
|
|
9229
|
-
}>;
|
|
9230
|
-
|
|
9252
|
+
}
|
|
9231
9253
|
/**
|
|
9232
|
-
*
|
|
9233
|
-
* - `config`: 基本配置
|
|
9234
|
-
* - `adapter`: 适配器配置
|
|
9235
|
-
* - `pm2`: pm2配置
|
|
9236
|
-
* - `redis`: redis配置
|
|
9237
|
-
* - `render`: 渲染配置
|
|
9238
|
-
* - `package`: 框架配置
|
|
9239
|
-
* - `groups`: 群组配置
|
|
9240
|
-
* - `privates`: 私信配置
|
|
9254
|
+
* `privates.json` 类型
|
|
9241
9255
|
*/
|
|
9242
|
-
type
|
|
9243
|
-
/** 文件列表类型映射 */
|
|
9244
|
-
interface FileListMap {
|
|
9245
|
-
config: Config;
|
|
9246
|
-
adapter: Adapters;
|
|
9247
|
-
pm2: PM2;
|
|
9248
|
-
redis: Redis;
|
|
9249
|
-
render: Renders;
|
|
9250
|
-
groups: Groups;
|
|
9251
|
-
privates: Privates;
|
|
9252
|
-
}
|
|
9256
|
+
type Privates = PrivatesObjectValue[];
|
|
9253
9257
|
|
|
9254
9258
|
interface Env {
|
|
9255
9259
|
/** 是否启用HTTP */
|
|
@@ -9286,56 +9290,42 @@ interface Env {
|
|
|
9286
9290
|
TSX_WATCH: string;
|
|
9287
9291
|
}
|
|
9288
9292
|
|
|
9293
|
+
/**
|
|
9294
|
+
* 文件列表
|
|
9295
|
+
* - `config`: 基本配置
|
|
9296
|
+
* - `adapter`: 适配器配置
|
|
9297
|
+
* - `pm2`: pm2配置
|
|
9298
|
+
* - `redis`: redis配置
|
|
9299
|
+
* - `render`: 渲染配置
|
|
9300
|
+
* - `package`: 框架配置
|
|
9301
|
+
* - `groups`: 群组配置
|
|
9302
|
+
* - `privates`: 私信配置
|
|
9303
|
+
*/
|
|
9304
|
+
type FileList = 'config' | 'adapter' | 'pm2' | 'redis' | 'render' | 'groups' | 'privates';
|
|
9305
|
+
/** 文件列表类型映射 */
|
|
9306
|
+
interface FileListMap {
|
|
9307
|
+
config: Config;
|
|
9308
|
+
adapter: Adapters;
|
|
9309
|
+
pm2: PM2;
|
|
9310
|
+
redis: Redis;
|
|
9311
|
+
render: Renders;
|
|
9312
|
+
groups: Groups;
|
|
9313
|
+
privates: Privates;
|
|
9314
|
+
env: Env;
|
|
9315
|
+
}
|
|
9316
|
+
|
|
9317
|
+
/** 基本配置 */
|
|
9289
9318
|
declare const config: () => Config;
|
|
9290
|
-
/** http端口 */
|
|
9291
|
-
declare const port: () => number;
|
|
9292
|
-
/** host */
|
|
9293
|
-
declare const host: () => string;
|
|
9294
9319
|
/** 主人列表 */
|
|
9295
9320
|
declare const master: () => string[];
|
|
9296
9321
|
/** 管理员列表 */
|
|
9297
9322
|
declare const admin: () => string[];
|
|
9298
|
-
/** redis配置 */
|
|
9299
|
-
declare const redis: () => Redis;
|
|
9300
|
-
/** pm2配置 */
|
|
9301
|
-
declare const pm2: () => PM2;
|
|
9302
|
-
/** env配置 */
|
|
9303
|
-
declare const env: () => Env;
|
|
9304
|
-
/** ffmpeg路径 */
|
|
9305
|
-
declare const ffmpegPath: () => string;
|
|
9306
|
-
/** ffprobe路径 */
|
|
9307
|
-
declare const ffprobePath: () => string;
|
|
9308
|
-
/** ffplay路径 */
|
|
9309
|
-
declare const ffplayPath: () => string;
|
|
9310
|
-
/** 鉴权秘钥 */
|
|
9311
|
-
declare const authKey: () => string;
|
|
9312
|
-
/** node-karin的package */
|
|
9313
|
-
declare const pkg: () => Package;
|
|
9314
|
-
/**
|
|
9315
|
-
* 获取配置yaml
|
|
9316
|
-
* @param name 文件名称
|
|
9317
|
-
* @param type 文件类型 用户配置/默认配置
|
|
9318
|
-
* @param isRefresh 是否刷新缓存
|
|
9319
|
-
*/
|
|
9320
|
-
declare const getYaml: <T extends keyof FileListMap>(name: T, type: "user" | "default", isRefresh?: boolean) => FileListMap[T];
|
|
9321
|
-
/**
|
|
9322
|
-
* @description 修改框架配置
|
|
9323
|
-
* @param name 文件名称
|
|
9324
|
-
* @param data 配置数据
|
|
9325
|
-
*/
|
|
9326
|
-
declare const setYaml: <T extends keyof FileListMap>(name: T, data: Record<string, any>) => boolean;
|
|
9327
|
-
/**
|
|
9328
|
-
* 更新日志等级
|
|
9329
|
-
* @param level 日志等级
|
|
9330
|
-
* @returns 返回更新后的日志等级
|
|
9331
|
-
*/
|
|
9332
|
-
declare const updateLevel: (level?: string) => string;
|
|
9333
9323
|
|
|
9334
9324
|
/**
|
|
9335
9325
|
* 获取群聊、频道配置
|
|
9336
9326
|
* @returns 群聊、频道配置
|
|
9337
9327
|
*/
|
|
9338
|
-
declare const groups: () =>
|
|
9328
|
+
declare const groups: () => Record<string, GroupsObjectValue>;
|
|
9339
9329
|
/**
|
|
9340
9330
|
* 获取指定群聊配置
|
|
9341
9331
|
* @param groupId 群号
|
|
@@ -9368,227 +9358,120 @@ declare const webSocketServerToken: () => string;
|
|
|
9368
9358
|
/**
|
|
9369
9359
|
* @description 默认配置
|
|
9370
9360
|
*/
|
|
9371
|
-
declare const defaultConfig:
|
|
9372
|
-
adapter:
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
enable: boolean;
|
|
9381
|
-
timeout: number;
|
|
9382
|
-
};
|
|
9383
|
-
ws_client: {
|
|
9384
|
-
enable: boolean;
|
|
9385
|
-
url: string;
|
|
9386
|
-
token: string;
|
|
9387
|
-
}[];
|
|
9388
|
-
http_server: {
|
|
9389
|
-
enable: boolean;
|
|
9390
|
-
self_id: string;
|
|
9391
|
-
url: string;
|
|
9392
|
-
token: string;
|
|
9393
|
-
}[];
|
|
9394
|
-
};
|
|
9395
|
-
};
|
|
9396
|
-
config: {
|
|
9397
|
-
master: string[];
|
|
9398
|
-
admin: never[];
|
|
9399
|
-
user: {
|
|
9400
|
-
enable_list: never[];
|
|
9401
|
-
disable_list: never[];
|
|
9402
|
-
};
|
|
9403
|
-
friend: {
|
|
9404
|
-
enable: boolean;
|
|
9405
|
-
enable_list: never[];
|
|
9406
|
-
disable_list: never[];
|
|
9407
|
-
log_enable_list: never[];
|
|
9408
|
-
log_disable_list: never[];
|
|
9409
|
-
};
|
|
9410
|
-
group: {
|
|
9411
|
-
enable: boolean;
|
|
9412
|
-
enable_list: never[];
|
|
9413
|
-
disable_list: never[];
|
|
9414
|
-
log_enable_list: never[];
|
|
9415
|
-
log_disable_list: never[];
|
|
9416
|
-
};
|
|
9417
|
-
directs: {
|
|
9418
|
-
enable: boolean;
|
|
9419
|
-
enable_list: never[];
|
|
9420
|
-
disable_list: never[];
|
|
9421
|
-
log_enable_list: never[];
|
|
9422
|
-
log_disable_list: never[];
|
|
9423
|
-
};
|
|
9424
|
-
guilds: {
|
|
9425
|
-
enable: boolean;
|
|
9426
|
-
enable_list: never[];
|
|
9427
|
-
disable_list: never[];
|
|
9428
|
-
log_enable_list: never[];
|
|
9429
|
-
log_disable_list: never[];
|
|
9430
|
-
};
|
|
9431
|
-
channels: {
|
|
9432
|
-
enable: boolean;
|
|
9433
|
-
enable_list: never[];
|
|
9434
|
-
disable_list: never[];
|
|
9435
|
-
log_enable_list: never[];
|
|
9436
|
-
log_disable_list: never[];
|
|
9437
|
-
};
|
|
9438
|
-
};
|
|
9439
|
-
groups: {
|
|
9440
|
-
default: {
|
|
9441
|
-
cd: number;
|
|
9442
|
-
mode: number;
|
|
9443
|
-
alias: never[];
|
|
9444
|
-
enable: never[];
|
|
9445
|
-
disable: never[];
|
|
9446
|
-
member_enable: never[];
|
|
9447
|
-
member_disable: never[];
|
|
9448
|
-
};
|
|
9449
|
-
'Bot:selfId': {
|
|
9450
|
-
cd: number;
|
|
9451
|
-
mode: number;
|
|
9452
|
-
alias: never[];
|
|
9453
|
-
enable: never[];
|
|
9454
|
-
disable: never[];
|
|
9455
|
-
member_enable: never[];
|
|
9456
|
-
member_disable: never[];
|
|
9457
|
-
};
|
|
9458
|
-
'Bot:selfId:groupId': {
|
|
9459
|
-
cd: number;
|
|
9460
|
-
mode: number;
|
|
9461
|
-
alias: never[];
|
|
9462
|
-
enable: never[];
|
|
9463
|
-
disable: never[];
|
|
9464
|
-
member_enable: never[];
|
|
9465
|
-
member_disable: never[];
|
|
9466
|
-
};
|
|
9467
|
-
'Bot:selfId:guildId': {
|
|
9468
|
-
cd: number;
|
|
9469
|
-
mode: number;
|
|
9470
|
-
alias: never[];
|
|
9471
|
-
enable: never[];
|
|
9472
|
-
disable: never[];
|
|
9473
|
-
member_enable: never[];
|
|
9474
|
-
member_disable: never[];
|
|
9475
|
-
};
|
|
9476
|
-
'Bot:selfId:guildId:channelId': {
|
|
9477
|
-
cd: number;
|
|
9478
|
-
mode: number;
|
|
9479
|
-
alias: never[];
|
|
9480
|
-
enable: never[];
|
|
9481
|
-
disable: never[];
|
|
9482
|
-
member_enable: never[];
|
|
9483
|
-
member_disable: never[];
|
|
9484
|
-
};
|
|
9485
|
-
};
|
|
9486
|
-
pm2: {
|
|
9487
|
-
lines: number;
|
|
9488
|
-
apps: {
|
|
9489
|
-
name: string;
|
|
9490
|
-
script: string;
|
|
9491
|
-
autorestart: boolean;
|
|
9492
|
-
max_restarts: number;
|
|
9493
|
-
max_memory_restart: string;
|
|
9494
|
-
restart_delay: number;
|
|
9495
|
-
merge_logs: boolean;
|
|
9496
|
-
error_file: string;
|
|
9497
|
-
out_file: string;
|
|
9498
|
-
}[];
|
|
9499
|
-
};
|
|
9500
|
-
privates: {
|
|
9501
|
-
default: {
|
|
9502
|
-
cd: number;
|
|
9503
|
-
mode: number;
|
|
9504
|
-
alias: never[];
|
|
9505
|
-
enable: never[];
|
|
9506
|
-
disable: never[];
|
|
9507
|
-
};
|
|
9508
|
-
'Bot:selfId': {
|
|
9509
|
-
cd: number;
|
|
9510
|
-
mode: number;
|
|
9511
|
-
alias: never[];
|
|
9512
|
-
enable: never[];
|
|
9513
|
-
disable: never[];
|
|
9514
|
-
};
|
|
9515
|
-
'Bot:selfId:userId': {
|
|
9516
|
-
cd: number;
|
|
9517
|
-
mode: number;
|
|
9518
|
-
alias: never[];
|
|
9519
|
-
enable: never[];
|
|
9520
|
-
disable: never[];
|
|
9521
|
-
};
|
|
9522
|
-
};
|
|
9523
|
-
redis: {
|
|
9524
|
-
url: string;
|
|
9525
|
-
username: string;
|
|
9526
|
-
password: string;
|
|
9527
|
-
database: number;
|
|
9528
|
-
};
|
|
9529
|
-
render: {
|
|
9530
|
-
ws_server: {
|
|
9531
|
-
enable: boolean;
|
|
9532
|
-
};
|
|
9533
|
-
ws_client: {
|
|
9534
|
-
enable: boolean;
|
|
9535
|
-
url: string;
|
|
9536
|
-
token: string;
|
|
9537
|
-
}[];
|
|
9538
|
-
http_server: {
|
|
9539
|
-
enable: boolean;
|
|
9540
|
-
url: string;
|
|
9541
|
-
token: string;
|
|
9542
|
-
}[];
|
|
9543
|
-
};
|
|
9544
|
-
}>;
|
|
9361
|
+
declare const defaultConfig: {
|
|
9362
|
+
adapter: Adapters;
|
|
9363
|
+
config: Config;
|
|
9364
|
+
groups: Groups;
|
|
9365
|
+
pm2: PM2;
|
|
9366
|
+
redis: Redis;
|
|
9367
|
+
render: Renders;
|
|
9368
|
+
privates: Privates;
|
|
9369
|
+
};
|
|
9545
9370
|
|
|
9546
9371
|
/**
|
|
9547
9372
|
* 获取好友、频道私信配置
|
|
9548
9373
|
* @returns 好友、频道私信配置
|
|
9549
9374
|
*/
|
|
9550
|
-
declare const privates: () =>
|
|
9375
|
+
declare const privates: () => Record<string, PrivatesObjectValue>;
|
|
9551
9376
|
/**
|
|
9552
9377
|
* 获取指定好友配置
|
|
9553
9378
|
* @param userId 用户ID
|
|
9554
9379
|
* @param selfId 机器人ID
|
|
9555
9380
|
*/
|
|
9556
|
-
declare const getFriendCfg: (userId: string, selfId: string) =>
|
|
9557
|
-
cd: number;
|
|
9558
|
-
mode: 0 | 2 | 3 | 5 | 6;
|
|
9559
|
-
alias: string[];
|
|
9560
|
-
enable: string[];
|
|
9561
|
-
disable: string[];
|
|
9562
|
-
readonly key: string;
|
|
9563
|
-
};
|
|
9381
|
+
declare const getFriendCfg: (userId: string, selfId: string) => PrivatesObjectValue;
|
|
9564
9382
|
/**
|
|
9565
9383
|
* 获取指定频道私信配置
|
|
9566
9384
|
* @param userId 用户ID
|
|
9567
9385
|
* @param selfId 机器人ID
|
|
9568
9386
|
*/
|
|
9569
|
-
declare const getDirectCfg: (userId: string, selfId: string) =>
|
|
9570
|
-
cd: number;
|
|
9571
|
-
mode: 0 | 2 | 3 | 5 | 6;
|
|
9572
|
-
alias: string[];
|
|
9573
|
-
enable: string[];
|
|
9574
|
-
disable: string[];
|
|
9575
|
-
readonly key: string;
|
|
9576
|
-
};
|
|
9387
|
+
declare const getDirectCfg: (userId: string, selfId: string) => PrivatesObjectValue;
|
|
9577
9388
|
|
|
9389
|
+
/** ffmpeg路径 */
|
|
9390
|
+
declare const ffmpegPath: () => string;
|
|
9391
|
+
/** ffprobe路径 */
|
|
9392
|
+
declare const ffprobePath: () => string;
|
|
9393
|
+
/** ffplay路径 */
|
|
9394
|
+
declare const ffplayPath: () => string;
|
|
9395
|
+
/** http端口 */
|
|
9396
|
+
declare const port: () => number;
|
|
9397
|
+
/** host */
|
|
9398
|
+
declare const host: () => string;
|
|
9399
|
+
/** env配置 */
|
|
9400
|
+
declare const env: () => Env;
|
|
9401
|
+
/** 鉴权秘钥 */
|
|
9402
|
+
declare const authKey: () => string;
|
|
9578
9403
|
/**
|
|
9579
9404
|
* 监听.env文件变化并自动重新加载
|
|
9580
9405
|
*/
|
|
9581
9406
|
declare const watchEnv: () => Promise<void>;
|
|
9407
|
+
/**
|
|
9408
|
+
* 修改`.env`文件
|
|
9409
|
+
* @param data - 需要更新的环境变量键值对
|
|
9410
|
+
* @returns 是否更新成功
|
|
9411
|
+
*/
|
|
9412
|
+
declare const setEnv: (data: Record<string, any>) => boolean;
|
|
9413
|
+
/**
|
|
9414
|
+
* 获取.env文件内容
|
|
9415
|
+
* @returns
|
|
9416
|
+
*/
|
|
9417
|
+
declare const getEnv: (filePath: string) => Record<string, {
|
|
9418
|
+
/** 值 */
|
|
9419
|
+
value: string;
|
|
9420
|
+
/** 注释 */
|
|
9421
|
+
comment: string;
|
|
9422
|
+
}>;
|
|
9423
|
+
|
|
9424
|
+
/**
|
|
9425
|
+
* 获取配置yaml
|
|
9426
|
+
* @param name 文件名称
|
|
9427
|
+
* @param type 文件类型 用户配置/默认配置
|
|
9428
|
+
* @param isRefresh 是否刷新缓存
|
|
9429
|
+
*/
|
|
9430
|
+
declare const getYaml: <T extends keyof FileListMap>(name: T, type: "user" | "default", isRefresh?: boolean) => FileListMap[T];
|
|
9431
|
+
/**
|
|
9432
|
+
* @description 修改框架配置
|
|
9433
|
+
* @param name 文件名称
|
|
9434
|
+
* @param data 配置数据
|
|
9435
|
+
*/
|
|
9436
|
+
declare const setYaml: <T extends keyof FileListMap>(name: T, data: T extends "groups" ? Groups : T extends "privates" ? Privates : Record<string, any>) => boolean;
|
|
9437
|
+
/**
|
|
9438
|
+
* @description 修改框架配置
|
|
9439
|
+
* @param name 文件名称
|
|
9440
|
+
* @param data 配置数据
|
|
9441
|
+
*/
|
|
9442
|
+
declare const setConfig: <T extends keyof FileListMap>(name: T, data: T extends "groups" ? Groups : T extends "privates" ? Privates : Record<string, any>) => boolean;
|
|
9443
|
+
/**
|
|
9444
|
+
*
|
|
9445
|
+
*/
|
|
9446
|
+
/**
|
|
9447
|
+
* 更新日志等级
|
|
9448
|
+
* @param level 日志等级
|
|
9449
|
+
* @returns 返回更新后的日志等级
|
|
9450
|
+
*/
|
|
9451
|
+
declare const updateLevel: (level?: string) => string;
|
|
9452
|
+
|
|
9453
|
+
/** node-karin的package */
|
|
9454
|
+
declare const pkg: () => Package;
|
|
9455
|
+
|
|
9456
|
+
/** pm2配置 */
|
|
9457
|
+
declare const pm2: () => PM2;
|
|
9458
|
+
|
|
9459
|
+
/** redis配置 */
|
|
9460
|
+
declare const redis: () => Redis;
|
|
9582
9461
|
|
|
9583
9462
|
declare const index_admin: typeof admin;
|
|
9584
9463
|
declare const index_authKey: typeof authKey;
|
|
9464
|
+
declare const index_clearCache: typeof clearCache;
|
|
9585
9465
|
declare const index_config: typeof config;
|
|
9466
|
+
declare const index_createCount: typeof createCount;
|
|
9586
9467
|
declare const index_defaultConfig: typeof defaultConfig;
|
|
9587
9468
|
declare const index_env: typeof env;
|
|
9588
9469
|
declare const index_ffmpegPath: typeof ffmpegPath;
|
|
9589
9470
|
declare const index_ffplayPath: typeof ffplayPath;
|
|
9590
9471
|
declare const index_ffprobePath: typeof ffprobePath;
|
|
9472
|
+
declare const index_getCacheCfg: typeof getCacheCfg;
|
|
9591
9473
|
declare const index_getDirectCfg: typeof getDirectCfg;
|
|
9474
|
+
declare const index_getEnv: typeof getEnv;
|
|
9592
9475
|
declare const index_getFriendCfg: typeof getFriendCfg;
|
|
9593
9476
|
declare const index_getGroupCfg: typeof getGroupCfg;
|
|
9594
9477
|
declare const index_getGuildCfg: typeof getGuildCfg;
|
|
@@ -9603,6 +9486,8 @@ declare const index_pm2: typeof pm2;
|
|
|
9603
9486
|
declare const index_port: typeof port;
|
|
9604
9487
|
declare const index_privates: typeof privates;
|
|
9605
9488
|
declare const index_redis: typeof redis;
|
|
9489
|
+
declare const index_setConfig: typeof setConfig;
|
|
9490
|
+
declare const index_setEnv: typeof setEnv;
|
|
9606
9491
|
declare const index_setStr: typeof setStr;
|
|
9607
9492
|
declare const index_setYaml: typeof setYaml;
|
|
9608
9493
|
declare const index_timeout: typeof timeout;
|
|
@@ -9610,7 +9495,7 @@ declare const index_updateLevel: typeof updateLevel;
|
|
|
9610
9495
|
declare const index_watchEnv: typeof watchEnv;
|
|
9611
9496
|
declare const index_webSocketServerToken: typeof webSocketServerToken;
|
|
9612
9497
|
declare namespace index {
|
|
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 };
|
|
9498
|
+
export { adapter$1 as adapter, index_admin as admin, index_authKey as authKey, index_clearCache as clearCache, index_config as config, index_createCount as createCount, index_defaultConfig as defaultConfig, index_env as env, index_ffmpegPath as ffmpegPath, index_ffplayPath as ffplayPath, index_ffprobePath as ffprobePath, index_getCacheCfg as getCacheCfg, index_getDirectCfg as getDirectCfg, index_getEnv as getEnv, 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_setConfig as setConfig, index_setEnv as setEnv, index_setStr as setStr, index_setYaml as setYaml, index_timeout as timeout, index_updateLevel as updateLevel, index_watchEnv as watchEnv, index_webSocketServerToken as webSocketServerToken };
|
|
9614
9499
|
}
|
|
9615
9500
|
|
|
9616
9501
|
/** ws 服务 */
|
|
@@ -9892,4 +9777,4 @@ declare const getPlugins: <T extends boolean = false>(type: GetPluginType, isInf
|
|
|
9892
9777
|
*/
|
|
9893
9778
|
declare const isNpmPlugin: (name: string) => Promise<boolean>;
|
|
9894
9779
|
|
|
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 };
|
|
9780
|
+
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 GroupsObjectValue, 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 PrivatesObjectValue, 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 };
|