@kotori-bot/core 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +10 -4
  2. package/lib/app/config.d.ts +32 -0
  3. package/lib/app/config.js +65 -0
  4. package/lib/app/core.d.ts +138 -0
  5. package/lib/{components → app}/core.js +24 -10
  6. package/lib/app/index.d.ts +1 -0
  7. package/lib/{service → app}/index.js +7 -13
  8. package/lib/{components → app}/message.d.ts +11 -10
  9. package/lib/app/message.js +253 -0
  10. package/lib/components/adapter.d.ts +122 -0
  11. package/lib/components/adapter.js +75 -0
  12. package/lib/components/api.d.ts +417 -0
  13. package/lib/components/api.js +546 -0
  14. package/lib/components/cache.d.ts +37 -0
  15. package/lib/{service → components}/cache.js +27 -6
  16. package/lib/components/command.d.ts +153 -0
  17. package/lib/{utils → components}/command.js +154 -48
  18. package/lib/components/elements.d.ts +144 -0
  19. package/lib/components/elements.js +179 -0
  20. package/lib/components/filter.d.ts +22 -0
  21. package/lib/components/filter.js +130 -0
  22. package/lib/components/index.d.ts +8 -2
  23. package/lib/components/index.js +19 -7
  24. package/lib/components/messages.d.ts +186 -0
  25. package/lib/components/messages.js +218 -0
  26. package/lib/components/session.d.ts +177 -0
  27. package/lib/components/session.js +275 -0
  28. package/lib/decorators/index.d.ts +7 -0
  29. package/lib/{components/config.js → decorators/index.js} +23 -39
  30. package/lib/decorators/plugin.d.ts +7 -0
  31. package/lib/{utils/commandError.js → decorators/plugin.js} +16 -16
  32. package/lib/decorators/utils.d.ts +59 -0
  33. package/lib/decorators/utils.js +189 -0
  34. package/lib/global/constants.d.ts +1 -8
  35. package/lib/global/constants.js +6 -25
  36. package/lib/global/index.js +3 -3
  37. package/lib/global/symbols.d.ts +13 -8
  38. package/lib/global/symbols.js +18 -12
  39. package/lib/index.d.ts +4 -4
  40. package/lib/index.js +10 -11
  41. package/lib/types/adapter.d.ts +1 -1
  42. package/lib/types/adapter.js +3 -3
  43. package/lib/types/api.d.ts +72 -0
  44. package/lib/{utils/jsxFactory.js → types/api.js} +5 -5
  45. package/lib/types/command.d.ts +78 -0
  46. package/lib/types/command.js +50 -0
  47. package/lib/types/config.d.ts +4 -6
  48. package/lib/types/config.js +3 -3
  49. package/lib/types/filter.d.ts +51 -0
  50. package/lib/types/filter.js +87 -0
  51. package/lib/types/index.d.ts +4 -0
  52. package/lib/types/index.js +12 -4
  53. package/lib/types/message.d.ts +128 -193
  54. package/lib/types/message.js +12 -31
  55. package/lib/types/session.d.ts +349 -0
  56. package/lib/types/session.js +27 -0
  57. package/lib/utils/container.d.ts +6 -6
  58. package/lib/utils/container.js +12 -16
  59. package/lib/utils/error.d.ts +46 -22
  60. package/lib/utils/error.js +38 -21
  61. package/lib/utils/factory.d.ts +10 -16
  62. package/lib/utils/factory.js +41 -101
  63. package/lib/utils/internal.d.ts +46 -0
  64. package/lib/utils/internal.js +102 -0
  65. package/package.json +10 -7
  66. package/lib/components/config.d.ts +0 -16
  67. package/lib/components/core.d.ts +0 -34
  68. package/lib/components/message.js +0 -195
  69. package/lib/service/adapter.d.ts +0 -41
  70. package/lib/service/adapter.js +0 -131
  71. package/lib/service/api.d.ts +0 -32
  72. package/lib/service/api.js +0 -80
  73. package/lib/service/cache.d.ts +0 -13
  74. package/lib/service/elements.d.ts +0 -12
  75. package/lib/service/elements.js +0 -73
  76. package/lib/service/index.d.ts +0 -4
  77. package/lib/utils/command.d.ts +0 -51
  78. package/lib/utils/commandError.d.ts +0 -7
  79. package/lib/utils/jsxFactory.d.ts +0 -6
@@ -0,0 +1,72 @@
1
+ /// <reference types="node" />
2
+ /** Response for sending message */
3
+ export interface SendMessageResponse {
4
+ /** Message id */
5
+ messageId: string;
6
+ /** Send time (milliseconds timestamp) */
7
+ time: number;
8
+ }
9
+ /** Response for bot self information */
10
+ export interface SelfInfoResponse {
11
+ /** User id */
12
+ userId: string;
13
+ /** User name or nickname */
14
+ username: string;
15
+ /** The display name, or empty string if none */
16
+ userDisplayname: string;
17
+ }
18
+ /** Response for user information */
19
+ export interface UserInfoResponse extends SelfInfoResponse {
20
+ /** The remark name set set by current bot account, or empty string if none */
21
+ userRemark: string;
22
+ }
23
+ /** Response for group information */
24
+ export interface GroupInfoResponse {
25
+ /** Group id */
26
+ groupId: string;
27
+ /** Group name */
28
+ groupName: string;
29
+ }
30
+ /** Response for guild information */
31
+ export interface GuildInfoResponse {
32
+ /** Guild id */
33
+ guildId: string;
34
+ /** Guild name */
35
+ guildName: string;
36
+ }
37
+ /** Response for channel information */
38
+ export interface ChannelInfoResponse {
39
+ /** Channel id */
40
+ channelId: string;
41
+ /** Channel name */
42
+ channelName: string;
43
+ }
44
+ /** Response for file upload */
45
+ export interface UploadFileResponse {
46
+ /** File id */
47
+ filedId: string;
48
+ }
49
+ /** Response for file get */
50
+ export interface GetFileResponse {
51
+ /** File name */
52
+ name: string;
53
+ /** File data (origin binary)'s SHA256 checksum, all lowercase, optional */
54
+ sha256?: string;
55
+ }
56
+ /** Response for file get url */
57
+ export interface GetFileUrlResponse extends GetFileResponse {
58
+ /** File url */
59
+ url: string;
60
+ /** File download url headers, or empty object if none */
61
+ headers: Record<string, string>;
62
+ }
63
+ /** Response for file get path */
64
+ export interface GetFilePathResponse extends GetFileResponse {
65
+ /** File path */
66
+ path: string;
67
+ }
68
+ /** Response for file get data */
69
+ export interface GetFileDataResponse extends GetFileResponse {
70
+ /** File data */
71
+ data: Buffer;
72
+ }
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/core
4
- * @Version 1.5.0
5
- * @Author Hotaru <biyuehuya@gmail.com>
4
+ * @Version 1.6.0-rc.1
5
+ * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/6/7 11:22:22
9
+ * @Date 2024/8/9 17:33:05
10
10
  */
11
11
 
12
12
  "use strict";
@@ -23,5 +23,5 @@ var __copyProps = (to, from, except, desc) => {
23
23
  return to;
24
24
  };
25
25
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
- var jsxFactory_exports = {};
27
- module.exports = __toCommonJS(jsxFactory_exports);
26
+ var api_exports = {};
27
+ module.exports = __toCommonJS(api_exports);
@@ -0,0 +1,78 @@
1
+ import Tsu from 'tsukiko';
2
+ import type { TsuError } from 'tsukiko';
3
+ import type { MessageQuick, MessageScope, UserAccess } from './message';
4
+ import type { SessionMsg, SessionMsgChannel, SessionMsgGroup, SessionMsgPrivate } from '../components';
5
+ export type ArgsOrigin = CommandArgType[];
6
+ export type OptsOrigin = Record<string, CommandArgType>;
7
+ export type CommandAction<Args = ArgsOrigin, Opts = OptsOrigin, Scope = 'all'> = (data: {
8
+ args: Args;
9
+ options: Opts;
10
+ }, session: Scope extends MessageScope.PRIVATE ? SessionMsgPrivate : Scope extends MessageScope.GROUP ? SessionMsgGroup : Scope extends MessageScope.CHANNEL ? SessionMsgChannel : SessionMsg) => MessageQuick;
11
+ export type CommandArgType = string | number | boolean;
12
+ export declare const commandArgTypeSignSchema: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"string">, import("tsukiko").LiteralParser<"number">, import("tsukiko").LiteralParser<"boolean">]>;
13
+ export type CommandArgTypeSign = Tsu.infer<typeof commandArgTypeSignSchema>;
14
+ /** Command instance config */
15
+ export interface CommandConfig {
16
+ /** Command alias (need bring command prefix) */
17
+ alias?: string[];
18
+ /** Command shortcut (needn't bring command prefix) */
19
+ shortcut?: string[];
20
+ /** Command required message scope (session type) */
21
+ scope?: MessageScope | 'all';
22
+ /** Command required user access level */
23
+ access?: UserAccess;
24
+ /** Command help message (have more details than command description) */
25
+ help?: string;
26
+ /** Command action */
27
+ action?: CommandAction;
28
+ }
29
+ interface CommandParseResult {
30
+ option_error: {
31
+ expected: CommandArgTypeSign;
32
+ reality: CommandArgTypeSign;
33
+ target: string;
34
+ };
35
+ arg_error: {
36
+ expected: CommandArgTypeSign;
37
+ reality: CommandArgTypeSign;
38
+ index: number;
39
+ };
40
+ arg_many: {
41
+ expected: number;
42
+ reality: number;
43
+ };
44
+ arg_few: CommandParseResult['arg_many'];
45
+ syntax: {
46
+ index: number;
47
+ char: string;
48
+ };
49
+ unknown: {
50
+ input: string;
51
+ };
52
+ }
53
+ export interface CommandResult extends CommandParseResult {
54
+ error: {
55
+ error: unknown;
56
+ };
57
+ data_error: {
58
+ target: string | number;
59
+ };
60
+ res_error: {
61
+ error: TsuError;
62
+ };
63
+ num_error: null;
64
+ no_access_manger: null;
65
+ no_access_admin: null;
66
+ disable: null;
67
+ exists: {
68
+ target: string;
69
+ };
70
+ no_exists: CommandResult['exists'];
71
+ }
72
+ type CommandResultNoArgs = 'num_error' | 'no_access_manger' | 'no_access_admin' | 'disable';
73
+ export type CommandResultExtra = {
74
+ [K in keyof CommandResult]: {
75
+ type: K;
76
+ } & (K extends CommandResultNoArgs ? object : CommandResult[K]);
77
+ };
78
+ export {};
@@ -0,0 +1,50 @@
1
+
2
+ /**
3
+ * @Package @kotori-bot/core
4
+ * @Version 1.6.0-rc.1
5
+ * @Author Arimura Sena <me@hotaru.icu>
6
+ * @Copyright 2024 Hotaru. All rights reserved.
7
+ * @License GPL-3.0
8
+ * @Link https://github.com/kotorijs/kotori
9
+ * @Date 2024/8/9 17:33:05
10
+ */
11
+
12
+ "use strict";
13
+ var __create = Object.create;
14
+ var __defProp = Object.defineProperty;
15
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16
+ var __getOwnPropNames = Object.getOwnPropertyNames;
17
+ var __getProtoOf = Object.getPrototypeOf;
18
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
+ // If the importer is in node compatibility mode or this is not an ESM
33
+ // file that has been converted to a CommonJS file using a Babel-
34
+ // compatible transform (i.e. "__esModule" has not been set), then set
35
+ // "default" to the CommonJS "module.exports" for node compatibility.
36
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
+ mod
38
+ ));
39
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
+ var command_exports = {};
41
+ __export(command_exports, {
42
+ commandArgTypeSignSchema: () => commandArgTypeSignSchema
43
+ });
44
+ module.exports = __toCommonJS(command_exports);
45
+ var import_tsukiko = __toESM(require("tsukiko"));
46
+ const commandArgTypeSignSchema = import_tsukiko.default.Union(import_tsukiko.default.Literal("string"), import_tsukiko.default.Literal("number"), import_tsukiko.default.Literal("boolean"));
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ commandArgTypeSignSchema
50
+ });
@@ -1,6 +1,5 @@
1
1
  import type { LocaleType } from '@kotori-bot/i18n';
2
- import { ModuleConfig } from 'fluoro';
3
- import type { EventDataTargetId } from './message';
2
+ import type { ModuleConfig } from 'fluoro';
4
3
  export interface CoreConfig {
5
4
  global: GlobalConfig;
6
5
  adapter: {
@@ -11,13 +10,12 @@ export interface CoreConfig {
11
10
  };
12
11
  }
13
12
  export interface GlobalConfig {
14
- level?: number;
15
13
  lang: LocaleType;
16
- 'command-prefix': string;
14
+ commandPrefix: string;
17
15
  }
18
16
  export interface AdapterConfig {
19
17
  extends: string;
20
- master: EventDataTargetId;
18
+ master: string;
21
19
  lang: LocaleType;
22
- 'command-prefix': string;
20
+ commandPrefix: string;
23
21
  }
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/core
4
- * @Version 1.5.0
5
- * @Author Hotaru <biyuehuya@gmail.com>
4
+ * @Version 1.6.0-rc.1
5
+ * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/6/7 11:22:22
9
+ * @Date 2024/8/9 17:33:05
10
10
  */
11
11
 
12
12
  "use strict";
@@ -0,0 +1,51 @@
1
+ export declare enum FilterTestList {
2
+ PLATFORM = "platform",
3
+ USER_ID = "userId",
4
+ GROUP_ID = "groupId",
5
+ OPERATOR_ID = "operatorId",
6
+ MESSAGE_ID = "messageId",
7
+ SCOPE = "scope",
8
+ ACCESS = "access",
9
+ IDENTITY = "identity",
10
+ LOCALE_TYPE = "localeType",
11
+ SELF_ID = "selfId"
12
+ }
13
+ export type FilterOption = FilterOptionBase | FilterOptionGroup;
14
+ /** Single filter option */
15
+ export interface FilterOptionBase {
16
+ test: FilterTestList;
17
+ operator: '==' | '!=' | '>' | '<' | '>=' | '<=';
18
+ value: string | number | boolean;
19
+ }
20
+ /** Group filters option */
21
+ export interface FilterOptionGroup {
22
+ /** Match type, filters of all passed, filter of any one passed, filters of none passed */
23
+ type: 'all_of' | 'any_of' | 'none_of';
24
+ /** Filters list */
25
+ filters: FilterOption[];
26
+ }
27
+ export declare const filterOptionBaseSchema: import("tsukiko").ObjectParser<{
28
+ test: import("tsukiko").CustomParser<FilterTestList>;
29
+ operator: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"==">, import("tsukiko").LiteralParser<"!=">, import("tsukiko").LiteralParser<">">, import("tsukiko").LiteralParser<"<">, import("tsukiko").LiteralParser<">=">, import("tsukiko").LiteralParser<"<=">]>;
30
+ value: import("tsukiko").UnionParser<[import("tsukiko").StringParser, import("tsukiko").NumberParser, import("tsukiko").BooleanParser]>;
31
+ }>;
32
+ export declare const filterOptionGroupSchema: import("tsukiko").ObjectParser<{
33
+ type: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"all_of">, import("tsukiko").LiteralParser<"any_of">, import("tsukiko").LiteralParser<"none_of">]>;
34
+ filters: import("tsukiko").ArrayParser<import("tsukiko").ObjectParser<{
35
+ test: import("tsukiko").CustomParser<FilterTestList>;
36
+ operator: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"==">, import("tsukiko").LiteralParser<"!=">, import("tsukiko").LiteralParser<">">, import("tsukiko").LiteralParser<"<">, import("tsukiko").LiteralParser<">=">, import("tsukiko").LiteralParser<"<=">]>;
37
+ value: import("tsukiko").UnionParser<[import("tsukiko").StringParser, import("tsukiko").NumberParser, import("tsukiko").BooleanParser]>;
38
+ }>>;
39
+ }>;
40
+ export declare const filterOptionSchema: import("tsukiko").UnionParser<[import("tsukiko").ObjectParser<{
41
+ test: import("tsukiko").CustomParser<FilterTestList>;
42
+ operator: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"==">, import("tsukiko").LiteralParser<"!=">, import("tsukiko").LiteralParser<">">, import("tsukiko").LiteralParser<"<">, import("tsukiko").LiteralParser<">=">, import("tsukiko").LiteralParser<"<=">]>;
43
+ value: import("tsukiko").UnionParser<[import("tsukiko").StringParser, import("tsukiko").NumberParser, import("tsukiko").BooleanParser]>;
44
+ }>, import("tsukiko").ObjectParser<{
45
+ type: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"all_of">, import("tsukiko").LiteralParser<"any_of">, import("tsukiko").LiteralParser<"none_of">]>;
46
+ filters: import("tsukiko").ArrayParser<import("tsukiko").ObjectParser<{
47
+ test: import("tsukiko").CustomParser<FilterTestList>;
48
+ operator: import("tsukiko").UnionParser<[import("tsukiko").LiteralParser<"==">, import("tsukiko").LiteralParser<"!=">, import("tsukiko").LiteralParser<">">, import("tsukiko").LiteralParser<"<">, import("tsukiko").LiteralParser<">=">, import("tsukiko").LiteralParser<"<=">]>;
49
+ value: import("tsukiko").UnionParser<[import("tsukiko").StringParser, import("tsukiko").NumberParser, import("tsukiko").BooleanParser]>;
50
+ }>>;
51
+ }>]>;
@@ -0,0 +1,87 @@
1
+
2
+ /**
3
+ * @Package @kotori-bot/core
4
+ * @Version 1.6.0-rc.1
5
+ * @Author Arimura Sena <me@hotaru.icu>
6
+ * @Copyright 2024 Hotaru. All rights reserved.
7
+ * @License GPL-3.0
8
+ * @Link https://github.com/kotorijs/kotori
9
+ * @Date 2024/8/9 17:33:05
10
+ */
11
+
12
+ "use strict";
13
+ var __create = Object.create;
14
+ var __defProp = Object.defineProperty;
15
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16
+ var __getOwnPropNames = Object.getOwnPropertyNames;
17
+ var __getProtoOf = Object.getPrototypeOf;
18
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
+ // If the importer is in node compatibility mode or this is not an ESM
33
+ // file that has been converted to a CommonJS file using a Babel-
34
+ // compatible transform (i.e. "__esModule" has not been set), then set
35
+ // "default" to the CommonJS "module.exports" for node compatibility.
36
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
+ mod
38
+ ));
39
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
+ var filter_exports = {};
41
+ __export(filter_exports, {
42
+ FilterTestList: () => FilterTestList,
43
+ filterOptionBaseSchema: () => filterOptionBaseSchema,
44
+ filterOptionGroupSchema: () => filterOptionGroupSchema,
45
+ filterOptionSchema: () => filterOptionSchema
46
+ });
47
+ module.exports = __toCommonJS(filter_exports);
48
+ var import_tsukiko = __toESM(require("tsukiko"));
49
+ var FilterTestList = /* @__PURE__ */ ((FilterTestList2) => {
50
+ FilterTestList2["PLATFORM"] = "platform";
51
+ FilterTestList2["USER_ID"] = "userId";
52
+ FilterTestList2["GROUP_ID"] = "groupId";
53
+ FilterTestList2["OPERATOR_ID"] = "operatorId";
54
+ FilterTestList2["MESSAGE_ID"] = "messageId";
55
+ FilterTestList2["SCOPE"] = "scope";
56
+ FilterTestList2["ACCESS"] = "access";
57
+ FilterTestList2["IDENTITY"] = "identity";
58
+ FilterTestList2["LOCALE_TYPE"] = "localeType";
59
+ FilterTestList2["SELF_ID"] = "selfId";
60
+ return FilterTestList2;
61
+ })(FilterTestList || {});
62
+ const filterOptionBaseSchema = import_tsukiko.default.Object({
63
+ test: import_tsukiko.default.Custom(
64
+ (value) => typeof value === "string" && Object.values(FilterTestList).includes(value)
65
+ ).describe("Testing item"),
66
+ operator: import_tsukiko.default.Union(
67
+ import_tsukiko.default.Literal("=="),
68
+ import_tsukiko.default.Literal("!="),
69
+ import_tsukiko.default.Literal(">"),
70
+ import_tsukiko.default.Literal("<"),
71
+ import_tsukiko.default.Literal(">="),
72
+ import_tsukiko.default.Literal("<=")
73
+ ).describe("Testing operation"),
74
+ value: import_tsukiko.default.Union(import_tsukiko.default.String(), import_tsukiko.default.Number(), import_tsukiko.default.Boolean()).describe("Expect value")
75
+ });
76
+ const filterOptionGroupSchema = import_tsukiko.default.Object({
77
+ type: import_tsukiko.default.Union(import_tsukiko.default.Literal("all_of"), import_tsukiko.default.Literal("any_of"), import_tsukiko.default.Literal("none_of")).describe("Match type"),
78
+ filters: import_tsukiko.default.Array(filterOptionBaseSchema).describe("Filters list")
79
+ });
80
+ const filterOptionSchema = import_tsukiko.default.Union(filterOptionBaseSchema, filterOptionGroupSchema);
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ FilterTestList,
84
+ filterOptionBaseSchema,
85
+ filterOptionGroupSchema,
86
+ filterOptionSchema
87
+ });
@@ -1,3 +1,7 @@
1
1
  export * from './config';
2
2
  export * from './message';
3
3
  export * from './adapter';
4
+ export * from './api';
5
+ export * from './filter';
6
+ export * from './session';
7
+ export * from './command';
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/core
4
- * @Version 1.5.0
5
- * @Author Hotaru <biyuehuya@gmail.com>
4
+ * @Version 1.6.0-rc.1
5
+ * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/6/7 11:22:22
9
+ * @Date 2024/8/9 17:33:05
10
10
  */
11
11
 
12
12
  "use strict";
@@ -29,9 +29,17 @@ module.exports = __toCommonJS(types_exports);
29
29
  __reExport(types_exports, require("./config"), module.exports);
30
30
  __reExport(types_exports, require("./message"), module.exports);
31
31
  __reExport(types_exports, require("./adapter"), module.exports);
32
+ __reExport(types_exports, require("./api"), module.exports);
33
+ __reExport(types_exports, require("./filter"), module.exports);
34
+ __reExport(types_exports, require("./session"), module.exports);
35
+ __reExport(types_exports, require("./command"), module.exports);
32
36
  // Annotate the CommonJS export names for ESM import in node:
33
37
  0 && (module.exports = {
34
38
  ...require("./config"),
35
39
  ...require("./message"),
36
- ...require("./adapter")
40
+ ...require("./adapter"),
41
+ ...require("./api"),
42
+ ...require("./filter"),
43
+ ...require("./session"),
44
+ ...require("./command")
37
45
  });