reciple 10.0.13 → 10.0.14

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.
@@ -1,7 +1,7 @@
1
1
  import { CLISubcommand } from "../../classes/cli/CLISubcommand.mjs";
2
2
  import { CLI } from "../../classes/cli/CLI.mjs";
3
- import { ConfigReader } from "../../classes/cli/ConfigReader.mjs";
4
3
  import { RuntimeEnvironment } from "../../classes/cli/RuntimeEnvironment.mjs";
4
+ import { ConfigReader } from "../../classes/cli/ConfigReader.mjs";
5
5
  import { EventListeners } from "../../classes/client/EventListeners.mjs";
6
6
  import { ModuleLoader } from "../../classes/client/ModuleLoader.mjs";
7
7
  import { ModuleManager } from "../../classes/managers/ModuleManager.mjs";
@@ -94,7 +94,7 @@ var CLI = class {
94
94
  (function(_CLI) {
95
95
  _CLI.root = path.join(path.dirname(fileURLToPath(import.meta.url)), "../../../");
96
96
  _CLI.bin = path.join(CLI.root, "dist/bin/reciple.mjs");
97
- _CLI.version = "10.0.13";
97
+ _CLI.version = "10.0.14";
98
98
  function stringifyFlags(flags, command, ignored = []) {
99
99
  let arr = [];
100
100
  for (const [key, value] of Object.entries(flags)) {
@@ -42,6 +42,12 @@ declare class ConfigReader {
42
42
  static find(options?: ConfigReader.FindOptions): Promise<string | null>;
43
43
  }
44
44
  declare namespace ConfigReader {
45
+ interface ModuleData {
46
+ client: Client;
47
+ config?: Config;
48
+ build?: BuildConfig;
49
+ sharding?: ShardingManagerOptions;
50
+ }
45
51
  interface CreateOptions {
46
52
  path: string;
47
53
  overwrite?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { CLI } from "./CLI.mjs";
2
+ import { RuntimeEnvironment } from "./RuntimeEnvironment.mjs";
2
3
  import path from "node:path";
3
4
  import { mkdir, readFile, readdir, stat, writeFile } from "node:fs/promises";
4
5
  import { colors } from "@prtty/prtty";
@@ -29,14 +30,16 @@ var ConfigReader = class ConfigReader {
29
30
  this.filepath = filepath;
30
31
  }
31
32
  async read(options) {
32
- const module = await createJiti(path.resolve(path.dirname(this.filepath))).import(`./${path.basename(this.filepath)}`, {
33
+ let module;
34
+ if (RuntimeEnvironment.get() === "node") module = await createJiti(path.resolve(path.dirname(this.filepath))).import(`./${path.basename(this.filepath)}`, {
33
35
  default: true,
34
36
  ...options
35
37
  });
38
+ else module = await import(`file://${path.resolve(this.filepath)}`);
36
39
  if (!module || !module.client) throw new RecipleError(`exported client is not an instance of ${colors.cyan("Client")} from ${colors.green("\"@reciple/core\"")}.`);
37
40
  this._client = module.client;
38
- this._config = module.config;
39
- this._build = module.build;
41
+ this._config = module.config ?? null;
42
+ this._build = module.build ?? null;
40
43
  this._sharding = module.sharding ?? null;
41
44
  return this;
42
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigReader.mjs","names":[],"sources":["../../../src/classes/cli/ConfigReader.ts"],"sourcesContent":["import type { ModuleLoader } from '../client/ModuleLoader.js';\nimport type { ModuleManager } from '../managers/ModuleManager.js';\nimport type { EventListeners } from '../client/EventListeners.js';\nimport type { Logger } from '@prtty/print';\nimport { CLI } from './CLI.js';\nimport { Client, RecipleError, type Config } from '@reciple/core';\nimport type { BuildConfig } from '../../helpers/types.js';\nimport type { UserConfig as TsdownConfig } from 'tsdown';\nimport path from 'node:path';\nimport { mkdir, readdir, readFile, stat, writeFile } from 'node:fs/promises';\nimport { resolveTSConfig } from 'pkg-types';\nimport { colors } from '@prtty/prtty';\nimport type { ShardingManagerOptions } from 'discord.js';\nimport { createJiti, type JitiResolveOptions } from 'jiti';\n\ndeclare module \"@reciple/core\" {\n interface Config {\n token?: string;\n modules?: ModuleLoader.Config;\n logger?: Logger|Logger.Options;\n }\n\n interface Client {\n readonly modules: ModuleManager;\n readonly moduleLoader: ModuleLoader;\n readonly eventListeners: EventListeners;\n readonly cli: CLI;\n logger: Logger;\n }\n}\n\nexport class ConfigReader {\n private _client: Client|null = null;\n private _config: Config|null = null;\n private _build: BuildConfig|null = null;\n private _sharding: ShardingManagerOptions|null = null;\n\n get client() {\n if (!this._client) throw new RecipleError('client is not yet loaded from config.');\n return this._client;\n }\n\n get config() {\n return this._config ?? {};\n }\n\n get build() {\n return ConfigReader.normalizeTsdownConfig({\n overrides: this._build ?? {}\n });\n }\n\n get sharding() {\n return this._sharding;\n }\n\n constructor(public readonly filepath: string) {}\n\n public async read(options?: JitiResolveOptions): Promise<ConfigReader> {\n const jiti = createJiti(path.resolve(path.dirname(this.filepath)));\n const module = await jiti.import<any>(`./${path.basename(this.filepath)}`, {\n default: true,\n ...options\n });\n\n if (!module || !module.client) {\n throw new RecipleError(`exported client is not an instance of ${colors.cyan('Client')} from ${colors.green('\"@reciple/core\"')}.`);\n }\n\n this._client = module.client;\n this._config = module.config;\n this._build = module.build;\n this._sharding = module.sharding ?? null;\n\n return this;\n }\n\n public async create(options: Omit<ConfigReader.CreateOptions, 'path'>): Promise<ConfigReader> {\n const exists = await ConfigReader.exists(this.filepath);\n\n if (exists && options.throwIfExists === true) {\n throw new RecipleError(`Config file already exists at ${colors.green(path.relative(process.cwd(), this.filepath))}.`);\n }\n\n if (!exists || exists && options.overwrite !== false) {\n await mkdir(path.dirname(this.filepath), { recursive: true });\n await writeFile(this.filepath, await ConfigReader.getDefaultContent(options.type));\n }\n\n return options.readOptions !== false ? this.read(options.readOptions) : this;\n }\n\n public static async exists(file: string): Promise<boolean> {\n return await stat(file).then(s => s.isFile()).catch(() => false);\n }\n\n public static async create(options: ConfigReader.CreateOptions): Promise<ConfigReader> {\n return new ConfigReader(options.path).create(options);\n }\n\n public static async find(options?: ConfigReader.FindOptions): Promise<string|null> {\n const filenames = ConfigReader.configFilenames.filter(f => !options?.lang || f.endsWith(options.lang));\n const directories = options?.directories ?? ['.', '.config'];\n\n for (const directory of directories) {\n const stats = await stat(directory).catch(() => undefined);\n\n if (!stats?.isDirectory()) continue;\n\n const file = (await readdir(directory)).find(f => filenames.includes(f));\n if (file) return path.join(directory, file);\n }\n\n return null;\n }\n}\n\nexport namespace ConfigReader {\n export interface CreateOptions {\n path: string;\n overwrite?: boolean;\n throwIfExists?: boolean;\n type: LangType;\n readOptions?: JitiResolveOptions|false;\n }\n\n export interface FindOptions {\n lang?: LangType;\n directories?: string[];\n }\n\n export async function getProjectLang(cwd: string): Promise<LangType> {\n const hasTsConfig = !!await resolveTSConfig(cwd, { try: true });\n const configLangIsTypescript = !!(await ConfigReader.find({\n directories: [cwd, path.join(cwd, '.config')],\n lang: 'ts'\n }));\n\n return hasTsConfig || configLangIsTypescript ? 'ts' : 'js';\n }\n\n export type LangType = 'ts'|'js';\n\n export const defaultConfigPath = {\n ts: path.join(CLI.root, 'assets/config', `reciple.config.ts`),\n js: path.join(CLI.root, 'assets/config', `reciple.config.js`)\n };\n\n export async function getDefaultContent(type: LangType): Promise<string> {\n const filepath = ConfigReader.defaultConfigPath[type];\n const content = await readFile(filepath, 'utf-8');\n return content;\n }\n\n export const configFilenames = [\n 'reciple.config.ts',\n 'reciple.config.mts',\n 'reciple.config.js',\n 'reciple.config.mjs'\n ];\n\n export function createConfigFilename(type: LangType, esm: boolean = false): string {\n return `reciple.config.${esm ? 'm' : ''}${type}`;\n }\n\n export function normalizeTsdownConfig({ type, overrides }: { type?: LangType; overrides?: BuildConfig; } = {}): TsdownConfig {\n return {\n entry: [`./src/**/*.{ts,tsx,js,jsx}`],\n outDir: './modules',\n tsconfig: `./${type ?? 'ts'}config.json`,\n external: [],\n noExternal: [],\n sourcemap: true,\n treeshake: true,\n clean: true,\n ...overrides,\n watch: false,\n platform: 'node',\n format: 'esm',\n unbundle: true,\n skipNodeModulesBundle: true\n };\n }\n}\n"],"mappings":";;;;;;;;;AA+BA,IAAa,eAAb,MAAa,aAAa;CACtB,AAAQ,UAAuB;CAC/B,AAAQ,UAAuB;CAC/B,AAAQ,SAA2B;CACnC,AAAQ,YAAyC;CAEjD,IAAI,SAAS;AACT,MAAI,CAAC,KAAK,QAAS,OAAM,IAAI,aAAa,wCAAwC;AAClF,SAAO,KAAK;;CAGhB,I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UAAU,KAAK,QAAQ,KAAK;GAC5B,UAAU,EAAE;GACZ,YAAY,EAAE;GACd,WAAW;GACX,WAAW;GACX,OAAO;GACP,GAAG;GACH,OAAO;GACP,UAAU;GACV,QAAQ;GACR,UAAU;GACV,uBAAuB;GAC1B"}
1
+ {"version":3,"file":"ConfigReader.mjs","names":[],"sources":["../../../src/classes/cli/ConfigReader.ts"],"sourcesContent":["import type { ModuleLoader } from '../client/ModuleLoader.js';\nimport type { ModuleManager } from '../managers/ModuleManager.js';\nimport type { EventListeners } from '../client/EventListeners.js';\nimport type { Logger } from '@prtty/print';\nimport { CLI } from './CLI.js';\nimport { Client, RecipleError, type Config } from '@reciple/core';\nimport type { BuildConfig } from '../../helpers/types.js';\nimport type { UserConfig as TsdownConfig } from 'tsdown';\nimport path from 'node:path';\nimport { mkdir, readdir, readFile, stat, writeFile } from 'node:fs/promises';\nimport { resolveTSConfig } from 'pkg-types';\nimport { colors } from '@prtty/prtty';\nimport type { ShardingManagerOptions } from 'discord.js';\nimport { createJiti, type JitiResolveOptions } from 'jiti';\nimport { RuntimeEnvironment } from './RuntimeEnvironment.js';\n\ndeclare module \"@reciple/core\" {\n interface Config {\n token?: string;\n modules?: ModuleLoader.Config;\n logger?: Logger|Logger.Options;\n }\n\n interface Client {\n readonly modules: ModuleManager;\n readonly moduleLoader: ModuleLoader;\n readonly eventListeners: EventListeners;\n readonly cli: CLI;\n logger: Logger;\n }\n}\n\nexport class ConfigReader {\n private _client: Client|null = null;\n private _config: Config|null = null;\n private _build: BuildConfig|null = null;\n private _sharding: ShardingManagerOptions|null = null;\n\n get client() {\n if (!this._client) throw new RecipleError('client is not yet loaded from config.');\n return this._client;\n }\n\n get config() {\n return this._config ?? {};\n }\n\n get build() {\n return ConfigReader.normalizeTsdownConfig({\n overrides: this._build ?? {}\n });\n }\n\n get sharding() {\n return this._sharding;\n }\n\n constructor(public readonly filepath: string) {}\n\n public async read(options?: JitiResolveOptions): Promise<ConfigReader> {\n let module: ConfigReader.ModuleData;\n\n if (RuntimeEnvironment.get() === 'node') {\n const jiti = createJiti(path.resolve(path.dirname(this.filepath)));\n module = await jiti.import<ConfigReader.ModuleData>(`./${path.basename(this.filepath)}`, {\n default: true,\n ...options\n });\n } else {\n module = await import(`file://${path.resolve(this.filepath)}`);\n }\n\n if (!module || !module.client) {\n throw new RecipleError(`exported client is not an instance of ${colors.cyan('Client')} from ${colors.green('\"@reciple/core\"')}.`);\n }\n\n this._client = module.client;\n this._config = module.config ?? null;\n this._build = module.build ?? null;\n this._sharding = module.sharding ?? null;\n\n return this;\n }\n\n public async create(options: Omit<ConfigReader.CreateOptions, 'path'>): Promise<ConfigReader> {\n const exists = await ConfigReader.exists(this.filepath);\n\n if (exists && options.throwIfExists === true) {\n throw new RecipleError(`Config file already exists at ${colors.green(path.relative(process.cwd(), this.filepath))}.`);\n }\n\n if (!exists || exists && options.overwrite !== false) {\n await mkdir(path.dirname(this.filepath), { recursive: true });\n await writeFile(this.filepath, await ConfigReader.getDefaultContent(options.type));\n }\n\n return options.readOptions !== false ? this.read(options.readOptions) : this;\n }\n\n public static async exists(file: string): Promise<boolean> {\n return await stat(file).then(s => s.isFile()).catch(() => false);\n }\n\n public static async create(options: ConfigReader.CreateOptions): Promise<ConfigReader> {\n return new ConfigReader(options.path).create(options);\n }\n\n public static async find(options?: ConfigReader.FindOptions): Promise<string|null> {\n const filenames = ConfigReader.configFilenames.filter(f => !options?.lang || f.endsWith(options.lang));\n const directories = options?.directories ?? ['.', '.config'];\n\n for (const directory of directories) {\n const stats = await stat(directory).catch(() => undefined);\n\n if (!stats?.isDirectory()) continue;\n\n const file = (await readdir(directory)).find(f => filenames.includes(f));\n if (file) return path.join(directory, file);\n }\n\n return null;\n }\n}\n\nexport namespace ConfigReader {\n export interface ModuleData {\n client: Client;\n config?: Config;\n build?: BuildConfig;\n sharding?: ShardingManagerOptions;\n }\n\n export interface CreateOptions {\n path: string;\n overwrite?: boolean;\n throwIfExists?: boolean;\n type: LangType;\n readOptions?: JitiResolveOptions|false;\n }\n\n export interface FindOptions {\n lang?: LangType;\n directories?: string[];\n }\n\n export async function getProjectLang(cwd: string): Promise<LangType> {\n const hasTsConfig = !!await resolveTSConfig(cwd, { try: true });\n const configLangIsTypescript = !!(await ConfigReader.find({\n directories: [cwd, path.join(cwd, '.config')],\n lang: 'ts'\n }));\n\n return hasTsConfig || configLangIsTypescript ? 'ts' : 'js';\n }\n\n export type LangType = 'ts'|'js';\n\n export const defaultConfigPath = {\n ts: path.join(CLI.root, 'assets/config', `reciple.config.ts`),\n js: path.join(CLI.root, 'assets/config', `reciple.config.js`)\n };\n\n export async function getDefaultContent(type: LangType): Promise<string> {\n const filepath = ConfigReader.defaultConfigPath[type];\n const content = await readFile(filepath, 'utf-8');\n return content;\n }\n\n export const configFilenames = [\n 'reciple.config.ts',\n 'reciple.config.mts',\n 'reciple.config.js',\n 'reciple.config.mjs'\n ];\n\n export function createConfigFilename(type: LangType, esm: boolean = false): string {\n return `reciple.config.${esm ? 'm' : ''}${type}`;\n }\n\n export function normalizeTsdownConfig({ type, overrides }: { type?: LangType; overrides?: BuildConfig; } = {}): TsdownConfig {\n return {\n entry: [`./src/**/*.{ts,tsx,js,jsx}`],\n outDir: './modules',\n tsconfig: `./${type ?? 'ts'}config.json`,\n external: [],\n noExternal: [],\n sourcemap: true,\n treeshake: true,\n clean: true,\n ...overrides,\n watch: false,\n platform: 'node',\n format: 'esm',\n unbundle: true,\n skipNodeModulesBundle: true\n };\n }\n}\n"],"mappings":";;;;;;;;;;AAgCA,IAAa,eAAb,MAAa,aAAa;CACtB,AAAQ,UAAuB;CAC/B,AAAQ,UAAuB;CAC/B,AAAQ,SAA2B;CACnC,AAAQ,YAAyC;CAEjD,IAAI,SAAS;AACT,MAAI,CAAC,KAAK,QAAS,OAAM,IAAI,aAAa,wCAAwC;AAClF,SAAO,KAAK;;CAGhB,IAAI,SAAS;AACT,SAAO,KAAK,WAAW,EAAE;;CAG7B,IAAI,QAAQ;AACR,SAA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ACH,OAAO,CAAC,6BAA6B;GACrC,QAAQ;GACR,UAAU,KAAK,QAAQ,KAAK;GAC5B,UAAU,EAAE;GACZ,YAAY,EAAE;GACd,WAAW;GACX,WAAW;GACX,OAAO;GACP,GAAG;GACH,OAAO;GACP,UAAU;GACV,QAAQ;GACR,UAAU;GACV,uBAAuB;GAC1B"}
@@ -6,7 +6,7 @@ let RuntimeEnvironment;
6
6
  (function(_RuntimeEnvironment) {
7
7
  let stopping = _RuntimeEnvironment.stopping = false;
8
8
  function get() {
9
- if ("isBun" in process && process.isBun) return "bun";
9
+ if ("isBun" in process && process.isBun && process.versions.bun) return "bun";
10
10
  if ("deno" in process.versions && process.versions.deno) return "deno";
11
11
  if (process.versions.node) return "node";
12
12
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeEnvironment.mjs","names":[],"sources":["../../../src/classes/cli/RuntimeEnvironment.ts"],"sourcesContent":["import { colors } from '@prtty/prtty';\nimport type { Client } from '@reciple/core';\nimport { setTimeout } from 'node:timers/promises';\n\nexport namespace RuntimeEnvironment {\n export let stopping = false;\n\n export type Type = 'node'|'deno'|'bun';\n\n export function get(): Type|null {\n if ('isBun' in process && process.isBun) return 'bun';\n if ('deno' in process.versions && process.versions.deno) return 'deno';\n if (process.versions.node) return 'node';\n\n return null;\n }\n\n export async function sleep(time: number): Promise<void> {\n return setTimeout(time);\n }\n\n export async function handleExitSignal(client: Client, signal: NodeJS.Signals) {\n if (stopping) return;\n\n stopping = true;\n\n client.logger?.warn(`Received exit signal: ${signal}`);\n\n await client.destroy();\n client.eventListeners.unregisterAll();\n\n const signalString = signal === 'SIGINT' ? 'keyboard interrupt' : signal === 'SIGTERM' ? 'terminate' : String(signal);\n\n await sleep(10);\n\n client.logger?.warn(`Process exited: ${colors.yellow(signalString)}`);\n client.logger?.closeFileWriteStream();\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;CAKW,IAAI,0CAAW;CAIf,SAAS,MAAiB;AAC7B,MAAI,WAAW,WAAW,QAAQ,MAAO,QAAO;AAChD,MAAI,UAAU,QAAQ,YAAY,QAAQ,SAAS,KAAM,QAAO;AAChE,MAAI,QAAQ,SAAS,KAAM,QAAO;AAElC,SAAO;;;CAGJ,eAAe,MAAM,MAA6B;AACrD,SAAO,WAAW,KAAK;;;CAGpB,eAAe,iBAAiB,QAAgB,QAAwB;AAC3E,MAAI,SAAU;AAEd,aAAW;AAEX,SAAO,QAAQ,KAAK,yBAAyB,SAAS;AAEtD,QAAM,OAAO,SAAS;AACtB,SAAO,eAAe,eAAe;EAErC,MAAM,eAAe,WAAW,WAAW,uBAAuB,WAAW,YAAY,cAAc,OAAO,OAAO;AAErH,QAAM,MAAM,GAAG;AAEf,SAAO,QAAQ,KAAK,mBAAmB,OAAO,OAAO,aAAa,GAAG;AACrE,SAAO,QAAQ,sBAAsB;AACrC,UAAQ,KAAK,EAAE"}
1
+ {"version":3,"file":"RuntimeEnvironment.mjs","names":[],"sources":["../../../src/classes/cli/RuntimeEnvironment.ts"],"sourcesContent":["import { colors } from '@prtty/prtty';\nimport type { Client } from '@reciple/core';\nimport { setTimeout } from 'node:timers/promises';\n\nexport namespace RuntimeEnvironment {\n export let stopping = false;\n\n export type Type = 'node'|'deno'|'bun';\n\n export function get(): Type|null {\n if ('isBun' in process && process.isBun && process.versions.bun) return 'bun';\n if ('deno' in process.versions && process.versions.deno) return 'deno';\n if (process.versions.node) return 'node';\n\n return null;\n }\n\n export async function sleep(time: number): Promise<void> {\n return setTimeout(time);\n }\n\n export async function handleExitSignal(client: Client, signal: NodeJS.Signals) {\n if (stopping) return;\n\n stopping = true;\n\n client.logger?.warn(`Received exit signal: ${signal}`);\n\n await client.destroy();\n client.eventListeners.unregisterAll();\n\n const signalString = signal === 'SIGINT' ? 'keyboard interrupt' : signal === 'SIGTERM' ? 'terminate' : String(signal);\n\n await sleep(10);\n\n client.logger?.warn(`Process exited: ${colors.yellow(signalString)}`);\n client.logger?.closeFileWriteStream();\n process.exit(0);\n }\n}\n"],"mappings":";;;;;;CAKW,IAAI,0CAAW;CAIf,SAAS,MAAiB;AAC7B,MAAI,WAAW,WAAW,QAAQ,SAAS,QAAQ,SAAS,IAAK,QAAO;AACxE,MAAI,UAAU,QAAQ,YAAY,QAAQ,SAAS,KAAM,QAAO;AAChE,MAAI,QAAQ,SAAS,KAAM,QAAO;AAElC,SAAO;;;CAGJ,eAAe,MAAM,MAA6B;AACrD,SAAO,WAAW,KAAK;;;CAGpB,eAAe,iBAAiB,QAAgB,QAAwB;AAC3E,MAAI,SAAU;AAEd,aAAW;AAEX,SAAO,QAAQ,KAAK,yBAAyB,SAAS;AAEtD,QAAM,OAAO,SAAS;AACtB,SAAO,eAAe,eAAe;EAErC,MAAM,eAAe,WAAW,WAAW,uBAAuB,WAAW,YAAY,cAAc,OAAO,OAAO;AAErH,QAAM,MAAM,GAAG;AAEf,SAAO,QAAQ,KAAK,mBAAmB,OAAO,OAAO,aAAa,GAAG;AACrE,SAAO,QAAQ,sBAAsB;AACrC,UAAQ,KAAK,EAAE"}
@@ -1,36 +1,36 @@
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 _sapphire_shapeshift25 from "@sapphire/shapeshift";
4
+ import * as _sapphire_shapeshift6 from "@sapphire/shapeshift";
5
5
 
6
6
  //#region src/classes/validation/BaseModuleValidator.d.ts
7
7
  declare class BaseModuleValidator extends Validator {
8
- static id: _sapphire_shapeshift25.StringValidator<string>;
9
- static moduleType: _sapphire_shapeshift25.NativeEnumValidator<typeof ModuleType>;
10
- static onEnable: _sapphire_shapeshift25.UnionValidator<Function | undefined>;
11
- static onReady: _sapphire_shapeshift25.UnionValidator<Function | undefined>;
12
- static onDisable: _sapphire_shapeshift25.UnionValidator<Function | undefined>;
13
- static object: _sapphire_shapeshift25.ObjectValidator<{
8
+ static id: _sapphire_shapeshift6.StringValidator<string>;
9
+ static moduleType: _sapphire_shapeshift6.NativeEnumValidator<typeof ModuleType>;
10
+ static onEnable: _sapphire_shapeshift6.UnionValidator<Function | undefined>;
11
+ static onReady: _sapphire_shapeshift6.UnionValidator<Function | undefined>;
12
+ static onDisable: _sapphire_shapeshift6.UnionValidator<Function | undefined>;
13
+ static object: _sapphire_shapeshift6.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
- }, _sapphire_shapeshift25.UndefinedToOptional<{
19
+ }, _sapphire_shapeshift6.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: _sapphire_shapeshift25.UnionValidator<_sapphire_shapeshift25.UndefinedToOptional<{
26
+ static resolvable: _sapphire_shapeshift6.UnionValidator<_sapphire_shapeshift6.UndefinedToOptional<{
27
+ toJSON: Function;
28
+ }> | _sapphire_shapeshift6.UndefinedToOptional<{
27
29
  id: string | undefined;
28
30
  moduleType: ModuleType | undefined;
29
31
  onEnable: Function | undefined;
30
32
  onReady: Function | undefined;
31
33
  onDisable: Function | undefined;
32
- }> | _sapphire_shapeshift25.UndefinedToOptional<{
33
- toJSON: Function;
34
34
  }>>;
35
35
  static isValidId(id: unknown): asserts id is string;
36
36
  static isValidModuleType(moduleType: unknown): asserts moduleType is ModuleType;
@@ -3,11 +3,11 @@ import { AnyCommandModuleData } from "../../helpers/types.mjs";
3
3
  import "../../index.mjs";
4
4
  import * as _reciple_core0 from "@reciple/core";
5
5
  import { Validator } from "@reciple/core";
6
- import * as _sapphire_shapeshift8 from "@sapphire/shapeshift";
6
+ import * as _sapphire_shapeshift24 from "@sapphire/shapeshift";
7
7
 
8
8
  //#region src/classes/validation/CommandModuleValidator.d.ts
9
9
  declare class CommandModuleValidator extends Validator {
10
- static object: _sapphire_shapeshift8.ObjectValidator<{
10
+ static object: _sapphire_shapeshift24.ObjectValidator<{
11
11
  id: string | undefined;
12
12
  moduleType: ModuleType | undefined;
13
13
  onEnable: Function | undefined;
@@ -16,23 +16,23 @@ declare class CommandModuleValidator extends Validator {
16
16
  } & {
17
17
  id: string;
18
18
  type: _reciple_core0.CommandType;
19
- data: _sapphire_shapeshift8.UndefinedToOptional<{
19
+ data: _sapphire_shapeshift24.UndefinedToOptional<{
20
20
  name: any;
21
21
  description: any;
22
22
  aliases: any;
23
23
  options: any;
24
24
  flags: any;
25
- }> | _sapphire_shapeshift8.UndefinedToOptional<{
25
+ }> | _sapphire_shapeshift24.UndefinedToOptional<{
26
26
  type: any;
27
27
  name: any;
28
28
  }>;
29
29
  cooldown: number | undefined;
30
- preconditions: _sapphire_shapeshift8.UndefinedToOptional<{
30
+ preconditions: _sapphire_shapeshift24.UndefinedToOptional<{
31
31
  id: any;
32
32
  scope: any;
33
33
  execute: any;
34
34
  }>[] | undefined;
35
- postconditions: _sapphire_shapeshift8.UndefinedToOptional<{
35
+ postconditions: _sapphire_shapeshift24.UndefinedToOptional<{
36
36
  id: any;
37
37
  scope: any;
38
38
  execute: any;
@@ -40,7 +40,7 @@ declare class CommandModuleValidator extends Validator {
40
40
  disabledPreconditions: string[] | undefined;
41
41
  disabledPostconditions: string[] | undefined;
42
42
  execute: Function;
43
- }, _sapphire_shapeshift8.UndefinedToOptional<{
43
+ }, _sapphire_shapeshift24.UndefinedToOptional<{
44
44
  id: string | undefined;
45
45
  moduleType: ModuleType | undefined;
46
46
  onEnable: Function | undefined;
@@ -49,23 +49,23 @@ declare class CommandModuleValidator extends Validator {
49
49
  } & {
50
50
  id: string;
51
51
  type: _reciple_core0.CommandType;
52
- data: _sapphire_shapeshift8.UndefinedToOptional<{
52
+ data: _sapphire_shapeshift24.UndefinedToOptional<{
53
53
  name: any;
54
54
  description: any;
55
55
  aliases: any;
56
56
  options: any;
57
57
  flags: any;
58
- }> | _sapphire_shapeshift8.UndefinedToOptional<{
58
+ }> | _sapphire_shapeshift24.UndefinedToOptional<{
59
59
  type: any;
60
60
  name: any;
61
61
  }>;
62
62
  cooldown: number | undefined;
63
- preconditions: _sapphire_shapeshift8.UndefinedToOptional<{
63
+ preconditions: _sapphire_shapeshift24.UndefinedToOptional<{
64
64
  id: any;
65
65
  scope: any;
66
66
  execute: any;
67
67
  }>[] | undefined;
68
- postconditions: _sapphire_shapeshift8.UndefinedToOptional<{
68
+ postconditions: _sapphire_shapeshift24.UndefinedToOptional<{
69
69
  id: any;
70
70
  scope: any;
71
71
  execute: any;
@@ -74,9 +74,9 @@ declare class CommandModuleValidator extends Validator {
74
74
  disabledPostconditions: string[] | undefined;
75
75
  execute: Function;
76
76
  }>>;
77
- static resolvable: _sapphire_shapeshift8.UnionValidator<_sapphire_shapeshift8.UndefinedToOptional<{
77
+ static resolvable: _sapphire_shapeshift24.UnionValidator<_sapphire_shapeshift24.UndefinedToOptional<{
78
78
  toJSON: Function;
79
- }> | _sapphire_shapeshift8.UndefinedToOptional<{
79
+ }> | _sapphire_shapeshift24.UndefinedToOptional<{
80
80
  id: string | undefined;
81
81
  moduleType: ModuleType | undefined;
82
82
  onEnable: Function | undefined;
@@ -85,23 +85,23 @@ declare class CommandModuleValidator extends Validator {
85
85
  } & {
86
86
  id: string;
87
87
  type: _reciple_core0.CommandType;
88
- data: _sapphire_shapeshift8.UndefinedToOptional<{
88
+ data: _sapphire_shapeshift24.UndefinedToOptional<{
89
89
  name: any;
90
90
  description: any;
91
91
  aliases: any;
92
92
  options: any;
93
93
  flags: any;
94
- }> | _sapphire_shapeshift8.UndefinedToOptional<{
94
+ }> | _sapphire_shapeshift24.UndefinedToOptional<{
95
95
  type: any;
96
96
  name: any;
97
97
  }>;
98
98
  cooldown: number | undefined;
99
- preconditions: _sapphire_shapeshift8.UndefinedToOptional<{
99
+ preconditions: _sapphire_shapeshift24.UndefinedToOptional<{
100
100
  id: any;
101
101
  scope: any;
102
102
  execute: any;
103
103
  }>[] | undefined;
104
- postconditions: _sapphire_shapeshift8.UndefinedToOptional<{
104
+ postconditions: _sapphire_shapeshift24.UndefinedToOptional<{
105
105
  id: any;
106
106
  scope: any;
107
107
  execute: any;
@@ -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 _sapphire_shapeshift0 from "@sapphire/shapeshift";
6
+ import * as _sapphire_shapeshift41 from "@sapphire/shapeshift";
7
7
 
8
8
  //#region src/classes/validation/EventModuleValidator.d.ts
9
9
  declare class EventModuleValidator extends Validator {
10
- static emitter: _sapphire_shapeshift0.InstanceValidator<EventEmitter<{
10
+ static emitter: _sapphire_shapeshift41.InstanceValidator<EventEmitter<{
11
11
  [x: string]: any[];
12
12
  [x: number]: any[];
13
13
  [x: symbol]: any[];
14
14
  }>>;
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<{
15
+ static event: _sapphire_shapeshift41.StringValidator<string>;
16
+ static once: _sapphire_shapeshift41.UnionValidator<boolean | undefined>;
17
+ static onEvent: _sapphire_shapeshift41.InstanceValidator<Function>;
18
+ static object: _sapphire_shapeshift41.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
- }, _sapphire_shapeshift0.UndefinedToOptional<{
33
+ }, _sapphire_shapeshift41.UndefinedToOptional<{
34
34
  id: string | undefined;
35
35
  moduleType: ModuleType | undefined;
36
36
  onEnable: Function | undefined;
@@ -46,7 +46,9 @@ declare class EventModuleValidator extends Validator {
46
46
  once: boolean | undefined;
47
47
  onEvent: Function;
48
48
  }>>;
49
- static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
49
+ static resolvable: _sapphire_shapeshift41.UnionValidator<_sapphire_shapeshift41.UndefinedToOptional<{
50
+ toJSON: Function;
51
+ }> | _sapphire_shapeshift41.UndefinedToOptional<{
50
52
  id: string | undefined;
51
53
  moduleType: ModuleType | undefined;
52
54
  onEnable: Function | undefined;
@@ -61,8 +63,6 @@ declare class EventModuleValidator extends Validator {
61
63
  event: string;
62
64
  once: boolean | undefined;
63
65
  onEvent: Function;
64
- }> | _sapphire_shapeshift0.UndefinedToOptional<{
65
- toJSON: Function;
66
66
  }>>;
67
67
  static isValidEmitter(emitter: unknown): asserts emitter is EventEmitter;
68
68
  static isValidEvent(event: unknown): asserts event is string;
@@ -1,22 +1,22 @@
1
1
  import { PostconditionModule } from "../modules/PostconditionModule.mjs";
2
2
  import { CommandPostconditionReason, CommandType, Validator } from "@reciple/core";
3
- import * as _sapphire_shapeshift35 from "@sapphire/shapeshift";
3
+ import * as _sapphire_shapeshift16 from "@sapphire/shapeshift";
4
4
 
5
5
  //#region src/classes/validation/PostconditionModule.d.ts
6
6
  declare class PostconditionModuleValidator extends Validator {
7
- static scope: _sapphire_shapeshift35.UnionValidator<CommandType[] | undefined>;
8
- static accepts: _sapphire_shapeshift35.UnionValidator<CommandPostconditionReason[] | undefined>;
9
- static execute: _sapphire_shapeshift35.InstanceValidator<Function>;
10
- static object: _sapphire_shapeshift35.ObjectValidator<{
7
+ static scope: _sapphire_shapeshift16.UnionValidator<CommandType[] | undefined>;
8
+ static accepts: _sapphire_shapeshift16.UnionValidator<CommandPostconditionReason[] | undefined>;
9
+ static execute: _sapphire_shapeshift16.InstanceValidator<Function>;
10
+ static object: _sapphire_shapeshift16.ObjectValidator<{
11
11
  scope: CommandType[] | undefined;
12
12
  execute: Function;
13
- }, _sapphire_shapeshift35.UndefinedToOptional<{
13
+ }, _sapphire_shapeshift16.UndefinedToOptional<{
14
14
  scope: CommandType[] | undefined;
15
15
  execute: Function;
16
16
  }>>;
17
- static resolvable: _sapphire_shapeshift35.UnionValidator<_sapphire_shapeshift35.UndefinedToOptional<{
17
+ static resolvable: _sapphire_shapeshift16.UnionValidator<_sapphire_shapeshift16.UndefinedToOptional<{
18
18
  toJSON: Function;
19
- }> | _sapphire_shapeshift35.UndefinedToOptional<{
19
+ }> | _sapphire_shapeshift16.UndefinedToOptional<{
20
20
  scope: CommandType[] | undefined;
21
21
  execute: Function;
22
22
  }>>;
@@ -1,23 +1,23 @@
1
1
  import { PreconditionModule } from "../modules/PreconditionModule.mjs";
2
2
  import { CommandType, Validator } from "@reciple/core";
3
- import * as _sapphire_shapeshift43 from "@sapphire/shapeshift";
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: _sapphire_shapeshift43.UnionValidator<CommandType[] | undefined>;
8
- static execute: _sapphire_shapeshift43.InstanceValidator<Function>;
9
- static object: _sapphire_shapeshift43.ObjectValidator<{
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
- }, _sapphire_shapeshift43.UndefinedToOptional<{
12
+ }, _sapphire_shapeshift0.UndefinedToOptional<{
13
13
  scope: CommandType[] | undefined;
14
14
  execute: Function;
15
15
  }>>;
16
- static resolvable: _sapphire_shapeshift43.UnionValidator<_sapphire_shapeshift43.UndefinedToOptional<{
17
- toJSON: Function;
18
- }> | _sapphire_shapeshift43.UndefinedToOptional<{
16
+ static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
19
17
  scope: CommandType[] | undefined;
20
18
  execute: Function;
19
+ }> | _sapphire_shapeshift0.UndefinedToOptional<{
20
+ toJSON: Function;
21
21
  }>>;
22
22
  static isValidScope(scope: unknown): asserts scope is CommandType[];
23
23
  static isValidExecute(execute: unknown): asserts execute is (...args: unknown[]) => Promise<void>;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { NotAnError } from "./classes/NotAnError.mjs";
2
2
  import { CLISubcommand } from "./classes/cli/CLISubcommand.mjs";
3
3
  import { CLI } from "./classes/cli/CLI.mjs";
4
- import { ConfigReader } from "./classes/cli/ConfigReader.mjs";
5
4
  import { RuntimeEnvironment } from "./classes/cli/RuntimeEnvironment.mjs";
5
+ import { ConfigReader } from "./classes/cli/ConfigReader.mjs";
6
6
  import { BaseModule } from "./classes/modules/BaseModule.mjs";
7
7
  import { EventListeners } from "./classes/client/EventListeners.mjs";
8
8
  import { ModuleType, cli, packageJSON } from "./helpers/constants.mjs";
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.13",
4
+ version: "10.0.14",
5
5
  license: "LGPL-3.0-only",
6
6
  description: "The CLI for reciple",
7
7
  module: "./dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "10.0.13",
3
+ "version": "10.0.14",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "The CLI for reciple",
6
6
  "module": "./dist/index.mjs",