commandkit 1.2.1-dev.20260414011507 → 1.2.1-dev.20260919165908

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 (269) hide show
  1. package/README.md +1 -1
  2. package/cache.cjs +2 -0
  3. package/cache.d.ts +1 -0
  4. package/dist/{ActionRow-Bt9qi0Mb.d.ts → ActionRow-DSh9roc5.d.ts} +2 -3
  5. package/dist/{Button-DxJLcZIU.d.ts → Button-BPsE5ju0.d.ts} +5 -6
  6. package/dist/{ButtonKit-BfcyvWfj.d.ts → ButtonKit-CNPmVg3h.d.ts} +2 -3
  7. package/dist/{ChannelSelectMenuKit-DYkudikb.d.ts → ChannelSelectMenuKit-CcOdaLQ6.d.ts} +3 -4
  8. package/dist/{CommandTree-DwfiCsOl.d.ts → CommandTree-qu-8oAEV.d.ts} +1 -1
  9. package/dist/{CommandsRouter-D-b3xv38.d.ts → CommandsRouter-Co225Ae5.d.ts} +24 -4
  10. package/dist/{EventInterceptor-D9JKMcfi.d.ts → EventInterceptor-wg378vJp.d.ts} +1 -2
  11. package/dist/{EventsRouter-Dyr_oJJD.d.ts → EventsRouter-Bt63ZuEF.d.ts} +21 -2
  12. package/dist/{MentionableSelectMenuKit-Mu4xqP6B.d.ts → MentionableSelectMenuKit-8_Nkgn_a.d.ts} +3 -4
  13. package/dist/{MessageCommandParser-UTKsRvb9.d.ts → MessageCommandParser-BYbxHOSK.d.ts} +1 -2
  14. package/dist/{Modal-v9rrcMl-.d.ts → Modal-DbWK6VmV.d.ts} +5 -6
  15. package/dist/{ModalKit-XJSM65SV.d.ts → ModalKit-CnmUVpw-.d.ts} +2 -3
  16. package/dist/{RoleSelectMenuKit-CCjcp3HY.d.ts → RoleSelectMenuKit-Bei7DHqD.d.ts} +3 -4
  17. package/dist/{SelectMenu-CY0vvoSu.d.ts → SelectMenu-Bce_PClo.d.ts} +8 -9
  18. package/dist/{StringSelectMenuKit-G5nBTicX.d.ts → StringSelectMenuKit-CBeB9HqT.d.ts} +3 -4
  19. package/dist/TreeArtifact-D6FZ5SVd.d.ts +27 -0
  20. package/dist/{UserSelectMenuKit-D3SO_fXA.d.ts → UserSelectMenuKit-DZmeZ_Tp.d.ts} +3 -4
  21. package/dist/analytics/analytics-engine.d.ts +1 -1
  22. package/dist/analytics/analytics-engine.js +1 -1
  23. package/dist/analytics/analytics-provider.d.ts +1 -1
  24. package/dist/analytics/constants.js +0 -1
  25. package/dist/analytics/constants.js.map +1 -1
  26. package/dist/analytics/utils.js +1 -1
  27. package/dist/{analytics-engine-BYA0ongA.d.ts → analytics-engine-Bz1p7ud3.d.ts} +51 -15
  28. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  29. package/dist/app/commands/AppCommandRunner.js +1 -1
  30. package/dist/app/commands/Context.d.ts +1 -1
  31. package/dist/app/commands/Context.js +1 -1
  32. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  33. package/dist/app/commands/MessageCommandParser.js +4 -1
  34. package/dist/app/commands/MessageCommandParser.js.map +1 -1
  35. package/dist/app/commands/helpers.d.ts +1 -1
  36. package/dist/app/commands/helpers.js +0 -1
  37. package/dist/app/commands/helpers.js.map +1 -1
  38. package/dist/app/events/EventWorkerContext.d.ts +3 -3
  39. package/dist/app/events/EventWorkerContext.js +0 -1
  40. package/dist/app/events/EventWorkerContext.js.map +1 -1
  41. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  42. package/dist/app/handlers/AppCommandHandler.js +1 -1
  43. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  44. package/dist/app/handlers/AppEventsHandler.js +1 -1
  45. package/dist/app/index.d.ts +5 -5
  46. package/dist/app/index.js +1 -1
  47. package/dist/app/interrupt/signals.d.ts +1 -1
  48. package/dist/app/interrupt/signals.js.map +1 -1
  49. package/dist/app/middlewares/permissions.d.ts +1 -2
  50. package/dist/app/middlewares/permissions.js +1 -1
  51. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  52. package/dist/app/register/CommandRegistrar.js +1 -1
  53. package/dist/app/router/CommandTree.d.ts +1 -1
  54. package/dist/app/router/CommandsRouter.d.ts +2 -2
  55. package/dist/app/router/CommandsRouter.js +60 -1
  56. package/dist/app/router/CommandsRouter.js.map +1 -1
  57. package/dist/app/router/EventsRouter.d.ts +2 -2
  58. package/dist/app/router/EventsRouter.js +56 -3
  59. package/dist/app/router/EventsRouter.js.map +1 -1
  60. package/dist/app/router/TreeArtifact.d.ts +2 -0
  61. package/dist/app/router/TreeArtifact.js +87 -0
  62. package/dist/app/router/TreeArtifact.js.map +1 -0
  63. package/dist/app/router/index.d.ts +6 -4
  64. package/dist/app/router/index.js +8 -1
  65. package/dist/{checkbox-CvQGiyRe.d.ts → checkbox-DoR0Pcxm.d.ts} +2 -3
  66. package/dist/cli/app-process.d.ts +2 -4
  67. package/dist/cli/app-process.js +0 -1
  68. package/dist/cli/app-process.js.map +1 -1
  69. package/dist/cli/build.d.ts +4 -9
  70. package/dist/cli/build.js +30 -4
  71. package/dist/cli/build.js.map +1 -1
  72. package/dist/cli/common.d.ts +3 -6
  73. package/dist/cli/common.js +2 -2
  74. package/dist/cli/common.js.map +1 -1
  75. package/dist/cli/development.d.ts +4 -5
  76. package/dist/cli/development.js +11 -11
  77. package/dist/cli/development.js.map +1 -1
  78. package/dist/cli/env.js.map +1 -1
  79. package/dist/cli/generators.js +0 -1
  80. package/dist/cli/generators.js.map +1 -1
  81. package/dist/cli/information.js +4 -5
  82. package/dist/cli/information.js.map +1 -1
  83. package/dist/cli/init.d.ts +1 -3
  84. package/dist/cli/init.js +37 -12
  85. package/dist/cli/init.js.map +1 -1
  86. package/dist/cli/production.d.ts +1 -3
  87. package/dist/cli/production.js +1 -2
  88. package/dist/cli/production.js.map +1 -1
  89. package/dist/cli/type-checker.js +0 -1
  90. package/dist/cli/type-checker.js.map +1 -1
  91. package/dist/cli/utils.d.ts +0 -1
  92. package/dist/cli/utils.js.map +1 -1
  93. package/dist/{commandkit-DTqT800J.js → commandkit-DoxpAUsW.js} +165 -87
  94. package/dist/commandkit-DoxpAUsW.js.map +1 -0
  95. package/dist/commandkit.d.ts +1 -1
  96. package/dist/commandkit.js +1 -1
  97. package/dist/{common-CCvvgnxi.d.ts → common-CIbPzguv.d.ts} +2 -3
  98. package/dist/components/common/EventInterceptor.d.ts +1 -1
  99. package/dist/components/common/EventInterceptor.js +1 -0
  100. package/dist/components/common/EventInterceptor.js.map +1 -1
  101. package/dist/components/common/element.d.ts +1 -1
  102. package/dist/components/common/element.js +1 -1
  103. package/dist/components/common/types.d.ts +1 -1
  104. package/dist/components/display/common.d.ts +0 -1
  105. package/dist/components/display/common.js +1 -1
  106. package/dist/components/display/container.d.ts +1 -1
  107. package/dist/components/display/container.js +1 -1
  108. package/dist/components/display/file.d.ts +1 -1
  109. package/dist/components/display/file.js +0 -1
  110. package/dist/components/display/file.js.map +1 -1
  111. package/dist/components/display/index.d.ts +9 -8
  112. package/dist/components/display/index.js +1 -1
  113. package/dist/components/display/label.d.ts +1 -1
  114. package/dist/components/display/label.js +1 -1
  115. package/dist/components/display/media-gallery.d.ts +1 -1
  116. package/dist/components/display/media-gallery.js +1 -1
  117. package/dist/components/display/poll.d.ts +1 -1
  118. package/dist/components/display/poll.js +4 -10
  119. package/dist/components/display/poll.js.map +1 -1
  120. package/dist/components/display/section.d.ts +1 -1
  121. package/dist/components/display/section.js +1 -1
  122. package/dist/components/display/separator.d.ts +1 -1
  123. package/dist/components/display/separator.js +0 -1
  124. package/dist/components/display/separator.js.map +1 -1
  125. package/dist/components/display/text-display.d.ts +1 -1
  126. package/dist/components/display/text-display.js +0 -1
  127. package/dist/components/display/text-display.js.map +1 -1
  128. package/dist/components/index.d.ts +25 -24
  129. package/dist/components/index.js +1 -1
  130. package/dist/components/interactive/action-row/ActionRow.d.ts +1 -1
  131. package/dist/components/interactive/action-row/ActionRow.js +0 -1
  132. package/dist/components/interactive/action-row/ActionRow.js.map +1 -1
  133. package/dist/components/interactive/button/Button.d.ts +1 -1
  134. package/dist/components/interactive/button/Button.js +1 -1
  135. package/dist/components/interactive/button/ButtonKit.d.ts +1 -1
  136. package/dist/components/interactive/button/ButtonKit.js +1 -1
  137. package/dist/components/interactive/checkbox/checkbox.d.ts +1 -1
  138. package/dist/components/interactive/checkbox/checkbox.js +1 -1
  139. package/dist/components/interactive/modal/Modal.d.ts +1 -1
  140. package/dist/components/interactive/modal/Modal.js +1 -1
  141. package/dist/components/interactive/modal/ModalKit.d.ts +1 -1
  142. package/dist/components/interactive/modal/ModalKit.js +1 -1
  143. package/dist/components/interactive/radio/radio.d.ts +1 -1
  144. package/dist/components/interactive/radio/radio.js +1 -1
  145. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -1
  146. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +1 -1
  147. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -1
  148. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +1 -1
  149. package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -1
  150. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +1 -1
  151. package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -1
  152. package/dist/components/interactive/select-menu/SelectMenu.js +1 -1
  153. package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -1
  154. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +1 -1
  155. package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -1
  156. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +1 -1
  157. package/dist/components/interactive/select-menu/common.d.ts +1 -1
  158. package/dist/config/config.d.ts +1 -2
  159. package/dist/config/config.js +1 -1
  160. package/dist/config/default.d.ts +1 -2
  161. package/dist/config/default.js +1 -1
  162. package/dist/config/loader.d.ts +1 -2
  163. package/dist/config/loader.js +1 -1
  164. package/dist/config/types.d.ts +1 -1
  165. package/dist/config/utils.d.ts +1 -1
  166. package/dist/config/utils.js.map +1 -1
  167. package/dist/{constants-D_sgdBHy.d.ts → constants-B7AfnOFa.d.ts} +1 -1
  168. package/dist/{constants-GWSfiS4h.d.ts → constants-kWgE3L9F.d.ts} +15 -2
  169. package/dist/{container-B7Kmw__R.d.ts → container-NVgblXmw.d.ts} +1 -2
  170. package/dist/context/async-context.d.ts +1 -1
  171. package/dist/context/async-context.js +1 -1
  172. package/dist/context/environment.d.ts +1 -1
  173. package/dist/context/environment.js +1 -1
  174. package/dist/{element-DeLvTMfZ.d.ts → element-BMZYAAQ-.d.ts} +3 -4
  175. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  176. package/dist/events/CommandKitEventsChannel.js +3 -2
  177. package/dist/events/CommandKitEventsChannel.js.map +1 -1
  178. package/dist/{file-BP8aoN3A.d.ts → file-DYAmr697.d.ts} +1 -2
  179. package/dist/flags/FlagProvider.d.ts +1 -1
  180. package/dist/flags/FlagProvider.js +1 -0
  181. package/dist/flags/FlagProvider.js.map +1 -1
  182. package/dist/flags/feature-flags.d.ts +1 -1
  183. package/dist/flags/feature-flags.js +1 -1
  184. package/dist/flags/store.d.ts +1 -1
  185. package/dist/flags/store.js +0 -1
  186. package/dist/flags/store.js.map +1 -1
  187. package/dist/{helpers-C5jRrAM1.d.ts → helpers-vlnRvNJv.d.ts} +1 -2
  188. package/dist/index-CAFaKBs_.d.ts +8 -0
  189. package/dist/index-COt7nfC9.d.ts +2 -0
  190. package/dist/index-DvqHpiuh.d.ts +16 -0
  191. package/dist/index.d.ts +37 -34
  192. package/dist/index.js +9 -2
  193. package/dist/kv/constants.d.ts +1 -1
  194. package/dist/kv/constants.js.map +1 -1
  195. package/dist/kv/dotprops.js.map +1 -1
  196. package/dist/kv/kv.d.ts +0 -1
  197. package/dist/kv/kv.js +1 -1
  198. package/dist/kv/kv.js.map +1 -1
  199. package/dist/kv/serde.d.ts +1 -2
  200. package/dist/kv/serde.js +27 -27
  201. package/dist/kv/serde.js.map +1 -1
  202. package/dist/{label-CqHiBMXP.d.ts → label-DClaYktn.d.ts} +1 -2
  203. package/dist/logger/DefaultLogger.d.ts +0 -1
  204. package/dist/logger/DefaultLogger.js +1 -1
  205. package/dist/logger/Logger.d.ts +0 -1
  206. package/dist/logger/Logger.js +1 -1
  207. package/dist/logger/NoopLogger.d.ts +0 -1
  208. package/dist/logger/NoopLogger.js.map +1 -1
  209. package/dist/{media-gallery-hFfa57Kd.d.ts → media-gallery-z2Snzz-u.d.ts} +1 -2
  210. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  211. package/dist/plugins/CompilerPlugin.js +2 -2
  212. package/dist/plugins/CompilerPlugin.js.map +1 -1
  213. package/dist/plugins/PluginCommon.d.ts +1 -1
  214. package/dist/plugins/PluginCommon.js +1 -1
  215. package/dist/plugins/PluginCommon.js.map +1 -1
  216. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  217. package/dist/plugins/RuntimePlugin.js +2 -2
  218. package/dist/plugins/RuntimePlugin.js.map +1 -1
  219. package/dist/plugins/index.d.ts +1 -1
  220. package/dist/plugins/index.js +1 -1
  221. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  222. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +1 -1
  223. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  224. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
  225. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  226. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +1 -1
  227. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -2
  228. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +1 -1
  229. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  230. package/dist/plugins/types.d.ts +1 -1
  231. package/dist/{poll-ElAd5Z2K.d.ts → poll-D2QDStsw.d.ts} +4 -14
  232. package/dist/{radio-Dcd4YIZx.d.ts → radio-CJH_N4lq.d.ts} +2 -3
  233. package/dist/{section-BqDLXlp3.d.ts → section-DrFBT5b-.d.ts} +1 -2
  234. package/dist/{separator-DSaCa1Tc.d.ts → separator-BVm3w6yd.d.ts} +1 -2
  235. package/dist/{signals-DVOXPkQK.d.ts → signals-DRMDrCOn.d.ts} +1 -1
  236. package/dist/{text-display-D-0dD7bR.d.ts → text-display-BG0nNqy3.d.ts} +1 -2
  237. package/dist/{types-DZy7U-Ld.d.ts → types-ur7SvktF.d.ts} +1 -1
  238. package/dist/types.d.ts +1 -1
  239. package/dist/utils/colors.d.ts +1 -3
  240. package/dist/utils/colors.js +0 -1
  241. package/dist/utils/colors.js.map +1 -1
  242. package/dist/utils/constants.d.ts +2 -2
  243. package/dist/utils/constants.js +19 -0
  244. package/dist/utils/constants.js.map +1 -1
  245. package/dist/utils/dev-hooks.d.ts +1 -1
  246. package/dist/utils/dev-hooks.js +1 -1
  247. package/dist/utils/error-codes.js +15 -0
  248. package/dist/utils/error-codes.js.map +1 -1
  249. package/dist/utils/resolve-file-url.js +2 -2
  250. package/dist/utils/resolve-file-url.js.map +1 -1
  251. package/dist/utils/types-package.d.ts +6 -2
  252. package/dist/utils/types-package.js +31 -38
  253. package/dist/utils/types-package.js.map +1 -1
  254. package/dist/utils/useful-stuff/async-queue.js.map +1 -1
  255. package/dist/utils/useful-stuff/mutex.js.map +1 -1
  256. package/dist/utils/useful-stuff/ratelimiter.js +4 -1
  257. package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
  258. package/dist/utils/useful-stuff/semaphore.js.map +1 -1
  259. package/dist/utils/utilities.js +1 -1
  260. package/dist/utils/warning.d.ts +1 -5
  261. package/dist/utils/warning.js.map +1 -1
  262. package/dist/version.js +1 -1
  263. package/dist/version.js.map +1 -1
  264. package/package.json +17 -17
  265. package/dist/commandkit-DTqT800J.js.map +0 -1
  266. package/dist/index-CQiOqvUC.d.ts +0 -1
  267. package/dist/index-CTLjHn5u.d.ts +0 -1
  268. package/dist/index-LKrIp3Oo.d.ts +0 -1
  269. /package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-C_NdSu1c.js} +0 -0
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="https://raw.githubusercontent.com/neplextech/commandkit/main/apps/website/static/img/ckit_logo.svg" width="75%" />
2
+ <img src="https://raw.githubusercontent.com/neplexlabs/commandkit/main/apps/website/static/img/ckit_logo.svg" width="75%" />
3
3
  <br />
4
4
  <a href="https://commandkit.dev/discord"><img src="https://img.shields.io/discord/1055188344188973066?color=5865F2&logo=discord&logoColor=white" alt="support server" /></a>
5
5
  <a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/v/commandkit?maxAge=3600" alt="npm version" /></a>
package/cache.cjs CHANGED
@@ -1,4 +1,5 @@
1
1
  const {
2
+ $ckitiucw,
2
3
  cacheTag,
3
4
  cacheLife,
4
5
  revalidateTag,
@@ -11,6 +12,7 @@ const {
11
12
  } = require('@commandkit/cache');
12
13
 
13
14
  module.exports = {
15
+ $ckitiucw,
14
16
  cacheTag,
15
17
  cacheLife,
16
18
  revalidateTag,
package/cache.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export {
2
+ $ckitiucw,
2
3
  cacheTag,
3
4
  cacheLife,
4
5
  revalidateTag,
@@ -1,5 +1,4 @@
1
- import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-DeLvTMfZ.js";
2
-
1
+ import { n as CommandKitElement, t as AnyCommandKitElement } from "./element-BMZYAAQ-.js";
3
2
  //#region src/components/interactive/action-row/ActionRow.d.ts
4
3
  /**
5
4
  * The properties for the action row component.
@@ -16,4 +15,4 @@ interface ActionRowProps {
16
15
  declare function ActionRow(props: ActionRowProps): CommandKitElement<'action-row'>;
17
16
  //#endregion
18
17
  export { ActionRowProps as n, ActionRow as t };
19
- //# sourceMappingURL=ActionRow-Bt9qi0Mb.d.ts.map
18
+ //# sourceMappingURL=ActionRow-DSh9roc5.d.ts.map
@@ -1,9 +1,8 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-BfcyvWfj.js";
3
- import { n as CommandKitElement } from "./element-DeLvTMfZ.js";
4
- import { t as MaybeArray } from "./types-DZy7U-Ld.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as CommandKitButtonBuilderOnEnd, i as CommandKitButtonBuilderInteractionCollectorDispatchContextData, r as CommandKitButtonBuilderInteractionCollectorDispatch } from "./ButtonKit-CNPmVg3h.js";
3
+ import { n as CommandKitElement } from "./element-BMZYAAQ-.js";
4
+ import { t as MaybeArray } from "./types-ur7SvktF.js";
5
5
  import { ButtonStyle, ComponentEmojiResolvable } from "discord.js";
6
-
7
6
  //#region src/components/interactive/button/Button.d.ts
8
7
  /**
9
8
  * The button children type.
@@ -35,4 +34,4 @@ interface ButtonProps {
35
34
  declare function Button(props: ButtonProps): CommandKitElement<'button-kit'>;
36
35
  //#endregion
37
36
  export { ButtonChildrenLike as n, ButtonProps as r, Button as t };
38
- //# sourceMappingURL=Button-DxJLcZIU.d.ts.map
37
+ //# sourceMappingURL=Button-BPsE5ju0.d.ts.map
@@ -1,6 +1,5 @@
1
- import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
1
+ import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
2
  import { Awaitable, ButtonBuilder, ButtonInteraction, Events } from "discord.js";
3
-
4
3
  //#region src/components/interactive/button/ButtonKit.d.ts
5
4
  /**
6
5
  * The predicate function that filters button interactions.
@@ -83,4 +82,4 @@ declare class ButtonKit extends ButtonBuilder {
83
82
  }
84
83
  //#endregion
85
84
  export { CommandKitButtonBuilderOnEnd as a, CommandKitButtonBuilderInteractionCollectorDispatchContextData as i, ButtonKitPredicate as n, OnButtonKitClick as o, CommandKitButtonBuilderInteractionCollectorDispatch as r, OnButtonKitEnd as s, ButtonKit as t };
86
- //# sourceMappingURL=ButtonKit-BfcyvWfj.d.ts.map
85
+ //# sourceMappingURL=ButtonKit-CNPmVg3h.d.ts.map
@@ -1,7 +1,6 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
3
  import { ChannelSelectMenuBuilder, ChannelSelectMenuInteraction } from "discord.js";
4
-
5
4
  //#region src/components/interactive/select-menu/ChannelSelectMenuKit.d.ts
6
5
  /**
7
6
  * Type for the handler function that is called when the channel select menu is submitted.
@@ -63,4 +62,4 @@ declare class ChannelSelectMenuKit extends ChannelSelectMenuBuilder {
63
62
  }
64
63
  //#endregion
65
64
  export { ChannelSelectMenuKitPredicate as n, OnChannelSelectMenuKitSubmit as r, ChannelSelectMenuKit as t };
66
- //# sourceMappingURL=ChannelSelectMenuKit-DYkudikb.d.ts.map
65
+ //# sourceMappingURL=ChannelSelectMenuKit-CcOdaLQ6.d.ts.map
@@ -52,4 +52,4 @@ interface CommandRouteDiagnostic {
52
52
  }
53
53
  //#endregion
54
54
  export { CompiledCommandRoute as a, CommandTreeNodeSource as i, CommandTreeNode as n, CommandTreeNodeKind as r, CommandRouteDiagnostic as t };
55
- //# sourceMappingURL=CommandTree-DwfiCsOl.d.ts.map
55
+ //# sourceMappingURL=CommandTree-qu-8oAEV.d.ts.map
@@ -1,6 +1,5 @@
1
- import { a as CompiledCommandRoute, n as CommandTreeNode, t as CommandRouteDiagnostic } from "./CommandTree-DwfiCsOl.js";
1
+ import { a as CompiledCommandRoute, n as CommandTreeNode, t as CommandRouteDiagnostic } from "./CommandTree-qu-8oAEV.js";
2
2
  import { Collection } from "discord.js";
3
-
4
3
  //#region src/app/router/CommandsRouter.d.ts
5
4
  /**
6
5
  * Represents a command with its metadata and middleware associations.
@@ -42,6 +41,7 @@ interface ParsedCommandData {
42
41
  interface CommandsRouterOptions {
43
42
  entrypoint: string;
44
43
  }
44
+ type RouterFileChangeType = 'add' | 'change' | 'unlink' | 'unlinkDir';
45
45
  /**
46
46
  * Handles discovery and parsing of command and middleware files in the filesystem.
47
47
  */
@@ -136,6 +136,11 @@ declare class CommandsRouter {
136
136
  * @returns Parsed command data
137
137
  */
138
138
  scan(): Promise<ParsedCommandData>;
139
+ /**
140
+ * Incrementally updates only the top-level command subtree affected by a file change.
141
+ * Falls back to a full scan when the changed path cannot be safely scoped.
142
+ */
143
+ scanIncremental(changedPath: string, _changeType?: RouterFileChangeType): Promise<ParsedCommandData>;
139
144
  /**
140
145
  * Gets the raw command, middleware, and compiled tree collections.
141
146
  * @returns Object containing router collections
@@ -166,6 +171,16 @@ declare class CommandsRouter {
166
171
  * @internal
167
172
  */
168
173
  private initializeRootNode;
174
+ /**
175
+ * @private
176
+ * @internal
177
+ */
178
+ private ensureRootNode;
179
+ /**
180
+ * @private
181
+ * @internal
182
+ */
183
+ private pruneCommandSubtree;
169
184
  /**
170
185
  * @private
171
186
  * @internal
@@ -216,7 +231,12 @@ declare class CommandsRouter {
216
231
  * @internal
217
232
  */
218
233
  private replaceEntrypoint;
234
+ /**
235
+ * @private
236
+ * @internal
237
+ */
238
+ private isWithinPath;
219
239
  }
220
240
  //#endregion
221
- export { ParsedCommandData as a, Middleware as i, CommandsRouter as n, CommandsRouterOptions as r, Command as t };
222
- //# sourceMappingURL=CommandsRouter-D-b3xv38.d.ts.map
241
+ export { ParsedCommandData as a, Middleware as i, CommandsRouter as n, RouterFileChangeType as o, CommandsRouterOptions as r, Command as t };
242
+ //# sourceMappingURL=CommandsRouter-Co225Ae5.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { Awaitable, Client, ClientEvents } from "discord.js";
2
-
3
2
  //#region src/components/common/EventInterceptor.d.ts
4
3
  interface EventInterceptorContextData<E extends keyof ClientEvents> {
5
4
  /**
@@ -88,4 +87,4 @@ declare class EventInterceptor {
88
87
  }
89
88
  //#endregion
90
89
  export { EventInterceptorContextData as n, EventInterceptorErrorHandler as r, EventInterceptor as t };
91
- //# sourceMappingURL=EventInterceptor-D9JKMcfi.d.ts.map
90
+ //# sourceMappingURL=EventInterceptor-wg378vJp.d.ts.map
@@ -1,4 +1,5 @@
1
1
  //#region src/app/router/EventsRouter.d.ts
2
+ type EventsRouterFileChangeType = 'add' | 'change' | 'unlink' | 'unlinkDir';
2
3
  /**
3
4
  * Configuration options for the EventsRouter
4
5
  * @interface EventsRouterOptions
@@ -61,6 +62,10 @@ declare class EventsRouter {
61
62
  * Clear all parsed events
62
63
  */
63
64
  clear(): void;
65
+ /**
66
+ * Populates router state from pre-resolved event metadata.
67
+ */
68
+ populate(events: EventsTree): void;
64
69
  /**
65
70
  * Reload and re-scan the entrypoint directory for events
66
71
  * @returns Promise resolving to the updated events tree
@@ -71,6 +76,10 @@ declare class EventsRouter {
71
76
  * @returns Promise resolving to the events tree
72
77
  */
73
78
  scan(): Promise<EventsTree>;
79
+ /**
80
+ * Incrementally rescans only the event subtree impacted by a changed path.
81
+ */
82
+ scanIncremental(changedPath: string, _changeType?: EventsRouterFileChangeType): Promise<EventsTree>;
74
83
  /**
75
84
  * Convert the internal events Collection to a plain object
76
85
  * @returns Events tree as a plain object
@@ -84,7 +93,17 @@ declare class EventsRouter {
84
93
  * @returns Promise resolving to the parsed event metadata
85
94
  */
86
95
  private scanEvent;
96
+ /**
97
+ * @private
98
+ * @internal
99
+ */
100
+ private isWithinPath;
101
+ /**
102
+ * @private
103
+ * @internal
104
+ */
105
+ private resolveTopLevelBranch;
87
106
  }
88
107
  //#endregion
89
- export { ParsedEvent as i, EventsRouterOptions as n, EventsTree as r, EventsRouter as t };
90
- //# sourceMappingURL=EventsRouter-Dyr_oJJD.d.ts.map
108
+ export { ParsedEvent as a, EventsTree as i, EventsRouterFileChangeType as n, EventsRouterOptions as r, EventsRouter as t };
109
+ //# sourceMappingURL=EventsRouter-Bt63ZuEF.d.ts.map
@@ -1,7 +1,6 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
3
  import { MentionableSelectMenuBuilder, MentionableSelectMenuInteraction } from "discord.js";
4
-
5
4
  //#region src/components/interactive/select-menu/MentionableSelectMenuKit.d.ts
6
5
  /**
7
6
  * Type for the handler function that is called when the mentionable select menu is submitted.
@@ -58,4 +57,4 @@ declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
58
57
  }
59
58
  //#endregion
60
59
  export { MentionableSelectMenuKitPredicate as n, OnMentionableSelectMenuKitSubmit as r, MentionableSelectMenuKit as t };
61
- //# sourceMappingURL=MentionableSelectMenuKit-Mu4xqP6B.d.ts.map
60
+ //# sourceMappingURL=MentionableSelectMenuKit-8_Nkgn_a.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { ApplicationCommandOptionType, Attachment, CommandInteractionOption, GuildMember, Message, Role, User } from "discord.js";
2
2
  import { Channel } from "diagnostics_channel";
3
-
4
3
  //#region src/app/commands/MessageCommandParser.d.ts
5
4
  /**
6
5
  * Represents a parsed message command with its components.
@@ -197,4 +196,4 @@ declare class MessageCommandOptions {
197
196
  }
198
197
  //#endregion
199
198
  export { ParsedMessageCommand as i, MessageCommandOptionsSchema as n, MessageCommandParser as r, MessageCommandOptions as t };
200
- //# sourceMappingURL=MessageCommandParser-UTKsRvb9.d.ts.map
199
+ //# sourceMappingURL=MessageCommandParser-BYbxHOSK.d.ts.map
@@ -1,9 +1,8 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-XJSM65SV.js";
3
- import { n as CommandKitElement } from "./element-DeLvTMfZ.js";
4
- import { t as MaybeArray } from "./types-DZy7U-Ld.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { i as ModalKit, n as CommandKitModalBuilderInteractionCollectorDispatchContextData, o as OnModalKitEnd, s as OnModalKitSubmit } from "./ModalKit-CnmUVpw-.js";
3
+ import { n as CommandKitElement } from "./element-BMZYAAQ-.js";
4
+ import { t as MaybeArray } from "./types-ur7SvktF.js";
5
5
  import { FileUploadBuilder, FileUploadComponentData, TextInputStyle } from "discord.js";
6
-
7
6
  //#region src/components/interactive/modal/Modal.d.ts
8
7
  /**
9
8
  * The properties for the modal component.
@@ -72,4 +71,4 @@ interface FileUploadProps extends Omit<FileUploadComponentData, 'type' | 'requir
72
71
  declare function FileUpload(props: FileUploadProps): FileUploadBuilder;
73
72
  //#endregion
74
73
  export { ParagraphInput as a, TextInputProps as c, ModalProps as i, FileUploadProps as n, ShortInput as o, Modal as r, TextInput as s, FileUpload as t };
75
- //# sourceMappingURL=Modal-v9rrcMl-.d.ts.map
74
+ //# sourceMappingURL=Modal-DbWK6VmV.d.ts.map
@@ -1,6 +1,5 @@
1
- import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
1
+ import { n as EventInterceptorContextData, r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
2
  import { Awaitable, Events, ModalBuilder, ModalSubmitInteraction } from "discord.js";
3
-
4
3
  //#region src/components/interactive/modal/ModalKit.d.ts
5
4
  /**
6
5
  * The predicate function that filters modal interactions.
@@ -83,4 +82,4 @@ declare class ModalKit extends ModalBuilder {
83
82
  }
84
83
  //#endregion
85
84
  export { ModalKitPredicate as a, ModalKit as i, CommandKitModalBuilderInteractionCollectorDispatchContextData as n, OnModalKitEnd as o, CommandKitModalBuilderOnEnd as r, OnModalKitSubmit as s, CommandKitModalBuilderInteractionCollectorDispatch as t };
86
- //# sourceMappingURL=ModalKit-XJSM65SV.d.ts.map
85
+ //# sourceMappingURL=ModalKit-CnmUVpw-.d.ts.map
@@ -1,7 +1,6 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
3
  import { RoleSelectMenuBuilder, RoleSelectMenuInteraction } from "discord.js";
4
-
5
4
  //#region src/components/interactive/select-menu/RoleSelectMenuKit.d.ts
6
5
  /**
7
6
  * Type for the handler function that is called when the role select menu is submitted.
@@ -63,4 +62,4 @@ declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
63
62
  }
64
63
  //#endregion
65
64
  export { RoleSelectMenuKit as n, RoleSelectMenuKitPredicate as r, OnRoleSelectMenuKitSubmit as t };
66
- //# sourceMappingURL=RoleSelectMenuKit-CCjcp3HY.d.ts.map
65
+ //# sourceMappingURL=RoleSelectMenuKit-Bei7DHqD.d.ts.map
@@ -1,12 +1,11 @@
1
- import { t as MaybeArray } from "./types-DZy7U-Ld.js";
2
- import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
3
- import { n as StringSelectMenuKit } from "./StringSelectMenuKit-G5nBTicX.js";
4
- import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-DYkudikb.js";
5
- import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-Mu4xqP6B.js";
6
- import { n as UserSelectMenuKit } from "./UserSelectMenuKit-D3SO_fXA.js";
7
- import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-CCjcp3HY.js";
1
+ import { t as MaybeArray } from "./types-ur7SvktF.js";
2
+ import { n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
+ import { n as StringSelectMenuKit } from "./StringSelectMenuKit-CBeB9HqT.js";
4
+ import { t as ChannelSelectMenuKit } from "./ChannelSelectMenuKit-CcOdaLQ6.js";
5
+ import { t as MentionableSelectMenuKit } from "./MentionableSelectMenuKit-8_Nkgn_a.js";
6
+ import { n as UserSelectMenuKit } from "./UserSelectMenuKit-DZmeZ_Tp.js";
7
+ import { n as RoleSelectMenuKit } from "./RoleSelectMenuKit-Bei7DHqD.js";
8
8
  import { APISelectMenuOption, BaseSelectMenuComponentData, ChannelSelectMenuComponentData, ChannelSelectMenuInteraction, MentionableSelectMenuComponentData, MentionableSelectMenuInteraction, RoleSelectMenuComponentData, RoleSelectMenuInteraction, SelectMenuComponentOptionData, Snowflake, StringSelectMenuInteraction, StringSelectMenuOptionBuilder, UserSelectMenuComponentData, UserSelectMenuInteraction } from "discord.js";
9
-
10
9
  //#region src/components/interactive/select-menu/SelectMenu.d.ts
11
10
  /**
12
11
  * Type for the common properties shared by all select menu builders.
@@ -137,4 +136,4 @@ interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponent
137
136
  declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
138
137
  //#endregion
139
138
  export { MentionableSelectMenu as a, RoleSelectMenu as c, StringSelectMenu as d, StringSelectMenuOption as f, UserSelectMenuProps as g, UserSelectMenu as h, CommonSelectMenuProps as i, RoleSelectMenuProps as l, StringSelectMenuProps as m, ChannelSelectMenuProps as n, MentionableSelectMenuProps as o, StringSelectMenuOptionProps as p, CommonBuilderKit as r, ResolveBuilderInteraction as s, ChannelSelectMenu as t, SelectMenuProps as u };
140
- //# sourceMappingURL=SelectMenu-CY0vvoSu.d.ts.map
139
+ //# sourceMappingURL=SelectMenu-Bce_PClo.d.ts.map
@@ -1,7 +1,6 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
3
  import { StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
4
-
5
4
  //#region src/components/interactive/select-menu/StringSelectMenuKit.d.ts
6
5
  /**
7
6
  * Type for the handler function that is called when the string select menu is submitted.
@@ -63,4 +62,4 @@ declare class StringSelectMenuKit extends StringSelectMenuBuilder {
63
62
  }
64
63
  //#endregion
65
64
  export { StringSelectMenuKit as n, StringSelectMenuKitPredicate as r, OnStringSelectMenuKitSubmit as t };
66
- //# sourceMappingURL=StringSelectMenuKit-G5nBTicX.d.ts.map
65
+ //# sourceMappingURL=StringSelectMenuKit-CBeB9HqT.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { a as ParsedCommandData } from "./CommandsRouter-Co225Ae5.js";
2
+ import { i as EventsTree } from "./EventsRouter-Bt63ZuEF.js";
3
+ //#region src/app/router/TreeArtifact.d.ts
4
+ declare const ROUTER_TREE_ARTIFACT_SCHEMA_VERSION = 1;
5
+ declare const ROUTER_TREE_ARTIFACT_FILE = "router-tree.json";
6
+ declare const ROUTER_TREE_ARTIFACT_DIRECTORY = ".commandkit";
7
+ interface RouterTreeArtifact {
8
+ schemaVersion: number;
9
+ commandkitVersion: string;
10
+ generatedAt: string;
11
+ commands: ParsedCommandData;
12
+ events: EventsTree;
13
+ }
14
+ declare function createRouterTreeArtifact(options: {
15
+ outputRoot: string;
16
+ commandkitVersion: string;
17
+ commands: ParsedCommandData;
18
+ events: EventsTree;
19
+ }): RouterTreeArtifact;
20
+ declare function validateRouterTreeArtifact(input: unknown, runtimeVersion: string): input is RouterTreeArtifact;
21
+ declare function hydrateRouterTreeArtifact(artifact: RouterTreeArtifact, outputRoot: string): {
22
+ commands: ParsedCommandData;
23
+ events: EventsTree;
24
+ };
25
+ //#endregion
26
+ export { createRouterTreeArtifact as a, RouterTreeArtifact as i, ROUTER_TREE_ARTIFACT_FILE as n, hydrateRouterTreeArtifact as o, ROUTER_TREE_ARTIFACT_SCHEMA_VERSION as r, validateRouterTreeArtifact as s, ROUTER_TREE_ARTIFACT_DIRECTORY as t };
27
+ //# sourceMappingURL=TreeArtifact-D6FZ5SVd.d.ts.map
@@ -1,7 +1,6 @@
1
- import { r as EventInterceptorErrorHandler } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CCvvgnxi.js";
1
+ import { r as EventInterceptorErrorHandler } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as OnSelectMenuKitSubmit, n as CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, o as SelectMenuKitPredicate, r as CommandKitSelectMenuBuilderOnEnd, t as CommandKitSelectMenuBuilderInteractionCollectorDispatch } from "./common-CIbPzguv.js";
3
3
  import { UserSelectMenuBuilder, UserSelectMenuInteraction } from "discord.js";
4
-
5
4
  //#region src/components/interactive/select-menu/UserSelectMenuKit.d.ts
6
5
  /**
7
6
  * Type for the handler function that is called when the user select menu is submitted.
@@ -63,4 +62,4 @@ declare class UserSelectMenuKit extends UserSelectMenuBuilder {
63
62
  }
64
63
  //#endregion
65
64
  export { UserSelectMenuKit as n, UserSelectMenuKitPredicate as r, OnUserSelectMenuKitSubmit as t };
66
- //# sourceMappingURL=UserSelectMenuKit-D3SO_fXA.d.ts.map
65
+ //# sourceMappingURL=UserSelectMenuKit-DZmeZ_Tp.d.ts.map
@@ -1,2 +1,2 @@
1
- import { n as FilterFunction, t as AnalyticsEngine } from "../analytics-engine-BYA0ongA.js";
1
+ import { n as FilterFunction, t as AnalyticsEngine } from "../analytics-engine-Bz1p7ud3.js";
2
2
  export { AnalyticsEngine, FilterFunction };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_commandkit = require('../commandkit-DTqT800J.js');
2
+ const require_commandkit = require('../commandkit-DoxpAUsW.js');
3
3
 
4
4
  exports.AnalyticsEngine = require_commandkit.AnalyticsEngine;
@@ -1,2 +1,2 @@
1
- import { a as IdentifyEvent, i as AnalyticsProvider, r as AnalyticsEvent } from "../analytics-engine-BYA0ongA.js";
1
+ import { a as IdentifyEvent, i as AnalyticsProvider, r as AnalyticsEvent } from "../analytics-engine-Bz1p7ud3.js";
2
2
  export { AnalyticsEvent, AnalyticsProvider, IdentifyEvent };
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('../chunk-BE-pF4vm.js');
3
2
  let node_crypto = require("node:crypto");
4
3
 
5
4
  //#region src/analytics/constants.ts
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":[],"sources":["../../src/analytics/constants.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\n\n/**\n * @private\n * @internal\n */\nexport const DO_NOT_TRACK_KEY = `COMMANDKIT_ANALYTICS__DO_NOT_TRACK::${randomUUID()}`;\n\n/**\n * The analytics events that are used in CommandKit.\n * These events are used to track various actions and metrics within the CommandKit framework.\n */\nexport const AnalyticsEvents = {\n // commands\n COMMAND_EXECUTION: 'command_execution',\n // feature flags\n FEATURE_FLAG_METRICS: 'feature_flag_metrics',\n FEATURE_FLAG_DECISION: 'feature_flag_decision',\n // @commandkit/cache\n CACHE_HIT: 'cache_hit',\n CACHE_MISS: 'cache_miss',\n CACHE_REVALIDATED: 'cache_revalidated',\n} as const;\n\n/**\n * The type of analytics events that can be tracked in CommandKit.\n * This type is derived from the keys of the `AnalyticsEvents` object.\n * It ensures that only valid analytics events can be used in the tracking functions.\n */\nexport type AnalyticsEvent =\n (typeof AnalyticsEvents)[keyof typeof AnalyticsEvents];\n"],"mappings":";;;;;;;;;AAMA,MAAa,mBAAmB,oEAAmD;;;;;AAMnF,MAAa,kBAAkB;CAE7B,mBAAmB;CAEnB,sBAAsB;CACtB,uBAAuB;CAEvB,WAAW;CACX,YAAY;CACZ,mBAAmB;CACpB"}
1
+ {"version":3,"file":"constants.js","names":[],"sources":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_commandkit = require('../commandkit-DTqT800J.js');
2
+ const require_commandkit = require('../commandkit-DoxpAUsW.js');
3
3
 
4
4
  exports.getDoNotTrack = require_commandkit.getDoNotTrack;
5
5
  exports.noAnalytics = require_commandkit.noAnalytics;
@@ -1,17 +1,19 @@
1
- import { t as EventInterceptor } from "./EventInterceptor-D9JKMcfi.js";
2
- import { a as Fragment, c as createElement } from "./element-DeLvTMfZ.js";
3
- import { t as MaybeArray } from "./types-DZy7U-Ld.js";
4
- import { r as MessageCommandParser, t as MessageCommandOptions } from "./MessageCommandParser-UTKsRvb9.js";
5
- import { i as Middleware, n as CommandsRouter, t as Command } from "./CommandsRouter-D-b3xv38.js";
6
- import { i as ParsedEvent, t as EventsRouter } from "./EventsRouter-Dyr_oJJD.js";
7
- import { o as HMREventType } from "./constants-GWSfiS4h.js";
1
+ import { t as EventInterceptor } from "./EventInterceptor-wg378vJp.js";
2
+ import { a as Fragment, c as createElement } from "./element-BMZYAAQ-.js";
3
+ import { t as MaybeArray } from "./types-ur7SvktF.js";
4
+ import "./index-DvqHpiuh.js";
5
+ import { r as MessageCommandParser, t as MessageCommandOptions } from "./MessageCommandParser-BYbxHOSK.js";
6
+ import "./helpers-vlnRvNJv.js";
7
+ import { i as Middleware, n as CommandsRouter, o as RouterFileChangeType, t as Command } from "./CommandsRouter-Co225Ae5.js";
8
+ import { a as ParsedEvent, n as EventsRouterFileChangeType, t as EventsRouter } from "./EventsRouter-Bt63ZuEF.js";
9
+ import "./index-COt7nfC9.js";
10
+ import { o as HMREventChangeType, s as HMREventType } from "./constants-kWgE3L9F.js";
8
11
  import EventEmitter from "node:events";
9
12
  import { AutocompleteInteraction, Awaitable, CacheType, ChatInputCommandInteraction, Client, ClientEvents, Collection, Constructable, ContextMenuCommandBuilder, ContextMenuCommandInteraction, Guild, Interaction, Locale, Message, MessageContextMenuCommandInteraction, PermissionsString, RESTPostAPIApplicationCommandsJSONBody, SlashCommandBuilder, TextBasedChannel, UserContextMenuCommandInteraction } from "discord.js";
10
13
  import { DirectiveTransformerOptions } from "directive-to-hof";
11
14
  import { InlineConfig } from "tsdown";
12
-
13
15
  //#region src/types.d.ts
14
- type Prettify<T> = { [K in keyof T]: T[K] } & {};
16
+ type Prettify<T> = { [K in keyof T]: T[K]; } & {};
15
17
  /**
16
18
  * Options for instantiating a CommandKit handler.
17
19
  */
@@ -762,10 +764,20 @@ interface LoadedCommand {
762
764
  */
763
765
  data: AppCommand;
764
766
  }
767
+ /**
768
+ * Global registry used to infer strongly-typed command identifiers.
769
+ * This namespace is augmented by generated `commandkit/types` declarations.
770
+ */
771
+ declare global {
772
+ namespace CommandKitTypes {
773
+ interface Registry {}
774
+ }
775
+ }
776
+ type CommandTypeDataRegistryKeys = Exclude<keyof CommandKitTypes.Registry, '__commandkit_wide__'>;
765
777
  /**
766
778
  * Type representing command data identifier.
767
779
  */
768
- type CommandTypeData = string;
780
+ type CommandTypeData = [CommandTypeDataRegistryKeys] extends [never] ? string : Extract<CommandTypeDataRegistryKeys, string>;
769
781
  /**
770
782
  * Type for commands that can be resolved by the handler.
771
783
  */
@@ -946,7 +958,7 @@ declare class AppCommandHandler {
946
958
  /**
947
959
  * Reloads all commands and middleware from scratch.
948
960
  */
949
- reloadCommands(): Promise<void>;
961
+ reloadCommands(path?: string, changeType?: RouterFileChangeType): Promise<void>;
950
962
  /**
951
963
  * Adds external middleware data to be loaded.
952
964
  * @param data - Array of middleware data to add
@@ -1108,6 +1120,7 @@ interface LoadedEvent {
1108
1120
  event: ParsedEvent;
1109
1121
  listeners: EventListener[];
1110
1122
  mainListener?: EventListener;
1123
+ onceListener?: EventListener;
1111
1124
  executedOnceListeners?: Set<ListenerFunction>;
1112
1125
  }
1113
1126
  /**
@@ -1143,11 +1156,16 @@ declare class AppEventsHandler {
1143
1156
  /**
1144
1157
  * Reloads all events by unregistering existing ones and loading them again.
1145
1158
  */
1146
- reloadEvents(): Promise<void>;
1159
+ reloadEvents(path?: string, changeType?: EventsRouterFileChangeType): Promise<void>;
1147
1160
  /**
1148
1161
  * Loads all events from the events router and registers them with Discord.js client.
1149
1162
  */
1150
1163
  loadEvents(): Promise<void>;
1164
+ /**
1165
+ * @private
1166
+ * @internal
1167
+ */
1168
+ private loadEventsFromTree;
1151
1169
  /**
1152
1170
  * Unregisters all event listeners and clears loaded events.
1153
1171
  */
@@ -1175,6 +1193,10 @@ interface IpcMessageCommand {
1175
1193
  * The path associated with the HMR event.
1176
1194
  */
1177
1195
  path: string;
1196
+ /**
1197
+ * The original filesystem change type that triggered this HMR event.
1198
+ */
1199
+ changeType?: HMREventChangeType;
1178
1200
  /**
1179
1201
  * An optional identifier for the HMR event, used for acknowledgment.
1180
1202
  */
@@ -1192,6 +1214,10 @@ interface CommandKitHMREvent {
1192
1214
  * The path associated with the HMR event.
1193
1215
  */
1194
1216
  path: string;
1217
+ /**
1218
+ * The original filesystem change type that triggered this HMR event.
1219
+ */
1220
+ changeType?: HMREventChangeType;
1195
1221
  /**
1196
1222
  * Accepts the HMR event, indicating that it has been handled.
1197
1223
  * This prevents further processing of the event.
@@ -2076,6 +2102,16 @@ interface CommandKitConfig {
2076
2102
  * @default null
2077
2103
  */
2078
2104
  devServerRuntime?: CommandKitJsRuntime | null;
2105
+ /**
2106
+ * Whether to emit and hydrate a pre-generated commands/events artifact in production builds.
2107
+ * @default false
2108
+ */
2109
+ pregenerateCommands?: boolean;
2110
+ /**
2111
+ * Whether to use incremental router reconciliation in development HMR.
2112
+ * @default false
2113
+ */
2114
+ incrementalRouter?: boolean;
2079
2115
  };
2080
2116
  }
2081
2117
  //#endregion
@@ -2083,11 +2119,11 @@ interface CommandKitConfig {
2083
2119
  /**
2084
2120
  * @private
2085
2121
  */
2086
- type DeepRequired<T, OptionalKeys extends keyof T = never> = { [P in keyof T]-?: P extends OptionalKeys ? Partial<T[P]> : DeepRequired<T[P]> };
2122
+ type DeepRequired<T, OptionalKeys extends keyof T = never> = { [P in keyof T]-?: P extends OptionalKeys ? Partial<T[P]> : DeepRequired<T[P]>; };
2087
2123
  /**
2088
2124
  * @private
2089
2125
  */
2090
- type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]> };
2126
+ type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]>; };
2091
2127
  /**
2092
2128
  * @private
2093
2129
  * @example
@@ -2387,4 +2423,4 @@ declare class AnalyticsEngine {
2387
2423
  }
2388
2424
  //#endregion
2389
2425
  export { RuntimePlugin as $, InteractionCommandMiddlewareContext as $t, MaybePromise as A, isCommandWorkerContext as At, isPlugin as B, CommandRegistrar as Bt, DecideFunction as C, AppCommandRunner as Ct, FeatureFlagDefinition as D, exitContext as Dt, FeatureFlag as E, GenericFunction as Et, JsonFlagProvider as F, CommandKitEnvironment as Ft, CompilerPlugin as G, AutocompleteCommandMiddlewareContext as Gt, CompilerPluginRuntime as H, AnyCommandExecute as Ht, CommandKitPluginRuntime as I, CommandKitEnvironmentInternalData as It, isCompilerPlugin as J, CommandContextOptions as Jt, PluginTransformParameters as K, ChatInputCommand as Kt, PluginCommon as L, CommandKitEnvironmentType as Lt, setFlagProvider as M, provideContext as Mt, FlagConfiguration as N, useEnvironment as Nt, FlagRunner as O, getCommandKit as Ot, FlagProvider as P, useStore as Pt, TemplateHandler as Q, InteractionCommandContext as Qt, PluginOptions as R, after as Rt, CustomEvaluationFunction as S, RunCommand as St, EventFlagContext as T, AsyncFunction as Tt, CommonDirectiveTransformer as U, AutocompleteCommand as Ut, CommonPluginRuntime as V, PreRegisterCommandsEvent as Vt, CommonDirectiveTransformerOptions as W, AutocompleteCommandContext as Wt, CommandKitPlugin as X, Context as Xt, CommandKitEventDispatch as Y, CommandExecutionMode as Yt, MaybeFalsey as Z, ContextParameters as Zt, CommandKitConfig as _, EventHandler as _n, CommandTypeData as _t, IdentifyEvent as a, MessageContextMenuCommandMiddlewareContext as an, AppEventsHandlerLoadedData as at, CommandFlagContext as b, PreparedAppCommandExecution as bt, CommandKitConfiguration as c, SlashCommandMiddlewareContext as cn, CommandKitEventsChannel as ct, onBootstrap as d, UserContextMenuCommandMiddlewareContext as dn, AppCommandHandler as dt, MessageCommand as en, isRuntimePlugin as et, DeepPartial as f, CommandContext as fn, AppCommandNative as ft, CommandKitCompilerOptions as g, CommandMetadataFunction as gn, CommandDataSchemaValue as gt, mergeDeep as h, CommandMetadata as hn, CommandDataSchemaKey as ht, AnalyticsProvider as i, MessageContextMenuCommandContext as in, AppEventsHandler as it, flag as j, makeContextAwareFunction as jt, IdentifyFunction as k, getContext as kt, commandkit as l, UserContextMenuCommand as ln, ListenerFunction as lt, ResolvedCommandKitConfig as m, CommandKitOptions as mn, CommandDataSchema as mt, FilterFunction as n, MessageCommandMiddlewareContext as nn, IpcMessageCommand as nt, BootstrapFunction as o, MiddlewareContext as on, EventListener as ot, DeepRequired as p, CommandData as pn, CommandBuilderLike as pt, TransformedResult as q, ChatInputCommandContext as qt, AnalyticsEvent as r, MessageContextMenuCommand as rn, registerDevHooks as rt, CommandKit as s, MiddlewareContextArgs as sn, LoadedEvent as st, AnalyticsEngine as t, MessageCommandContext as tn, CommandKitHMREvent as tt, onApplicationBootstrap as u, UserContextMenuCommandContext as un, AppCommand as ut, CommandKitJsRuntime as v, CustomAppCommandProps as vt, EvaluationContext as w, RunCommandOptions as wt, CustomEvaluationContext as x, ResolvableCommand as xt, FlagStore as y, LoadedCommand as yt, PluginType as z, cancelAfter as zt };
2390
- //# sourceMappingURL=analytics-engine-BYA0ongA.d.ts.map
2426
+ //# sourceMappingURL=analytics-engine-Bz1p7ud3.d.ts.map
@@ -1,2 +1,2 @@
1
- import { Ct as AppCommandRunner, wt as RunCommandOptions } from "../../analytics-engine-BYA0ongA.js";
1
+ import { Ct as AppCommandRunner, wt as RunCommandOptions } from "../../analytics-engine-Bz1p7ud3.js";
2
2
  export { AppCommandRunner, RunCommandOptions };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_commandkit = require('../../commandkit-DTqT800J.js');
2
+ const require_commandkit = require('../../commandkit-DoxpAUsW.js');
3
3
 
4
4
  exports.AppCommandRunner = require_commandkit.AppCommandRunner;
@@ -1,2 +1,2 @@
1
- import { $t as InteractionCommandMiddlewareContext, Gt as AutocompleteCommandMiddlewareContext, Ht as AnyCommandExecute, Jt as CommandContextOptions, Kt as ChatInputCommand, Qt as InteractionCommandContext, Ut as AutocompleteCommand, Wt as AutocompleteCommandContext, Xt as Context, Yt as CommandExecutionMode, Zt as ContextParameters, an as MessageContextMenuCommandMiddlewareContext, cn as SlashCommandMiddlewareContext, dn as UserContextMenuCommandMiddlewareContext, en as MessageCommand, in as MessageContextMenuCommandContext, ln as UserContextMenuCommand, nn as MessageCommandMiddlewareContext, on as MiddlewareContext, qt as ChatInputCommandContext, rn as MessageContextMenuCommand, sn as MiddlewareContextArgs, tn as MessageCommandContext, un as UserContextMenuCommandContext } from "../../analytics-engine-BYA0ongA.js";
1
+ import { $t as InteractionCommandMiddlewareContext, Gt as AutocompleteCommandMiddlewareContext, Ht as AnyCommandExecute, Jt as CommandContextOptions, Kt as ChatInputCommand, Qt as InteractionCommandContext, Ut as AutocompleteCommand, Wt as AutocompleteCommandContext, Xt as Context, Yt as CommandExecutionMode, Zt as ContextParameters, an as MessageContextMenuCommandMiddlewareContext, cn as SlashCommandMiddlewareContext, dn as UserContextMenuCommandMiddlewareContext, en as MessageCommand, in as MessageContextMenuCommandContext, ln as UserContextMenuCommand, nn as MessageCommandMiddlewareContext, on as MiddlewareContext, qt as ChatInputCommandContext, rn as MessageContextMenuCommand, sn as MiddlewareContextArgs, tn as MessageCommandContext, un as UserContextMenuCommandContext } from "../../analytics-engine-Bz1p7ud3.js";
2
2
  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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_commandkit = require('../../commandkit-DTqT800J.js');
2
+ const require_commandkit = require('../../commandkit-DoxpAUsW.js');
3
3
 
4
4
  exports.CommandExecutionMode = require_commandkit.CommandExecutionMode;
5
5
  exports.Context = require_commandkit.Context;
@@ -1,2 +1,2 @@
1
- import { i as ParsedMessageCommand, n as MessageCommandOptionsSchema, r as MessageCommandParser, t as MessageCommandOptions } from "../../MessageCommandParser-UTKsRvb9.js";
1
+ import { i as ParsedMessageCommand, n as MessageCommandOptionsSchema, r as MessageCommandParser, t as MessageCommandOptions } from "../../MessageCommandParser-BYbxHOSK.js";
2
2
  export { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand };