commandkit 1.2.0-rc.12 → 1.2.0-rc.13

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 (343) hide show
  1. package/{COPYING.md → LICENSE.md} +3 -3
  2. package/README.md +3 -3
  3. package/bin/index.mjs +1 -1
  4. package/cli.d.ts +19 -0
  5. package/config.cjs +3 -0
  6. package/config.d.ts +1 -0
  7. package/dist/{ActionRow-B-7n9MMr.d.ts → ActionRow-B-CGmjDp.d.ts} +3 -4
  8. package/dist/{ActionRow-uJxU4UGo.js → ActionRow-CSN_UKmM.js} +2 -3
  9. package/dist/{ActionRow-uJxU4UGo.js.map → ActionRow-CSN_UKmM.js.map} +1 -1
  10. package/dist/{Button-RMp-w8HV.d.ts → Button-C-GPeFA3.d.ts} +6 -7
  11. package/dist/{ButtonKit-9k4yfhYD.d.ts → ButtonKit-DKu0VAe4.d.ts} +36 -37
  12. package/dist/ChannelSelectMenuKit-HQZ4hH5s.d.ts +66 -0
  13. package/dist/{CommandKitEventsChannel-2l9Za-le.js → CommandKitEventsChannel-CnT5ymYe.js} +2 -2
  14. package/dist/{CommandKitEventsChannel-2l9Za-le.js.map → CommandKitEventsChannel-CnT5ymYe.js.map} +1 -1
  15. package/dist/{CommandsRouter-CBdsqaWK.d.ts → CommandsRouter-C7dZEepB.d.ts} +49 -50
  16. package/dist/{CommandsRouter-CWMipIis.js → CommandsRouter-C_HLsrGX.js} +2 -6
  17. package/dist/{CommandsRouter-CWMipIis.js.map → CommandsRouter-C_HLsrGX.js.map} +1 -1
  18. package/dist/{CompilerPlugin-CZ4412Zm.js → CompilerPlugin-CUsGAfgl.js} +2 -2
  19. package/dist/{CompilerPlugin-CZ4412Zm.js.map → CompilerPlugin-CUsGAfgl.js.map} +1 -1
  20. package/dist/EventInterceptor-BWoEJMHZ.js.map +1 -1
  21. package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-CZmWpS08.d.ts} +40 -40
  22. package/dist/{EventWorkerContext-D_9q1Bm2.js → EventWorkerContext-Dfhgv329.js} +2 -3
  23. package/dist/{EventWorkerContext-D_9q1Bm2.js.map → EventWorkerContext-Dfhgv329.js.map} +1 -1
  24. package/dist/EventsRouter-DZ37r54v.d.ts +90 -0
  25. package/dist/{EventsRouter-C04XqRKf.js → EventsRouter-DZYIha6m.js} +2 -6
  26. package/dist/{EventsRouter-C04XqRKf.js.map → EventsRouter-DZYIha6m.js.map} +1 -1
  27. package/dist/MentionableSelectMenuKit-7URDUM3-.d.ts +61 -0
  28. package/dist/{MessageCommandParser-CKh-tM97.js → MessageCommandParser-Bs9fimmd.js} +2 -3
  29. package/dist/{MessageCommandParser-CKh-tM97.js.map → MessageCommandParser-Bs9fimmd.js.map} +1 -1
  30. package/dist/MessageCommandParser-q3dQcE5N.d.ts +194 -0
  31. package/dist/{Modal-Calb46SJ.d.ts → Modal-CZT9MZsy.d.ts} +20 -10
  32. package/dist/{ModalKit-Cq2ns6jv.d.ts → ModalKit-BWXI3Z26.d.ts} +33 -34
  33. package/dist/{PluginCommon-CPWV5xuX.js → PluginCommon-BLxWww5u.js} +6 -7
  34. package/dist/{PluginCommon-CPWV5xuX.js.map → PluginCommon-BLxWww5u.js.map} +1 -1
  35. package/dist/RoleSelectMenuKit-BY-JJ18w.d.ts +66 -0
  36. package/dist/{RuntimePlugin-COeXe8rP.js → RuntimePlugin-CtobluSU.js} +2 -2
  37. package/dist/{RuntimePlugin-COeXe8rP.js.map → RuntimePlugin-CtobluSU.js.map} +1 -1
  38. package/dist/{SelectMenu-VcDhOGoJ.d.ts → SelectMenu-q_b3Mjv9.d.ts} +9 -10
  39. package/dist/StringSelectMenuKit-lVhUMc3g.d.ts +66 -0
  40. package/dist/UserSelectMenuKit-CCj4Fpkr.d.ts +66 -0
  41. package/dist/analytics/analytics-engine.d.ts +1 -33
  42. package/dist/analytics/analytics-engine.js +22 -37
  43. package/dist/analytics/analytics-provider.d.ts +1 -33
  44. package/dist/analytics/constants.js +1 -1
  45. package/dist/analytics/utils.js +22 -37
  46. package/dist/{analytics-engine-NOInIjv8.d.ts → analytics-engine-WQhXmx3H.d.ts} +844 -841
  47. package/dist/app/commands/AppCommandRunner.d.ts +1 -33
  48. package/dist/app/commands/AppCommandRunner.js +22 -37
  49. package/dist/app/commands/Context.d.ts +1 -33
  50. package/dist/app/commands/Context.js +22 -37
  51. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  52. package/dist/app/commands/MessageCommandParser.js +1 -2
  53. package/dist/app/commands/helpers.d.ts +1 -1
  54. package/dist/app/commands/helpers.js +1 -1
  55. package/dist/app/events/EventWorkerContext.d.ts +42 -35
  56. package/dist/app/events/EventWorkerContext.js +1 -1
  57. package/dist/app/handlers/AppCommandHandler.d.ts +1 -33
  58. package/dist/app/handlers/AppCommandHandler.js +22 -37
  59. package/dist/app/handlers/AppEventsHandler.d.ts +1 -33
  60. package/dist/app/handlers/AppEventsHandler.js +22 -37
  61. package/dist/app/index.d.ts +4 -33
  62. package/dist/app/index.js +22 -38
  63. package/dist/app/interrupt/signals.d.ts +1 -1
  64. package/dist/app/interrupt/signals.js +2 -3
  65. package/dist/app/middlewares/permissions.d.ts +1 -33
  66. package/dist/app/middlewares/permissions.js +22 -37
  67. package/dist/app/register/CommandRegistrar.d.ts +1 -33
  68. package/dist/app/register/CommandRegistrar.js +22 -37
  69. package/dist/app/router/CommandsRouter.d.ts +1 -1
  70. package/dist/app/router/CommandsRouter.js +1 -1
  71. package/dist/app/router/EventsRouter.d.ts +1 -1
  72. package/dist/app/router/EventsRouter.js +1 -1
  73. package/dist/app/router/index.d.ts +2 -3
  74. package/dist/app/router/index.js +2 -2
  75. package/dist/{chunk-nOFOJqeH.js → chunk-kSYXY2_d.js} +10 -6
  76. package/dist/cli/app-process.d.ts +0 -1
  77. package/dist/cli/app-process.js +62 -7
  78. package/dist/cli/app-process.js.map +1 -0
  79. package/dist/cli/build.d.ts +2 -33
  80. package/dist/cli/build.js +189 -42
  81. package/dist/cli/build.js.map +1 -0
  82. package/dist/cli/common.d.ts +1 -33
  83. package/dist/cli/common.js +4 -4
  84. package/dist/cli/development.d.ts +18 -1
  85. package/dist/cli/development.js +41 -49
  86. package/dist/cli/development.js.map +1 -1
  87. package/dist/cli/env.d.ts +4 -0
  88. package/dist/cli/env.js +1 -1
  89. package/dist/cli/generators.js +5 -8
  90. package/dist/cli/generators.js.map +1 -1
  91. package/dist/cli/information.js +5 -5
  92. package/dist/cli/information.js.map +1 -1
  93. package/dist/cli/init.d.ts +12 -2
  94. package/dist/cli/init.js +100 -39
  95. package/dist/cli/init.js.map +1 -0
  96. package/dist/cli/production.d.ts +0 -1
  97. package/dist/cli/production.js +36 -49
  98. package/dist/cli/production.js.map +1 -1
  99. package/dist/cli/type-checker.js +5 -5
  100. package/dist/cli/utils.d.ts +0 -1
  101. package/dist/cli/utils.js +17 -2
  102. package/dist/cli/utils.js.map +1 -0
  103. package/dist/{colors-DL3ucTiT.js → colors-Csc0X4QJ.js} +2 -3
  104. package/dist/{colors-DL3ucTiT.js.map → colors-Csc0X4QJ.js.map} +1 -1
  105. package/dist/{commandkit-DabqpQ6v.js → commandkit-SIjTLD2R.js} +145 -46
  106. package/dist/commandkit-SIjTLD2R.js.map +1 -0
  107. package/dist/commandkit.d.ts +1 -33
  108. package/dist/commandkit.js +22 -37
  109. package/dist/{common-CCx-FJI4.js → common-CEordwf3.js} +1 -1
  110. package/dist/{common-CCx-FJI4.js.map → common-CEordwf3.js.map} +1 -1
  111. package/dist/{common-fIO6fqGZ.js → common-DSRs_mfw.js} +9 -12
  112. package/dist/{common-fIO6fqGZ.js.map → common-DSRs_mfw.js.map} +1 -1
  113. package/dist/{common-DHTTnX82.d.ts → common-DnwCYit8.d.ts} +3 -4
  114. package/dist/components/common/EventInterceptor.d.ts +1 -1
  115. package/dist/components/common/element.d.ts +1 -4
  116. package/dist/components/common/types.d.ts +1 -1
  117. package/dist/components/common/types.js +0 -1
  118. package/dist/components/display/common.d.ts +0 -1
  119. package/dist/components/display/common.js +1 -1
  120. package/dist/components/display/container.d.ts +1 -1
  121. package/dist/components/display/container.js +1 -2
  122. package/dist/components/display/file.d.ts +1 -1
  123. package/dist/components/display/file.js +1 -1
  124. package/dist/components/display/index.d.ts +8 -9
  125. package/dist/components/display/index.js +8 -9
  126. package/dist/components/display/label.d.ts +1 -1
  127. package/dist/components/display/label.js +1 -2
  128. package/dist/components/display/media-gallery.d.ts +1 -1
  129. package/dist/components/display/media-gallery.js +1 -2
  130. package/dist/components/display/poll.d.ts +1 -1
  131. package/dist/components/display/poll.js +1 -1
  132. package/dist/components/display/section.d.ts +1 -1
  133. package/dist/components/display/section.js +1 -2
  134. package/dist/components/display/separator.d.ts +1 -1
  135. package/dist/components/display/separator.js +1 -1
  136. package/dist/components/display/text-display.d.ts +1 -1
  137. package/dist/components/display/text-display.js +1 -1
  138. package/dist/components/index.d.ts +23 -26
  139. package/dist/components/index.js +23 -36
  140. package/dist/components/interactive/action-row/ActionRow.d.ts +1 -5
  141. package/dist/components/interactive/action-row/ActionRow.js +1 -1
  142. package/dist/components/interactive/button/Button.d.ts +1 -6
  143. package/dist/components/interactive/button/Button.js +22 -37
  144. package/dist/components/interactive/button/ButtonKit.d.ts +1 -2
  145. package/dist/components/interactive/button/ButtonKit.js +22 -37
  146. package/dist/components/interactive/modal/Modal.d.ts +2 -7
  147. package/dist/components/interactive/modal/Modal.js +23 -37
  148. package/dist/components/interactive/modal/ModalKit.d.ts +1 -2
  149. package/dist/components/interactive/modal/ModalKit.js +22 -37
  150. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -3
  151. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +22 -37
  152. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -3
  153. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +22 -37
  154. package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -3
  155. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +22 -37
  156. package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -9
  157. package/dist/components/interactive/select-menu/SelectMenu.js +22 -37
  158. package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -3
  159. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +22 -37
  160. package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -3
  161. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +22 -37
  162. package/dist/components/interactive/select-menu/common.d.ts +1 -2
  163. package/dist/components/interactive/select-menu/common.js +0 -1
  164. package/dist/config/config.d.ts +15 -35
  165. package/dist/config/config.js +22 -37
  166. package/dist/config/default.d.ts +1 -33
  167. package/dist/config/default.js +22 -37
  168. package/dist/config/loader.d.ts +1 -33
  169. package/dist/config/loader.js +22 -37
  170. package/dist/config/types.d.ts +1 -33
  171. package/dist/config/utils.d.ts +1 -33
  172. package/dist/constants-BFFK-hfP.js +27 -0
  173. package/dist/{constants-AH-9qJ89.js.map → constants-BFFK-hfP.js.map} +1 -1
  174. package/dist/{constants-DqnSDZ6l.d.ts → constants-CuYW0K10.d.ts} +14 -8
  175. package/dist/{constants-D0dawKxO.js → constants-Cw8VjCVz.js} +2 -3
  176. package/dist/{constants-D0dawKxO.js.map → constants-Cw8VjCVz.js.map} +1 -1
  177. package/dist/{constants-BMWH2YUr.js → constants-CxkFFZ7p.js} +16 -1
  178. package/dist/constants-CxkFFZ7p.js.map +1 -0
  179. package/dist/{constants-CCFSX2NG.d.ts → constants-EpKcj0dH.d.ts} +2 -2
  180. package/dist/{container-DC0eQigs.js → container-DCPljKVH.js} +3 -4
  181. package/dist/{container-DC0eQigs.js.map → container-DCPljKVH.js.map} +1 -1
  182. package/dist/{container-1ltvkavy.d.ts → container-DYcb7zGw.d.ts} +2 -3
  183. package/dist/context/async-context.d.ts +1 -33
  184. package/dist/context/async-context.js +22 -37
  185. package/dist/context/environment.d.ts +1 -33
  186. package/dist/context/environment.js +22 -37
  187. package/dist/element-DibzzA5L.js.map +1 -1
  188. package/dist/{element-CvNhvLZ8.d.ts → element-wQo0heGj.d.ts} +4 -5
  189. package/dist/{env-8yY-6pbC.js → env-CmspDhHy.js} +7 -3
  190. package/dist/env-CmspDhHy.js.map +1 -0
  191. package/dist/error-codes-Ds0bnPvT.js.map +1 -1
  192. package/dist/events/CommandKitEventsChannel.d.ts +1 -33
  193. package/dist/events/CommandKitEventsChannel.js +1 -1
  194. package/dist/{file-DAUOZYhC.js → file-Ca1kpEtE.js} +2 -3
  195. package/dist/{file-DAUOZYhC.js.map → file-Ca1kpEtE.js.map} +1 -1
  196. package/dist/{file-n2yl_-vl.d.ts → file-CrV4lSnl.d.ts} +2 -3
  197. package/dist/flags/FlagProvider.d.ts +1 -33
  198. package/dist/flags/feature-flags.d.ts +1 -33
  199. package/dist/flags/feature-flags.js +163 -41
  200. package/dist/flags/feature-flags.js.map +1 -0
  201. package/dist/flags/store.d.ts +1 -33
  202. package/dist/flags/store.js +1 -1
  203. package/dist/{helpers-hDh_tMb6.d.ts → helpers-AQPLVY35.d.ts} +2 -3
  204. package/dist/{helpers-D2_1jih6.js → helpers-Btx1FSZx.js} +2 -3
  205. package/dist/{helpers-D2_1jih6.js.map → helpers-Btx1FSZx.js.map} +1 -1
  206. package/dist/index.d.ts +41 -44
  207. package/dist/index.js +39 -45
  208. package/dist/index.js.map +1 -1
  209. package/dist/kv/constants.d.ts +1 -1
  210. package/dist/kv/constants.js +1 -1
  211. package/dist/kv/dotprops.js +25 -3
  212. package/dist/kv/dotprops.js.map +1 -0
  213. package/dist/kv/kv.d.ts +289 -290
  214. package/dist/kv/kv.js +14 -16
  215. package/dist/kv/kv.js.map +1 -1
  216. package/dist/kv/serde.d.ts +12 -3
  217. package/dist/kv/serde.js +86 -4
  218. package/dist/kv/serde.js.map +1 -0
  219. package/dist/{label-D0KXeBhk.d.ts → label-37kaNWMH.d.ts} +4 -5
  220. package/dist/{label-D-uJWRZ0.js → label-B6vXvwLM.js} +4 -5
  221. package/dist/{label-D-uJWRZ0.js.map → label-B6vXvwLM.js.map} +1 -1
  222. package/dist/logger/DefaultLogger.d.ts +66 -3
  223. package/dist/logger/DefaultLogger.js +22 -37
  224. package/dist/logger/ILogger.d.ts +64 -2
  225. package/dist/logger/ILogger.js +0 -1
  226. package/dist/logger/Logger.d.ts +36 -3
  227. package/dist/logger/Logger.js +22 -37
  228. package/dist/logger/NoopLogger.d.ts +36 -37
  229. package/dist/{media-gallery-BzG70ued.d.ts → media-gallery-Ci3I4ElH.d.ts} +2 -3
  230. package/dist/{media-gallery-BLhwe5lO.js → media-gallery-u3gjX7yD.js} +3 -4
  231. package/dist/{media-gallery-BLhwe5lO.js.map → media-gallery-u3gjX7yD.js.map} +1 -1
  232. package/dist/plugins/CompilerPlugin.d.ts +1 -33
  233. package/dist/plugins/CompilerPlugin.js +1 -2
  234. package/dist/plugins/PluginCommon.d.ts +1 -33
  235. package/dist/plugins/PluginCommon.js +1 -1
  236. package/dist/plugins/RuntimePlugin.d.ts +1 -33
  237. package/dist/plugins/RuntimePlugin.js +1 -2
  238. package/dist/plugins/index.d.ts +1 -33
  239. package/dist/plugins/index.js +24 -37
  240. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -33
  241. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +22 -37
  242. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -33
  243. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +22 -37
  244. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -33
  245. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +22 -37
  246. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -33
  247. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +22 -37
  248. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -33
  249. package/dist/plugins/plugin-runtime/runtime.js +0 -1
  250. package/dist/plugins/types.d.ts +1 -33
  251. package/dist/plugins/types.js +0 -1
  252. package/dist/{poll-Bc6rjeUS.js → poll-CFe8yvoJ.js} +12 -13
  253. package/dist/{poll-Bc6rjeUS.js.map → poll-CFe8yvoJ.js.map} +1 -1
  254. package/dist/{poll-HnaJcB0o.d.ts → poll-Ddtapd6n.d.ts} +8 -9
  255. package/dist/{resolve-file-url-CJoD0FAn.js → resolve-file-url-CdHqwWs3.js} +2 -2
  256. package/dist/{resolve-file-url-CJoD0FAn.js.map → resolve-file-url-CdHqwWs3.js.map} +1 -1
  257. package/dist/{section-BMcHN97i.js → section-BC8LF-B2.js} +3 -4
  258. package/dist/{section-BMcHN97i.js.map → section-BC8LF-B2.js.map} +1 -1
  259. package/dist/{section-BOaJKXiy.d.ts → section-DkUKULnB.d.ts} +2 -3
  260. package/dist/{separator-C___2K-f.js → separator-BUTiW7uz.js} +2 -3
  261. package/dist/{separator-C___2K-f.js.map → separator-BUTiW7uz.js.map} +1 -1
  262. package/dist/{separator-Cb7-6T6N.d.ts → separator-CbXsIFCa.d.ts} +2 -3
  263. package/dist/{signals-Cnqe9dFV.js → signals-B8z1wJ6W.js} +2 -2
  264. package/dist/{signals-Cnqe9dFV.js.map → signals-B8z1wJ6W.js.map} +1 -1
  265. package/dist/{signals-DBS60vTo.d.ts → signals-BbTgTc0i.d.ts} +2 -2
  266. package/dist/{store-ZwL2gN6a.js → store-D8r_hryO.js} +2 -3
  267. package/dist/{store-ZwL2gN6a.js.map → store-D8r_hryO.js.map} +1 -1
  268. package/dist/{text-display-B_hpz50P.d.ts → text-display-D7j39VC-.d.ts} +2 -3
  269. package/dist/{text-display-BtQR88kY.js → text-display-DANahMN3.js} +2 -3
  270. package/dist/{text-display-BtQR88kY.js.map → text-display-DANahMN3.js.map} +1 -1
  271. package/dist/{type-checker-CEFHoQoV.js → type-checker-cVd3Hpnh.js} +4 -6
  272. package/dist/{type-checker-CEFHoQoV.js.map → type-checker-cVd3Hpnh.js.map} +1 -1
  273. package/dist/{types-CJ-XvOFN.d.ts → types-BywA9d2Z.d.ts} +2 -2
  274. package/dist/{types-package-D11rQXLs.js → types-package-CsTNfvv2.js} +3 -6
  275. package/dist/{types-package-D11rQXLs.js.map → types-package-CsTNfvv2.js.map} +1 -1
  276. package/dist/types.d.ts +1 -33
  277. package/dist/utils/colors.js +1 -1
  278. package/dist/utils/constants.d.ts +2 -2
  279. package/dist/utils/constants.js +3 -2
  280. package/dist/utils/dev-hooks.d.ts +1 -33
  281. package/dist/utils/dev-hooks.js +22 -37
  282. package/dist/utils/error-codes.d.ts +54 -2
  283. package/dist/utils/resolve-file-url.d.ts +11 -2
  284. package/dist/utils/resolve-file-url.js +1 -1
  285. package/dist/utils/types-package.js +2 -2
  286. package/dist/utils/useful-stuff/async-queue.d.ts +21 -21
  287. package/dist/utils/useful-stuff/mutex.d.ts +62 -62
  288. package/dist/utils/useful-stuff/ratelimiter.d.ts +56 -56
  289. package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
  290. package/dist/utils/useful-stuff/semaphore.d.ts +82 -82
  291. package/dist/utils/utilities.d.ts +113 -2
  292. package/dist/utils/utilities.js +25 -38
  293. package/dist/utils-Br3eenD1.js.map +1 -1
  294. package/dist/version.d.ts +8 -2
  295. package/dist/version.js +12 -2
  296. package/dist/version.js.map +1 -0
  297. package/dist/warning-CszH8HeS.js.map +1 -1
  298. package/hooks.cjs +11 -4
  299. package/package.json +14 -7
  300. package/dist/ChannelSelectMenuKit-CsYgIyKe.d.ts +0 -67
  301. package/dist/DefaultLogger-CHMVsizQ.d.ts +0 -67
  302. package/dist/EventWorkerContext-CLhZRHhH.d.ts +0 -43
  303. package/dist/EventsRouter-4pT6vj-U.d.ts +0 -90
  304. package/dist/ILogger-BQ2ew4zR.d.ts +0 -64
  305. package/dist/Logger-DyV7oli4.d.ts +0 -37
  306. package/dist/MentionableSelectMenuKit-CO9phWMf.d.ts +0 -62
  307. package/dist/MessageCommandParser-DEOl_ifb.d.ts +0 -195
  308. package/dist/RoleSelectMenuKit-DvBxzpWh.d.ts +0 -67
  309. package/dist/StringSelectMenuKit-CJ0MzUZJ.d.ts +0 -67
  310. package/dist/UserSelectMenuKit-C_J-9RJs.d.ts +0 -67
  311. package/dist/app-CrjK9yWX.js +0 -0
  312. package/dist/app-process-AQ3Cbf6j.js +0 -68
  313. package/dist/app-process-AQ3Cbf6j.js.map +0 -1
  314. package/dist/build-BYMHMOl_.js +0 -173
  315. package/dist/build-BYMHMOl_.js.map +0 -1
  316. package/dist/commandkit-DabqpQ6v.js.map +0 -1
  317. package/dist/common-0Iw8ZeM6.js +0 -0
  318. package/dist/config-DbgXt6mf.d.ts +0 -16
  319. package/dist/constants-AH-9qJ89.js +0 -27
  320. package/dist/constants-BMWH2YUr.js.map +0 -1
  321. package/dist/dotprops-DvJUE8fw.js +0 -36
  322. package/dist/dotprops-DvJUE8fw.js.map +0 -1
  323. package/dist/env-8yY-6pbC.js.map +0 -1
  324. package/dist/error-codes-BiNRVMiV.d.ts +0 -54
  325. package/dist/feature-flags-BoBV4Dsj.js +0 -160
  326. package/dist/feature-flags-BoBV4Dsj.js.map +0 -1
  327. package/dist/init-CBb0StSB.js +0 -91
  328. package/dist/init-CBb0StSB.js.map +0 -1
  329. package/dist/init-DSYckXwx.d.ts +0 -13
  330. package/dist/resolve-file-url-DFtR8jRR.d.ts +0 -11
  331. package/dist/serde-D4H23l2F.d.ts +0 -12
  332. package/dist/serde-DHHwhltz.js +0 -97
  333. package/dist/serde-DHHwhltz.js.map +0 -1
  334. package/dist/utilities-CQUaua43.d.ts +0 -87
  335. package/dist/utils-Bf-3Eevb.js +0 -23
  336. package/dist/utils-Bf-3Eevb.js.map +0 -1
  337. package/dist/version-DC4j2ZwU.js +0 -18
  338. package/dist/version-DC4j2ZwU.js.map +0 -1
  339. package/dist/version-DggMfP_1.d.ts +0 -8
  340. /package/dist/{ILogger-B0q7p7L1.js → common-C2jAjX4U.js} +0 -0
  341. /package/dist/{index-B5F3AfVc.d.ts → index-BJfko-dP.d.ts} +0 -0
  342. /package/dist/{index-BLwMeReG.d.ts → index-CCggO_hw.d.ts} +0 -0
  343. /package/dist/{index-h64gcVNJ.d.ts → index-CLjpoGi1.d.ts} +0 -0
@@ -1,6 +1,5 @@
1
- const require_chunk = require('./chunk-nOFOJqeH.js');
1
+ const require_chunk = require('./chunk-kSYXY2_d.js');
2
2
  let node_crypto = require("node:crypto");
3
- node_crypto = require_chunk.__toESM(node_crypto);
4
3
 
5
4
  //#region src/analytics/constants.ts
6
5
  /**
@@ -34,4 +33,4 @@ Object.defineProperty(exports, 'DO_NOT_TRACK_KEY', {
34
33
  return DO_NOT_TRACK_KEY;
35
34
  }
36
35
  });
37
- //# sourceMappingURL=constants-D0dawKxO.js.map
36
+ //# sourceMappingURL=constants-Cw8VjCVz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants-D0dawKxO.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-Cw8VjCVz.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"}
@@ -17,6 +17,15 @@ const COMMANDKIT_IS_CLI = process.env.COMMANDKIT_IS_CLI === "true";
17
17
  */
18
18
  const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === "true";
19
19
  /**
20
+ * Indicates that CommandKit is running in a build-like environment.
21
+ * @private
22
+ * @internal
23
+ */
24
+ function isBuildLikeEnvironment() {
25
+ if (process.env.COMMANDKIT_INTERNAL_IS_CLI_PROCESS === "true") return true;
26
+ return process.env.COMMANDKIT_IS_BUILD === "true";
27
+ }
28
+ /**
20
29
  * The current bootstrap mode of CommandKit.
21
30
  * This can be 'development' or 'production'.
22
31
  */
@@ -67,4 +76,10 @@ Object.defineProperty(exports, 'HMREventType', {
67
76
  return HMREventType;
68
77
  }
69
78
  });
70
- //# sourceMappingURL=constants-BMWH2YUr.js.map
79
+ Object.defineProperty(exports, 'isBuildLikeEnvironment', {
80
+ enumerable: true,
81
+ get: function () {
82
+ return isBuildLikeEnvironment;
83
+ }
84
+ });
85
+ //# sourceMappingURL=constants-CxkFFZ7p.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-CxkFFZ7p.js","names":[],"sources":["../src/utils/constants.ts"],"sourcesContent":["/**\n * The current working directory of the CommandKit instance.\n */\nexport const COMMANDKIT_CWD = process.env.COMMANDKIT_CWD || process.cwd();\n\n/**\n * Indicates whether CommandKit is running in development mode.\n */\nexport const COMMANDKIT_IS_DEV = process.env.COMMANDKIT_IS_DEV === 'true';\n\n/**\n * Indicates whether CommandKit is running in CLI thread.\n */\nexport const COMMANDKIT_IS_CLI = process.env.COMMANDKIT_IS_CLI === 'true';\n\n/**\n * Indicates whether CommandKit is running in test mode.\n */\nexport const COMMANDKIT_IS_TEST = process.env.COMMANDKIT_IS_TEST === 'true';\n\n/**\n * Indicates that CommandKit is running in a build-like environment.\n * @private\n * @internal\n */\nexport function isBuildLikeEnvironment() {\n const isCLI = process.env.COMMANDKIT_INTERNAL_IS_CLI_PROCESS === 'true';\n if (isCLI) return true;\n\n return process.env.COMMANDKIT_IS_BUILD === 'true';\n}\n\n/**\n * The current bootstrap mode of CommandKit.\n * This can be 'development' or 'production'.\n */\nexport const COMMANDKIT_BOOTSTRAP_MODE = (process.env\n .COMMANDKIT_BOOTSTRAP_MODE || 'development') as 'development' | 'production';\n\n/**\n * Types of Hot Module Replacement events\n */\nexport const HMREventType = {\n /**\n * HMR event for reloading commands.\n */\n ReloadCommands: 'reload-commands',\n /**\n * HMR event for reloading events.\n */\n ReloadEvents: 'reload-events',\n /**\n * HMR event for reloading unknown path, typically used by the plugins.\n */\n Unknown: 'unknown',\n} as const;\n\n/**\n * The type for HMR events.\n */\nexport type HMREventType = (typeof HMREventType)[keyof typeof HMREventType];\n"],"mappings":";;;;;AAGA,MAAa,iBAAiB,QAAQ,IAAI,kBAAkB,QAAQ,KAAK;;;;AAKzE,MAAa,oBAAoB,QAAQ,IAAI,sBAAsB;;;;AAKnE,MAAa,oBAAoB,QAAQ,IAAI,sBAAsB;;;;AAKnE,MAAa,qBAAqB,QAAQ,IAAI,uBAAuB;;;;;;AAOrE,SAAgB,yBAAyB;AAEvC,KADc,QAAQ,IAAI,uCAAuC,OACtD,QAAO;AAElB,QAAO,QAAQ,IAAI,wBAAwB;;;;;;AAO7C,MAAa,4BAA6B,QAAQ,IAClD,6BAA6B;;;;AAK7B,MAAa,eAAe;CAI1B,gBAAgB;CAIhB,cAAc;CAId,SAAS;CACV"}
@@ -15,5 +15,5 @@ declare enum SerializerType {
15
15
  RegExp = 12,
16
16
  }
17
17
  //#endregion
18
- export { SerializerType };
19
- //# sourceMappingURL=constants-CCFSX2NG.d.ts.map
18
+ export { SerializerType as t };
19
+ //# sourceMappingURL=constants-EpKcj0dH.d.ts.map
@@ -1,7 +1,6 @@
1
- const require_chunk = require('./chunk-nOFOJqeH.js');
2
- const require_common = require('./common-CCx-FJI4.js');
1
+ const require_chunk = require('./chunk-kSYXY2_d.js');
2
+ const require_common = require('./common-CEordwf3.js');
3
3
  let discord_js = require("discord.js");
4
- discord_js = require_chunk.__toESM(discord_js);
5
4
 
6
5
  //#region src/components/display/container.ts
7
6
  /**
@@ -41,4 +40,4 @@ Object.defineProperty(exports, 'Container', {
41
40
  return Container;
42
41
  }
43
42
  });
44
- //# sourceMappingURL=container-DC0eQigs.js.map
43
+ //# sourceMappingURL=container-DCPljKVH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"container-DC0eQigs.js","names":[],"sources":["../src/components/display/container.ts"],"sourcesContent":["import {\n ActionRowBuilder,\n ColorResolvable,\n ComponentBuilder,\n ContainerBuilder,\n ContainerComponentData,\n FileBuilder,\n MediaGalleryBuilder,\n resolveColor,\n SectionBuilder,\n SeparatorBuilder,\n TextDisplayBuilder,\n} from 'discord.js';\nimport { applyId } from './common';\n\n/**\n * Represents the properties for a container component.\n */\nexport interface ContainerProps\n extends Omit<ContainerComponentData, 'type' | 'components' | 'accentColor'> {\n accentColor?: ColorResolvable;\n children?: ComponentBuilder[];\n}\n\n/**\n * The components v2 container component\n * @param props - The properties for the container component.\n * @returns the container builder instance.\n * @example ```tsx\n * import { Container } from 'commandkit';\n *\n * const container = <Container>...</Container>;\n * ```\n */\nexport function Container(props: ContainerProps): ContainerBuilder {\n const container = new ContainerBuilder();\n\n applyId(props, container);\n\n if (typeof props.accentColor != null) {\n container.setAccentColor(resolveColor(props.accentColor!));\n }\n\n if (props.spoiler != null) {\n container.setSpoiler(props.spoiler);\n }\n\n if (props.children != null) {\n if (!Array.isArray(props.children)) props.children = [props.children];\n if (props.children.length === 0) return container;\n\n for (const child of props.children.flat()) {\n if (child instanceof TextDisplayBuilder) {\n container.addTextDisplayComponents(child);\n }\n\n if (child instanceof FileBuilder) {\n container.addFileComponents(child);\n }\n\n if (child instanceof ActionRowBuilder) {\n container.addActionRowComponents(child);\n }\n\n if (child instanceof SeparatorBuilder) {\n container.addSeparatorComponents(child);\n }\n\n if (child instanceof SectionBuilder) {\n container.addSectionComponents(child);\n }\n\n if (child instanceof MediaGalleryBuilder) {\n container.addMediaGalleryComponents(child);\n }\n }\n }\n\n return container;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkCA,SAAgB,UAAU,OAAyC;CACjE,MAAM,YAAY,IAAI,6BAAkB;AAExC,wBAAQ,OAAO,UAAU;AAGvB,WAAU,4CAA4B,MAAM,YAAa,CAAC;AAG5D,KAAI,MAAM,WAAW,KACnB,WAAU,WAAW,MAAM,QAAQ;AAGrC,KAAI,MAAM,YAAY,MAAM;AAC1B,MAAI,CAAC,MAAM,QAAQ,MAAM,SAAS,CAAE,OAAM,WAAW,CAAC,MAAM,SAAS;AACrE,MAAI,MAAM,SAAS,WAAW,EAAG,QAAO;AAExC,OAAK,MAAM,SAAS,MAAM,SAAS,MAAM,EAAE;AACzC,OAAI,iBAAiB,8BACnB,WAAU,yBAAyB,MAAM;AAG3C,OAAI,iBAAiB,uBACnB,WAAU,kBAAkB,MAAM;AAGpC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,0BACnB,WAAU,qBAAqB,MAAM;AAGvC,OAAI,iBAAiB,+BACnB,WAAU,0BAA0B,MAAM;;;AAKhD,QAAO"}
1
+ {"version":3,"file":"container-DCPljKVH.js","names":[],"sources":["../src/components/display/container.ts"],"sourcesContent":["import {\n ActionRowBuilder,\n ColorResolvable,\n ComponentBuilder,\n ContainerBuilder,\n ContainerComponentData,\n FileBuilder,\n MediaGalleryBuilder,\n resolveColor,\n SectionBuilder,\n SeparatorBuilder,\n TextDisplayBuilder,\n} from 'discord.js';\nimport { applyId } from './common';\n\n/**\n * Represents the properties for a container component.\n */\nexport interface ContainerProps\n extends Omit<ContainerComponentData, 'type' | 'components' | 'accentColor'> {\n accentColor?: ColorResolvable;\n children?: ComponentBuilder[];\n}\n\n/**\n * The components v2 container component\n * @param props - The properties for the container component.\n * @returns the container builder instance.\n * @example ```tsx\n * import { Container } from 'commandkit';\n *\n * const container = <Container>...</Container>;\n * ```\n */\nexport function Container(props: ContainerProps): ContainerBuilder {\n const container = new ContainerBuilder();\n\n applyId(props, container);\n\n if (typeof props.accentColor != null) {\n container.setAccentColor(resolveColor(props.accentColor!));\n }\n\n if (props.spoiler != null) {\n container.setSpoiler(props.spoiler);\n }\n\n if (props.children != null) {\n if (!Array.isArray(props.children)) props.children = [props.children];\n if (props.children.length === 0) return container;\n\n for (const child of props.children.flat()) {\n if (child instanceof TextDisplayBuilder) {\n container.addTextDisplayComponents(child);\n }\n\n if (child instanceof FileBuilder) {\n container.addFileComponents(child);\n }\n\n if (child instanceof ActionRowBuilder) {\n container.addActionRowComponents(child);\n }\n\n if (child instanceof SeparatorBuilder) {\n container.addSeparatorComponents(child);\n }\n\n if (child instanceof SectionBuilder) {\n container.addSectionComponents(child);\n }\n\n if (child instanceof MediaGalleryBuilder) {\n container.addMediaGalleryComponents(child);\n }\n }\n }\n\n return container;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,SAAgB,UAAU,OAAyC;CACjE,MAAM,YAAY,IAAI,6BAAkB;AAExC,wBAAQ,OAAO,UAAU;AAGvB,WAAU,4CAA4B,MAAM,YAAa,CAAC;AAG5D,KAAI,MAAM,WAAW,KACnB,WAAU,WAAW,MAAM,QAAQ;AAGrC,KAAI,MAAM,YAAY,MAAM;AAC1B,MAAI,CAAC,MAAM,QAAQ,MAAM,SAAS,CAAE,OAAM,WAAW,CAAC,MAAM,SAAS;AACrE,MAAI,MAAM,SAAS,WAAW,EAAG,QAAO;AAExC,OAAK,MAAM,SAAS,MAAM,SAAS,MAAM,EAAE;AACzC,OAAI,iBAAiB,8BACnB,WAAU,yBAAyB,MAAM;AAG3C,OAAI,iBAAiB,uBACnB,WAAU,kBAAkB,MAAM;AAGpC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,4BACnB,WAAU,uBAAuB,MAAM;AAGzC,OAAI,iBAAiB,0BACnB,WAAU,qBAAqB,MAAM;AAGvC,OAAI,iBAAiB,+BACnB,WAAU,0BAA0B,MAAM;;;AAKhD,QAAO"}
@@ -1,7 +1,6 @@
1
1
  import { ColorResolvable, ComponentBuilder, ContainerBuilder, ContainerComponentData } from "discord.js";
2
2
 
3
3
  //#region src/components/display/container.d.ts
4
-
5
4
  /**
6
5
  * Represents the properties for a container component.
7
6
  */
@@ -21,5 +20,5 @@ interface ContainerProps extends Omit<ContainerComponentData, 'type' | 'componen
21
20
  */
22
21
  declare function Container(props: ContainerProps): ContainerBuilder;
23
22
  //#endregion
24
- export { Container, ContainerProps };
25
- //# sourceMappingURL=container-1ltvkavy.d.ts.map
23
+ export { ContainerProps as n, Container as t };
24
+ //# sourceMappingURL=container-DYcb7zGw.d.ts.map
@@ -1,34 +1,2 @@
1
- import { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment, useStore } from "../analytics-engine-NOInIjv8.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-9k4yfhYD.js";
4
- import "../ModalKit-Cq2ns6jv.js";
5
- import "../element-CvNhvLZ8.js";
6
- import "../ActionRow-B-7n9MMr.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-RMp-w8HV.js";
9
- import "../Modal-Calb46SJ.js";
10
- import "../common-DHTTnX82.js";
11
- import "../StringSelectMenuKit-CJ0MzUZJ.js";
12
- import "../ChannelSelectMenuKit-CsYgIyKe.js";
13
- import "../MentionableSelectMenuKit-CO9phWMf.js";
14
- import "../UserSelectMenuKit-C_J-9RJs.js";
15
- import "../RoleSelectMenuKit-DvBxzpWh.js";
16
- import "../SelectMenu-VcDhOGoJ.js";
17
- import "../container-1ltvkavy.js";
18
- import "../file-n2yl_-vl.js";
19
- import "../media-gallery-BzG70ued.js";
20
- import "../section-BOaJKXiy.js";
21
- import "../separator-Cb7-6T6N.js";
22
- import "../text-display-B_hpz50P.js";
23
- import "../label-D0KXeBhk.js";
24
- import "../poll-HnaJcB0o.js";
25
- import "../index-h64gcVNJ.js";
26
- import "../index-BLwMeReG.js";
27
- import "../MessageCommandParser-DEOl_ifb.js";
28
- import "../signals-DBS60vTo.js";
29
- import "../helpers-hDh_tMb6.js";
30
- import "../CommandsRouter-CBdsqaWK.js";
31
- import "../EventsRouter-4pT6vj-U.js";
32
- import "../index-B5F3AfVc.js";
33
- import "../constants-DqnSDZ6l.js";
1
+ import { At as makeContextAwareFunction, Dt as getCommandKit, Et as exitContext, Mt as useEnvironment, Nt as useStore, Ot as getContext, Tt as GenericFunction, jt as provideContext, kt as isCommandWorkerContext, wt as AsyncFunction } from "../analytics-engine-WQhXmx3H.js";
34
2
  export { AsyncFunction, GenericFunction, exitContext, getCommandKit, getContext, isCommandWorkerContext, makeContextAwareFunction, provideContext, useEnvironment, useStore };
@@ -1,42 +1,27 @@
1
- require('../colors-DL3ucTiT.js');
2
- require('../ActionRow-uJxU4UGo.js');
3
- require('../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../commandkit-DabqpQ6v.js');
5
- require('../warning-CszH8HeS.js');
6
- require('../common-0Iw8ZeM6.js');
7
- require('../common-CCx-FJI4.js');
8
- require('../container-DC0eQigs.js');
9
- require('../file-DAUOZYhC.js');
10
- require('../media-gallery-BLhwe5lO.js');
11
- require('../section-BMcHN97i.js');
12
- require('../separator-C___2K-f.js');
13
- require('../text-display-BtQR88kY.js');
14
- require('../label-D-uJWRZ0.js');
15
- require('../poll-Bc6rjeUS.js');
1
+ require('../colors-Csc0X4QJ.js');
2
+ require('../ActionRow-CSN_UKmM.js');
3
+ const require_commandkit = require('../commandkit-SIjTLD2R.js');
4
+ require('../container-DCPljKVH.js');
5
+ require('../file-Ca1kpEtE.js');
6
+ require('../media-gallery-u3gjX7yD.js');
7
+ require('../section-BC8LF-B2.js');
8
+ require('../separator-BUTiW7uz.js');
9
+ require('../text-display-DANahMN3.js');
10
+ require('../label-B6vXvwLM.js');
11
+ require('../poll-CFe8yvoJ.js');
16
12
  require('../display-WDb9wMCv.js');
17
- require('../element-DibzzA5L.js');
18
- require('../types-TC4g3w91.js');
19
- require('../EventInterceptor-BWoEJMHZ.js');
20
- require('../constants-BMWH2YUr.js');
21
- require('../PluginCommon-CPWV5xuX.js');
22
- require('../CompilerPlugin-CZ4412Zm.js');
23
- require('../RuntimePlugin-COeXe8rP.js');
24
- require('../types-Cdh4uaFR.js');
25
- require('../resolve-file-url-CJoD0FAn.js');
26
- require('../runtime-Skt5NiOc.js');
27
- require('../utils-Br3eenD1.js');
28
- require('../types-package-D11rQXLs.js');
29
- require('../constants-D0dawKxO.js');
30
- require('../EventWorkerContext-D_9q1Bm2.js');
31
- require('../signals-Cnqe9dFV.js');
32
- require('../helpers-D2_1jih6.js');
33
- require('../MessageCommandParser-CKh-tM97.js');
34
- require('../CommandsRouter-CWMipIis.js');
35
- require('../EventsRouter-C04XqRKf.js');
13
+ require('../constants-CxkFFZ7p.js');
14
+ require('../types-package-CsTNfvv2.js');
15
+ require('../constants-Cw8VjCVz.js');
16
+ require('../EventWorkerContext-Dfhgv329.js');
17
+ require('../signals-B8z1wJ6W.js');
18
+ require('../helpers-Btx1FSZx.js');
19
+ require('../MessageCommandParser-Bs9fimmd.js');
20
+ require('../CommandsRouter-C_HLsrGX.js');
21
+ require('../EventsRouter-DZYIha6m.js');
36
22
  require('../router-BvamdzoF.js');
37
- require('../common-fIO6fqGZ.js');
38
- require('../CommandKitEventsChannel-2l9Za-le.js');
39
- require('../store-ZwL2gN6a.js');
23
+ require('../common-DSRs_mfw.js');
24
+ require('../store-D8r_hryO.js');
40
25
 
41
26
  exports.exitContext = require_commandkit.exitContext;
42
27
  exports.getCommandKit = require_commandkit.getCommandKit;
@@ -1,34 +1,2 @@
1
- import { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter } from "../analytics-engine-NOInIjv8.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-9k4yfhYD.js";
4
- import "../ModalKit-Cq2ns6jv.js";
5
- import "../element-CvNhvLZ8.js";
6
- import "../ActionRow-B-7n9MMr.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-RMp-w8HV.js";
9
- import "../Modal-Calb46SJ.js";
10
- import "../common-DHTTnX82.js";
11
- import "../StringSelectMenuKit-CJ0MzUZJ.js";
12
- import "../ChannelSelectMenuKit-CsYgIyKe.js";
13
- import "../MentionableSelectMenuKit-CO9phWMf.js";
14
- import "../UserSelectMenuKit-C_J-9RJs.js";
15
- import "../RoleSelectMenuKit-DvBxzpWh.js";
16
- import "../SelectMenu-VcDhOGoJ.js";
17
- import "../container-1ltvkavy.js";
18
- import "../file-n2yl_-vl.js";
19
- import "../media-gallery-BzG70ued.js";
20
- import "../section-BOaJKXiy.js";
21
- import "../separator-Cb7-6T6N.js";
22
- import "../text-display-B_hpz50P.js";
23
- import "../label-D0KXeBhk.js";
24
- import "../poll-HnaJcB0o.js";
25
- import "../index-h64gcVNJ.js";
26
- import "../index-BLwMeReG.js";
27
- import "../MessageCommandParser-DEOl_ifb.js";
28
- import "../signals-DBS60vTo.js";
29
- import "../helpers-hDh_tMb6.js";
30
- import "../CommandsRouter-CBdsqaWK.js";
31
- import "../EventsRouter-4pT6vj-U.js";
32
- import "../index-B5F3AfVc.js";
33
- import "../constants-DqnSDZ6l.js";
1
+ import { Ft as CommandKitEnvironmentInternalData, It as CommandKitEnvironmentType, Lt as after, Pt as CommandKitEnvironment, Rt as cancelAfter } from "../analytics-engine-WQhXmx3H.js";
34
2
  export { CommandKitEnvironment, CommandKitEnvironmentInternalData, CommandKitEnvironmentType, after, cancelAfter };
@@ -1,42 +1,27 @@
1
- require('../colors-DL3ucTiT.js');
2
- require('../ActionRow-uJxU4UGo.js');
3
- require('../error-codes-Ds0bnPvT.js');
4
- const require_commandkit = require('../commandkit-DabqpQ6v.js');
5
- require('../warning-CszH8HeS.js');
6
- require('../common-0Iw8ZeM6.js');
7
- require('../common-CCx-FJI4.js');
8
- require('../container-DC0eQigs.js');
9
- require('../file-DAUOZYhC.js');
10
- require('../media-gallery-BLhwe5lO.js');
11
- require('../section-BMcHN97i.js');
12
- require('../separator-C___2K-f.js');
13
- require('../text-display-BtQR88kY.js');
14
- require('../label-D-uJWRZ0.js');
15
- require('../poll-Bc6rjeUS.js');
1
+ require('../colors-Csc0X4QJ.js');
2
+ require('../ActionRow-CSN_UKmM.js');
3
+ const require_commandkit = require('../commandkit-SIjTLD2R.js');
4
+ require('../container-DCPljKVH.js');
5
+ require('../file-Ca1kpEtE.js');
6
+ require('../media-gallery-u3gjX7yD.js');
7
+ require('../section-BC8LF-B2.js');
8
+ require('../separator-BUTiW7uz.js');
9
+ require('../text-display-DANahMN3.js');
10
+ require('../label-B6vXvwLM.js');
11
+ require('../poll-CFe8yvoJ.js');
16
12
  require('../display-WDb9wMCv.js');
17
- require('../element-DibzzA5L.js');
18
- require('../types-TC4g3w91.js');
19
- require('../EventInterceptor-BWoEJMHZ.js');
20
- require('../constants-BMWH2YUr.js');
21
- require('../PluginCommon-CPWV5xuX.js');
22
- require('../CompilerPlugin-CZ4412Zm.js');
23
- require('../RuntimePlugin-COeXe8rP.js');
24
- require('../types-Cdh4uaFR.js');
25
- require('../resolve-file-url-CJoD0FAn.js');
26
- require('../runtime-Skt5NiOc.js');
27
- require('../utils-Br3eenD1.js');
28
- require('../types-package-D11rQXLs.js');
29
- require('../constants-D0dawKxO.js');
30
- require('../EventWorkerContext-D_9q1Bm2.js');
31
- require('../signals-Cnqe9dFV.js');
32
- require('../helpers-D2_1jih6.js');
33
- require('../MessageCommandParser-CKh-tM97.js');
34
- require('../CommandsRouter-CWMipIis.js');
35
- require('../EventsRouter-C04XqRKf.js');
13
+ require('../constants-CxkFFZ7p.js');
14
+ require('../types-package-CsTNfvv2.js');
15
+ require('../constants-Cw8VjCVz.js');
16
+ require('../EventWorkerContext-Dfhgv329.js');
17
+ require('../signals-B8z1wJ6W.js');
18
+ require('../helpers-Btx1FSZx.js');
19
+ require('../MessageCommandParser-Bs9fimmd.js');
20
+ require('../CommandsRouter-C_HLsrGX.js');
21
+ require('../EventsRouter-DZYIha6m.js');
36
22
  require('../router-BvamdzoF.js');
37
- require('../common-fIO6fqGZ.js');
38
- require('../CommandKitEventsChannel-2l9Za-le.js');
39
- require('../store-ZwL2gN6a.js');
23
+ require('../common-DSRs_mfw.js');
24
+ require('../store-D8r_hryO.js');
40
25
 
41
26
  exports.CommandKitEnvironment = require_commandkit.CommandKitEnvironment;
42
27
  exports.CommandKitEnvironmentType = require_commandkit.CommandKitEnvironmentType;
@@ -1 +1 @@
1
- {"version":3,"file":"element-DibzzA5L.js","names":[],"sources":["../src/components/common/element.ts"],"sourcesContent":["import type { ActionRowBuilder, TextInputBuilder } from 'discord.js';\nimport type { ButtonKit } from '../interactive/button/ButtonKit';\nimport type { ModalKit } from '../interactive/modal/ModalKit';\n\n/**\n * Represents the types of elements that can be used in CommandKit.\n */\nexport const ElementType = {\n ActionRow: 'action-row',\n Button: 'button-kit',\n Modal: 'modal',\n TextInput: 'text-input',\n} as const;\n\n/**\n * The type of element that can be used in CommandKit.\n * This is a union of the keys of the ElementType object.\n */\nexport type ElementType = (typeof ElementType)[keyof typeof ElementType];\n\n/**\n * The data structure that maps each ElementType to its corresponding CommandKit element.\n */\nexport interface CommandKitElementData {\n [ElementType.ActionRow]: ActionRowBuilder;\n [ElementType.Button]: ButtonKit;\n [ElementType.Modal]: ModalKit;\n [ElementType.TextInput]: TextInputBuilder;\n}\n\n/**\n * Represents a CommandKit element with a specific type and data.\n */\nexport type CommandKitElement<Type extends ElementType> =\n CommandKitElementData[Type];\n\n/**\n * Represents any CommandKit element, which can be of any type defined in CommandKitElementData.\n */\nexport type AnyCommandKitElement = CommandKitElement<ElementType>;\n\n/**\n * Checks if the given element is a CommandKit element.\n * @param element The element to check.\n * @returns True if the element is a CommandKit element, false otherwise.\n */\nexport function isCommandKitElement(\n element: unknown,\n): element is CommandKitElement<ElementType> {\n if (typeof element !== 'object' || element === null) return false;\n if (!Reflect.has(element, 'type')) return false;\n if (!Reflect.has(element, 'data')) return false;\n\n return true;\n}\n\n/**\n * Gets the element data for a specific CommandKit element.\n * @param element The CommandKit element to get the data for.\n * @returns The element data for the specified CommandKit element.\n */\nexport function getElement<\n T extends ElementType,\n E extends CommandKitElement<T>,\n>(element: E): CommandKitElementData[T] {\n return element.data as CommandKitElementData[T];\n}\n\n/**\n * Represents the properties for a fragment element in CommandKit.\n */\nexport interface FragmentElementProps {\n children: [];\n}\n\n/**\n * Represents a fragment of CommandKit elements.\n * @param props The properties for the fragment.\n * @returns The fragment element.\n */\nexport function Fragment(\n props: FragmentElementProps,\n): CommandKitElementData[ElementType][] {\n return Array.isArray(props.children)\n ? props.children.flat()\n : [props.children];\n}\n\n/**\n * The createElement function is used to create CommandKit elements.\n * @param type The type of the element to create.\n * @param props The properties for the element.\n * @param children The children of the element.\n * @returns The created CommandKit element.\n */\nexport function createElement(\n type: Function,\n props: Record<string, unknown>,\n ...children: any[]\n): CommandKitElement<ElementType> {\n return type({ ...props, children: props.children ?? children });\n}\n\nexport { createElement as jsx, createElement as jsxs };\n"],"mappings":";;;;;AAOA,MAAa,cAAc;CACzB,WAAW;CACX,QAAQ;CACR,OAAO;CACP,WAAW;CACZ;;;;;;AAkCD,SAAgB,oBAChB,SAC4C;AAC1C,KAAI,OAAO,YAAY,YAAY,YAAY,KAAM,QAAO;AAC5D,KAAI,CAAC,QAAQ,IAAI,SAAS,OAAO,CAAE,QAAO;AAC1C,KAAI,CAAC,QAAQ,IAAI,SAAS,OAAO,CAAE,QAAO;AAE1C,QAAO;;;;;;;AAQT,SAAgB,WAGhB,SAAsC;AACpC,QAAO,QAAQ;;;;;;;AAejB,SAAgB,SAChB,OACuC;AACrC,QAAO,MAAM,QAAQ,MAAM,SAAQ,GACnC,MAAM,SAAS,MAAM,GACrB,CAAC,MAAM,SAAS;;;;;;;;;AAUlB,SAAgB,cAChB,MACA,OACA,GAAG,UAC8B;AAC/B,QAAO,KAAK;EAAE,GAAG;EAAO,UAAU,MAAM,YAAY;EAAU,CAAC"}
1
+ {"version":3,"file":"element-DibzzA5L.js","names":[],"sources":["../src/components/common/element.ts"],"sourcesContent":["import type { ActionRowBuilder, TextInputBuilder } from 'discord.js';\nimport type { ButtonKit } from '../interactive/button/ButtonKit';\nimport type { ModalKit } from '../interactive/modal/ModalKit';\n\n/**\n * Represents the types of elements that can be used in CommandKit.\n */\nexport const ElementType = {\n ActionRow: 'action-row',\n Button: 'button-kit',\n Modal: 'modal',\n TextInput: 'text-input',\n} as const;\n\n/**\n * The type of element that can be used in CommandKit.\n * This is a union of the keys of the ElementType object.\n */\nexport type ElementType = (typeof ElementType)[keyof typeof ElementType];\n\n/**\n * The data structure that maps each ElementType to its corresponding CommandKit element.\n */\nexport interface CommandKitElementData {\n [ElementType.ActionRow]: ActionRowBuilder;\n [ElementType.Button]: ButtonKit;\n [ElementType.Modal]: ModalKit;\n [ElementType.TextInput]: TextInputBuilder;\n}\n\n/**\n * Represents a CommandKit element with a specific type and data.\n */\nexport type CommandKitElement<Type extends ElementType> =\n CommandKitElementData[Type];\n\n/**\n * Represents any CommandKit element, which can be of any type defined in CommandKitElementData.\n */\nexport type AnyCommandKitElement = CommandKitElement<ElementType>;\n\n/**\n * Checks if the given element is a CommandKit element.\n * @param element The element to check.\n * @returns True if the element is a CommandKit element, false otherwise.\n */\nexport function isCommandKitElement(\n element: unknown,\n): element is CommandKitElement<ElementType> {\n if (typeof element !== 'object' || element === null) return false;\n if (!Reflect.has(element, 'type')) return false;\n if (!Reflect.has(element, 'data')) return false;\n\n return true;\n}\n\n/**\n * Gets the element data for a specific CommandKit element.\n * @param element The CommandKit element to get the data for.\n * @returns The element data for the specified CommandKit element.\n */\nexport function getElement<\n T extends ElementType,\n E extends CommandKitElement<T>,\n>(element: E): CommandKitElementData[T] {\n return element.data as CommandKitElementData[T];\n}\n\n/**\n * Represents the properties for a fragment element in CommandKit.\n */\nexport interface FragmentElementProps {\n children: [];\n}\n\n/**\n * Represents a fragment of CommandKit elements.\n * @param props The properties for the fragment.\n * @returns The fragment element.\n */\nexport function Fragment(\n props: FragmentElementProps,\n): CommandKitElementData[ElementType][] {\n return Array.isArray(props.children)\n ? props.children.flat()\n : [props.children];\n}\n\n/**\n * The createElement function is used to create CommandKit elements.\n * @param type The type of the element to create.\n * @param props The properties for the element.\n * @param children The children of the element.\n * @returns The created CommandKit element.\n */\nexport function createElement(\n type: Function,\n props: Record<string, unknown>,\n ...children: any[]\n): CommandKitElement<ElementType> {\n return type({ ...props, children: props.children ?? children });\n}\n\nexport { createElement as jsx, createElement as jsxs };\n"],"mappings":";;;;;AAOA,MAAa,cAAc;CACzB,WAAW;CACX,QAAQ;CACR,OAAO;CACP,WAAW;CACZ;;;;;;AAkCD,SAAgB,oBAChB,SAC4C;AAC1C,KAAI,OAAO,YAAY,YAAY,YAAY,KAAM,QAAO;AAC5D,KAAI,CAAC,QAAQ,IAAI,SAAS,OAAO,CAAE,QAAO;AAC1C,KAAI,CAAC,QAAQ,IAAI,SAAS,OAAO,CAAE,QAAO;AAE1C,QAAO;;;;;;;AAQT,SAAgB,WAGhB,SAAsC;AACpC,QAAO,QAAQ;;;;;;;AAejB,SAAgB,SAChB,OACuC;AACrC,QAAO,MAAM,QAAQ,MAAM,SAAQ,GACnC,MAAI,SAAM,MAAS,GACnB,CAAC,MAAI,SAAM;;;;;;;;;AAUb,SAAgB,cAChB,MACA,OACA,GAAG,UAC8B;AAC/B,QAAO,KAAK;EAAE,GAAG;EAAO,UAAU,MAAM,YAAY;EAAU,CAAC"}
@@ -1,9 +1,8 @@
1
- import { ButtonKit } from "./ButtonKit-9k4yfhYD.js";
2
- import { ModalKit } from "./ModalKit-Cq2ns6jv.js";
1
+ import { t as ButtonKit } from "./ButtonKit-DKu0VAe4.js";
2
+ import { i as ModalKit } from "./ModalKit-BWXI3Z26.js";
3
3
  import { ActionRowBuilder, TextInputBuilder } from "discord.js";
4
4
 
5
5
  //#region src/components/common/element.d.ts
6
-
7
6
  /**
8
7
  * Represents the types of elements that can be used in CommandKit.
9
8
  */
@@ -68,5 +67,5 @@ declare function Fragment(props: FragmentElementProps): CommandKitElementData[El
68
67
  */
69
68
  declare function createElement(type: Function, props: Record<string, unknown>, ...children: any[]): CommandKitElement<ElementType>;
70
69
  //#endregion
71
- export { AnyCommandKitElement, CommandKitElement, CommandKitElementData, ElementType, Fragment, FragmentElementProps, createElement, getElement, isCommandKitElement };
72
- //# sourceMappingURL=element-CvNhvLZ8.d.ts.map
70
+ export { Fragment as a, getElement as c, ElementType as i, isCommandKitElement as l, CommandKitElement as n, FragmentElementProps as o, CommandKitElementData as r, createElement as s, AnyCommandKitElement as t };
71
+ //# sourceMappingURL=element-wQo0heGj.d.ts.map
@@ -7,7 +7,9 @@
7
7
  function DevEnv(_static = false) {
8
8
  const common = {
9
9
  NODE_ENV: "development",
10
- COMMANDKIT_IS_DEV: "true"
10
+ COMMANDKIT_IS_DEV: "true",
11
+ COMMANDKIT_INTERNAL_IS_CLI_PROCESS: "false",
12
+ COMMANDKIT_IS_BUILD: "false"
11
13
  };
12
14
  if (_static) return Object.assign({}, common);
13
15
  return Object.assign({}, process.env, common);
@@ -19,7 +21,9 @@ function DevEnv(_static = false) {
19
21
  function ProdEnv(_static = false) {
20
22
  const common = {
21
23
  NODE_ENV: "production",
22
- COMMANDKIT_IS_DEV: "false"
24
+ COMMANDKIT_IS_DEV: "false",
25
+ COMMANDKIT_INTERNAL_IS_CLI_PROCESS: "false",
26
+ COMMANDKIT_IS_BUILD: "false"
23
27
  };
24
28
  if (_static) return Object.assign({}, common);
25
29
  return Object.assign({}, process.env, common);
@@ -106,4 +110,4 @@ Object.defineProperty(exports, 'setCLIEnv', {
106
110
  return setCLIEnv;
107
111
  }
108
112
  });
109
- //# sourceMappingURL=env-8yY-6pbC.js.map
113
+ //# sourceMappingURL=env-CmspDhHy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-CmspDhHy.js","names":[],"sources":["../src/cli/env.ts"],"sourcesContent":["/**\n * @private\n * @internal\n */\nexport function DevEnv(_static = false) {\n const common = {\n NODE_ENV: 'development',\n COMMANDKIT_IS_DEV: 'true',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport function ProdEnv(_static = false) {\n const common = {\n NODE_ENV: 'production',\n COMMANDKIT_IS_DEV: 'false',\n COMMANDKIT_INTERNAL_IS_CLI_PROCESS: 'false',\n COMMANDKIT_IS_BUILD: 'false',\n };\n\n if (_static) return Object.assign({}, common);\n\n return Object.assign({}, process.env, common);\n}\n\n/**\n * @private\n * @internal\n */\nexport const CommonEnvFiles = ['.env', '.env.local'];\n/**\n * @private\n * @internal\n */\nexport const DevEnvFiles = ['.env.development', '.env.development.local'];\n/**\n * @private\n * @internal\n */\nexport const ProdEnvFiles = ['.env.production', '.env.production.local'];\n/**\n * @private\n * @internal\n */\nexport const devEnvFileArgs = [...CommonEnvFiles, ...DevEnvFiles];\n/**\n * @private\n * @internal\n */\nexport const prodEnvFileArgs = [...CommonEnvFiles, ...ProdEnvFiles];\n/**\n * @private\n * @internal\n */\nexport function setCLIEnv() {\n process.env.COMMANDKIT_IS_CLI = 'true';\n}\n"],"mappings":";;;;;;AAIA,SAAgB,OAAO,UAAU,OAAO;CACtC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,SAAgB,QAAQ,UAAU,OAAO;CACvC,MAAM,SAAS;EACb,UAAU;EACV,mBAAmB;EACnB,oCAAoC;EACpC,qBAAqB;EACtB;AAED,KAAI,QAAS,QAAO,OAAO,OAAO,EAAE,EAAE,OAAO;AAE7C,QAAO,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK,OAAO;;;;;;AAO/C,MAAa,iBAAiB,CAAC,QAAQ,aAAa;;;;;AAKpD,MAAa,cAAc,CAAC,oBAAoB,yBAAyB;;;;;AAKzE,MAAa,eAAe,CAAC,mBAAmB,wBAAwB;;;;;AAKxE,MAAa,iBAAiB,CAAC,GAAG,gBAAgB,GAAG,YAAY;;;;;AAKjE,MAAa,kBAAkB,CAAC,GAAG,gBAAgB,GAAG,aAAa;;;;;AAKnE,SAAgB,YAAY;AAC1B,SAAQ,IAAI,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"error-codes-Ds0bnPvT.js","names":[],"sources":["../src/utils/error-codes.ts"],"sourcesContent":["/**\n * The error codes used by CommandKit.\n */\nexport const CommandKitErrorCodes = {\n /**\n * Error code for exiting middleware.\n */\n StopMiddlewares: Symbol('kStopMiddlewares'),\n /**\n * Error code for forwarded commands.\n */\n ForwardedCommand: Symbol('kForwardedCommand'),\n /**\n * Error code for invalid command prefix.\n */\n InvalidCommandPrefix: Symbol('kInvalidCommandPrefix'),\n /**\n * Error code for plugin capture handle.\n */\n PluginCaptureHandle: Symbol('kPluginCaptureHandle'),\n /**\n * Error code for event interruption signal\n */\n StopEvents: Symbol('kStopEvents'),\n} as const;\n\n/**\n * The type for CommandKit errors.\n */\nexport type CommandKitError = Error & { code: symbol };\n\n/**\n * Creates a new CommandKit error with the specified code.\n * @param code The error code to assign to the error.\n * @returns A new CommandKit error instance.\n */\nexport function createCommandKitError(code: symbol): CommandKitError {\n const error = new Error() as CommandKitError;\n\n Reflect.set(error, 'code', code);\n\n return error;\n}\n\n/**\n * Checks if the given error is a CommandKit error.\n * @param error The error to check.\n * @returns True if the error is a CommandKit error, false otherwise.\n */\nexport function isCommandKitError(error: unknown): error is CommandKitError {\n if (!(error instanceof Error)) return false;\n const code = Reflect.get(error, 'code');\n\n for (const key in CommandKitErrorCodes) {\n if (CommandKitErrorCodes[key as keyof typeof CommandKitErrorCodes] === code)\n return true;\n }\n\n return false;\n}\n\n/**\n * Checks if the given error is of a specific CommandKit error type.\n * @param error The error to check.\n * @param code The error code or an array of error codes to check against.\n * @returns True if the error matches the specified code(s), false otherwise.\n */\nexport function isErrorType(error: unknown, code: symbol | symbol[]): boolean {\n if (!isCommandKitError(error)) return false;\n const errorCode = Reflect.get(error, 'code');\n\n if (!errorCode) return false;\n\n if (Array.isArray(code)) return code.includes(errorCode);\n\n return errorCode === code;\n}\n"],"mappings":";;;;;AAGA,MAAa,uBAAuB;CAIlC,iBAAiB,OAAO,mBAAmB;CAI3C,kBAAkB,OAAO,oBAAoB;CAI7C,sBAAsB,OAAO,wBAAwB;CAIrD,qBAAqB,OAAO,uBAAuB;CAInD,YAAY,OAAO,cAAc;CAClC;;;;;;AAYD,SAAgB,sBAAsB,MAA+B;CACnE,MAAM,wBAAQ,IAAI,OAAO;AAEzB,SAAQ,IAAI,OAAO,QAAQ,KAAK;AAEhC,QAAO;;;;;;;AAQT,SAAgB,kBAAkB,OAA0C;AAC1E,KAAI,EAAE,iBAAiB,OAAQ,QAAO;CACtC,MAAM,OAAO,QAAQ,IAAI,OAAO,OAAO;AAEvC,MAAK,MAAM,OAAO,qBAChB,KAAI,qBAAqB,SAA8C,KACvE,QAAO;AAGT,QAAO;;;;;;;;AAST,SAAgB,YAAY,OAAgB,MAAkC;AAC5E,KAAI,CAAC,kBAAkB,MAAM,CAAE,QAAO;CACtC,MAAM,YAAY,QAAQ,IAAI,OAAO,OAAO;AAE5C,KAAI,CAAC,UAAW,QAAO;AAEvB,KAAI,MAAM,QAAQ,KAAK,CAAE,QAAO,KAAK,SAAS,UAAU;AAExD,QAAO,cAAc"}
1
+ {"version":3,"file":"error-codes-Ds0bnPvT.js","names":[],"sources":["../src/utils/error-codes.ts"],"sourcesContent":["/**\n * The error codes used by CommandKit.\n */\nexport const CommandKitErrorCodes = {\n /**\n * Error code for exiting middleware.\n */\n StopMiddlewares: Symbol('kStopMiddlewares'),\n /**\n * Error code for forwarded commands.\n */\n ForwardedCommand: Symbol('kForwardedCommand'),\n /**\n * Error code for invalid command prefix.\n */\n InvalidCommandPrefix: Symbol('kInvalidCommandPrefix'),\n /**\n * Error code for plugin capture handle.\n */\n PluginCaptureHandle: Symbol('kPluginCaptureHandle'),\n /**\n * Error code for event interruption signal\n */\n StopEvents: Symbol('kStopEvents'),\n} as const;\n\n/**\n * The type for CommandKit errors.\n */\nexport type CommandKitError = Error & { code: symbol };\n\n/**\n * Creates a new CommandKit error with the specified code.\n * @param code The error code to assign to the error.\n * @returns A new CommandKit error instance.\n */\nexport function createCommandKitError(code: symbol): CommandKitError {\n const error = new Error() as CommandKitError;\n\n Reflect.set(error, 'code', code);\n\n return error;\n}\n\n/**\n * Checks if the given error is a CommandKit error.\n * @param error The error to check.\n * @returns True if the error is a CommandKit error, false otherwise.\n */\nexport function isCommandKitError(error: unknown): error is CommandKitError {\n if (!(error instanceof Error)) return false;\n const code = Reflect.get(error, 'code');\n\n for (const key in CommandKitErrorCodes) {\n if (CommandKitErrorCodes[key as keyof typeof CommandKitErrorCodes] === code)\n return true;\n }\n\n return false;\n}\n\n/**\n * Checks if the given error is of a specific CommandKit error type.\n * @param error The error to check.\n * @param code The error code or an array of error codes to check against.\n * @returns True if the error matches the specified code(s), false otherwise.\n */\nexport function isErrorType(error: unknown, code: symbol | symbol[]): boolean {\n if (!isCommandKitError(error)) return false;\n const errorCode = Reflect.get(error, 'code');\n\n if (!errorCode) return false;\n\n if (Array.isArray(code)) return code.includes(errorCode);\n\n return errorCode === code;\n}\n"],"mappings":";;;;;AAGA,MAAa,uBAAuB;CAIlC,iBAAiB,OAAO,mBAAmB;CAI3C,kBAAkB,OAAO,oBAAoB;CAI7C,sBAAsB,OAAO,wBAAwB;CAIrD,qBAAqB,OAAO,uBAAuB;CAInD,YAAY,OAAO,cAAc;CAClC;;;;;;AAYD,SAAgB,sBAAsB,MAA+B;CACnE,MAAM,wBAAQ,IAAI,OAAO;AAEzB,SAAQ,IAAI,OAAO,QAAQ,KAAK;AAEhC,QAAO;;;;;;;AAQT,SAAgB,kBAAkB,OAA0C;AAC1E,KAAI,EAAE,iBAAiB,OAAQ,QAAO;CACtC,MAAM,OAAO,QAAQ,IAAI,OAAO,OAAO;AAEvC,MAAK,MAAM,OAAO,qBAChB,KAAI,qBAAqB,SAA8C,KACvE,QAAE;AAGJ,QAAO;;;;;;;;AAST,SAAgB,YAAY,OAAgB,MAAkC;AAC5E,KAAI,CAAC,kBAAkB,MAAM,CAAE,QAAO;CACtC,MAAM,YAAY,QAAQ,IAAI,OAAO,OAAO;AAE5C,KAAI,CAAC,UAAW,QAAO;AAEvB,KAAI,MAAM,QAAQ,KAAK,CAAE,QAAO,KAAK,SAAS,UAAU;AAExD,QAAO,cAAc"}
@@ -1,34 +1,2 @@
1
- import { CommandKitEventsChannel, ListenerFunction } from "../analytics-engine-NOInIjv8.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-9k4yfhYD.js";
4
- import "../ModalKit-Cq2ns6jv.js";
5
- import "../element-CvNhvLZ8.js";
6
- import "../ActionRow-B-7n9MMr.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-RMp-w8HV.js";
9
- import "../Modal-Calb46SJ.js";
10
- import "../common-DHTTnX82.js";
11
- import "../StringSelectMenuKit-CJ0MzUZJ.js";
12
- import "../ChannelSelectMenuKit-CsYgIyKe.js";
13
- import "../MentionableSelectMenuKit-CO9phWMf.js";
14
- import "../UserSelectMenuKit-C_J-9RJs.js";
15
- import "../RoleSelectMenuKit-DvBxzpWh.js";
16
- import "../SelectMenu-VcDhOGoJ.js";
17
- import "../container-1ltvkavy.js";
18
- import "../file-n2yl_-vl.js";
19
- import "../media-gallery-BzG70ued.js";
20
- import "../section-BOaJKXiy.js";
21
- import "../separator-Cb7-6T6N.js";
22
- import "../text-display-B_hpz50P.js";
23
- import "../label-D0KXeBhk.js";
24
- import "../poll-HnaJcB0o.js";
25
- import "../index-h64gcVNJ.js";
26
- import "../index-BLwMeReG.js";
27
- import "../MessageCommandParser-DEOl_ifb.js";
28
- import "../signals-DBS60vTo.js";
29
- import "../helpers-hDh_tMb6.js";
30
- import "../CommandsRouter-CBdsqaWK.js";
31
- import "../EventsRouter-4pT6vj-U.js";
32
- import "../index-B5F3AfVc.js";
33
- import "../constants-DqnSDZ6l.js";
1
+ import { ct as ListenerFunction, st as CommandKitEventsChannel } from "../analytics-engine-WQhXmx3H.js";
34
2
  export { CommandKitEventsChannel, ListenerFunction };
@@ -1,3 +1,3 @@
1
- const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-2l9Za-le.js');
1
+ const require_CommandKitEventsChannel = require('../CommandKitEventsChannel-CnT5ymYe.js');
2
2
 
3
3
  exports.CommandKitEventsChannel = require_CommandKitEventsChannel.CommandKitEventsChannel;
@@ -1,6 +1,5 @@
1
- const require_chunk = require('./chunk-nOFOJqeH.js');
1
+ const require_chunk = require('./chunk-kSYXY2_d.js');
2
2
  let discord_js = require("discord.js");
3
- discord_js = require_chunk.__toESM(discord_js);
4
3
 
5
4
  //#region src/components/display/file.ts
6
5
  /**
@@ -26,4 +25,4 @@ Object.defineProperty(exports, 'File', {
26
25
  return File;
27
26
  }
28
27
  });
29
- //# sourceMappingURL=file-DAUOZYhC.js.map
28
+ //# sourceMappingURL=file-Ca1kpEtE.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-DAUOZYhC.js","names":[],"sources":["../src/components/display/file.ts"],"sourcesContent":["import { FileBuilder, FileComponentData } from 'discord.js';\n\n/**\n * Represents the properties for a file component.\n */\nexport interface FileProps extends Omit<FileComponentData, 'type' | 'file'> {\n url: string;\n}\n\n/**\n * The file component\n * @param props - The properties for the file component.\n * @returns The file builder instance.\n * @example ```tsx\n * import { File } from 'commandkit';\n *\n * const file = <File url=\"https://example.com/file.png\" />;\n * ```\n */\nexport function File(props: FileProps) {\n const file = new FileBuilder(props);\n\n if (props.url != null) {\n file.setURL(props.url);\n }\n\n return file;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,KAAK,OAAkB;CACrC,MAAM,OAAO,IAAI,uBAAY,MAAM;AAEnC,KAAI,MAAM,OAAO,KACf,MAAK,OAAO,MAAM,IAAI;AAGxB,QAAO"}
1
+ {"version":3,"file":"file-Ca1kpEtE.js","names":[],"sources":["../src/components/display/file.ts"],"sourcesContent":["import { FileBuilder, FileComponentData } from 'discord.js';\n\n/**\n * Represents the properties for a file component.\n */\nexport interface FileProps extends Omit<FileComponentData, 'type' | 'file'> {\n url: string;\n}\n\n/**\n * The file component\n * @param props - The properties for the file component.\n * @returns The file builder instance.\n * @example ```tsx\n * import { File } from 'commandkit';\n *\n * const file = <File url=\"https://example.com/file.png\" />;\n * ```\n */\nexport function File(props: FileProps) {\n const file = new FileBuilder(props);\n\n if (props.url != null) {\n file.setURL(props.url);\n }\n\n return file;\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,KAAK,OAAkB;CACrC,MAAM,OAAO,IAAI,uBAAY,MAAM;AAEnC,KAAI,MAAM,OAAO,KACf,MAAK,OAAO,MAAM,IAAI;AAGxB,QAAO"}
@@ -1,7 +1,6 @@
1
1
  import { FileBuilder, FileComponentData } from "discord.js";
2
2
 
3
3
  //#region src/components/display/file.d.ts
4
-
5
4
  /**
6
5
  * Represents the properties for a file component.
7
6
  */
@@ -20,5 +19,5 @@ interface FileProps extends Omit<FileComponentData, 'type' | 'file'> {
20
19
  */
21
20
  declare function File(props: FileProps): FileBuilder;
22
21
  //#endregion
23
- export { File, FileProps };
24
- //# sourceMappingURL=file-n2yl_-vl.d.ts.map
22
+ export { FileProps as n, File as t };
23
+ //# sourceMappingURL=file-CrV4lSnl.d.ts.map
@@ -1,34 +1,2 @@
1
- import { FlagConfiguration, FlagProvider, JsonFlagProvider } from "../analytics-engine-NOInIjv8.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-9k4yfhYD.js";
4
- import "../ModalKit-Cq2ns6jv.js";
5
- import "../element-CvNhvLZ8.js";
6
- import "../ActionRow-B-7n9MMr.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-RMp-w8HV.js";
9
- import "../Modal-Calb46SJ.js";
10
- import "../common-DHTTnX82.js";
11
- import "../StringSelectMenuKit-CJ0MzUZJ.js";
12
- import "../ChannelSelectMenuKit-CsYgIyKe.js";
13
- import "../MentionableSelectMenuKit-CO9phWMf.js";
14
- import "../UserSelectMenuKit-C_J-9RJs.js";
15
- import "../RoleSelectMenuKit-DvBxzpWh.js";
16
- import "../SelectMenu-VcDhOGoJ.js";
17
- import "../container-1ltvkavy.js";
18
- import "../file-n2yl_-vl.js";
19
- import "../media-gallery-BzG70ued.js";
20
- import "../section-BOaJKXiy.js";
21
- import "../separator-Cb7-6T6N.js";
22
- import "../text-display-B_hpz50P.js";
23
- import "../label-D0KXeBhk.js";
24
- import "../poll-HnaJcB0o.js";
25
- import "../index-h64gcVNJ.js";
26
- import "../index-BLwMeReG.js";
27
- import "../MessageCommandParser-DEOl_ifb.js";
28
- import "../signals-DBS60vTo.js";
29
- import "../helpers-hDh_tMb6.js";
30
- import "../CommandsRouter-CBdsqaWK.js";
31
- import "../EventsRouter-4pT6vj-U.js";
32
- import "../index-B5F3AfVc.js";
33
- import "../constants-DqnSDZ6l.js";
1
+ import { M as FlagConfiguration, N as FlagProvider, P as JsonFlagProvider } from "../analytics-engine-WQhXmx3H.js";
34
2
  export { FlagConfiguration, FlagProvider, JsonFlagProvider };
@@ -1,34 +1,2 @@
1
- import { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider } from "../analytics-engine-NOInIjv8.js";
2
- import "../EventInterceptor-x-R2qshQ.js";
3
- import "../ButtonKit-9k4yfhYD.js";
4
- import "../ModalKit-Cq2ns6jv.js";
5
- import "../element-CvNhvLZ8.js";
6
- import "../ActionRow-B-7n9MMr.js";
7
- import "../types-CJ-XvOFN.js";
8
- import "../Button-RMp-w8HV.js";
9
- import "../Modal-Calb46SJ.js";
10
- import "../common-DHTTnX82.js";
11
- import "../StringSelectMenuKit-CJ0MzUZJ.js";
12
- import "../ChannelSelectMenuKit-CsYgIyKe.js";
13
- import "../MentionableSelectMenuKit-CO9phWMf.js";
14
- import "../UserSelectMenuKit-C_J-9RJs.js";
15
- import "../RoleSelectMenuKit-DvBxzpWh.js";
16
- import "../SelectMenu-VcDhOGoJ.js";
17
- import "../container-1ltvkavy.js";
18
- import "../file-n2yl_-vl.js";
19
- import "../media-gallery-BzG70ued.js";
20
- import "../section-BOaJKXiy.js";
21
- import "../separator-Cb7-6T6N.js";
22
- import "../text-display-B_hpz50P.js";
23
- import "../label-D0KXeBhk.js";
24
- import "../poll-HnaJcB0o.js";
25
- import "../index-h64gcVNJ.js";
26
- import "../index-BLwMeReG.js";
27
- import "../MessageCommandParser-DEOl_ifb.js";
28
- import "../signals-DBS60vTo.js";
29
- import "../helpers-hDh_tMb6.js";
30
- import "../CommandsRouter-CBdsqaWK.js";
31
- import "../EventsRouter-4pT6vj-U.js";
32
- import "../index-B5F3AfVc.js";
33
- import "../constants-DqnSDZ6l.js";
1
+ import { A as flag, C as EvaluationContext, D as FlagRunner, E as FeatureFlagDefinition, O as IdentifyFunction, S as DecideFunction, T as FeatureFlag, b as CustomEvaluationContext, j as setFlagProvider, k as MaybePromise, w as EventFlagContext, x as CustomEvaluationFunction, y as CommandFlagContext } from "../analytics-engine-WQhXmx3H.js";
34
2
  export { CommandFlagContext, CustomEvaluationContext, CustomEvaluationFunction, DecideFunction, EvaluationContext, EventFlagContext, FeatureFlag, FeatureFlagDefinition, FlagRunner, IdentifyFunction, MaybePromise, flag, setFlagProvider };