commandkit 1.0.0-dev.20250608021238 → 1.0.0-dev.20250609020912

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 (59) hide show
  1. package/analytics.cjs +9 -9
  2. package/dist/{CommandKit-CEFWQpDo.d.ts → CommandKit-VTym8VA2.d.ts} +235 -2
  3. package/dist/CommandKit.d.ts +1 -1
  4. package/dist/{EventWorkerContext-Dk7c6sRe.d.ts → EventWorkerContext-BXKO7FMY.d.ts} +2 -2
  5. package/dist/analytics/analytics-engine.d.ts +1 -1
  6. package/dist/analytics/analytics-provider.d.ts +1 -1
  7. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  8. package/dist/app/commands/Context.d.ts +1 -1
  9. package/dist/app/events/EventWorkerContext.d.ts +2 -2
  10. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  11. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  12. package/dist/app/index.d.ts +1 -1
  13. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  14. package/dist/cli/app-process.d.ts +2 -2
  15. package/dist/cli/build.d.ts +1 -1
  16. package/dist/cli/common.d.ts +5 -5
  17. package/dist/cli/information.js +1 -1
  18. package/dist/cli/init.d.ts +1 -1
  19. package/dist/cli/production.d.ts +2 -2
  20. package/dist/config/config.d.ts +4 -4
  21. package/dist/config/default.d.ts +3 -3
  22. package/dist/config/loader.d.ts +3 -3
  23. package/dist/config/types.d.ts +2 -2
  24. package/dist/config/utils.d.ts +3 -3
  25. package/dist/{config-BX3KH7XB.d.ts → config-aIOTA81x.d.ts} +3 -3
  26. package/dist/context/async-context.d.ts +1 -1
  27. package/dist/context/environment.d.ts +1 -1
  28. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  29. package/dist/{feature-flags-DJi3gEFN.js → feature-flags-BFiGn38a.js} +74 -21
  30. package/dist/feature-flags-BFiGn38a.js.map +1 -0
  31. package/dist/flags/FlagProvider.d.ts +32 -0
  32. package/dist/flags/FlagProvider.js +27 -0
  33. package/dist/flags/FlagProvider.js.map +1 -0
  34. package/dist/flags/feature-flags.d.ts +2 -2
  35. package/dist/flags/feature-flags.js +3 -2
  36. package/dist/flags/store.d.ts +1 -1
  37. package/dist/index.d.ts +7 -7
  38. package/dist/index.js +3 -2
  39. package/dist/{init-_e3eZTUb.d.ts → init-CT348Okf.d.ts} +3 -3
  40. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  41. package/dist/plugins/PluginCommon.d.ts +1 -1
  42. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  43. package/dist/plugins/index.d.ts +1 -1
  44. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  45. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  46. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  47. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
  48. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  49. package/dist/plugins/types.d.ts +1 -1
  50. package/dist/{types-DFaFI0H7.d.ts → types-CICvhb0c.d.ts} +2 -2
  51. package/dist/types.d.ts +1 -1
  52. package/dist/utils/colors.d.ts +2 -2
  53. package/dist/utils/dev-hooks.d.ts +1 -1
  54. package/dist/{utils-DOSJ2rn3.d.ts → utils-B1KWblpG.d.ts} +2 -2
  55. package/dist/{version-BaXwv_3C.js → version-CObFfDEn.js} +2 -2
  56. package/dist/{version-BaXwv_3C.js.map → version-CObFfDEn.js.map} +1 -1
  57. package/dist/version.js +1 -1
  58. package/package.json +2 -2
  59. package/dist/feature-flags-DJi3gEFN.js.map +0 -1
package/analytics.cjs CHANGED
@@ -4,18 +4,18 @@ const { noAnalytics } = require('./dist/analytics/utils.js');
4
4
  const { AnalyticsEvents } = require('./dist/analytics/constants.js');
5
5
 
6
6
  function useAnalytics() {
7
- const commandkit = getCommandKit(true);
8
- return commandkit.analytics;
7
+ const commandkit = getCommandKit(true);
8
+ return commandkit.analytics;
9
9
  }
10
10
 
11
11
  function track(event) {
12
- return useAnalytics().track(event);
12
+ return useAnalytics().track(event);
13
13
  }
14
14
 
15
15
  module.exports = {
16
- AnalyticsEvents,
17
- AnalyticsEngine,
18
- useAnalytics,
19
- noAnalytics,
20
- track,
21
- };
16
+ AnalyticsEvents,
17
+ AnalyticsEngine,
18
+ useAnalytics,
19
+ noAnalytics,
20
+ track,
21
+ };
@@ -761,58 +761,291 @@ declare class CommandKitPluginRuntime {
761
761
  execute<R = any>(f: AsyncFunction<[CommandKitPluginRuntime, RuntimePlugin], R | undefined>): Promise<true | R | undefined>;
762
762
  }
763
763
  //#endregion
764
+ //#region src/flags/FlagProvider.d.ts
765
+ /**
766
+ * Interface for external feature flag providers.
767
+ * Implement this interface to integrate with external flag management systems
768
+ * like LaunchDarkly, Split, Unleash, etc.
769
+ */
770
+ interface FlagProvider {
771
+ /**
772
+ * Initialize the provider (e.g., establish connections, load initial config)
773
+ */
774
+ initialize?(): MaybePromise<void>;
775
+ /**
776
+ * Get the current value/configuration for a feature flag
777
+ * @param key - The feature flag key
778
+ * @param context - Optional context for flag evaluation
779
+ * @returns The flag configuration or null if not found
780
+ */
781
+ getFlag(key: string, context?: any): MaybePromise<FlagConfiguration | null>;
782
+ /**
783
+ * Check if a flag exists in the external system
784
+ * @param key - The feature flag key
785
+ */
786
+ hasFlag(key: string): MaybePromise<boolean>;
787
+ /**
788
+ * Cleanup resources when the provider is no longer needed
789
+ */
790
+ destroy?(): MaybePromise<void>;
791
+ }
792
+ /**
793
+ * Configuration returned by external flag providers
794
+ */
795
+ interface FlagConfiguration {
796
+ /**
797
+ * Whether the flag is enabled/disabled at the provider level
798
+ */
799
+ enabled: boolean;
800
+ /**
801
+ * Optional configuration data that can be used in the decide function
802
+ */
803
+ config?: Record<string, any>;
804
+ /**
805
+ * Optional percentage for gradual rollouts (0-100)
806
+ */
807
+ percentage?: number;
808
+ /**
809
+ * Optional targeting rules or segments
810
+ */
811
+ targeting?: {
812
+ segments?: string[];
813
+ rules?: Array<{
814
+ condition: string;
815
+ value: any;
816
+ }>;
817
+ };
818
+ }
819
+ /**
820
+ * Example implementation for a simple JSON-based flag provider
821
+ */
822
+ declare class JsonFlagProvider implements FlagProvider {
823
+ private config;
824
+ private flags;
825
+ constructor(config: Record<string, FlagConfiguration>);
826
+ getFlag(key: string): Promise<FlagConfiguration | null>;
827
+ hasFlag(key: string): Promise<boolean>;
828
+ destroy(): Promise<void>;
829
+ }
830
+ //#endregion
764
831
  //#region src/flags/feature-flags.d.ts
832
+ /**
833
+ * Set the global flag provider for all feature flags
834
+ */
835
+ declare function setFlagProvider(provider: FlagProvider): void;
765
836
  type MaybePromise<T> = T | Promise<T>;
837
+ /**
838
+ * Function type for identifying entities in the context of feature flags.
839
+ * This function should return an object representing the entity that will be used
840
+ * to evaluate the feature flag.
841
+ * It can be synchronous or asynchronous.
842
+ */
766
843
  type IdentifyFunction<R> = (context: EvaluationContext) => MaybePromise<R>;
844
+ /**
845
+ * Function type for deciding the outcome of a feature flag based on the provided entities.
846
+ * This function receives an object containing the entities and optionally the provider configuration,
847
+ * and should return the result of the decision.
848
+ * It can be synchronous or asynchronous.
849
+ */
767
850
  type DecideFunction<E, R> = (data: {
768
851
  entities: E;
852
+ provider?: FlagConfiguration | null;
769
853
  }) => MaybePromise<R>;
854
+ /**
855
+ * Definition for a feature flag, including its key, description, identify function,
856
+ * and decide function.
857
+ * The identify function is used to determine the entities that will be evaluated
858
+ * against the feature flag, while the decide function contains the logic for
859
+ * determining the outcome of the flag based on those entities.
860
+ */
770
861
  interface FeatureFlagDefinition<R, Entity> {
862
+ /**
863
+ * Unique key for the feature flag.
864
+ * Should be a string that identifies the flag.
865
+ */
771
866
  key: string;
867
+ /**
868
+ * Optional description of the feature flag.
869
+ * This can be used for documentation or debugging purposes.
870
+ */
772
871
  description?: string;
872
+ /**
873
+ * Optional flag to enable integration with an external flag provider.
874
+ * If true, the flag will use the global flag provider to determine its state.
875
+ * Default: false
876
+ */
773
877
  identify?: IdentifyFunction<Entity>;
878
+ /**
879
+ * Function to decide the outcome of the feature flag.
880
+ * This function receives the identified entities and should return the result of the decision.
881
+ */
774
882
  decide: DecideFunction<Entity, R>;
883
+ /**
884
+ * Whether to disable analytics tracking for this flag.
885
+ * Default: false
886
+ */
887
+ disableAnalytics?: boolean;
775
888
  }
776
889
  interface CommandFlagContext {
890
+ /**
891
+ * The Discord client instance.
892
+ * This is the main entry point for interacting with the Discord API.
893
+ */
777
894
  client: Client<true>;
895
+ /**
896
+ * The CommandKit instance, which provides access to the command framework.
897
+ * This includes commands, events, and other features of CommandKit.
898
+ */
778
899
  commandkit: CommandKit;
900
+ /**
901
+ * The command context, which includes information about the command being executed.
902
+ * This can include the interaction, message, guild, channel, and the loaded command.
903
+ */
779
904
  command: {
905
+ /**
906
+ * The interaction object if the command was invoked via an interaction.
907
+ * This can be a ChatInputCommandInteraction, AutocompleteInteraction, or ContextMenuCommandInteraction.
908
+ */
780
909
  interaction?: ChatInputCommandInteraction | AutocompleteInteraction | ContextMenuCommandInteraction;
910
+ /**
911
+ * The message object if the command was invoked via a message.
912
+ */
781
913
  message?: Message;
914
+ /**
915
+ * The guild where the command was invoked, if applicable.
916
+ * This will be null for commands invoked in DMs.
917
+ */
782
918
  guild: Guild | null;
919
+ /**
920
+ * The channel where the command was invoked.
921
+ * This can be a text channel, DM channel, or any other type of text-based channel.
922
+ */
783
923
  channel: TextBasedChannel | null;
924
+ /**
925
+ * The loaded command instance that is being executed.
926
+ * This contains the command's metadata and logic.
927
+ */
784
928
  command: LoadedCommand;
785
929
  };
930
+ /**
931
+ * The event context is null for command flags, as they are not tied to a specific event.
932
+ * This is used to differentiate between command and event flags.
933
+ */
786
934
  event: null;
787
935
  }
788
936
  interface EventFlagContext {
937
+ /**
938
+ * The Discord client instance.
939
+ * This is the main entry point for interacting with the Discord API.
940
+ */
789
941
  client: Client<true>;
942
+ /**
943
+ * The CommandKit instance, which provides access to the command framework.
944
+ * This includes commands, events, and other features of CommandKit.
945
+ */
790
946
  commandkit: CommandKit;
947
+ /**
948
+ * The event context, which includes information about the event being processed.
949
+ * This can include the parsed event data, the event name, and the namespace if applicable.
950
+ */
791
951
  event: {
952
+ /**
953
+ * The parsed event data, which contains the raw data from the event.
954
+ * This can include information like user IDs, channel IDs, and other relevant data.
955
+ */
792
956
  data: ParsedEvent;
957
+ /**
958
+ * The name of the event being processed.
959
+ * This is the string identifier for the event, such as 'messageCreate' or 'guildMemberAdd'.
960
+ */
793
961
  event: string;
962
+ /**
963
+ * The namespace of the event, if applicable.
964
+ * This can be used to group related events or commands together.
965
+ * It is null if the event does not belong to a specific namespace.
966
+ */
794
967
  namespace: string | null;
968
+ /**
969
+ * The arguments passed to the event handler.
970
+ * This is an array of arguments that were passed when the event was triggered.
971
+ * It can be used to access specific data related to the event.
972
+ */
795
973
  arguments: any[];
974
+ /**
975
+ * A function to retrieve the arguments for a specific event type.
976
+ * This allows for type-safe access to the arguments based on the event name.
977
+ * @param event - The name of the event to retrieve arguments for.
978
+ */
796
979
  argumentsAs<E extends keyof ClientEvents>(event: E): ClientEvents[E];
797
980
  };
981
+ /**
982
+ * The command context is null for event flags, as they are not tied to a specific command.
983
+ * This is used to differentiate between command and event flags.
984
+ */
798
985
  command: null;
799
986
  }
987
+ /**
988
+ * Combined context type for feature flag evaluation.
989
+ */
800
990
  type EvaluationContext = CommandFlagContext | EventFlagContext;
991
+ /**
992
+ * Function type for custom evaluation of feature flags.
993
+ * This function can be used to provide a custom evaluation context for the flag.
994
+ * It should return an object representing the entities to be evaluated.
995
+ */
801
996
  type CustomEvaluationFunction<E> = () => MaybePromise<E>;
997
+ /**
998
+ * Context for custom evaluation of feature flags.
999
+ * This allows for more flexible evaluation based on custom logic or external data.
1000
+ * The identify function can be a direct object or a function that returns the entities.
1001
+ */
802
1002
  type CustomEvaluationContext<E> = {
1003
+ /**
1004
+ * Optional function to identify the entities for evaluation.
1005
+ * This can be a function that returns the entities based on the current context.
1006
+ */
803
1007
  identify: E | CustomEvaluationFunction<E>;
804
1008
  };
805
1009
  interface FlagRunner<E, R> {
1010
+ /**
1011
+ * Execute the feature flag evaluation with the provided entities.
1012
+ * This method will run the identify and decide functions to determine the flag's outcome.
1013
+ * @param res - Optional entities to use for evaluation. If not provided, it will call the identify function.
1014
+ * @returns A promise that resolves to the result of the feature flag evaluation.
1015
+ */
806
1016
  (): Promise<R>;
1017
+ /**
1018
+ * Run the feature flag evaluation with a custom context.
1019
+ * This allows for more flexible evaluation based on custom logic or external data.
1020
+ * @param context - The custom evaluation context containing the identify function or object.
1021
+ * @returns A promise that resolves to the result of the feature flag evaluation.
1022
+ */
807
1023
  run(context: CustomEvaluationContext<E>): Promise<R>;
808
1024
  }
1025
+ /**
1026
+ * Class representing a feature flag in CommandKit.
1027
+ */
809
1028
  declare class FeatureFlag<R, T> {
810
1029
  readonly options: FeatureFlagDefinition<R, T>;
811
1030
  private commandkit;
1031
+ /**
1032
+ * Create a new feature flag.
1033
+ * @param options - The options for the feature flag.
1034
+ */
812
1035
  constructor(options: FeatureFlagDefinition<R, T>);
813
1036
  private getContext;
1037
+ /**
1038
+ * Execute the feature flag evaluation.
1039
+ * @param res - Optional entities to use for evaluation. If not provided, it will call the identify function.
1040
+ * @returns A promise that resolves to the result of the feature flag evaluation.
1041
+ */
814
1042
  execute(res?: T): Promise<R>;
815
1043
  }
1044
+ /**
1045
+ * Create a new feature flag.
1046
+ * @param options - The options for the feature flag.
1047
+ * @returns A new instance of the FeatureFlag class.
1048
+ */
816
1049
  declare function flag<Returns = boolean, Entity = Record<any, any>>(options: FeatureFlagDefinition<Returns, Entity>): FlagRunner<Entity, Returns>;
817
1050
  //#endregion
818
1051
  //#region src/flags/store.d.ts
@@ -961,5 +1194,5 @@ declare class CommandKit extends EventEmitter {
961
1194
  }
962
1195
  declare const commandkit: CommandKit;
963
1196
  //#endregion
964
- export { AnalyticsEngine, AnalyticsEvent, AnalyticsProvider, 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, FilterFunction, FlagRunner, FlagStore, GenericFunction, IdentifyEvent, 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 };
965
- //# sourceMappingURL=CommandKit-CEFWQpDo.d.ts.map
1197
+ export { AnalyticsEngine, AnalyticsEvent, AnalyticsProvider, 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, FilterFunction, FlagConfiguration, FlagProvider, FlagRunner, FlagStore, GenericFunction, IdentifyEvent, IdentifyFunction, InteractionCommandContext, InteractionCommandMiddlewareContext, JsonFlagProvider, 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, setFlagProvider, useEnvironment };
1198
+ //# sourceMappingURL=CommandKit-VTym8VA2.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-CEFWQpDo.js";
1
+ import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-VTym8VA2.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-CEFWQpDo.js";
1
+ import { CommandKit } from "./CommandKit-VTym8VA2.js";
2
2
  import { ParsedEvent } from "./EventsRouter-BacqK6z3.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
 
@@ -17,4 +17,4 @@ declare function getEventWorkerContext(): EventWorkerContext;
17
17
  declare function isEventWorkerContext(worker: any): worker is EventWorkerContext;
18
18
  //#endregion
19
19
  export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
20
- //# sourceMappingURL=EventWorkerContext-Dk7c6sRe.d.ts.map
20
+ //# sourceMappingURL=EventWorkerContext-BXKO7FMY.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AnalyticsEngine, FilterFunction } from "../CommandKit-CEFWQpDo.js";
1
+ import { AnalyticsEngine, FilterFunction } from "../CommandKit-VTym8VA2.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 { AnalyticsEvent, AnalyticsProvider, IdentifyEvent } from "../CommandKit-CEFWQpDo.js";
1
+ import { AnalyticsEvent, AnalyticsProvider, IdentifyEvent } from "../CommandKit-VTym8VA2.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 { AppCommandRunner } from "../../CommandKit-CEFWQpDo.js";
1
+ import { AppCommandRunner } from "../../CommandKit-VTym8VA2.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 { 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-CEFWQpDo.js";
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-VTym8VA2.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-CEFWQpDo.js";
1
+ import "../../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-Dk7c6sRe.js";
32
+ import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-BXKO7FMY.js";
33
33
  export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
@@ -1,4 +1,4 @@
1
- import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-CEFWQpDo.js";
1
+ import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-VTym8VA2.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-CEFWQpDo.js";
1
+ import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-VTym8VA2.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 { 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-CEFWQpDo.js";
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-VTym8VA2.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-CEFWQpDo.js";
1
+ import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-VTym8VA2.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 child_process1 from "child_process";
1
+ import * as child_process4 from "child_process";
2
2
 
3
3
  //#region src/cli/app-process.d.ts
4
- declare function createAppProcess(fileName: string, cwd: string, isDev: boolean): child_process1.ChildProcess;
4
+ declare function createAppProcess(fileName: string, cwd: string, isDev: boolean): child_process4.ChildProcess;
5
5
  //#endregion
6
6
  export { createAppProcess };
7
7
  //# sourceMappingURL=app-process.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CompilerPlugin } from "../CommandKit-CEFWQpDo.js";
1
+ import { CompilerPlugin } from "../CommandKit-VTym8VA2.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-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import "../types-DFaFI0H7.js";
33
- import { ResolvedCommandKitConfig } from "../utils-DOSJ2rn3.js";
34
- import * as typescript2 from "typescript";
32
+ import "../types-CICvhb0c.js";
33
+ import { ResolvedCommandKitConfig } from "../utils-B1KWblpG.js";
34
+ import * as typescript5 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 typescript2>;
44
+ declare function loadTypeScript(e?: string): Promise<typeof typescript5>;
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>;
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('../chunk-nOFOJqeH.js');
2
- const require_version = require('../version-BaXwv_3C.js');
2
+ const require_version = require('../version-CObFfDEn.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"));
@@ -1,2 +1,2 @@
1
- import { bootstrapCommandkitCLI } from "../init-_e3eZTUb.js";
1
+ import { bootstrapCommandkitCLI } from "../init-CT348Okf.js";
2
2
  export { bootstrapCommandkitCLI };
@@ -1,7 +1,7 @@
1
- import * as child_process4 from "child_process";
1
+ import * as child_process3 from "child_process";
2
2
 
3
3
  //#region src/cli/production.d.ts
4
- declare function bootstrapProductionServer(configPath?: string): Promise<child_process4.ChildProcess>;
4
+ declare function bootstrapProductionServer(configPath?: string): Promise<child_process3.ChildProcess>;
5
5
  declare function createProductionBuild(configPath?: string): Promise<void>;
6
6
  //#endregion
7
7
  export { bootstrapProductionServer, createProductionBuild };
@@ -1,4 +1,4 @@
1
- import "../CommandKit-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import "../types-DFaFI0H7.js";
33
- import "../utils-DOSJ2rn3.js";
34
- import { defineConfig, getConfig } from "../config-BX3KH7XB.js";
32
+ import "../types-CICvhb0c.js";
33
+ import "../utils-B1KWblpG.js";
34
+ import { defineConfig, getConfig } from "../config-aIOTA81x.js";
35
35
  export { defineConfig, getConfig };
@@ -1,4 +1,4 @@
1
- import "../CommandKit-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import "../types-DFaFI0H7.js";
33
- import { ResolvedCommandKitConfig } from "../utils-DOSJ2rn3.js";
32
+ import "../types-CICvhb0c.js";
33
+ import { ResolvedCommandKitConfig } from "../utils-B1KWblpG.js";
34
34
 
35
35
  //#region src/config/default.d.ts
36
36
  declare const defaultConfig: ResolvedCommandKitConfig;
@@ -1,4 +1,4 @@
1
- import "../CommandKit-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import { CommandKitConfig } from "../types-DFaFI0H7.js";
33
- import { DeepRequired } from "../utils-DOSJ2rn3.js";
32
+ import { CommandKitConfig } from "../types-CICvhb0c.js";
33
+ import { DeepRequired } from "../utils-B1KWblpG.js";
34
34
 
35
35
  //#region src/config/loader.d.ts
36
36
  declare function getPossibleConfigPaths(root: string): string[];
@@ -1,4 +1,4 @@
1
- import "../CommandKit-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import { CommandKitConfig } from "../types-DFaFI0H7.js";
32
+ import { CommandKitConfig } from "../types-CICvhb0c.js";
33
33
  export { CommandKitConfig };
@@ -1,4 +1,4 @@
1
- import "../CommandKit-CEFWQpDo.js";
1
+ import "../CommandKit-VTym8VA2.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-BPWSrMkn.js";
32
- import "../types-DFaFI0H7.js";
33
- import { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep } from "../utils-DOSJ2rn3.js";
32
+ import "../types-CICvhb0c.js";
33
+ import { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep } from "../utils-B1KWblpG.js";
34
34
  export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
@@ -1,5 +1,5 @@
1
- import { CommandKitConfig } from "./types-DFaFI0H7.js";
2
- import { ResolvedCommandKitConfig } from "./utils-DOSJ2rn3.js";
1
+ import { CommandKitConfig } from "./types-CICvhb0c.js";
2
+ import { ResolvedCommandKitConfig } from "./utils-B1KWblpG.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-BX3KH7XB.d.ts.map
17
+ //# sourceMappingURL=config-aIOTA81x.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment } from "../CommandKit-CEFWQpDo.js";
1
+ import { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment } from "../CommandKit-VTym8VA2.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-CEFWQpDo.js";
1
+ import { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter } from "../CommandKit-VTym8VA2.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-CEFWQpDo.js";
1
+ import { CommandKitEventsChannel, ListenerFunction } from "../CommandKit-VTym8VA2.js";
2
2
  import "../EventInterceptor-D_oEWSnF.js";
3
3
  import "../ButtonKit-BSI7lCI0.js";
4
4
  import "../ModalKit-CKtQ8eXW.js";