commandkit 1.0.0-dev.20250531015840 → 1.0.0-dev.20250531124649
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/dist/{CommandKit-DDSUNOAe.d.ts → CommandKit-BYtbVkJL.d.ts} +3 -3
- package/dist/CommandKit.d.ts +1 -1
- package/dist/{EventWorkerContext-CjU5wt-a.d.ts → EventWorkerContext-9CTBICvs.d.ts} +2 -2
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/events/EventWorkerContext.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/index.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/build.d.ts +1 -1
- package/dist/cli/common.d.ts +5 -5
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/production.d.ts +2 -2
- package/dist/config/config.d.ts +4 -4
- package/dist/config/default.d.ts +3 -3
- package/dist/config/loader.d.ts +3 -3
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +3 -3
- package/dist/{config-LPxTebft.d.ts → config-_NXT68BU.d.ts} +3 -3
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/environment.d.ts +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/store.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/{init-_e3eZTUb.d.ts → init-C62l0PVB.d.ts} +3 -3
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/{types-w2bWHUve.d.ts → types-BI6_e27D.d.ts} +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -2
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/{utils-Dprjd7Oz.d.ts → utils-CLd34EFf.d.ts} +2 -2
- package/dist/{version-B5w1vmxV.js → version-DG7huXRq.js} +2 -2
- package/dist/{version-B5w1vmxV.js.map → version-DG7huXRq.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import { MessageCommandOptions, MessageCommandParser } from "./MessageCommandPar
|
|
|
4
4
|
import { Command, CommandsRouter, Middleware } from "./CommandsRouter-C7X-eXE2.js";
|
|
5
5
|
import { EventsRouter, ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
6
6
|
import { HMREventType } from "./constants-Ce6w4OFe.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as discord_js1 from "discord.js";
|
|
8
8
|
import { AutocompleteInteraction, Awaitable, CacheType, ChatInputCommandInteraction, Client, ClientEvents, Collection, ContextMenuCommandBuilder, ContextMenuCommandInteraction, Guild, Interaction, Locale, Message, MessageContextMenuCommandInteraction, RESTPostAPIApplicationCommandsJSONBody, SlashCommandBuilder, TextBasedChannel, UserContextMenuCommandInteraction } from "discord.js";
|
|
9
9
|
import EventEmitter from "node:events";
|
|
10
10
|
import { DirectiveTransformerOptions } from "directive-to-hof";
|
|
@@ -902,7 +902,7 @@ declare class CommandKit extends EventEmitter {
|
|
|
902
902
|
/**
|
|
903
903
|
* Get the client attached to this CommandKit instance.
|
|
904
904
|
*/
|
|
905
|
-
get client():
|
|
905
|
+
get client(): discord_js1.Client<boolean>;
|
|
906
906
|
/**
|
|
907
907
|
* Updates application commands with the latest from "commandsPath".
|
|
908
908
|
*/
|
|
@@ -930,4 +930,4 @@ declare class CommandKit extends EventEmitter {
|
|
|
930
930
|
}
|
|
931
931
|
//#endregion
|
|
932
932
|
export { AnyCommandExecute, AppCommandHandler, AppCommandRunner, AppEventsHandler, AppEventsHandlerLoadedData, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitEventsChannel, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, EventListener, FeatureFlag, FeatureFlagDefinition, FlagRunner, FlagStore, GenericFunction, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, ListenerFunction, LoadedCommand, LoadedEvent, MaybeFalsey, MaybePromise, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PluginCommon, PluginOptions, PluginTransformParameters, PluginType, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, RuntimePlugin, SlashCommandMiddlewareContext, TemplateHandler, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, after, cancelAfter, commandkit, exitContext, flag, getCommandKit, getContext, isCommandWorkerContext, isCompilerPlugin, isPlugin, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, registerDevHooks, useEnvironment };
|
|
933
|
-
//# sourceMappingURL=CommandKit-
|
|
933
|
+
//# sourceMappingURL=CommandKit-BYtbVkJL.d.ts.map
|
package/dist/CommandKit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-
|
|
1
|
+
import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "./EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "./ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "./ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKit } from "./CommandKit-
|
|
1
|
+
import { CommandKit } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import { ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
|
|
@@ -16,4 +16,4 @@ declare function getEventWorkerContext(): EventWorkerContext;
|
|
|
16
16
|
declare function isEventWorkerContext(worker: any): worker is EventWorkerContext;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
19
|
-
//# sourceMappingURL=EventWorkerContext-
|
|
19
|
+
//# sourceMappingURL=EventWorkerContext-9CTBICvs.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../CommandKit-
|
|
1
|
+
import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../CommandKit-
|
|
1
|
+
import "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,5 +29,5 @@ import "../../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../../index-CUPkUUOR.js";
|
|
31
31
|
import "../../constants-Ce6w4OFe.js";
|
|
32
|
-
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-
|
|
32
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-9CTBICvs.js";
|
|
33
33
|
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-
|
|
1
|
+
import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-
|
|
1
|
+
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AppCommandHandler, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../CommandKit-
|
|
1
|
+
import { AnyCommandExecute, AppCommandHandler, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-
|
|
1
|
+
import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as child_process2 from "child_process";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/app-process.d.ts
|
|
4
|
-
declare function createAppProcess(fileName: string, cwd: string, isDev: boolean):
|
|
4
|
+
declare function createAppProcess(fileName: string, cwd: string, isDev: boolean): child_process2.ChildProcess;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { createAppProcess };
|
|
7
7
|
//# sourceMappingURL=app-process.d.ts.map
|
package/dist/cli/build.d.ts
CHANGED
package/dist/cli/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,9 +29,9 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import "../types-
|
|
33
|
-
import { ResolvedCommandKitConfig } from "../utils-
|
|
34
|
-
import * as
|
|
32
|
+
import "../types-BI6_e27D.js";
|
|
33
|
+
import { ResolvedCommandKitConfig } from "../utils-CLd34EFf.js";
|
|
34
|
+
import * as typescript3 from "typescript";
|
|
35
35
|
|
|
36
36
|
//#region src/cli/common.d.ts
|
|
37
37
|
declare function write(message: any): void;
|
|
@@ -41,7 +41,7 @@ declare function findEntrypoint(dir: string): string;
|
|
|
41
41
|
*/
|
|
42
42
|
declare function panic(message: any): never;
|
|
43
43
|
declare function findPackageJSON(): any;
|
|
44
|
-
declare function loadTypeScript(e?: string): Promise<typeof
|
|
44
|
+
declare function loadTypeScript(e?: string): Promise<typeof typescript3>;
|
|
45
45
|
declare function loadConfigFileFromPath(target: string): Promise<ResolvedCommandKitConfig>;
|
|
46
46
|
declare function erase(dir: string): void;
|
|
47
47
|
declare function copyLocaleFiles(_from: string, _to: string): Promise<void>;
|
package/dist/cli/information.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-nOFOJqeH.js');
|
|
2
|
-
const require_version = require('../version-
|
|
2
|
+
const require_version = require('../version-DG7huXRq.js');
|
|
3
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_child_process = require_chunk.__toESM(require("node:child_process"));
|
package/dist/cli/init.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { bootstrapCommandkitCLI } from "../init-
|
|
1
|
+
import { bootstrapCommandkitCLI } from "../init-C62l0PVB.js";
|
|
2
2
|
export { bootstrapCommandkitCLI };
|
package/dist/cli/production.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as child_process5 from "child_process";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/production.d.ts
|
|
4
|
-
declare function bootstrapProductionServer(configPath?: string): Promise<
|
|
4
|
+
declare function bootstrapProductionServer(configPath?: string): Promise<child_process5.ChildProcess>;
|
|
5
5
|
declare function createProductionBuild(configPath?: string): Promise<void>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { bootstrapProductionServer, createProductionBuild };
|
package/dist/config/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,7 +29,7 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import "../types-
|
|
33
|
-
import "../utils-
|
|
34
|
-
import { defineConfig, getConfig } from "../config-
|
|
32
|
+
import "../types-BI6_e27D.js";
|
|
33
|
+
import "../utils-CLd34EFf.js";
|
|
34
|
+
import { defineConfig, getConfig } from "../config-_NXT68BU.js";
|
|
35
35
|
export { defineConfig, getConfig };
|
package/dist/config/default.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,8 +29,8 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import "../types-
|
|
33
|
-
import { ResolvedCommandKitConfig } from "../utils-
|
|
32
|
+
import "../types-BI6_e27D.js";
|
|
33
|
+
import { ResolvedCommandKitConfig } from "../utils-CLd34EFf.js";
|
|
34
34
|
|
|
35
35
|
//#region src/config/default.d.ts
|
|
36
36
|
declare const defaultConfig: ResolvedCommandKitConfig;
|
package/dist/config/loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,8 +29,8 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import { CommandKitConfig } from "../types-
|
|
33
|
-
import { DeepRequired } from "../utils-
|
|
32
|
+
import { CommandKitConfig } from "../types-BI6_e27D.js";
|
|
33
|
+
import { DeepRequired } from "../utils-CLd34EFf.js";
|
|
34
34
|
|
|
35
35
|
//#region src/config/loader.d.ts
|
|
36
36
|
declare function getPossibleConfigPaths(root: string): string[];
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,5 +29,5 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import { CommandKitConfig } from "../types-
|
|
32
|
+
import { CommandKitConfig } from "../types-BI6_e27D.js";
|
|
33
33
|
export { CommandKitConfig };
|
package/dist/config/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,6 +29,6 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import "../types-
|
|
33
|
-
import { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep } from "../utils-
|
|
32
|
+
import "../types-BI6_e27D.js";
|
|
33
|
+
import { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep } from "../utils-CLd34EFf.js";
|
|
34
34
|
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandKitConfig } from "./types-
|
|
2
|
-
import { ResolvedCommandKitConfig } from "./utils-
|
|
1
|
+
import { CommandKitConfig } from "./types-BI6_e27D.js";
|
|
2
|
+
import { ResolvedCommandKitConfig } from "./utils-CLd34EFf.js";
|
|
3
3
|
|
|
4
4
|
//#region src/config/config.d.ts
|
|
5
5
|
|
|
@@ -14,4 +14,4 @@ declare function getConfig(): ResolvedCommandKitConfig;
|
|
|
14
14
|
declare function defineConfig(config?: Partial<CommandKitConfig>): ResolvedCommandKitConfig;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { defineConfig, getConfig };
|
|
17
|
-
//# sourceMappingURL=config-
|
|
17
|
+
//# sourceMappingURL=config-_NXT68BU.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment } from "../CommandKit-
|
|
1
|
+
import { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter } from "../CommandKit-
|
|
1
|
+
import { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventsChannel, ListenerFunction } from "../CommandKit-
|
|
1
|
+
import { CommandKitEventsChannel, ListenerFunction } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag } from "../CommandKit-
|
|
1
|
+
import { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
package/dist/flags/store.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AppCommandHandler, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, GenericFunction, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MaybeFalsey, MaybePromise, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PluginTransformParameters, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, RuntimePlugin, SlashCommandMiddlewareContext, TemplateHandler, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, after, cancelAfter, commandkit, exitContext, flag, getCommandKit, getContext, isCommandWorkerContext, isCompilerPlugin, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, useEnvironment } from "./CommandKit-
|
|
1
|
+
import { AnyCommandExecute, AppCommandHandler, AsyncFunction, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, BootstrapFunction, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContext, CommandContextOptions, CommandData, CommandExecutionMode, CommandFlagContext, CommandKit, CommandKitConfiguration, CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, CommandKitEventDispatch, CommandKitHMREvent, CommandKitOptions, CommandKitPlugin, CommandKitPluginRuntime, CommandRegistrar, CommandTypeData, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, ContextParameters, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, GenericFunction, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MaybeFalsey, MaybePromise, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PluginTransformParameters, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, RuntimePlugin, SlashCommandMiddlewareContext, TemplateHandler, TransformedResult, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, after, cancelAfter, commandkit, exitContext, flag, getCommandKit, getContext, isCommandWorkerContext, isCompilerPlugin, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, useEnvironment } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import { EventInterceptor, EventInterceptorContextData, EventInterceptorErrorHandler } from "./EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import { ButtonKit, ButtonKitPredicate, CommandKitButtonBuilderInteractionCollectorDispatch, CommandKitButtonBuilderInteractionCollectorDispatchContextData, CommandKitButtonBuilderOnEnd, OnButtonKitClick, OnButtonKitEnd } from "./ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import { CommandKitModalBuilderInteractionCollectorDispatch, CommandKitModalBuilderInteractionCollectorDispatchContextData, CommandKitModalBuilderOnEnd, ModalKit, ModalKitPredicate, OnModalKitEnd, OnModalKitSubmit } from "./ModalKit-CKtQ8eXW.js";
|
|
@@ -29,11 +29,11 @@ import { Command, CommandsRouter, CommandsRouterOptions, Middleware, ParsedComma
|
|
|
29
29
|
import { EventsRouter, EventsRouterOptions, EventsTree, ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "./index-CUPkUUOR.js";
|
|
31
31
|
import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType } from "./constants-Ce6w4OFe.js";
|
|
32
|
-
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "./EventWorkerContext-
|
|
33
|
-
import "./types-
|
|
34
|
-
import "./utils-
|
|
35
|
-
import { bootstrapCommandkitCLI } from "./init-
|
|
36
|
-
import { defineConfig, getConfig } from "./config-
|
|
32
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "./EventWorkerContext-9CTBICvs.js";
|
|
33
|
+
import "./types-BI6_e27D.js";
|
|
34
|
+
import "./utils-CLd34EFf.js";
|
|
35
|
+
import { bootstrapCommandkitCLI } from "./init-C62l0PVB.js";
|
|
36
|
+
import { defineConfig, getConfig } from "./config-_NXT68BU.js";
|
|
37
37
|
import { ILogger } from "./ILogger-kqwb2kUu.js";
|
|
38
38
|
import { DefaultLogger } from "./DefaultLogger-CcW-Fuq5.js";
|
|
39
39
|
import { CommandKitLoggerOptions, Logger, LoggerImpl, createLogger } from "./Logger-B4B_URL-.js";
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ require('./store-B9bo6On8.js');
|
|
|
37
37
|
const require_helpers = require('./helpers-blGYXnUH.js');
|
|
38
38
|
require('./app-HN1cVg8J.js');
|
|
39
39
|
require('./ILogger-dQ7Y9X1f.js');
|
|
40
|
-
const require_version = require('./version-
|
|
40
|
+
const require_version = require('./version-DG7huXRq.js');
|
|
41
41
|
const require_feature_flags = require('./feature-flags-DqKVc2-p.js');
|
|
42
42
|
const require_init = require('./init-O2deAczC.js');
|
|
43
43
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as commander4 from "commander";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/init.d.ts
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import * as commander3 from "commander";
|
|
|
7
7
|
* @param argv The arguments passed to the CLI.
|
|
8
8
|
* @param options The options passed to the CLI.
|
|
9
9
|
*/
|
|
10
|
-
declare function bootstrapCommandkitCLI(argv: string[], options?:
|
|
10
|
+
declare function bootstrapCommandkitCLI(argv: string[], options?: commander4.ParseOptions | undefined): Promise<void>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { bootstrapCommandkitCLI };
|
|
13
|
-
//# sourceMappingURL=init-
|
|
13
|
+
//# sourceMappingURL=init-C62l0PVB.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin } from "../CommandKit-
|
|
1
|
+
import { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginCommon, PluginOptions, PluginType, isPlugin } from "../CommandKit-
|
|
1
|
+
import { PluginCommon, PluginOptions, PluginType, isPlugin } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin } from "../CommandKit-
|
|
1
|
+
import { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../CommandKit-
|
|
1
|
+
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../CommandKit-
|
|
1
|
+
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../../ModalKit-CKtQ8eXW.js";
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-
|
|
1
|
+
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitPlugin } from "./CommandKit-
|
|
1
|
+
import { CommandKitPlugin } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import { MaybeArray } from "./types-CJ-XvOFN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/config/types.d.ts
|
|
@@ -70,4 +70,4 @@ interface CommandKitConfig {
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
export { CommandKitConfig };
|
|
73
|
-
//# sourceMappingURL=types-
|
|
73
|
+
//# sourceMappingURL=types-BI6_e27D.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-
|
|
1
|
+
import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "./EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "./ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "./ModalKit-CKtQ8eXW.js";
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as picocolors_types0 from "picocolors/types";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/colors.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: picocolors_types0.Colors;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
7
7
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitHMREvent, registerDevHooks } from "../CommandKit-
|
|
1
|
+
import { CommandKitHMREvent, registerDevHooks } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitConfig } from "./types-
|
|
1
|
+
import { CommandKitConfig } from "./types-BI6_e27D.js";
|
|
2
2
|
|
|
3
3
|
//#region src/config/utils.d.ts
|
|
4
4
|
type DeepRequired<T> = { [P in keyof T]-?: DeepRequired<T[P]> };
|
|
@@ -7,4 +7,4 @@ declare const mergeDeep: <T extends Record<string, any>>(target: T, source: T) =
|
|
|
7
7
|
type ResolvedCommandKitConfig = DeepRequired<CommandKitConfig>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
|
10
|
-
//# sourceMappingURL=utils-
|
|
10
|
+
//# sourceMappingURL=utils-CLd34EFf.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* The current version of CommandKit.
|
|
5
5
|
*/
|
|
6
|
-
const version = "1.0.0-dev.
|
|
6
|
+
const version = "1.0.0-dev.20250531124649";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
Object.defineProperty(exports, 'version', {
|
|
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
12
12
|
return version;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
//# sourceMappingURL=version-
|
|
15
|
+
//# sourceMappingURL=version-DG7huXRq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-
|
|
1
|
+
{"version":3,"file":"version-DG7huXRq.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["function $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;AAQA,MAAa,UAA4B"}
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commandkit",
|
|
3
3
|
"description": "Beginner friendly command & event handler for Discord.js",
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.20250531124649",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"tsx": "^4.19.2",
|
|
123
123
|
"typescript": "^5.7.3",
|
|
124
124
|
"vitest": "^3.0.5",
|
|
125
|
-
"tsconfig": "0.0.0-dev.
|
|
125
|
+
"tsconfig": "0.0.0-dev.20250531124649"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"discord.js": "^14"
|