reciple 10.0.28 → 10.0.30
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/assets/global/README.md +34 -0
- package/assets/modules/javascript/ClientEvent.js +2 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.108.0 → _@oxc-project_runtime@0.114.0}/helpers/decorate.mjs +1 -1
- package/dist/bin/commands/create.mjs +2 -7
- package/dist/bin/commands/create.mjs.map +1 -1
- package/dist/bin/commands/createModule.d.mts +0 -1
- package/dist/bin/commands/createModule.mjs +1 -2
- package/dist/bin/commands/createModule.mjs.map +1 -1
- package/dist/bin/commands/start.mjs +23 -23
- package/dist/bin/commands/start.mjs.map +1 -1
- package/dist/bin/commands/startSharding.mjs +18 -18
- package/dist/bin/commands/startSharding.mjs.map +1 -1
- package/dist/classes/cli/CLI.mjs +1 -1
- package/dist/classes/cli/CLI.mjs.map +1 -1
- package/dist/classes/cli/ConfigReader.mjs +6 -4
- package/dist/classes/cli/ConfigReader.mjs.map +1 -1
- package/dist/classes/cli/RuntimeEnvironment.mjs.map +1 -1
- package/dist/classes/client/EventListeners.mjs.map +1 -1
- package/dist/classes/client/ModuleLoader.d.mts +3 -3
- package/dist/classes/client/ModuleLoader.mjs +8 -8
- package/dist/classes/client/ModuleLoader.mjs.map +1 -1
- package/dist/classes/managers/ModuleManager.mjs +1 -1
- package/dist/classes/modules/BaseModule.mjs.map +1 -1
- package/dist/classes/modules/PostconditionModule.mjs +1 -1
- package/dist/classes/modules/PreconditionModule.mjs +1 -1
- package/dist/classes/modules/commands/ContextMenuCommandModule.mjs +1 -1
- package/dist/classes/modules/commands/MessageCommandModule.mjs +1 -1
- package/dist/classes/modules/commands/SlashCommandModule.mjs +1 -1
- package/dist/classes/templates/ModuleTemplateBuilder.mjs +19 -19
- package/dist/classes/templates/ModuleTemplateBuilder.mjs.map +1 -1
- package/dist/classes/templates/TemplateBuilder.mjs +2 -2
- package/dist/classes/templates/TemplateBuilder.mjs.map +1 -1
- package/dist/classes/validation/BaseModuleValidator.d.mts +10 -10
- package/dist/classes/validation/EventModuleValidator.d.mts +9 -9
- package/dist/classes/validation/PostconditionModule.d.mts +8 -8
- package/dist/classes/validation/PreconditionModule.d.mts +7 -7
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/types.d.mts +1 -1
- package/dist/package.mjs +4 -4
- package/package.json +6 -6
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { ModuleType } from "../../helpers/constants.mjs";
|
|
2
2
|
import { AnyModuleData } from "../../helpers/types.mjs";
|
|
3
3
|
import { Validator } from "@reciple/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
|
|
5
5
|
|
|
6
6
|
//#region src/classes/validation/BaseModuleValidator.d.ts
|
|
7
7
|
declare class BaseModuleValidator extends Validator {
|
|
8
|
-
static id:
|
|
9
|
-
static moduleType:
|
|
10
|
-
static onEnable:
|
|
11
|
-
static onReady:
|
|
12
|
-
static onDisable:
|
|
13
|
-
static object:
|
|
8
|
+
static id: _sapphire_shapeshift0.StringValidator<string>;
|
|
9
|
+
static moduleType: _sapphire_shapeshift0.NativeEnumValidator<typeof ModuleType>;
|
|
10
|
+
static onEnable: _sapphire_shapeshift0.UnionValidator<Function | undefined>;
|
|
11
|
+
static onReady: _sapphire_shapeshift0.UnionValidator<Function | undefined>;
|
|
12
|
+
static onDisable: _sapphire_shapeshift0.UnionValidator<Function | undefined>;
|
|
13
|
+
static object: _sapphire_shapeshift0.ObjectValidator<{
|
|
14
14
|
id: string | undefined;
|
|
15
15
|
moduleType: ModuleType | undefined;
|
|
16
16
|
onEnable: Function | undefined;
|
|
17
17
|
onReady: Function | undefined;
|
|
18
18
|
onDisable: Function | undefined;
|
|
19
|
-
},
|
|
19
|
+
}, _sapphire_shapeshift0.UndefinedToOptional<{
|
|
20
20
|
id: string | undefined;
|
|
21
21
|
moduleType: ModuleType | undefined;
|
|
22
22
|
onEnable: Function | undefined;
|
|
23
23
|
onReady: Function | undefined;
|
|
24
24
|
onDisable: Function | undefined;
|
|
25
25
|
}>>;
|
|
26
|
-
static resolvable:
|
|
26
|
+
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
27
27
|
id: string | undefined;
|
|
28
28
|
moduleType: ModuleType | undefined;
|
|
29
29
|
onEnable: Function | undefined;
|
|
30
30
|
onReady: Function | undefined;
|
|
31
31
|
onDisable: Function | undefined;
|
|
32
|
-
}> |
|
|
32
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
33
33
|
toJSON: Function;
|
|
34
34
|
}>>;
|
|
35
35
|
static isValidId(id: unknown): asserts id is string;
|
|
@@ -3,19 +3,19 @@ import { EventModule } from "../modules/events/EventModule.mjs";
|
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import { Validator } from "@reciple/core";
|
|
5
5
|
import { EventEmitter } from "node:events";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
|
|
7
7
|
|
|
8
8
|
//#region src/classes/validation/EventModuleValidator.d.ts
|
|
9
9
|
declare class EventModuleValidator extends Validator {
|
|
10
|
-
static emitter:
|
|
10
|
+
static emitter: _sapphire_shapeshift0.InstanceValidator<EventEmitter<{
|
|
11
11
|
[x: string]: any[];
|
|
12
12
|
[x: number]: any[];
|
|
13
13
|
[x: symbol]: any[];
|
|
14
14
|
}>>;
|
|
15
|
-
static event:
|
|
16
|
-
static once:
|
|
17
|
-
static onEvent:
|
|
18
|
-
static object:
|
|
15
|
+
static event: _sapphire_shapeshift0.StringValidator<string>;
|
|
16
|
+
static once: _sapphire_shapeshift0.UnionValidator<boolean | undefined>;
|
|
17
|
+
static onEvent: _sapphire_shapeshift0.InstanceValidator<Function>;
|
|
18
|
+
static object: _sapphire_shapeshift0.ObjectValidator<{
|
|
19
19
|
id: string | undefined;
|
|
20
20
|
moduleType: ModuleType | undefined;
|
|
21
21
|
onEnable: Function | undefined;
|
|
@@ -30,7 +30,7 @@ declare class EventModuleValidator extends Validator {
|
|
|
30
30
|
event: string;
|
|
31
31
|
once: boolean | undefined;
|
|
32
32
|
onEvent: Function;
|
|
33
|
-
},
|
|
33
|
+
}, _sapphire_shapeshift0.UndefinedToOptional<{
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
moduleType: ModuleType | undefined;
|
|
36
36
|
onEnable: Function | undefined;
|
|
@@ -46,9 +46,9 @@ declare class EventModuleValidator extends Validator {
|
|
|
46
46
|
once: boolean | undefined;
|
|
47
47
|
onEvent: Function;
|
|
48
48
|
}>>;
|
|
49
|
-
static resolvable:
|
|
49
|
+
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
50
50
|
toJSON: Function;
|
|
51
|
-
}> |
|
|
51
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
52
52
|
id: string | undefined;
|
|
53
53
|
moduleType: ModuleType | undefined;
|
|
54
54
|
onEnable: Function | undefined;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { PostconditionModule } from "../modules/PostconditionModule.mjs";
|
|
2
2
|
import { CommandPostconditionReason, CommandType, Validator } from "@reciple/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
|
|
4
4
|
|
|
5
5
|
//#region src/classes/validation/PostconditionModule.d.ts
|
|
6
6
|
declare class PostconditionModuleValidator extends Validator {
|
|
7
|
-
static scope:
|
|
8
|
-
static accepts:
|
|
9
|
-
static execute:
|
|
10
|
-
static object:
|
|
7
|
+
static scope: _sapphire_shapeshift0.UnionValidator<CommandType[] | undefined>;
|
|
8
|
+
static accepts: _sapphire_shapeshift0.UnionValidator<CommandPostconditionReason[] | undefined>;
|
|
9
|
+
static execute: _sapphire_shapeshift0.InstanceValidator<Function>;
|
|
10
|
+
static object: _sapphire_shapeshift0.ObjectValidator<{
|
|
11
11
|
scope: CommandType[] | undefined;
|
|
12
12
|
execute: Function;
|
|
13
|
-
},
|
|
13
|
+
}, _sapphire_shapeshift0.UndefinedToOptional<{
|
|
14
14
|
scope: CommandType[] | undefined;
|
|
15
15
|
execute: Function;
|
|
16
16
|
}>>;
|
|
17
|
-
static resolvable:
|
|
17
|
+
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
18
18
|
toJSON: Function;
|
|
19
|
-
}> |
|
|
19
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
20
20
|
scope: CommandType[] | undefined;
|
|
21
21
|
execute: Function;
|
|
22
22
|
}>>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { PreconditionModule } from "../modules/PreconditionModule.mjs";
|
|
2
2
|
import { CommandType, Validator } from "@reciple/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
|
|
4
4
|
|
|
5
5
|
//#region src/classes/validation/PreconditionModule.d.ts
|
|
6
6
|
declare class PreconditionModuleValidator extends Validator {
|
|
7
|
-
static scope:
|
|
8
|
-
static execute:
|
|
9
|
-
static object:
|
|
7
|
+
static scope: _sapphire_shapeshift0.UnionValidator<CommandType[] | undefined>;
|
|
8
|
+
static execute: _sapphire_shapeshift0.InstanceValidator<Function>;
|
|
9
|
+
static object: _sapphire_shapeshift0.ObjectValidator<{
|
|
10
10
|
scope: CommandType[] | undefined;
|
|
11
11
|
execute: Function;
|
|
12
|
-
},
|
|
12
|
+
}, _sapphire_shapeshift0.UndefinedToOptional<{
|
|
13
13
|
scope: CommandType[] | undefined;
|
|
14
14
|
execute: Function;
|
|
15
15
|
}>>;
|
|
16
|
-
static resolvable:
|
|
16
|
+
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
17
17
|
toJSON: Function;
|
|
18
|
-
}> |
|
|
18
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
19
19
|
scope: CommandType[] | undefined;
|
|
20
20
|
execute: Function;
|
|
21
21
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["import { CLI } from '../classes/cli/CLI.js';\nimport path from 'node:path';\nimport { logger } from '@prtty/print';\nimport type { PackageJson } from '@reciple/utils';\n\n/**\n * @private\n */\nexport const packageJSON = await import('../../package.json', { with: { type: 'json' } }).then(m => m.default as PackageJson);\n\nexport const cli = new CLI({\n name: packageJSON.name ?? 'reciple',\n description: packageJSON.description ?? '',\n build: packageJSON.version ?? '0.0.0',\n subcommandsDir: path.join(path.dirname(CLI.bin), './commands'),\n logger\n});\n\nexport enum ModuleType {\n Base = 1,\n Command,\n Event,\n Precondition,\n Postcondition\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,cAAc,MAAM,OAAO,sBAAsB,EAAE,MAAM,EAAE,MAAM,QAAQ,EAAE,EAAE,MAAK,MAAK,EAAE,QAAuB;AAE7H,MAAa,MAAM,IAAI,IAAI;CACvB,MAAM,YAAY,QAAQ;CAC1B,aAAa,YAAY,eAAe;CACxC,OAAO,YAAY,WAAW;CAC9B,gBAAgB,KAAK,KAAK,KAAK,QAAQ,IAAI,IAAI,EAAE,aAAa;CAC9D;CACH,CAAC;AAEF,IAAY,
|
|
1
|
+
{"version":3,"file":"constants.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["import { CLI } from '../classes/cli/CLI.js';\nimport path from 'node:path';\nimport { logger } from '@prtty/print';\nimport type { PackageJson } from '@reciple/utils';\n\n/**\n * @private\n */\nexport const packageJSON = await import('../../package.json', { with: { type: 'json' } }).then(m => m.default as PackageJson);\n\nexport const cli = new CLI({\n name: packageJSON.name ?? 'reciple',\n description: packageJSON.description ?? '',\n build: packageJSON.version ?? '0.0.0',\n subcommandsDir: path.join(path.dirname(CLI.bin), './commands'),\n logger\n});\n\nexport enum ModuleType {\n Base = 1,\n Command,\n Event,\n Precondition,\n Postcondition\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,cAAc,MAAM,OAAO,sBAAsB,EAAE,MAAM,EAAE,MAAM,QAAQ,EAAE,EAAE,MAAK,MAAK,EAAE,QAAuB;AAE7H,MAAa,MAAM,IAAI,IAAI;CACvB,MAAM,YAAY,QAAQ;CAC1B,aAAa,YAAY,eAAe;CACxC,OAAO,YAAY,WAAW;CAC9B,gBAAgB,KAAK,KAAK,KAAK,QAAQ,IAAI,IAAI,EAAE,aAAa;CAC9D;CACH,CAAC;AAEF,IAAY,aAAL;AACH;AACA;AACA;AACA;AACA;;KACH"}
|
package/dist/helpers/types.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ type AnyModule = BaseModule | AnyCommandModule | PreconditionModule | Postcondit
|
|
|
15
15
|
type AnyModuleData = BaseModule.Data | AnyCommandModuleData | PreconditionModule.Data | PostconditionModule.Data | EventModule.Data;
|
|
16
16
|
type AnyCommandModule<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule : T extends CommandType.Slash ? SlashCommandModule : T extends CommandType.ContextMenu ? ContextMenuCommandModule : MessageCommandModule | SlashCommandModule | ContextMenuCommandModule;
|
|
17
17
|
type AnyCommandModuleData<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule.Data : T extends CommandType.Slash ? SlashCommandModule.Data : T extends CommandType.ContextMenu ? ContextMenuCommandModule.Data : MessageCommandModule.Data | SlashCommandModule.Data | ContextMenuCommandModule.Data;
|
|
18
|
-
type BuildConfig = Omit<UserConfig, 'watch' | 'skipNodeModulesBundle' | 'platform' | 'format' | 'unbundle' | 'skipNodeModulesBundle' | 'noExternal' | 'cjsDefault' | 'workspace' | 'customLogger' | 'logLevel'>;
|
|
18
|
+
type BuildConfig = Omit<UserConfig, 'watch' | 'skipNodeModulesBundle' | 'platform' | 'format' | 'unbundle' | 'bundle' | 'skipNodeModulesBundle' | 'noExternal' | 'cjsDefault' | 'workspace' | 'customLogger' | 'logLevel' | 'deps'>;
|
|
19
19
|
type ShardingConfig = Omit<ShardingManagerOptions, 'shardArgs' | 'token' | 'execArgv'>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { AnyCommandBuilderMethods, AnyCommandModule, AnyCommandModuleData, AnyModule, AnyModuleData, BuildConfig, ShardingConfig };
|
package/dist/package.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "reciple",
|
|
4
|
-
version: "10.0.
|
|
4
|
+
version: "10.0.30",
|
|
5
5
|
license: "LGPL-3.0-only",
|
|
6
6
|
description: "The CLI for reciple",
|
|
7
7
|
module: "./dist/index.mjs",
|
|
@@ -45,7 +45,7 @@ var package_default = {
|
|
|
45
45
|
"@sapphire/snowflake": "^3.5.5",
|
|
46
46
|
"commander": "^14.0.3",
|
|
47
47
|
"github-slugger": "^2.0.0",
|
|
48
|
-
"globby": "^16.1.
|
|
48
|
+
"globby": "^16.1.1",
|
|
49
49
|
"jiti": "^2.6.1",
|
|
50
50
|
"micromatch": "^4.0.8",
|
|
51
51
|
"nypm": "^0.6.5",
|
|
@@ -57,8 +57,8 @@ var package_default = {
|
|
|
57
57
|
"@reciple/jsx": "workspace:^",
|
|
58
58
|
"@types/micromatch": "^4.0.10",
|
|
59
59
|
"@types/node": "catalog:",
|
|
60
|
-
"nodemon": "^3.1.
|
|
61
|
-
"rolldown": "^1.0.0-rc.
|
|
60
|
+
"nodemon": "^3.1.14",
|
|
61
|
+
"rolldown": "^1.0.0-rc.5",
|
|
62
62
|
"typescript": "catalog:"
|
|
63
63
|
},
|
|
64
64
|
peerDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reciple",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.30",
|
|
4
4
|
"license": "LGPL-3.0-only",
|
|
5
5
|
"description": "The CLI for reciple",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"@sapphire/snowflake": "^3.5.5",
|
|
45
45
|
"commander": "^14.0.3",
|
|
46
46
|
"github-slugger": "^2.0.0",
|
|
47
|
-
"globby": "^16.1.
|
|
47
|
+
"globby": "^16.1.1",
|
|
48
48
|
"jiti": "^2.6.1",
|
|
49
49
|
"micromatch": "^4.0.8",
|
|
50
50
|
"nypm": "^0.6.5",
|
|
51
51
|
"pkg-types": "^2.3.0",
|
|
52
52
|
"ts-mixer": "^6.0.4",
|
|
53
|
-
"tsdown": "^0.
|
|
53
|
+
"tsdown": "^0.21.0-beta.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@reciple/jsx": "^10.0.8",
|
|
57
57
|
"@types/micromatch": "^4.0.10",
|
|
58
|
-
"@types/node": "^25.
|
|
59
|
-
"nodemon": "^3.1.
|
|
60
|
-
"rolldown": "^1.0.0-rc.
|
|
58
|
+
"@types/node": "^25.3.1",
|
|
59
|
+
"nodemon": "^3.1.14",
|
|
60
|
+
"rolldown": "^1.0.0-rc.5",
|
|
61
61
|
"typescript": "^5.9.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|