commandkit 1.0.0-dev.20250601132421 → 1.0.0-dev.20250602020651

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 (120) hide show
  1. package/dist/{CommandKit-Dbkak3_n.d.ts → CommandKit-LJlFFidn.d.ts} +2 -2
  2. package/dist/{CommandKit-BhdXwM9b.js → CommandKit-O_Ra_xRL.js} +14 -8
  3. package/dist/CommandKit-O_Ra_xRL.js.map +1 -0
  4. package/dist/CommandKit.d.ts +2 -2
  5. package/dist/CommandKit.js +6 -6
  6. package/dist/{CompilerPlugin-XzuGixkC.js → CompilerPlugin-DrnhOC1c.js} +2 -2
  7. package/dist/{CompilerPlugin-XzuGixkC.js.map → CompilerPlugin-DrnhOC1c.js.map} +1 -1
  8. package/dist/{EventWorkerContext-6BHysn1E.d.ts → EventWorkerContext-sHV9x0eB.d.ts} +2 -2
  9. package/dist/{RuntimePlugin-CKsd83M3.js → RuntimePlugin-BJoDa8ZR.js} +2 -2
  10. package/dist/{RuntimePlugin-CKsd83M3.js.map → RuntimePlugin-BJoDa8ZR.js.map} +1 -1
  11. package/dist/app/commands/AppCommandRunner.d.ts +2 -2
  12. package/dist/app/commands/AppCommandRunner.js +6 -6
  13. package/dist/app/commands/Context.d.ts +2 -2
  14. package/dist/app/commands/Context.js +6 -6
  15. package/dist/app/events/EventWorkerContext.d.ts +3 -3
  16. package/dist/app/handlers/AppCommandHandler.d.ts +2 -2
  17. package/dist/app/handlers/AppCommandHandler.js +6 -6
  18. package/dist/app/handlers/AppEventsHandler.d.ts +2 -2
  19. package/dist/app/handlers/AppEventsHandler.js +6 -6
  20. package/dist/app/index.d.ts +2 -2
  21. package/dist/app/index.js +6 -6
  22. package/dist/app/register/CommandRegistrar.d.ts +2 -2
  23. package/dist/app/register/CommandRegistrar.js +6 -6
  24. package/dist/{app-process-juzsCZp9.js → app-process-DGKqfi5y.js} +3 -3
  25. package/dist/{app-process-juzsCZp9.js.map → app-process-DGKqfi5y.js.map} +1 -1
  26. package/dist/{build-D45Rr7KV.js → build-DwKrwWkl.js} +6 -7
  27. package/dist/build-DwKrwWkl.js.map +1 -0
  28. package/dist/cli/app-process.js +5 -5
  29. package/dist/cli/build.d.ts +2 -2
  30. package/dist/cli/build.js +9 -9
  31. package/dist/cli/common.d.ts +4 -4
  32. package/dist/cli/common.js +3 -3
  33. package/dist/cli/development.js +10 -10
  34. package/dist/cli/env.d.ts +2 -1
  35. package/dist/cli/env.js +3 -2
  36. package/dist/cli/generators.js +3 -3
  37. package/dist/cli/information.js +1 -1
  38. package/dist/cli/init.js +7 -7
  39. package/dist/cli/production.js +10 -10
  40. package/dist/cli/type-checker.js +4 -4
  41. package/dist/{common-CtMBxAf-.js → common-CoUM9Czx.js} +2 -2
  42. package/dist/{common-CtMBxAf-.js.map → common-CoUM9Czx.js.map} +1 -1
  43. package/dist/components/index.js +6 -6
  44. package/dist/components/v1/button/Button.js +6 -6
  45. package/dist/components/v1/button/ButtonKit.js +6 -6
  46. package/dist/components/v1/modal/Modal.js +6 -6
  47. package/dist/components/v1/modal/ModalKit.js +6 -6
  48. package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +6 -6
  49. package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +6 -6
  50. package/dist/components/v1/select-menu/RoleSelectMenuKit.js +6 -6
  51. package/dist/components/v1/select-menu/SelectMenu.js +6 -6
  52. package/dist/components/v1/select-menu/StringSelectMenuKit.js +6 -6
  53. package/dist/components/v1/select-menu/UserSelectMenuKit.js +6 -6
  54. package/dist/config/config.d.ts +5 -5
  55. package/dist/config/config.js +6 -6
  56. package/dist/config/default.d.ts +4 -4
  57. package/dist/config/default.js +6 -6
  58. package/dist/config/loader.d.ts +4 -4
  59. package/dist/config/loader.js +6 -6
  60. package/dist/config/types.d.ts +3 -3
  61. package/dist/config/utils.d.ts +4 -4
  62. package/dist/{config-1zOALegW.d.ts → config-bs6v9gyT.d.ts} +3 -3
  63. package/dist/{constants-Ce6w4OFe.d.ts → constants-BPWSrMkn.d.ts} +3 -2
  64. package/dist/{constants-DOPSzXI0.js → constants-CCqS_v55.js} +8 -1
  65. package/dist/constants-CCqS_v55.js.map +1 -0
  66. package/dist/context/async-context.d.ts +2 -2
  67. package/dist/context/async-context.js +6 -6
  68. package/dist/context/environment.d.ts +2 -2
  69. package/dist/context/environment.js +6 -6
  70. package/dist/{env-DXL8PZiG.js → env-D3rn_eei.js} +10 -1
  71. package/dist/{env-DXL8PZiG.js.map → env-D3rn_eei.js.map} +1 -1
  72. package/dist/events/CommandKitEventsChannel.d.ts +2 -2
  73. package/dist/{feature-flags-xogLBr7K.js → feature-flags-BXVYbfWD.js} +2 -2
  74. package/dist/{feature-flags-xogLBr7K.js.map → feature-flags-BXVYbfWD.js.map} +1 -1
  75. package/dist/flags/feature-flags.d.ts +2 -2
  76. package/dist/flags/feature-flags.js +7 -7
  77. package/dist/flags/store.d.ts +2 -2
  78. package/dist/index.d.ts +7 -7
  79. package/dist/index.js +10 -9
  80. package/dist/{init-B6_jkuag.js → init-DnAVgPki.js} +10 -5
  81. package/dist/init-DnAVgPki.js.map +1 -0
  82. package/dist/logger/DefaultLogger.js +6 -6
  83. package/dist/logger/Logger.js +6 -6
  84. package/dist/plugins/CompilerPlugin.d.ts +2 -2
  85. package/dist/plugins/CompilerPlugin.js +1 -1
  86. package/dist/plugins/PluginCommon.d.ts +2 -2
  87. package/dist/plugins/RuntimePlugin.d.ts +2 -2
  88. package/dist/plugins/RuntimePlugin.js +1 -1
  89. package/dist/plugins/index.d.ts +2 -2
  90. package/dist/plugins/index.js +6 -6
  91. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +2 -2
  92. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +6 -6
  93. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +2 -2
  94. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +2 -2
  95. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +6 -6
  96. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +2 -2
  97. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +6 -6
  98. package/dist/plugins/plugin-runtime/runtime.d.ts +2 -2
  99. package/dist/plugins/types.d.ts +2 -2
  100. package/dist/{type-checker-BILXtCjQ.js → type-checker-FHABnKlq.js} +2 -2
  101. package/dist/{type-checker-BILXtCjQ.js.map → type-checker-FHABnKlq.js.map} +1 -1
  102. package/dist/{types-BiXh_it_.d.ts → types--Jq7UV8B.d.ts} +2 -2
  103. package/dist/{types-package-BrES1tNq.js → types-package-B0Z-xrbB.js} +2 -2
  104. package/dist/{types-package-BrES1tNq.js.map → types-package-B0Z-xrbB.js.map} +1 -1
  105. package/dist/types.d.ts +2 -2
  106. package/dist/utils/constants.d.ts +2 -2
  107. package/dist/utils/constants.js +2 -1
  108. package/dist/utils/dev-hooks.d.ts +2 -2
  109. package/dist/utils/dev-hooks.js +6 -6
  110. package/dist/utils/types-package.js +2 -2
  111. package/dist/utils/utilities.js +6 -6
  112. package/dist/{utils-IW7KDBhF.d.ts → utils-BJAW-jcv.d.ts} +2 -2
  113. package/dist/{version-B_LxfzVV.js → version-J_n7mBTo.js} +2 -2
  114. package/dist/{version-B_LxfzVV.js.map → version-J_n7mBTo.js.map} +1 -1
  115. package/dist/version.js +1 -1
  116. package/package.json +3 -3
  117. package/dist/CommandKit-BhdXwM9b.js.map +0 -1
  118. package/dist/build-D45Rr7KV.js.map +0 -1
  119. package/dist/constants-DOPSzXI0.js.map +0 -1
  120. package/dist/init-B6_jkuag.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  require('./colors-Cd4Oz-r-.js');
2
2
  require('./ActionRow-CmTHbo2t.js');
3
3
  require('./error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('./CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('./CommandKit-O_Ra_xRL.js');
5
5
  require('./common-CcfjYnPG.js');
6
6
  require('./common-CeO-vn8Y.js');
7
7
  require('./container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('./warn-unstable-DHLaxPC8.js');
15
15
  require('./element-DcqNz1dV.js');
16
16
  require('./types-B5VPP9ig.js');
17
17
  require('./EventInterceptor-Bvh05z7n.js');
18
- require('./constants-DOPSzXI0.js');
18
+ require('./constants-CCqS_v55.js');
19
19
  require('./PluginCommon-DPqnQngK.js');
20
- require('./CompilerPlugin-XzuGixkC.js');
21
- require('./RuntimePlugin-CKsd83M3.js');
20
+ require('./CompilerPlugin-DrnhOC1c.js');
21
+ require('./RuntimePlugin-BJoDa8ZR.js');
22
22
  require('./types-Bq0EWaM3.js');
23
23
  require('./CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('./runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('./EventWorkerContext-BAKiTqJz.js');
26
26
  require('./resolve-file-url-ifwdwqmq.js');
27
27
  require('./MessageCommandParser-D02-wpZN.js');
28
28
  require('./signals-scJdEbly.js');
29
- require('./types-package-BrES1tNq.js');
29
+ require('./types-package-B0Z-xrbB.js');
30
30
  require('./CommandsRouter-B91EHi6O.js');
31
31
  require('./EventsRouter-C_J0M3uO.js');
32
32
  require('./router-DHnFRADH.js');
33
- require('./common-CtMBxAf-.js');
33
+ require('./common-CoUM9Czx.js');
34
34
  require('./CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('./store-B9bo6On8.js');
36
36
 
@@ -13,7 +13,7 @@ var CompilerPlugin = class extends require_PluginCommon.PluginCommon {
13
13
  }
14
14
  };
15
15
  function isCompilerPlugin(plugin) {
16
- return require_PluginCommon.isPlugin(plugin) && plugin.type === require_PluginCommon.PluginType.Compiler;
16
+ return plugin instanceof CompilerPlugin || require_PluginCommon.isPlugin(plugin) && plugin.type === require_PluginCommon.PluginType.Compiler;
17
17
  }
18
18
 
19
19
  //#endregion
@@ -29,4 +29,4 @@ Object.defineProperty(exports, 'isCompilerPlugin', {
29
29
  return isCompilerPlugin;
30
30
  }
31
31
  });
32
- //# sourceMappingURL=CompilerPlugin-XzuGixkC.js.map
32
+ //# sourceMappingURL=CompilerPlugin-DrnhOC1c.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompilerPlugin-XzuGixkC.js","names":[],"sources":["../src/plugins/CompilerPlugin.ts"],"sourcesContent":["import {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport { MaybeFalsey } from './types';\nimport { CompilerPluginRuntime } from './plugin-runtime/CompilerPluginRuntime';\n\nexport interface PluginTransformParameters {\n code: string;\n id: string;\n}\n\nexport interface TransformedResult {\n code?: string;\n map?: string | null;\n}\n\nexport abstract class CompilerPlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CompilerPluginRuntime> {\n public readonly type = PluginType.Compiler;\n\n /**\n * Called when transformation is requested to this plugin\n * @param params The parameters for the transformation\n * @returns The transformed result\n */\n public async transform(\n params: PluginTransformParameters,\n ): Promise<MaybeFalsey<TransformedResult>> {\n return null;\n }\n}\n\nexport function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin {\n return isPlugin(plugin) && plugin.type === PluginType.Compiler;\n}\n"],"mappings":";;;AAmBA,IAAsB,iBAAtB,cAEA,kCAAuC;CACrC,AAAgB,OAAO,gCAAW;;;;;;CAOlC,MAAa,UACb,QAC0C;AACxC,SAAO;CACT;AACF;AAEA,SAAgB,iBAAiB,QAA2C;AAC1E,QAAO,8BAAS,OAAO,IAAI,OAAO,SAAS,gCAAW;AACxD"}
1
+ {"version":3,"file":"CompilerPlugin-DrnhOC1c.js","names":[],"sources":["../src/plugins/CompilerPlugin.ts"],"sourcesContent":["import {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport { MaybeFalsey } from './types';\nimport { CompilerPluginRuntime } from './plugin-runtime/CompilerPluginRuntime';\n\nexport interface PluginTransformParameters {\n code: string;\n id: string;\n}\n\nexport interface TransformedResult {\n code?: string;\n map?: string | null;\n}\n\nexport abstract class CompilerPlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CompilerPluginRuntime> {\n public readonly type = PluginType.Compiler;\n\n /**\n * Called when transformation is requested to this plugin\n * @param params The parameters for the transformation\n * @returns The transformed result\n */\n public async transform(\n params: PluginTransformParameters,\n ): Promise<MaybeFalsey<TransformedResult>> {\n return null;\n }\n}\n\nexport function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin {\n return (\n plugin instanceof CompilerPlugin ||\n (isPlugin(plugin) && plugin.type === PluginType.Compiler)\n );\n}\n"],"mappings":";;;AAmBA,IAAsB,iBAAtB,cAEA,kCAAuC;CACrC,AAAgB,OAAO,gCAAW;;;;;;CAOlC,MAAa,UACb,QAC0C;AACxC,SAAO;CACT;AACF;AAEA,SAAgB,iBAAiB,QAA2C;AAC1E,QACE,kBAAkB,kBAClB,8BAAS,OAAO,IAAI,OAAO,SAAS,gCAAW;AAEnD"}
@@ -1,4 +1,4 @@
1
- import { CommandKit } from "./CommandKit-Dbkak3_n.js";
1
+ import { CommandKit } from "./CommandKit-LJlFFidn.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-6BHysn1E.d.ts.map
19
+ //# sourceMappingURL=EventWorkerContext-sHV9x0eB.d.ts.map
@@ -111,7 +111,7 @@ var RuntimePlugin = class extends require_PluginCommon.PluginCommon {
111
111
  async willEmitEvent(ctx, event) {}
112
112
  };
113
113
  function isRuntimePlugin(plugin) {
114
- return require_PluginCommon.isPlugin(plugin) && plugin.type === require_PluginCommon.PluginType.Runtime;
114
+ return plugin instanceof RuntimePlugin || require_PluginCommon.isPlugin(plugin) && plugin.type === require_PluginCommon.PluginType.Runtime;
115
115
  }
116
116
 
117
117
  //#endregion
@@ -127,4 +127,4 @@ Object.defineProperty(exports, 'isRuntimePlugin', {
127
127
  return isRuntimePlugin;
128
128
  }
129
129
  });
130
- //# sourceMappingURL=RuntimePlugin-CKsd83M3.js.map
130
+ //# sourceMappingURL=RuntimePlugin-BJoDa8ZR.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimePlugin-CKsd83M3.js","names":[],"sources":["../src/plugins/RuntimePlugin.ts"],"sourcesContent":["import { Interaction, Message } from 'discord.js';\nimport {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport type { CommandKitPluginRuntime } from './plugin-runtime/CommandKitPluginRuntime';\nimport { CommandBuilderLike, PreparedAppCommandExecution } from '../app';\nimport { CommandKitEnvironment } from '../context/environment';\nimport { CommandKitHMREvent } from '../utils/dev-hooks';\nimport { PreRegisterCommandsEvent } from '../app/register/CommandRegistrar';\nimport { CommandKitEventDispatch } from './types';\n\nexport abstract class RuntimePlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CommandKitPluginRuntime> {\n public readonly type = PluginType.Runtime;\n /**\n * Called before commands are loaded\n */\n public async onBeforeCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands are loaded\n */\n public async onAfterCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before events are loaded\n */\n public async onBeforeEventsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after events are loaded\n */\n public async onAfterEventsLoad(ctx: CommandKitPluginRuntime): Promise<void> {}\n\n /**\n * Called before the client logs in\n */\n public async onBeforeClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after the client logs in\n */\n public async onAfterClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before interaction is handled\n * @param interaction The interaction\n */\n public async onBeforeInteraction(\n ctx: CommandKitPluginRuntime,\n interaction: Interaction,\n ): Promise<void> {}\n\n /**\n * Called before message command is processed\n * @param message The message\n */\n public async onBeforeMessageCommand(\n ctx: CommandKitPluginRuntime,\n message: Message,\n ): Promise<void> {}\n\n /**\n * Called before command is executed. This method can execute the command itself.\n * @param source The source that triggered the command\n * @param command The command\n * @param execute The function that executes the command\n */\n public async executeCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n source: Interaction | Message,\n command: PreparedAppCommandExecution,\n execute: () => Promise<any>,\n ): Promise<boolean> {\n return false;\n }\n\n /**\n * Called after events router is initialized\n * @param ctx The context\n */\n public async onEventsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands router is initialized\n * @param ctx The context\n */\n public async onCommandsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called when HMR event is received\n * @param ctx The context\n * @param event The event\n */\n public async performHMR(\n ctx: CommandKitPluginRuntime,\n event: CommandKitHMREvent,\n ): Promise<void> {}\n\n /**\n * Called before command is loaded for registration. This method can be used to modify the command data before it is loaded.\n * @param ctx The context\n * @param commands The command that is being loaded. This is a CommandBuilderLike object which represents Discord's command\n */\n async prepareCommand(\n ctx: CommandKitPluginRuntime,\n commands: CommandBuilderLike,\n ): Promise<CommandBuilderLike | null> {\n return null;\n }\n\n /**\n * Called before command is registered to discord. This method can cancel the registration of the command and handle it manually.\n * @param ctx The context\n * @param data The command registration data\n */\n async onBeforeRegisterCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before global commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGlobalCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called before guilds of the command are resolved. It is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforePrepareGuildCommandsRegistration(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after guilds of the command are resolved. It is called after `onBeforePrepareGuildCommandsRegistration` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGuildCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called after command and all of its deferred functions are executed.\n * @param ctx The context\n * @param env The environment of the command. This environment contains the command execution data such as command context and more.\n */\n async onAfterCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n ) {}\n\n /**\n * Called before emitting an event\n * @param ctx The context\n * @param event The event that is being emitted\n */\n public async willEmitEvent(\n ctx: CommandKitPluginRuntime,\n event: CommandKitEventDispatch,\n ) {}\n}\n\nexport function isRuntimePlugin(plugin: unknown): plugin is RuntimePlugin {\n return isPlugin(plugin) && plugin.type === PluginType.Runtime;\n}\n"],"mappings":";;;AAcA,IAAsB,gBAAtB,cAEA,kCAAyC;CACvC,AAAgB,OAAO,gCAAW;;;;CAIlC,MAAa,qBACb,KACgB,CAAE;;;;CAKlB,MAAa,oBACb,KACgB,CAAE;;;;CAKlB,MAAa,mBACb,KACgB,CAAE;;;;CAKlB,MAAa,kBAAkB,KAA6C,CAAC;;;;CAK7E,MAAa,oBACb,KACgB,CAAE;;;;CAKlB,MAAa,mBACb,KACgB,CAAE;;;;;CAMlB,MAAa,oBACb,KACA,aACgB,CAAE;;;;;CAMlB,MAAa,uBACb,KACA,SACgB,CAAE;;;;;;;CAQlB,MAAa,eACb,KACA,KACA,QACA,SACA,SACmB;AACjB,SAAO;CACT;;;;;CAMA,MAAa,mBACb,KACgB,CAAE;;;;;CAMlB,MAAa,qBACb,KACgB,CAAE;;;;;;CAOlB,MAAa,WACb,KACA,OACgB,CAAE;;;;;;CAOlB,MAAM,eACN,KACA,UACqC;AACnC,SAAO;CACT;;;;;;CAOA,MAAM,yBACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,+BACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,yCACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,8BACN,KACA,OACgB,CAAE;;;;;;CAOlB,MAAM,eACN,KACA,KACA,CAAE;;;;;;CAOF,MAAa,cACb,KACA,OACA,CAAE;AACJ;AAEA,SAAgB,gBAAgB,QAA0C;AACxE,QAAO,8BAAS,OAAO,IAAI,OAAO,SAAS,gCAAW;AACxD"}
1
+ {"version":3,"file":"RuntimePlugin-BJoDa8ZR.js","names":[],"sources":["../src/plugins/RuntimePlugin.ts"],"sourcesContent":["import { Interaction, Message } from 'discord.js';\nimport {\n isPlugin,\n PluginCommon,\n PluginOptions,\n PluginType,\n} from './PluginCommon';\nimport type { CommandKitPluginRuntime } from './plugin-runtime/CommandKitPluginRuntime';\nimport { CommandBuilderLike, PreparedAppCommandExecution } from '../app';\nimport { CommandKitEnvironment } from '../context/environment';\nimport { CommandKitHMREvent } from '../utils/dev-hooks';\nimport { PreRegisterCommandsEvent } from '../app/register/CommandRegistrar';\nimport { CommandKitEventDispatch } from './types';\n\nexport abstract class RuntimePlugin<\n T extends PluginOptions = PluginOptions,\n> extends PluginCommon<T, CommandKitPluginRuntime> {\n public readonly type = PluginType.Runtime;\n /**\n * Called before commands are loaded\n */\n public async onBeforeCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands are loaded\n */\n public async onAfterCommandsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before events are loaded\n */\n public async onBeforeEventsLoad(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after events are loaded\n */\n public async onAfterEventsLoad(ctx: CommandKitPluginRuntime): Promise<void> {}\n\n /**\n * Called before the client logs in\n */\n public async onBeforeClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after the client logs in\n */\n public async onAfterClientLogin(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called before interaction is handled\n * @param interaction The interaction\n */\n public async onBeforeInteraction(\n ctx: CommandKitPluginRuntime,\n interaction: Interaction,\n ): Promise<void> {}\n\n /**\n * Called before message command is processed\n * @param message The message\n */\n public async onBeforeMessageCommand(\n ctx: CommandKitPluginRuntime,\n message: Message,\n ): Promise<void> {}\n\n /**\n * Called before command is executed. This method can execute the command itself.\n * @param source The source that triggered the command\n * @param command The command\n * @param execute The function that executes the command\n */\n public async executeCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n source: Interaction | Message,\n command: PreparedAppCommandExecution,\n execute: () => Promise<any>,\n ): Promise<boolean> {\n return false;\n }\n\n /**\n * Called after events router is initialized\n * @param ctx The context\n */\n public async onEventsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called after commands router is initialized\n * @param ctx The context\n */\n public async onCommandsRouterInit(\n ctx: CommandKitPluginRuntime,\n ): Promise<void> {}\n\n /**\n * Called when HMR event is received\n * @param ctx The context\n * @param event The event\n */\n public async performHMR(\n ctx: CommandKitPluginRuntime,\n event: CommandKitHMREvent,\n ): Promise<void> {}\n\n /**\n * Called before command is loaded for registration. This method can be used to modify the command data before it is loaded.\n * @param ctx The context\n * @param commands The command that is being loaded. This is a CommandBuilderLike object which represents Discord's command\n */\n async prepareCommand(\n ctx: CommandKitPluginRuntime,\n commands: CommandBuilderLike,\n ): Promise<CommandBuilderLike | null> {\n return null;\n }\n\n /**\n * Called before command is registered to discord. This method can cancel the registration of the command and handle it manually.\n * @param ctx The context\n * @param data The command registration data\n */\n async onBeforeRegisterCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before global commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGlobalCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called before guilds of the command are resolved. It is called after `onBeforeRegisterCommands` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforePrepareGuildCommandsRegistration(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called before guild commands registration. This method can cancel the registration of the command and handle it manually.\n * This method is called after guilds of the command are resolved. It is called after `onBeforePrepareGuildCommandsRegistration` if that stage was not handled.\n * @param ctx The context\n * @param event The command registration data\n */\n async onBeforeRegisterGuildCommands(\n ctx: CommandKitPluginRuntime,\n event: PreRegisterCommandsEvent,\n ): Promise<void> {}\n\n /**\n * Called after command and all of its deferred functions are executed.\n * @param ctx The context\n * @param env The environment of the command. This environment contains the command execution data such as command context and more.\n */\n async onAfterCommand(\n ctx: CommandKitPluginRuntime,\n env: CommandKitEnvironment,\n ) {}\n\n /**\n * Called before emitting an event\n * @param ctx The context\n * @param event The event that is being emitted\n */\n public async willEmitEvent(\n ctx: CommandKitPluginRuntime,\n event: CommandKitEventDispatch,\n ) {}\n}\n\nexport function isRuntimePlugin(plugin: unknown): plugin is RuntimePlugin {\n return (\n plugin instanceof RuntimePlugin ||\n (isPlugin(plugin) && plugin.type === PluginType.Runtime)\n );\n}\n"],"mappings":";;;AAcA,IAAsB,gBAAtB,cAEA,kCAAyC;CACvC,AAAgB,OAAO,gCAAW;;;;CAIlC,MAAa,qBACb,KACgB,CAAE;;;;CAKlB,MAAa,oBACb,KACgB,CAAE;;;;CAKlB,MAAa,mBACb,KACgB,CAAE;;;;CAKlB,MAAa,kBAAkB,KAA6C,CAAC;;;;CAK7E,MAAa,oBACb,KACgB,CAAE;;;;CAKlB,MAAa,mBACb,KACgB,CAAE;;;;;CAMlB,MAAa,oBACb,KACA,aACgB,CAAE;;;;;CAMlB,MAAa,uBACb,KACA,SACgB,CAAE;;;;;;;CAQlB,MAAa,eACb,KACA,KACA,QACA,SACA,SACmB;AACjB,SAAO;CACT;;;;;CAMA,MAAa,mBACb,KACgB,CAAE;;;;;CAMlB,MAAa,qBACb,KACgB,CAAE;;;;;;CAOlB,MAAa,WACb,KACA,OACgB,CAAE;;;;;;CAOlB,MAAM,eACN,KACA,UACqC;AACnC,SAAO;CACT;;;;;;CAOA,MAAM,yBACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,+BACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,yCACN,KACA,OACgB,CAAE;;;;;;;CAQlB,MAAM,8BACN,KACA,OACgB,CAAE;;;;;;CAOlB,MAAM,eACN,KACA,KACA,CAAE;;;;;;CAOF,MAAa,cACb,KACA,OACA,CAAE;AACJ;AAEA,SAAgB,gBAAgB,QAA0C;AACxE,QACE,kBAAkB,iBAClB,8BAAS,OAAO,IAAI,OAAO,SAAS,gCAAW;AAEnD"}
@@ -1,4 +1,4 @@
1
- import { AppCommandRunner } from "../../CommandKit-Dbkak3_n.js";
1
+ import { AppCommandRunner } from "../../CommandKit-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
31
+ import "../../constants-BPWSrMkn.js";
32
32
  export { AppCommandRunner };
@@ -1,7 +1,7 @@
1
1
  require('../../colors-Cd4Oz-r-.js');
2
2
  require('../../ActionRow-CmTHbo2t.js');
3
3
  require('../../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../../CommandKit-O_Ra_xRL.js');
5
5
  require('../../common-CcfjYnPG.js');
6
6
  require('../../common-CeO-vn8Y.js');
7
7
  require('../../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../../warn-unstable-DHLaxPC8.js');
15
15
  require('../../element-DcqNz1dV.js');
16
16
  require('../../types-B5VPP9ig.js');
17
17
  require('../../EventInterceptor-Bvh05z7n.js');
18
- require('../../constants-DOPSzXI0.js');
18
+ require('../../constants-CCqS_v55.js');
19
19
  require('../../PluginCommon-DPqnQngK.js');
20
- require('../../CompilerPlugin-XzuGixkC.js');
21
- require('../../RuntimePlugin-CKsd83M3.js');
20
+ require('../../CompilerPlugin-DrnhOC1c.js');
21
+ require('../../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../../types-Bq0EWaM3.js');
23
23
  require('../../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../../resolve-file-url-ifwdwqmq.js');
27
27
  require('../../MessageCommandParser-D02-wpZN.js');
28
28
  require('../../signals-scJdEbly.js');
29
- require('../../types-package-BrES1tNq.js');
29
+ require('../../types-package-B0Z-xrbB.js');
30
30
  require('../../CommandsRouter-B91EHi6O.js');
31
31
  require('../../EventsRouter-C_J0M3uO.js');
32
32
  require('../../router-DHnFRADH.js');
33
- require('../../common-CtMBxAf-.js');
33
+ require('../../common-CoUM9Czx.js');
34
34
  require('../../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../../store-B9bo6On8.js');
36
36
 
@@ -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-Dbkak3_n.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-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
31
+ import "../../constants-BPWSrMkn.js";
32
32
  export { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext };
@@ -1,7 +1,7 @@
1
1
  require('../../colors-Cd4Oz-r-.js');
2
2
  require('../../ActionRow-CmTHbo2t.js');
3
3
  require('../../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../../CommandKit-O_Ra_xRL.js');
5
5
  require('../../common-CcfjYnPG.js');
6
6
  require('../../common-CeO-vn8Y.js');
7
7
  require('../../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../../warn-unstable-DHLaxPC8.js');
15
15
  require('../../element-DcqNz1dV.js');
16
16
  require('../../types-B5VPP9ig.js');
17
17
  require('../../EventInterceptor-Bvh05z7n.js');
18
- require('../../constants-DOPSzXI0.js');
18
+ require('../../constants-CCqS_v55.js');
19
19
  require('../../PluginCommon-DPqnQngK.js');
20
- require('../../CompilerPlugin-XzuGixkC.js');
21
- require('../../RuntimePlugin-CKsd83M3.js');
20
+ require('../../CompilerPlugin-DrnhOC1c.js');
21
+ require('../../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../../types-Bq0EWaM3.js');
23
23
  require('../../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../../resolve-file-url-ifwdwqmq.js');
27
27
  require('../../MessageCommandParser-D02-wpZN.js');
28
28
  require('../../signals-scJdEbly.js');
29
- require('../../types-package-BrES1tNq.js');
29
+ require('../../types-package-B0Z-xrbB.js');
30
30
  require('../../CommandsRouter-B91EHi6O.js');
31
31
  require('../../EventsRouter-C_J0M3uO.js');
32
32
  require('../../router-DHnFRADH.js');
33
- require('../../common-CtMBxAf-.js');
33
+ require('../../common-CoUM9Czx.js');
34
34
  require('../../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../../store-B9bo6On8.js');
36
36
 
@@ -1,4 +1,4 @@
1
- import "../../CommandKit-Dbkak3_n.js";
1
+ import "../../CommandKit-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,6 +28,6 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
32
- import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-6BHysn1E.js";
31
+ import "../../constants-BPWSrMkn.js";
32
+ import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-sHV9x0eB.js";
33
33
  export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
@@ -1,4 +1,4 @@
1
- import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-Dbkak3_n.js";
1
+ import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
31
+ import "../../constants-BPWSrMkn.js";
32
32
  export { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand };
@@ -1,7 +1,7 @@
1
1
  require('../../colors-Cd4Oz-r-.js');
2
2
  require('../../ActionRow-CmTHbo2t.js');
3
3
  require('../../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../../CommandKit-O_Ra_xRL.js');
5
5
  require('../../common-CcfjYnPG.js');
6
6
  require('../../common-CeO-vn8Y.js');
7
7
  require('../../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../../warn-unstable-DHLaxPC8.js');
15
15
  require('../../element-DcqNz1dV.js');
16
16
  require('../../types-B5VPP9ig.js');
17
17
  require('../../EventInterceptor-Bvh05z7n.js');
18
- require('../../constants-DOPSzXI0.js');
18
+ require('../../constants-CCqS_v55.js');
19
19
  require('../../PluginCommon-DPqnQngK.js');
20
- require('../../CompilerPlugin-XzuGixkC.js');
21
- require('../../RuntimePlugin-CKsd83M3.js');
20
+ require('../../CompilerPlugin-DrnhOC1c.js');
21
+ require('../../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../../types-Bq0EWaM3.js');
23
23
  require('../../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../../resolve-file-url-ifwdwqmq.js');
27
27
  require('../../MessageCommandParser-D02-wpZN.js');
28
28
  require('../../signals-scJdEbly.js');
29
- require('../../types-package-BrES1tNq.js');
29
+ require('../../types-package-B0Z-xrbB.js');
30
30
  require('../../CommandsRouter-B91EHi6O.js');
31
31
  require('../../EventsRouter-C_J0M3uO.js');
32
32
  require('../../router-DHnFRADH.js');
33
- require('../../common-CtMBxAf-.js');
33
+ require('../../common-CoUM9Czx.js');
34
34
  require('../../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../../store-B9bo6On8.js');
36
36
 
@@ -1,4 +1,4 @@
1
- import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-Dbkak3_n.js";
1
+ import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
31
+ import "../../constants-BPWSrMkn.js";
32
32
  export { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent };
@@ -1,7 +1,7 @@
1
1
  require('../../colors-Cd4Oz-r-.js');
2
2
  require('../../ActionRow-CmTHbo2t.js');
3
3
  require('../../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../../CommandKit-O_Ra_xRL.js');
5
5
  require('../../common-CcfjYnPG.js');
6
6
  require('../../common-CeO-vn8Y.js');
7
7
  require('../../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../../warn-unstable-DHLaxPC8.js');
15
15
  require('../../element-DcqNz1dV.js');
16
16
  require('../../types-B5VPP9ig.js');
17
17
  require('../../EventInterceptor-Bvh05z7n.js');
18
- require('../../constants-DOPSzXI0.js');
18
+ require('../../constants-CCqS_v55.js');
19
19
  require('../../PluginCommon-DPqnQngK.js');
20
- require('../../CompilerPlugin-XzuGixkC.js');
21
- require('../../RuntimePlugin-CKsd83M3.js');
20
+ require('../../CompilerPlugin-DrnhOC1c.js');
21
+ require('../../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../../types-Bq0EWaM3.js');
23
23
  require('../../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../../resolve-file-url-ifwdwqmq.js');
27
27
  require('../../MessageCommandParser-D02-wpZN.js');
28
28
  require('../../signals-scJdEbly.js');
29
- require('../../types-package-BrES1tNq.js');
29
+ require('../../types-package-B0Z-xrbB.js');
30
30
  require('../../CommandsRouter-B91EHi6O.js');
31
31
  require('../../EventsRouter-C_J0M3uO.js');
32
32
  require('../../router-DHnFRADH.js');
33
- require('../../common-CtMBxAf-.js');
33
+ require('../../common-CoUM9Czx.js');
34
34
  require('../../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../../store-B9bo6On8.js');
36
36
 
@@ -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-Dbkak3_n.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-LJlFFidn.js";
2
2
  import "../EventInterceptor-D_oEWSnF.js";
3
3
  import "../ButtonKit-BSI7lCI0.js";
4
4
  import "../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import { CommandSource, isInteractionSource, isMessageSource } from "../helpers-
28
28
  import "../CommandsRouter-C7X-eXE2.js";
29
29
  import "../EventsRouter-BacqK6z3.js";
30
30
  import "../index-CUPkUUOR.js";
31
- import "../constants-Ce6w4OFe.js";
31
+ import "../constants-BPWSrMkn.js";
32
32
  export { AnyCommandExecute, AppCommandHandler, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandExecutionMode, CommandRegistrar, CommandSource, CommandTypeData, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, ParsedMessageCommand, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext, exitMiddleware, isInteractionSource, isMessageSource, redirect, rethrow };
package/dist/app/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  require('../colors-Cd4Oz-r-.js');
2
2
  require('../ActionRow-CmTHbo2t.js');
3
3
  require('../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../CommandKit-O_Ra_xRL.js');
5
5
  require('../common-CcfjYnPG.js');
6
6
  require('../common-CeO-vn8Y.js');
7
7
  require('../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../warn-unstable-DHLaxPC8.js');
15
15
  require('../element-DcqNz1dV.js');
16
16
  require('../types-B5VPP9ig.js');
17
17
  require('../EventInterceptor-Bvh05z7n.js');
18
- require('../constants-DOPSzXI0.js');
18
+ require('../constants-CCqS_v55.js');
19
19
  require('../PluginCommon-DPqnQngK.js');
20
- require('../CompilerPlugin-XzuGixkC.js');
21
- require('../RuntimePlugin-CKsd83M3.js');
20
+ require('../CompilerPlugin-DrnhOC1c.js');
21
+ require('../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../types-Bq0EWaM3.js');
23
23
  require('../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../resolve-file-url-ifwdwqmq.js');
27
27
  const require_MessageCommandParser = require('../MessageCommandParser-D02-wpZN.js');
28
28
  const require_signals = require('../signals-scJdEbly.js');
29
- require('../types-package-BrES1tNq.js');
29
+ require('../types-package-B0Z-xrbB.js');
30
30
  require('../CommandsRouter-B91EHi6O.js');
31
31
  require('../EventsRouter-C_J0M3uO.js');
32
32
  require('../router-DHnFRADH.js');
33
- require('../common-CtMBxAf-.js');
33
+ require('../common-CoUM9Czx.js');
34
34
  require('../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../store-B9bo6On8.js');
36
36
  const require_helpers = require('../helpers-blGYXnUH.js');
@@ -1,4 +1,4 @@
1
- import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-Dbkak3_n.js";
1
+ import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-LJlFFidn.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -28,5 +28,5 @@ import "../../helpers-DAmE106r.js";
28
28
  import "../../CommandsRouter-C7X-eXE2.js";
29
29
  import "../../EventsRouter-BacqK6z3.js";
30
30
  import "../../index-CUPkUUOR.js";
31
- import "../../constants-Ce6w4OFe.js";
31
+ import "../../constants-BPWSrMkn.js";
32
32
  export { CommandRegistrar, PreRegisterCommandsEvent };
@@ -1,7 +1,7 @@
1
1
  require('../../colors-Cd4Oz-r-.js');
2
2
  require('../../ActionRow-CmTHbo2t.js');
3
3
  require('../../error-codes-C_UO39jz.js');
4
- const require_CommandKit = require('../../CommandKit-BhdXwM9b.js');
4
+ const require_CommandKit = require('../../CommandKit-O_Ra_xRL.js');
5
5
  require('../../common-CcfjYnPG.js');
6
6
  require('../../common-CeO-vn8Y.js');
7
7
  require('../../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../../warn-unstable-DHLaxPC8.js');
15
15
  require('../../element-DcqNz1dV.js');
16
16
  require('../../types-B5VPP9ig.js');
17
17
  require('../../EventInterceptor-Bvh05z7n.js');
18
- require('../../constants-DOPSzXI0.js');
18
+ require('../../constants-CCqS_v55.js');
19
19
  require('../../PluginCommon-DPqnQngK.js');
20
- require('../../CompilerPlugin-XzuGixkC.js');
21
- require('../../RuntimePlugin-CKsd83M3.js');
20
+ require('../../CompilerPlugin-DrnhOC1c.js');
21
+ require('../../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../../types-Bq0EWaM3.js');
23
23
  require('../../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../../runtime-D0JnztkU.js');
@@ -26,11 +26,11 @@ require('../../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../../resolve-file-url-ifwdwqmq.js');
27
27
  require('../../MessageCommandParser-D02-wpZN.js');
28
28
  require('../../signals-scJdEbly.js');
29
- require('../../types-package-BrES1tNq.js');
29
+ require('../../types-package-B0Z-xrbB.js');
30
30
  require('../../CommandsRouter-B91EHi6O.js');
31
31
  require('../../EventsRouter-C_J0M3uO.js');
32
32
  require('../../router-DHnFRADH.js');
33
- require('../../common-CtMBxAf-.js');
33
+ require('../../common-CoUM9Czx.js');
34
34
  require('../../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../../store-B9bo6On8.js');
36
36
 
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
- const require_common = require('./common-CtMBxAf-.js');
3
- const require_env = require('./env-DXL8PZiG.js');
2
+ const require_common = require('./common-CoUM9Czx.js');
3
+ const require_env = require('./env-D3rn_eei.js');
4
4
  const node_fs = require_chunk.__toESM(require("node:fs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const node_child_process = require_chunk.__toESM(require("node:child_process"));
@@ -45,4 +45,4 @@ Object.defineProperty(exports, 'createAppProcess', {
45
45
  return createAppProcess;
46
46
  }
47
47
  });
48
- //# sourceMappingURL=app-process-juzsCZp9.js.map
48
+ //# sourceMappingURL=app-process-DGKqfi5y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-process-juzsCZp9.js","names":[],"sources":["../src/cli/app-process.ts"],"sourcesContent":["import { IOType, spawn } from 'node:child_process';\nimport { DevEnv, ProdEnv } from './env';\nimport { join } from 'node:path';\nimport { existsSync } from 'node:fs';\nimport { panic } from './common';\n\nfunction getStdio(supportsCommands: boolean) {\n if (supportsCommands) {\n return ['pipe', 'pipe', 'pipe', 'ipc'];\n }\n\n return ['pipe', 'pipe', 'pipe'];\n}\n\nexport function createAppProcess(\n fileName: string,\n cwd: string,\n isDev: boolean,\n) {\n if (!existsSync(join(cwd, fileName))) {\n panic(`Could not locate the entrypoint file: ${fileName}`);\n }\n\n const stdio = getStdio(isDev) as IOType[];\n\n const ps = spawn(\n 'node',\n [\n `--title=\"CommandKit ${isDev ? 'Development' : 'Production'}\"`,\n '--enable-source-maps',\n fileName,\n ],\n {\n cwd,\n windowsHide: true,\n env: isDev ? DevEnv() : ProdEnv(),\n stdio,\n },\n );\n\n ps.stdout?.pipe(process.stdout);\n ps.stderr?.pipe(process.stderr);\n\n return ps;\n}\n"],"mappings":";;;;;;;;AAMA,SAAS,SAAS,kBAA2B;AAC3C,KAAI,iBACF,QAAO;EAAC;EAAQ;EAAQ;EAAQ;CAAM;AAGxC,QAAO;EAAC;EAAQ;EAAQ;CAAO;AACjC;AAEA,SAAgB,iBAChB,UACA,KACA,OACA;;AACE,MAAK,wBAAW,oBAAK,KAAK,SAAS,CAAC,CAClC,uBAAO,wCAAwC,SAAS,EAAE;CAG5D,MAAM,QAAQ,SAAS,MAAM;CAE7B,MAAM,KAAK,8BACT,QACA;GACC,sBAAsB,QAAQ,gBAAgB,aAAa;EAC5D;EACA;CAAS,GAET;EACE;EACA,aAAa;EACb,KAAK,QAAQ,oBAAQ,GAAG,qBAAS;EACjC;CACD,EACF;AAED,kBAAG,6CAAH,WAAW,KAAK,QAAQ,OAAO;AAC/B,kBAAG,6CAAH,WAAW,KAAK,QAAQ,OAAO;AAE/B,QAAO;AACT"}
1
+ {"version":3,"file":"app-process-DGKqfi5y.js","names":[],"sources":["../src/cli/app-process.ts"],"sourcesContent":["import { IOType, spawn } from 'node:child_process';\nimport { DevEnv, ProdEnv } from './env';\nimport { join } from 'node:path';\nimport { existsSync } from 'node:fs';\nimport { panic } from './common';\n\nfunction getStdio(supportsCommands: boolean) {\n if (supportsCommands) {\n return ['pipe', 'pipe', 'pipe', 'ipc'];\n }\n\n return ['pipe', 'pipe', 'pipe'];\n}\n\nexport function createAppProcess(\n fileName: string,\n cwd: string,\n isDev: boolean,\n) {\n if (!existsSync(join(cwd, fileName))) {\n panic(`Could not locate the entrypoint file: ${fileName}`);\n }\n\n const stdio = getStdio(isDev) as IOType[];\n\n const ps = spawn(\n 'node',\n [\n `--title=\"CommandKit ${isDev ? 'Development' : 'Production'}\"`,\n '--enable-source-maps',\n fileName,\n ],\n {\n cwd,\n windowsHide: true,\n env: isDev ? DevEnv() : ProdEnv(),\n stdio,\n },\n );\n\n ps.stdout?.pipe(process.stdout);\n ps.stderr?.pipe(process.stderr);\n\n return ps;\n}\n"],"mappings":";;;;;;;;AAMA,SAAS,SAAS,kBAA2B;AAC3C,KAAI,iBACF,QAAO;EAAC;EAAQ;EAAQ;EAAQ;CAAM;AAGxC,QAAO;EAAC;EAAQ;EAAQ;CAAO;AACjC;AAEA,SAAgB,iBAChB,UACA,KACA,OACA;;AACE,MAAK,wBAAW,oBAAK,KAAK,SAAS,CAAC,CAClC,uBAAO,wCAAwC,SAAS,EAAE;CAG5D,MAAM,QAAQ,SAAS,MAAM;CAE7B,MAAM,KAAK,8BACT,QACA;GACC,sBAAsB,QAAQ,gBAAgB,aAAa;EAC5D;EACA;CAAS,GAET;EACE;EACA,aAAa;EACb,KAAK,QAAQ,oBAAQ,GAAG,qBAAS;EACjC;CACD,EACF;AAED,kBAAG,6CAAH,WAAW,KAAK,QAAQ,OAAO;AAC/B,kBAAG,6CAAH,WAAW,KAAK,QAAQ,OAAO;AAE/B,QAAO;AACT"}
@@ -1,9 +1,9 @@
1
1
  const require_chunk = require('./chunk-nOFOJqeH.js');
2
- const require_CommandKit = require('./CommandKit-BhdXwM9b.js');
2
+ const require_CommandKit = require('./CommandKit-O_Ra_xRL.js');
3
3
  const require_CompilerPluginRuntime = require('./CompilerPluginRuntime-C9wmPMQf.js');
4
- const require_common = require('./common-CtMBxAf-.js');
5
- const require_env = require('./env-DXL8PZiG.js');
6
- const require_type_checker = require('./type-checker-BILXtCjQ.js');
4
+ const require_common = require('./common-CoUM9Czx.js');
5
+ const require_env = require('./env-D3rn_eei.js');
6
+ const require_type_checker = require('./type-checker-FHABnKlq.js');
7
7
  const node_path = require_chunk.__toESM(require("node:path"));
8
8
  const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
9
9
  const rimraf = require_chunk.__toESM(require("rimraf"));
@@ -42,11 +42,10 @@ async function buildApplication({ plugins, rolldownPlugins, isDev, configPath })
42
42
  plugins: rolldownPlugins,
43
43
  platform: "node",
44
44
  skipNodeModulesBundle: true,
45
- name: "CommandKit",
46
45
  sourcemap: true,
47
46
  target: "node16",
48
47
  outDir: dest,
49
- env: isDev ? require_env.DevEnv(true) : require_env.ProdEnv(true),
48
+ env: config.env || {},
50
49
  entry: [
51
50
  "src",
52
51
  `!${config.distDir}`,
@@ -126,4 +125,4 @@ Object.defineProperty(exports, 'buildApplication', {
126
125
  return buildApplication;
127
126
  }
128
127
  });
129
- //# sourceMappingURL=build-D45Rr7KV.js.map
128
+ //# sourceMappingURL=build-DwKrwWkl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-DwKrwWkl.js","names":[],"sources":["../src/cli/build.ts"],"sourcesContent":["import { build } from 'tsdown';\nimport { CompilerPlugin, CompilerPluginRuntime } from '../plugins';\nimport { loadConfigFile } from '../config/loader';\nimport { writeFile } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { DevEnv, devEnvFileArgs, ProdEnv, prodEnvFileArgs } from './env';\nimport { rimraf } from 'rimraf';\nimport { performTypeCheck } from './type-checker';\nimport { copyLocaleFiles } from './common';\nimport { MaybeArray } from '../components';\n\nexport interface ApplicationBuildOptions {\n plugins?: MaybeArray<CompilerPlugin>[] | Array<CompilerPlugin>;\n rolldownPlugins?: any[];\n isDev?: boolean;\n configPath?: string;\n}\n\nexport async function buildApplication({\n plugins,\n rolldownPlugins,\n isDev,\n configPath,\n}: ApplicationBuildOptions) {\n const config = await loadConfigFile(configPath);\n\n if (!isDev && !config?.typescript?.ignoreBuildErrors) {\n await performTypeCheck(configPath || process.cwd());\n }\n\n const pluginRuntime = new CompilerPluginRuntime(\n (plugins || []) as CompilerPlugin[],\n );\n\n rolldownPlugins ??= [];\n\n rolldownPlugins.push(pluginRuntime.toJSON());\n\n try {\n const dest = isDev ? '.commandkit' : config.distDir;\n\n // Clean the destination directory\n await rimraf(dest);\n\n await pluginRuntime.init();\n\n await build({\n watch: false,\n dts: false,\n clean: true,\n format: ['esm'],\n shims: true,\n minify: false,\n silent: !!isDev,\n inputOptions: {\n transform: {\n jsx: {\n runtime: 'automatic',\n importSource: 'commandkit',\n },\n },\n moduleTypes: {\n '.json': 'js',\n '.node': 'binary',\n },\n },\n plugins: rolldownPlugins,\n platform: 'node',\n skipNodeModulesBundle: true,\n sourcemap: true,\n target: 'node16',\n outDir: dest,\n env: config.env || {},\n entry: [\n 'src',\n `!${config.distDir}`,\n '!.commandkit',\n '!**/*.test.*',\n '!**/*.spec.*',\n ],\n unbundle: false,\n });\n\n await copyLocaleFiles('src', dest);\n await injectEntryFile(configPath || process.cwd(), !!isDev, config.distDir);\n } catch (error) {\n console.error('Build failed:', error);\n if (error instanceof Error) {\n console.error('Error details:', error.stack);\n }\n process.exit(1); // Force exit on error\n } finally {\n // Ensure plugins are cleaned up\n await pluginRuntime.destroy();\n }\n}\n\nconst envScript = (dev: boolean) => `// --- Environment Variables Loader ---\nconst $env = [${(dev ? devEnvFileArgs : prodEnvFileArgs).map((p) => `\"${p}\"`).join(', ')}];\nfor (const file of $env) {\n try {\n process.loadEnvFile(file);\n console.log('\\\\x1b[36m✔ Loaded \\\\x1b[0m\\\\x1b[33m%s\\\\x1b[0m', file);\n } catch {}\n}\n`;\n\nconst antiCrashScript = [\n '// --- CommandKit Anti-Crash Monitor ---',\n \" // 'uncaughtException' event is supposed to be used to perform synchronous cleanup before shutting down the process\",\n ' // instead of using it as a means to resume operation.',\n ' // But it exists here due to compatibility reasons with discord bot ecosystem.',\n \" const p = (t) => `\\\\x1b[31m${t}\\\\x1b[0m`, b = '[CommandKit Anti-Crash Monitor]', l = console.log, e1 = 'uncaughtException', e2 = 'unhandledRejection';\",\n ' if (!process.eventNames().includes(e1)) // skip if it is already handled',\n ' process.on(e1, (e) => {',\n ' l(p(`${b} Uncaught Exception`)); l(p(b), p(e.stack || e));',\n ' })',\n ' if (!process.eventNames().includes(e2)) // skip if it is already handled',\n ' process.on(e2, (r) => {',\n ' l(p(`${b} Unhandled promise rejection`)); l(p(`${b} ${r.stack || r}`));',\n ' });',\n '// --- CommandKit Anti-Crash Monitor ---',\n].join('\\n');\n\nconst wrapInAsyncIIFE = (code: string[]) =>\n `;await (async () => {\\n${code.join('\\n\\n')}\\n})();`;\n\nasync function injectEntryFile(\n configPath: string,\n isDev: boolean,\n distDir?: string,\n) {\n const code = `/* Entrypoint File Generated By CommandKit */\n${isDev ? `\\n\\n// Injected for development\\n${wrapInAsyncIIFE([envScript(isDev), antiCrashScript])}\\n\\n` : wrapInAsyncIIFE([envScript(isDev)])}\n\nimport { commandkit } from 'commandkit';\nimport { Client } from 'discord.js';\n\nasync function bootstrap() {\n const app = await import('./app.js').then((m) => m.default ?? m);\n\n if (!app || !(app instanceof Client)) {\n throw new Error('The app file must default export the discord.js client instance');\n }\n\n commandkit.setClient(app);\n\n await commandkit.start();\n}\n\nawait bootstrap().catch((e) => {\n console.error('Failed to bootstrap CommandKit application:\\\\n', e.stack);\n})\n`;\n\n const dist = isDev ? '.commandkit' : distDir || 'dist';\n\n await writeFile(join(configPath, dist, 'index.js'), code);\n}\n"],"mappings":";;;;;;;;;;;;AAkBA,eAAsB,iBAAiB,EACrC,SACA,iBACA,OACA,YACwB,EAAE;;CAC1B,MAAM,SAAS,MAAM,kCAAe,WAAW;AAE/C,MAAK,yEAAU,OAAQ,oFAAY,mBACjC,OAAM,sCAAiB,cAAc,QAAQ,KAAK,CAAC;CAGrD,MAAM,gBAAgB,IAAI,oDACvB,WAAW,CAAE;AAGhB,qBAAoB,CAAE;AAEtB,iBAAgB,KAAK,cAAc,QAAQ,CAAC;AAE5C,KAAI;EACF,MAAM,OAAO,QAAQ,gBAAgB,OAAO;AAG5C,QAAM,mBAAO,KAAK;AAElB,QAAM,cAAc,MAAM;AAE1B,QAAM,kBAAM;GACV,OAAO;GACP,KAAK;GACL,OAAO;GACP,QAAQ,CAAC,KAAM;GACf,OAAO;GACP,QAAQ;GACR,UAAU;GACV,cAAc;IACZ,WAAW,EACT,KAAK;KACH,SAAS;KACT,cAAc;IACf,EACF;IACD,aAAa;KACX,SAAS;KACT,SAAS;IACV;GACF;GACD,SAAS;GACT,UAAU;GACV,uBAAuB;GACvB,WAAW;GACX,QAAQ;GACR,QAAQ;GACR,KAAK,OAAO,OAAO,CAAE;GACrB,OAAO;IACP;KACC,GAAG,OAAO,QAAQ;IACnB;IACA;IACA;GAAe;GAEf,UAAU;EACX,EAAC;AAEF,QAAM,+BAAgB,OAAO,KAAK;AAClC,QAAM,gBAAgB,cAAc,QAAQ,KAAK,IAAI,OAAO,OAAO,QAAQ;CAC5E,SAAQ,OAAO;AACd,UAAQ,MAAM,iBAAiB,MAAM;AACrC,MAAI,iBAAiB,MACnB,SAAQ,MAAM,kBAAkB,MAAM,MAAM;AAE9C,UAAQ,KAAK,EAAE;CAChB,UAAS;AAER,QAAM,cAAc,SAAS;CAC/B;AACF;AAEA,MAAM,YAAY,CAAC,SAAkB;gBACrB,CAAC,MAAM,6BAAiB,6BAAiB,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,CAAC,KAAK,KAAK,CAAC;;;;;;;;AASzF,MAAM,kBAAkB;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAA2C,EAC3C,KAAK,KAAK;AAEV,MAAM,kBAAkB,CAAC,UACxB,yBAAyB,KAAK,KAAK,OAAO,CAAC;AAE5C,eAAe,gBACf,YACA,OACA,SACA;CACE,MAAM,QAAQ;EACd,SAAS,mCAAmC,gBAAgB,CAAC,UAAU,MAAM,EAAE,eAAgB,EAAC,CAAC,QAAQ,gBAAgB,CAAC,UAAU,MAAM,AAAC,EAAC,CAAA;;;;;;;;;;;;;;;;;;;;;CAsB5I,MAAM,OAAO,QAAQ,gBAAgB,WAAW;AAEhD,OAAM,gCAAU,oBAAK,YAAY,MAAM,WAAW,EAAE,KAAK;AAC3D"}
@@ -1,8 +1,8 @@
1
1
  require('../colors-Cd4Oz-r-.js');
2
- require('../constants-DOPSzXI0.js');
3
- require('../types-package-BrES1tNq.js');
4
- require('../common-CtMBxAf-.js');
5
- require('../env-DXL8PZiG.js');
6
- const require_app_process = require('../app-process-juzsCZp9.js');
2
+ require('../constants-CCqS_v55.js');
3
+ require('../types-package-B0Z-xrbB.js');
4
+ require('../common-CoUM9Czx.js');
5
+ require('../env-D3rn_eei.js');
6
+ const require_app_process = require('../app-process-DGKqfi5y.js');
7
7
 
8
8
  exports.createAppProcess = require_app_process.createAppProcess;
@@ -1,4 +1,4 @@
1
- import { CompilerPlugin } from "../CommandKit-Dbkak3_n.js";
1
+ import { CompilerPlugin } from "../CommandKit-LJlFFidn.js";
2
2
  import "../EventInterceptor-D_oEWSnF.js";
3
3
  import "../ButtonKit-BSI7lCI0.js";
4
4
  import "../ModalKit-CKtQ8eXW.js";
@@ -28,7 +28,7 @@ import "../helpers-DAmE106r.js";
28
28
  import "../CommandsRouter-C7X-eXE2.js";
29
29
  import "../EventsRouter-BacqK6z3.js";
30
30
  import "../index-CUPkUUOR.js";
31
- import "../constants-Ce6w4OFe.js";
31
+ import "../constants-BPWSrMkn.js";
32
32
 
33
33
  //#region src/cli/build.d.ts
34
34
  interface ApplicationBuildOptions {
package/dist/cli/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  require('../colors-Cd4Oz-r-.js');
2
2
  require('../ActionRow-CmTHbo2t.js');
3
3
  require('../error-codes-C_UO39jz.js');
4
- require('../CommandKit-BhdXwM9b.js');
4
+ require('../CommandKit-O_Ra_xRL.js');
5
5
  require('../common-CcfjYnPG.js');
6
6
  require('../common-CeO-vn8Y.js');
7
7
  require('../container-CpuiLsZM.js');
@@ -15,10 +15,10 @@ require('../warn-unstable-DHLaxPC8.js');
15
15
  require('../element-DcqNz1dV.js');
16
16
  require('../types-B5VPP9ig.js');
17
17
  require('../EventInterceptor-Bvh05z7n.js');
18
- require('../constants-DOPSzXI0.js');
18
+ require('../constants-CCqS_v55.js');
19
19
  require('../PluginCommon-DPqnQngK.js');
20
- require('../CompilerPlugin-XzuGixkC.js');
21
- require('../RuntimePlugin-CKsd83M3.js');
20
+ require('../CompilerPlugin-DrnhOC1c.js');
21
+ require('../RuntimePlugin-BJoDa8ZR.js');
22
22
  require('../types-Bq0EWaM3.js');
23
23
  require('../CompilerPluginRuntime-C9wmPMQf.js');
24
24
  require('../runtime-D0JnztkU.js');
@@ -26,15 +26,15 @@ require('../EventWorkerContext-BAKiTqJz.js');
26
26
  require('../resolve-file-url-ifwdwqmq.js');
27
27
  require('../MessageCommandParser-D02-wpZN.js');
28
28
  require('../signals-scJdEbly.js');
29
- require('../types-package-BrES1tNq.js');
29
+ require('../types-package-B0Z-xrbB.js');
30
30
  require('../CommandsRouter-B91EHi6O.js');
31
31
  require('../EventsRouter-C_J0M3uO.js');
32
32
  require('../router-DHnFRADH.js');
33
- require('../common-CtMBxAf-.js');
33
+ require('../common-CoUM9Czx.js');
34
34
  require('../CommandKitEventsChannel-BnSPcFdq.js');
35
35
  require('../store-B9bo6On8.js');
36
- require('../env-DXL8PZiG.js');
37
- require('../type-checker-BILXtCjQ.js');
38
- const require_build = require('../build-D45Rr7KV.js');
36
+ require('../env-D3rn_eei.js');
37
+ require('../type-checker-FHABnKlq.js');
38
+ const require_build = require('../build-DwKrwWkl.js');
39
39
 
40
40
  exports.buildApplication = require_build.buildApplication;