commandkit 1.2.0-rc.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -3
- package/README.md +45 -26
- package/bin/index.mjs +1 -1
- package/cli.d.ts +19 -0
- package/config.cjs +3 -0
- package/config.d.ts +1 -0
- package/dist/{ActionRow-DKnFVDME.d.ts → ActionRow-Bt9qi0Mb.d.ts} +4 -5
- package/dist/{Button-4ZUXdA56.d.ts → Button-DxJLcZIU.d.ts} +7 -8
- package/dist/{ButtonKit-C7r7RPNf.d.ts → ButtonKit-BfcyvWfj.d.ts} +4 -5
- package/dist/{ChannelSelectMenuKit-BrXvBYNH.d.ts → ChannelSelectMenuKit-DYkudikb.d.ts} +5 -6
- package/dist/{CommandsRouter-CoOA7hkf.d.ts → CommandsRouter-DiNoF0dq.d.ts} +2 -3
- package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-D9JKMcfi.d.ts} +2 -2
- package/dist/{EventsRouter-BacqK6z3.d.ts → EventsRouter-EuuSu6NH.d.ts} +2 -2
- package/dist/{MentionableSelectMenuKit-CPTKqx-O.d.ts → MentionableSelectMenuKit-Mu4xqP6B.d.ts} +5 -6
- package/dist/{MessageCommandParser-ROLibZPX.d.ts → MessageCommandParser-DPCbHXCS.d.ts} +4 -5
- package/dist/{Modal-C6UTRdYQ.d.ts → Modal-v9rrcMl-.d.ts} +25 -12
- package/dist/{ModalKit-Btz58KYn.d.ts → ModalKit-XJSM65SV.d.ts} +4 -5
- package/dist/{RoleSelectMenuKit-C26lU3sN.d.ts → RoleSelectMenuKit-CCjcp3HY.d.ts} +5 -6
- package/dist/{SelectMenu-Diy87_ba.d.ts → SelectMenu-CY0vvoSu.d.ts} +17 -14
- package/dist/{StringSelectMenuKit-Bhs8U6WI.d.ts → StringSelectMenuKit-G5nBTicX.d.ts} +5 -6
- package/dist/{UserSelectMenuKit-CfqFJdxz.d.ts → UserSelectMenuKit-D3SO_fXA.d.ts} +5 -6
- package/dist/analytics/analytics-engine.d.ts +1 -31
- package/dist/analytics/analytics-engine.js +2 -35
- package/dist/analytics/analytics-provider.d.ts +1 -31
- package/dist/analytics/analytics-provider.js +1 -0
- package/dist/analytics/constants.js +26 -3
- package/dist/analytics/constants.js.map +1 -0
- package/dist/analytics/utils.js +2 -35
- package/dist/{analytics-engine-6_M8tCeD.d.ts → analytics-engine-DnRsHBId.d.ts} +53 -33
- package/dist/app/commands/AppCommandRunner.d.ts +1 -31
- package/dist/app/commands/AppCommandRunner.js +2 -35
- package/dist/app/commands/Context.d.ts +1 -31
- package/dist/app/commands/Context.js +2 -35
- package/dist/app/commands/MessageCommandParser.d.ts +1 -1
- package/dist/app/commands/MessageCommandParser.js +261 -4
- package/dist/app/commands/MessageCommandParser.js.map +1 -0
- package/dist/app/commands/helpers.d.ts +1 -1
- package/dist/app/commands/helpers.js +25 -3
- package/dist/app/commands/helpers.js.map +1 -0
- package/dist/app/events/EventWorkerContext.d.ts +42 -33
- package/dist/app/events/EventWorkerContext.js +48 -5
- package/dist/app/events/EventWorkerContext.js.map +1 -0
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -31
- package/dist/app/handlers/AppCommandHandler.js +2 -35
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -31
- package/dist/app/handlers/AppEventsHandler.js +2 -35
- package/dist/app/index.d.ts +4 -31
- package/dist/app/index.js +13 -45
- package/dist/app/interrupt/signals.d.ts +1 -1
- package/dist/app/interrupt/signals.js +54 -7
- package/dist/app/interrupt/signals.js.map +1 -0
- package/dist/app/middlewares/permissions.d.ts +1 -31
- package/dist/app/middlewares/permissions.js +2 -35
- package/dist/app/register/CommandRegistrar.d.ts +1 -31
- package/dist/app/register/CommandRegistrar.js +2 -35
- package/dist/app/router/CommandsRouter.d.ts +1 -1
- package/dist/app/router/CommandsRouter.js +210 -2
- package/dist/app/router/CommandsRouter.js.map +1 -0
- package/dist/app/router/EventsRouter.d.ts +1 -1
- package/dist/app/router/EventsRouter.js +128 -2
- package/dist/app/router/EventsRouter.js.map +1 -0
- package/dist/app/router/index.d.ts +2 -3
- package/dist/app/router/index.js +5 -5
- package/dist/{chunk-nOFOJqeH.js → chunk-BE-pF4vm.js} +11 -7
- package/dist/cli/app-process.d.ts +2 -3
- package/dist/cli/app-process.js +60 -7
- package/dist/cli/app-process.js.map +1 -0
- package/dist/cli/build.d.ts +2 -31
- package/dist/cli/build.js +171 -40
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/common.d.ts +10 -34
- package/dist/cli/common.js +182 -11
- package/dist/cli/common.js.map +1 -0
- package/dist/cli/development.d.ts +18 -1
- package/dist/cli/development.js +52 -77
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +4 -0
- package/dist/cli/env.js +73 -9
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/generators.js +10 -13
- package/dist/cli/generators.js.map +1 -1
- package/dist/cli/information.js +11 -10
- package/dist/cli/information.js.map +1 -1
- package/dist/cli/init.d.ts +12 -2
- package/dist/cli/init.js +83 -37
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/production.d.ts +2 -3
- package/dist/cli/production.js +19 -51
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +83 -6
- package/dist/cli/type-checker.js.map +1 -0
- package/dist/cli/utils.d.ts +0 -1
- package/dist/cli/utils.js +18 -2
- package/dist/cli/utils.js.map +1 -0
- package/dist/{commandkit-CuM4HbAQ.js → commandkit--k6yDJEr.js} +3212 -2592
- package/dist/commandkit--k6yDJEr.js.map +1 -0
- package/dist/commandkit.d.ts +1 -31
- package/dist/commandkit.js +2 -35
- package/dist/{common-DOCvOVC4.d.ts → common-CCvvgnxi.d.ts} +4 -5
- package/dist/components/common/EventInterceptor.d.ts +1 -1
- package/dist/components/common/EventInterceptor.js +137 -2
- package/dist/components/common/EventInterceptor.js.map +1 -0
- package/dist/components/common/element.d.ts +2 -5
- package/dist/components/common/element.js +10 -8
- package/dist/components/common/types.d.ts +1 -1
- package/dist/components/common/types.js +1 -1
- package/dist/components/{v2 → display}/common.d.ts +1 -2
- package/dist/components/display/common.js +4 -0
- package/dist/components/display/container.d.ts +2 -0
- package/dist/components/display/container.js +4 -0
- package/dist/components/display/file.d.ts +2 -0
- package/dist/{file-DVOELoNv.js → components/display/file.js} +5 -10
- package/dist/components/display/file.js.map +1 -0
- package/dist/components/display/index.d.ts +9 -0
- package/dist/components/display/index.js +19 -0
- package/dist/components/display/label.d.ts +2 -0
- package/dist/components/display/label.js +4 -0
- package/dist/components/display/media-gallery.d.ts +2 -0
- package/dist/components/display/media-gallery.js +5 -0
- package/dist/components/display/poll.d.ts +2 -0
- package/dist/components/display/poll.js +86 -0
- package/dist/components/display/poll.js.map +1 -0
- package/dist/components/display/section.d.ts +2 -0
- package/dist/components/display/section.js +5 -0
- package/dist/components/display/separator.d.ts +2 -0
- package/dist/{separator-DL6QH5H1.js → components/display/separator.js} +5 -10
- package/dist/components/display/separator.js.map +1 -0
- package/dist/components/display/text-display.d.ts +2 -0
- package/dist/{text-display-DbMumig_.js → components/display/text-display.js} +5 -10
- package/dist/components/display/text-display.js.map +1 -0
- package/dist/components/index.d.ts +23 -24
- package/dist/components/index.js +29 -52
- package/dist/components/interactive/action-row/ActionRow.d.ts +2 -0
- package/dist/{ActionRow-CbdGFWMT.js → components/interactive/action-row/ActionRow.js} +5 -10
- package/dist/components/interactive/action-row/ActionRow.js.map +1 -0
- package/dist/components/interactive/button/Button.d.ts +2 -0
- package/dist/components/interactive/button/Button.js +4 -0
- package/dist/components/interactive/button/ButtonKit.d.ts +2 -0
- package/dist/components/interactive/button/ButtonKit.js +4 -0
- package/dist/components/interactive/modal/Modal.d.ts +2 -0
- package/dist/components/interactive/modal/Modal.js +8 -0
- package/dist/components/interactive/modal/ModalKit.d.ts +2 -0
- package/dist/components/interactive/modal/ModalKit.js +4 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/SelectMenu.d.ts +2 -0
- package/dist/components/interactive/select-menu/SelectMenu.js +9 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +2 -0
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +4 -0
- package/dist/components/interactive/select-menu/common.d.ts +2 -0
- package/dist/components/interactive/select-menu/common.js +1 -0
- package/dist/config/config.d.ts +15 -33
- package/dist/config/config.js +2 -35
- package/dist/config/default.d.ts +1 -31
- package/dist/config/default.js +2 -35
- package/dist/config/loader.d.ts +1 -31
- package/dist/config/loader.js +2 -35
- package/dist/config/types.d.ts +1 -31
- package/dist/config/types.js +1 -0
- package/dist/config/utils.d.ts +1 -31
- package/dist/config/utils.js +29 -2
- package/dist/config/utils.js.map +1 -0
- package/dist/{constants-D8PMA9on.d.ts → constants-DqtJY0t-.d.ts} +3 -3
- package/dist/{constants-MKu-Q1jh.d.ts → constants-DwxpkIeH.d.ts} +8 -2
- package/dist/{container-DHBELeJ3.d.ts → container-CYojOA9d.d.ts} +3 -4
- package/dist/context/async-context.d.ts +1 -31
- package/dist/context/async-context.js +2 -35
- package/dist/context/environment.d.ts +1 -31
- package/dist/context/environment.js +2 -35
- package/dist/{element-CAXu1XtK.d.ts → element-DeLvTMfZ.d.ts} +5 -5
- package/dist/events/CommandKitEventsChannel.d.ts +1 -31
- package/dist/events/CommandKitEventsChannel.js +83 -2
- package/dist/events/CommandKitEventsChannel.js.map +1 -0
- package/dist/{file-DTrr-p09.d.ts → file-DLO1zEcH.d.ts} +3 -4
- package/dist/flags/FlagProvider.d.ts +1 -31
- package/dist/flags/FlagProvider.js +1 -0
- package/dist/flags/FlagProvider.js.map +1 -1
- package/dist/flags/feature-flags.d.ts +1 -31
- package/dist/flags/feature-flags.js +5 -39
- package/dist/flags/store.d.ts +1 -31
- package/dist/flags/store.js +13 -2
- package/dist/flags/store.js.map +1 -0
- package/dist/{helpers-Wg6P5fRQ.d.ts → helpers-zmC44Mcu.d.ts} +2 -3
- package/dist/index-BIsCUWAs.d.ts +1 -0
- package/dist/index-CwHYpK-f.d.ts +1 -0
- package/dist/index-DHrsNvX1.d.ts +1 -0
- package/dist/index.d.ts +41 -42
- package/dist/index.js +80 -98
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/constants.js +22 -2
- package/dist/kv/constants.js.map +1 -0
- package/dist/kv/dotprops.js +26 -3
- package/dist/kv/dotprops.js.map +1 -0
- package/dist/kv/kv.d.ts +1 -2
- package/dist/kv/kv.js +15 -18
- package/dist/kv/kv.js.map +1 -1
- package/dist/kv/serde.d.ts +12 -3
- package/dist/kv/serde.js +87 -4
- package/dist/kv/serde.js.map +1 -0
- package/dist/label-DqGRqodo.d.ts +28 -0
- package/dist/logger/DefaultLogger.d.ts +66 -3
- package/dist/logger/DefaultLogger.js +2 -35
- package/dist/logger/ILogger.d.ts +64 -2
- package/dist/logger/ILogger.js +1 -1
- package/dist/logger/Logger.d.ts +36 -3
- package/dist/logger/Logger.js +2 -35
- package/dist/logger/NoopLogger.d.ts +1 -2
- package/dist/logger/NoopLogger.js +1 -0
- package/dist/logger/NoopLogger.js.map +1 -1
- package/dist/{media-gallery-BMsXSot3.d.ts → media-gallery-Ca8es-eB.d.ts} +3 -4
- package/dist/plugins/CompilerPlugin.d.ts +1 -31
- package/dist/plugins/CompilerPlugin.js +33 -4
- package/dist/plugins/CompilerPlugin.js.map +1 -0
- package/dist/plugins/PluginCommon.d.ts +1 -31
- package/dist/plugins/PluginCommon.js +55 -4
- package/dist/plugins/PluginCommon.js.map +1 -0
- package/dist/plugins/RuntimePlugin.d.ts +1 -31
- package/dist/plugins/RuntimePlugin.js +124 -4
- package/dist/plugins/RuntimePlugin.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -31
- package/dist/plugins/index.js +8 -39
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -35
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +2 -35
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -35
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -31
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -35
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -31
- package/dist/plugins/plugin-runtime/runtime.js +1 -1
- package/dist/plugins/types.d.ts +1 -31
- package/dist/plugins/types.js +1 -1
- package/dist/poll-DQ6DX_Tt.d.ts +88 -0
- package/dist/{section-Dh_FhPeC.d.ts → section-Q8nwx_-q.d.ts} +3 -4
- package/dist/{separator-CMf6Cyy5.d.ts → separator-B8P-kdIK.d.ts} +3 -4
- package/dist/{signals-SHg7J1U_.d.ts → signals-CBXwugBW.d.ts} +2 -2
- package/dist/{text-display-DRw3r_lK.d.ts → text-display-CL9C2yMc.d.ts} +3 -4
- package/dist/{types-CJ-XvOFN.d.ts → types-DZy7U-Ld.d.ts} +2 -2
- package/dist/types.d.ts +2 -32
- package/dist/types.js +1 -0
- package/dist/utils/colors.js +9 -3
- package/dist/utils/colors.js.map +1 -0
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +50 -7
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/dev-hooks.d.ts +1 -31
- package/dist/utils/dev-hooks.js +2 -35
- package/dist/utils/error-codes.d.ts +54 -2
- package/dist/utils/error-codes.js +53 -5
- package/dist/utils/error-codes.js.map +1 -0
- package/dist/utils/resolve-file-url.d.ts +11 -2
- package/dist/utils/resolve-file-url.js +18 -2
- package/dist/utils/resolve-file-url.js.map +1 -0
- package/dist/utils/types-package.js +61 -4
- package/dist/utils/types-package.js.map +1 -0
- package/dist/utils/useful-stuff/async-queue.js +2 -2
- package/dist/utils/useful-stuff/async-queue.js.map +1 -1
- package/dist/utils/useful-stuff/mutex.js +1 -0
- package/dist/utils/useful-stuff/mutex.js.map +1 -1
- package/dist/utils/useful-stuff/ratelimiter.js +2 -2
- package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
- package/dist/utils/useful-stuff/semaphore.js +2 -3
- package/dist/utils/useful-stuff/semaphore.js.map +1 -1
- package/dist/utils/utilities.d.ts +113 -2
- package/dist/utils/utilities.js +5 -36
- package/dist/utils/{warn-unstable.d.ts → warning.d.ts} +12 -3
- package/dist/utils/{warn-unstable.js → warning.js} +15 -2
- package/dist/utils/warning.js.map +1 -0
- package/dist/version.d.ts +8 -2
- package/dist/version.js +13 -2
- package/dist/version.js.map +1 -0
- package/hooks.cjs +11 -4
- package/package.json +22 -18
- package/dist/ActionRow-CbdGFWMT.js.map +0 -1
- package/dist/CommandKitEventsChannel-B5vbINtP.js +0 -88
- package/dist/CommandKitEventsChannel-B5vbINtP.js.map +0 -1
- package/dist/CommandsRouter-DZAeB2v_.js +0 -220
- package/dist/CommandsRouter-DZAeB2v_.js.map +0 -1
- package/dist/CompilerPlugin-M8r3yNAl.js +0 -43
- package/dist/CompilerPlugin-M8r3yNAl.js.map +0 -1
- package/dist/DefaultLogger-XCOl5nLd.d.ts +0 -67
- package/dist/EventInterceptor-CQEXyUTp.js +0 -142
- package/dist/EventInterceptor-CQEXyUTp.js.map +0 -1
- package/dist/EventWorkerContext-Dq29tieI.js +0 -69
- package/dist/EventWorkerContext-Dq29tieI.js.map +0 -1
- package/dist/EventWorkerContext-xgEc2N2T.d.ts +0 -43
- package/dist/EventsRouter-Dzpm7ubq.js +0 -137
- package/dist/EventsRouter-Dzpm7ubq.js.map +0 -1
- package/dist/ILogger-BW8GM-YZ.d.ts +0 -64
- package/dist/ILogger-dQ7Y9X1f.js +0 -0
- package/dist/Logger-DyfkPk7u.d.ts +0 -37
- package/dist/MessageCommandParser-CEuO6Ex3.js +0 -269
- package/dist/MessageCommandParser-CEuO6Ex3.js.map +0 -1
- package/dist/PluginCommon-Cvl5yYM_.js +0 -71
- package/dist/PluginCommon-Cvl5yYM_.js.map +0 -1
- package/dist/RuntimePlugin-BUecuBIU.js +0 -134
- package/dist/RuntimePlugin-BUecuBIU.js.map +0 -1
- package/dist/app-HN1cVg8J.js +0 -0
- package/dist/app-process-u2DXakNv.js +0 -68
- package/dist/app-process-u2DXakNv.js.map +0 -1
- package/dist/build-CxC-b0wN.js +0 -175
- package/dist/build-CxC-b0wN.js.map +0 -1
- package/dist/colors-DL3ucTiT.js +0 -15
- package/dist/colors-DL3ucTiT.js.map +0 -1
- package/dist/commandkit-CuM4HbAQ.js.map +0 -1
- package/dist/common-CcfjYnPG.js +0 -0
- package/dist/common-DVM_onKu.js +0 -211
- package/dist/common-DVM_onKu.js.map +0 -1
- package/dist/common-vnMIelAE.js +0 -17
- package/dist/common-vnMIelAE.js.map +0 -1
- package/dist/components/v1/action-row/ActionRow.d.ts +0 -6
- package/dist/components/v1/action-row/ActionRow.js +0 -3
- package/dist/components/v1/button/Button.d.ts +0 -7
- package/dist/components/v1/button/Button.js +0 -37
- package/dist/components/v1/button/ButtonKit.d.ts +0 -3
- package/dist/components/v1/button/ButtonKit.js +0 -37
- package/dist/components/v1/modal/Modal.d.ts +0 -7
- package/dist/components/v1/modal/Modal.js +0 -40
- package/dist/components/v1/modal/ModalKit.d.ts +0 -3
- package/dist/components/v1/modal/ModalKit.js +0 -37
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/RoleSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/SelectMenu.d.ts +0 -10
- package/dist/components/v1/select-menu/SelectMenu.js +0 -42
- package/dist/components/v1/select-menu/StringSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/UserSelectMenuKit.d.ts +0 -4
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +0 -37
- package/dist/components/v1/select-menu/common.d.ts +0 -3
- package/dist/components/v1/select-menu/common.js +0 -1
- package/dist/components/v2/common.js +0 -3
- package/dist/components/v2/container.d.ts +0 -2
- package/dist/components/v2/container.js +0 -4
- package/dist/components/v2/file.d.ts +0 -2
- package/dist/components/v2/file.js +0 -3
- package/dist/components/v2/index.d.ts +0 -8
- package/dist/components/v2/index.js +0 -17
- package/dist/components/v2/media-gallery.d.ts +0 -2
- package/dist/components/v2/media-gallery.js +0 -5
- package/dist/components/v2/section.d.ts +0 -2
- package/dist/components/v2/section.js +0 -5
- package/dist/components/v2/separator.d.ts +0 -2
- package/dist/components/v2/separator.js +0 -3
- package/dist/components/v2/text-display.d.ts +0 -2
- package/dist/components/v2/text-display.js +0 -3
- package/dist/config-nD7V_D7G.d.ts +0 -16
- package/dist/constants-4oxxvaJA.js +0 -27
- package/dist/constants-4oxxvaJA.js.map +0 -1
- package/dist/constants-B5_Ta7PR.js +0 -70
- package/dist/constants-B5_Ta7PR.js.map +0 -1
- package/dist/constants-BOOGN85p.js +0 -37
- package/dist/constants-BOOGN85p.js.map +0 -1
- package/dist/container-C6GtfAPW.js +0 -44
- package/dist/container-C6GtfAPW.js.map +0 -1
- package/dist/dotprops-tnhpnszJ.js +0 -36
- package/dist/dotprops-tnhpnszJ.js.map +0 -1
- package/dist/element-Bak9llw_.js +0 -84
- package/dist/element-Bak9llw_.js.map +0 -1
- package/dist/env-_68PRRoA.js +0 -109
- package/dist/env-_68PRRoA.js.map +0 -1
- package/dist/error-codes-B4TyW4Ct.d.ts +0 -54
- package/dist/error-codes-Ds0bnPvT.js +0 -73
- package/dist/error-codes-Ds0bnPvT.js.map +0 -1
- package/dist/feature-flags-DafbZSFy.js +0 -160
- package/dist/feature-flags-DafbZSFy.js.map +0 -1
- package/dist/file-DVOELoNv.js.map +0 -1
- package/dist/helpers-CiuN7y5B.js +0 -36
- package/dist/helpers-CiuN7y5B.js.map +0 -1
- package/dist/index-DKcmsWXw.d.ts +0 -1
- package/dist/index-DSBMRX9A.d.ts +0 -1
- package/dist/index-DdqikUQD.d.ts +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-C41hZSJg.js +0 -95
- package/dist/init-C41hZSJg.js.map +0 -1
- package/dist/init-DOr-Y3GQ.d.ts +0 -13
- package/dist/media-gallery-zDtJ3kxb.js +0 -62
- package/dist/media-gallery-zDtJ3kxb.js.map +0 -1
- package/dist/resolve-file-url-ChIyw-Vf.js +0 -23
- package/dist/resolve-file-url-ChIyw-Vf.js.map +0 -1
- package/dist/resolve-file-url-yO8bUxok.d.ts +0 -11
- package/dist/router-DHnFRADH.js +0 -0
- package/dist/runtime-DB9CiPfe.js +0 -0
- package/dist/section-DlvrDoJK.js +0 -60
- package/dist/section-DlvrDoJK.js.map +0 -1
- package/dist/separator-DL6QH5H1.js.map +0 -1
- package/dist/serde-BYaKrsOV.d.ts +0 -12
- package/dist/serde-Cc8iUa9J.js +0 -97
- package/dist/serde-Cc8iUa9J.js.map +0 -1
- package/dist/signals-ChFMD7mB.js +0 -74
- package/dist/signals-ChFMD7mB.js.map +0 -1
- package/dist/store-Hcgz7DSt.js +0 -19
- package/dist/store-Hcgz7DSt.js.map +0 -1
- package/dist/text-display-DbMumig_.js.map +0 -1
- package/dist/type-checker-M1NIIoWL.js +0 -90
- package/dist/type-checker-M1NIIoWL.js.map +0 -1
- package/dist/types-CUZOquUl.js +0 -0
- package/dist/types-package-BWArjyBF.js +0 -75
- package/dist/types-package-BWArjyBF.js.map +0 -1
- package/dist/types-q0Nm882H.js +0 -0
- package/dist/utilities-DtdPlr4c.d.ts +0 -87
- package/dist/utils/warn-unstable.js.map +0 -1
- package/dist/utils-DCSnVAZ6.js +0 -23
- package/dist/utils-DCSnVAZ6.js.map +0 -1
- package/dist/utils-KsNof0Xz.js +0 -34
- package/dist/utils-KsNof0Xz.js.map +0 -1
- package/dist/v2-DofkPKHs.js +0 -0
- package/dist/version-CS7843dE.js +0 -18
- package/dist/version-CS7843dE.js.map +0 -1
- package/dist/version-CtJtBJXI.d.ts +0 -8
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require('../
|
|
3
|
-
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../common-CcfjYnPG.js');
|
|
6
|
-
require('../common-vnMIelAE.js');
|
|
7
|
-
require('../container-C6GtfAPW.js');
|
|
8
|
-
require('../file-DVOELoNv.js');
|
|
9
|
-
require('../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../section-DlvrDoJK.js');
|
|
11
|
-
require('../separator-DL6QH5H1.js');
|
|
12
|
-
require('../text-display-DbMumig_.js');
|
|
13
|
-
require('../v2-DofkPKHs.js');
|
|
14
|
-
require('../element-Bak9llw_.js');
|
|
15
|
-
require('../types-CUZOquUl.js');
|
|
16
|
-
require('../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../types-q0Nm882H.js');
|
|
22
|
-
require('../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../utils-KsNof0Xz.js');
|
|
25
|
-
require('../types-package-BWArjyBF.js');
|
|
26
|
-
require('../constants-BOOGN85p.js');
|
|
27
|
-
require('../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../signals-ChFMD7mB.js');
|
|
29
|
-
require('../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../router-DHnFRADH.js');
|
|
33
|
-
require('../common-DVM_onKu.js');
|
|
34
|
-
require('../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.AnalyticsEngine = require_commandkit.AnalyticsEngine;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../element-CAXu1XtK.js";
|
|
6
|
-
import "../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../types-CJ-XvOFN.js";
|
|
8
|
-
import "../Button-4ZUXdA56.js";
|
|
9
|
-
import "../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../common-DOCvOVC4.js";
|
|
11
|
-
import "../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../container-DHBELeJ3.js";
|
|
18
|
-
import "../file-DTrr-p09.js";
|
|
19
|
-
import "../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../section-Dh_FhPeC.js";
|
|
21
|
-
import "../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../index-DSBMRX9A.js";
|
|
24
|
-
import "../index-DdqikUQD.js";
|
|
25
|
-
import "../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../signals-SHg7J1U_.js";
|
|
27
|
-
import "../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../index-DKcmsWXw.js";
|
|
31
|
-
import "../constants-MKu-Q1jh.js";
|
|
1
|
+
import { a as IdentifyEvent, i as AnalyticsProvider, r as AnalyticsEvent } from "../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { AnalyticsEvent, AnalyticsProvider, IdentifyEvent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
3
|
+
let node_crypto = require("node:crypto");
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
//#region src/analytics/constants.ts
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const DO_NOT_TRACK_KEY = `COMMANDKIT_ANALYTICS__DO_NOT_TRACK::${(0, node_crypto.randomUUID)()}`;
|
|
11
|
+
/**
|
|
12
|
+
* The analytics events that are used in CommandKit.
|
|
13
|
+
* These events are used to track various actions and metrics within the CommandKit framework.
|
|
14
|
+
*/
|
|
15
|
+
const AnalyticsEvents = {
|
|
16
|
+
COMMAND_EXECUTION: "command_execution",
|
|
17
|
+
FEATURE_FLAG_METRICS: "feature_flag_metrics",
|
|
18
|
+
FEATURE_FLAG_DECISION: "feature_flag_decision",
|
|
19
|
+
CACHE_HIT: "cache_hit",
|
|
20
|
+
CACHE_MISS: "cache_miss",
|
|
21
|
+
CACHE_REVALIDATED: "cache_revalidated"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.AnalyticsEvents = AnalyticsEvents;
|
|
26
|
+
exports.DO_NOT_TRACK_KEY = DO_NOT_TRACK_KEY;
|
|
27
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +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"}
|
package/dist/analytics/utils.js
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
require('../
|
|
3
|
-
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../common-CcfjYnPG.js');
|
|
6
|
-
require('../common-vnMIelAE.js');
|
|
7
|
-
require('../container-C6GtfAPW.js');
|
|
8
|
-
require('../file-DVOELoNv.js');
|
|
9
|
-
require('../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../section-DlvrDoJK.js');
|
|
11
|
-
require('../separator-DL6QH5H1.js');
|
|
12
|
-
require('../text-display-DbMumig_.js');
|
|
13
|
-
require('../v2-DofkPKHs.js');
|
|
14
|
-
require('../element-Bak9llw_.js');
|
|
15
|
-
require('../types-CUZOquUl.js');
|
|
16
|
-
require('../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../types-q0Nm882H.js');
|
|
22
|
-
require('../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../utils-KsNof0Xz.js');
|
|
25
|
-
require('../types-package-BWArjyBF.js');
|
|
26
|
-
require('../constants-BOOGN85p.js');
|
|
27
|
-
require('../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../signals-ChFMD7mB.js');
|
|
29
|
-
require('../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../router-DHnFRADH.js');
|
|
33
|
-
require('../common-DVM_onKu.js');
|
|
34
|
-
require('../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.getDoNotTrack = require_commandkit.getDoNotTrack;
|
|
38
5
|
exports.noAnalytics = require_commandkit.noAnalytics;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventInterceptor } from "./EventInterceptor-
|
|
2
|
-
import { Fragment, createElement } from "./element-
|
|
3
|
-
import { MaybeArray } from "./types-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { HMREventType } from "./constants-
|
|
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-DPCbHXCS.js";
|
|
5
|
+
import { i as Middleware, n as CommandsRouter, t as Command } from "./CommandsRouter-DiNoF0dq.js";
|
|
6
|
+
import { i as ParsedEvent, t as EventsRouter } from "./EventsRouter-EuuSu6NH.js";
|
|
7
|
+
import { o as HMREventType } from "./constants-DwxpkIeH.js";
|
|
8
8
|
import EventEmitter from "node:events";
|
|
9
9
|
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
10
|
import { DirectiveTransformerOptions } from "directive-to-hof";
|
|
11
|
-
import {
|
|
11
|
+
import { InlineConfig } from "tsdown";
|
|
12
12
|
|
|
13
13
|
//#region src/types.d.ts
|
|
14
14
|
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
@@ -58,21 +58,10 @@ interface CommandMetadata {
|
|
|
58
58
|
* The bot permissions required to execute the command.
|
|
59
59
|
*/
|
|
60
60
|
botPermissions?: PermissionsString | PermissionsString[];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use `CommandMetadata` instead.
|
|
64
|
-
*/
|
|
65
|
-
interface LegacyCommandMetadata {
|
|
66
|
-
/**
|
|
67
|
-
* The aliases of the command.
|
|
68
|
-
* @deprecated Use `metadata.aliases` or `generateMetadata` instead.
|
|
69
|
-
*/
|
|
70
|
-
aliases?: string[];
|
|
71
61
|
/**
|
|
72
|
-
* The
|
|
73
|
-
* @deprecated Use `metadata.guilds` or `generateMetadata` instead.
|
|
62
|
+
* The name aliases for the `user` and `message` context menu commands. When i18n plugin is in use, this option will be ignored if the translation for the context menu command name is provided.
|
|
74
63
|
*/
|
|
75
|
-
|
|
64
|
+
nameAliases?: Record<'user' | 'message', string>;
|
|
76
65
|
}
|
|
77
66
|
/**
|
|
78
67
|
* Represents a command that can be executed by CommandKit.
|
|
@@ -82,7 +71,7 @@ type CommandData = Prettify<Omit<RESTPostAPIApplicationCommandsJSONBody, 'descri
|
|
|
82
71
|
* The description of the command.
|
|
83
72
|
*/
|
|
84
73
|
description?: string;
|
|
85
|
-
}
|
|
74
|
+
}>;
|
|
86
75
|
/**
|
|
87
76
|
* Represents an event handler for a specific event.
|
|
88
77
|
*/
|
|
@@ -238,7 +227,7 @@ declare class Context<ExecutionMode extends CommandExecutionMode = CommandExecut
|
|
|
238
227
|
/**
|
|
239
228
|
* The client instance.
|
|
240
229
|
*/
|
|
241
|
-
readonly client: Client
|
|
230
|
+
readonly client: Client<true>;
|
|
242
231
|
/**
|
|
243
232
|
* The command that this context belongs to.
|
|
244
233
|
*/
|
|
@@ -263,6 +252,10 @@ declare class Context<ExecutionMode extends CommandExecutionMode = CommandExecut
|
|
|
263
252
|
* Gets the name of the current command.
|
|
264
253
|
*/
|
|
265
254
|
get commandName(): string;
|
|
255
|
+
/**
|
|
256
|
+
* Gets the invoked command name (could be an alias for message commands)
|
|
257
|
+
*/
|
|
258
|
+
get invokedCommandName(): string;
|
|
266
259
|
/**
|
|
267
260
|
* Gets the command options based on the execution mode.
|
|
268
261
|
*/
|
|
@@ -386,6 +379,7 @@ declare class CommandRegistrar {
|
|
|
386
379
|
*/
|
|
387
380
|
getCommandsData(): (CommandData & {
|
|
388
381
|
__metadata?: CommandMetadata;
|
|
382
|
+
__applyId(id: string): void;
|
|
389
383
|
})[];
|
|
390
384
|
/**
|
|
391
385
|
* Registers loaded commands.
|
|
@@ -396,12 +390,14 @@ declare class CommandRegistrar {
|
|
|
396
390
|
*/
|
|
397
391
|
updateGlobalCommands(commands: (CommandData & {
|
|
398
392
|
__metadata?: CommandMetadata;
|
|
393
|
+
__applyId(id: string): void;
|
|
399
394
|
})[]): Promise<void>;
|
|
400
395
|
/**
|
|
401
396
|
* Updates the guild commands.
|
|
402
397
|
*/
|
|
403
398
|
updateGuildCommands(commands: (CommandData & {
|
|
404
399
|
__metadata?: CommandMetadata;
|
|
400
|
+
__applyId(id: string): void;
|
|
405
401
|
})[]): Promise<void>;
|
|
406
402
|
}
|
|
407
403
|
//#endregion
|
|
@@ -549,7 +545,7 @@ declare class CommandKitEnvironment {
|
|
|
549
545
|
getExecutionTime(): number;
|
|
550
546
|
}
|
|
551
547
|
declare enum CommandKitEnvironmentType {
|
|
552
|
-
CommandHandler = "COMMAND_HANDLER"
|
|
548
|
+
CommandHandler = "COMMAND_HANDLER"
|
|
553
549
|
}
|
|
554
550
|
/**
|
|
555
551
|
* Schedules the given function to run after the current command has finished executing.
|
|
@@ -729,8 +725,22 @@ interface AppCommandMiddleware {
|
|
|
729
725
|
* Represents a loaded command with its metadata and configuration.
|
|
730
726
|
*/
|
|
731
727
|
interface LoadedCommand {
|
|
728
|
+
/**
|
|
729
|
+
* The associated discord snowflake id for this command.
|
|
730
|
+
* If the information is not yet available, this will be `null`.
|
|
731
|
+
*/
|
|
732
|
+
discordId: string | null;
|
|
733
|
+
/**
|
|
734
|
+
* The command data.
|
|
735
|
+
*/
|
|
732
736
|
command: Command;
|
|
737
|
+
/**
|
|
738
|
+
* The metadata for this command.
|
|
739
|
+
*/
|
|
733
740
|
metadata: CommandMetadata;
|
|
741
|
+
/**
|
|
742
|
+
* The data for this command.
|
|
743
|
+
*/
|
|
734
744
|
data: AppCommand;
|
|
735
745
|
}
|
|
736
746
|
/**
|
|
@@ -858,9 +868,11 @@ declare class AppCommandHandler {
|
|
|
858
868
|
/**
|
|
859
869
|
* Finds a command by name.
|
|
860
870
|
* @param name - The command name to search for
|
|
871
|
+
* @param hint - The hint for the command type (user or message)
|
|
861
872
|
* @returns The loaded command or null if not found
|
|
862
873
|
*/
|
|
863
874
|
private findCommandByName;
|
|
875
|
+
resolveMessageCommandName(name: string): string;
|
|
864
876
|
/**
|
|
865
877
|
* Reloads all commands and middleware from scratch.
|
|
866
878
|
*/
|
|
@@ -902,9 +914,10 @@ declare class AppCommandHandler {
|
|
|
902
914
|
/**
|
|
903
915
|
* Gets the metadata for a command.
|
|
904
916
|
* @param command - The command name to get metadata for
|
|
917
|
+
* @param hint - The hint for the command type (user or message)
|
|
905
918
|
* @returns The command metadata or null if not found
|
|
906
919
|
*/
|
|
907
|
-
getMetadataFor(command: string): CommandMetadata | null;
|
|
920
|
+
getMetadataFor(command: string, hint?: 'user' | 'message'): CommandMetadata | null;
|
|
908
921
|
}
|
|
909
922
|
//#endregion
|
|
910
923
|
//#region src/events/CommandKitEventsChannel.d.ts
|
|
@@ -986,6 +999,7 @@ declare class CommandKitEventsChannel {
|
|
|
986
999
|
type EventListener = {
|
|
987
1000
|
handler: ListenerFunction;
|
|
988
1001
|
once: boolean;
|
|
1002
|
+
parallel: boolean;
|
|
989
1003
|
};
|
|
990
1004
|
/**
|
|
991
1005
|
* Represents a loaded event with all its listeners.
|
|
@@ -1327,14 +1341,16 @@ declare abstract class CommonDirectiveTransformer extends CompilerPlugin<CommonD
|
|
|
1327
1341
|
declare class CompilerPluginRuntime {
|
|
1328
1342
|
#private;
|
|
1329
1343
|
private readonly plugins;
|
|
1344
|
+
readonly isDevMode: boolean;
|
|
1330
1345
|
readonly name = "CompilerPluginRuntime";
|
|
1331
1346
|
private initialized;
|
|
1332
1347
|
private templates;
|
|
1333
1348
|
/**
|
|
1334
1349
|
* Creates a new instance of CompilerPluginRuntime.
|
|
1335
1350
|
* @param plugins An array of compiler plugins to be managed by this runtime.
|
|
1351
|
+
* @param isDevMode Whether the build is in development mode.
|
|
1336
1352
|
*/
|
|
1337
|
-
constructor(plugins: CompilerPlugin[]);
|
|
1353
|
+
constructor(plugins: CompilerPlugin[], isDevMode: boolean);
|
|
1338
1354
|
/**
|
|
1339
1355
|
* Returns the plugins managed by this runtime.
|
|
1340
1356
|
*/
|
|
@@ -1420,7 +1436,7 @@ type PluginOptions = Record<string, any>;
|
|
|
1420
1436
|
*/
|
|
1421
1437
|
declare enum PluginType {
|
|
1422
1438
|
Compiler = "compiler",
|
|
1423
|
-
Runtime = "runtime"
|
|
1439
|
+
Runtime = "runtime"
|
|
1424
1440
|
}
|
|
1425
1441
|
/**
|
|
1426
1442
|
* Base class for CommandKit plugins.
|
|
@@ -1848,7 +1864,7 @@ interface CommandKitCompilerOptions {
|
|
|
1848
1864
|
* The tsdown compiler options to use with CommandKit.
|
|
1849
1865
|
* **DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING** as it alters the behavior of the build process.
|
|
1850
1866
|
*/
|
|
1851
|
-
tsdown?: Partial<
|
|
1867
|
+
tsdown?: Partial<InlineConfig>;
|
|
1852
1868
|
/**
|
|
1853
1869
|
* Disables chunking of the output (production only, development never chunks).
|
|
1854
1870
|
* @default false
|
|
@@ -1944,6 +1960,11 @@ interface CommandKitConfig {
|
|
|
1944
1960
|
* @default true
|
|
1945
1961
|
*/
|
|
1946
1962
|
showUnknownPrefixCommandsWarning?: boolean;
|
|
1963
|
+
/**
|
|
1964
|
+
* Whether to make interaction components optional by default when using JSX (opposite of Discord's default behavior).
|
|
1965
|
+
* @default true
|
|
1966
|
+
*/
|
|
1967
|
+
jsxDefaultOptionalComponents?: boolean;
|
|
1947
1968
|
}
|
|
1948
1969
|
//#endregion
|
|
1949
1970
|
//#region src/config/utils.d.ts
|
|
@@ -1984,7 +2005,7 @@ interface CommandKitConfiguration {
|
|
|
1984
2005
|
* @param message The message to get the command prefix for.
|
|
1985
2006
|
* @returns The command prefix or an array of prefixes.
|
|
1986
2007
|
*/
|
|
1987
|
-
getMessageCommandPrefix: (message: Message) => Awaitable<string | string[]>;
|
|
2008
|
+
getMessageCommandPrefix: (message: Message) => Awaitable<string | string[] | RegExp>;
|
|
1988
2009
|
}
|
|
1989
2010
|
/**
|
|
1990
2011
|
* Represents the function executed during the bootstrap phase of CommandKit.
|
|
@@ -2089,7 +2110,6 @@ declare class CommandKit extends EventEmitter {
|
|
|
2089
2110
|
/**
|
|
2090
2111
|
* Create a new command and event handler with CommandKit.
|
|
2091
2112
|
* @param options - The default CommandKit configuration.
|
|
2092
|
-
* @see {@link https://commandkit.js.org/docs/guide/commandkit-setup}
|
|
2093
2113
|
*/
|
|
2094
2114
|
constructor(options?: CommandKitOptions);
|
|
2095
2115
|
/**
|
|
@@ -2109,7 +2129,7 @@ declare class CommandKit extends EventEmitter {
|
|
|
2109
2129
|
* Sets the prefix resolver for the command handler.
|
|
2110
2130
|
* @param resolver The resolver function.
|
|
2111
2131
|
*/
|
|
2112
|
-
setPrefixResolver(resolver: (message: Message) => Awaitable<string | string[]>): this;
|
|
2132
|
+
setPrefixResolver(resolver: (message: Message) => Awaitable<string | string[] | RegExp>): this;
|
|
2113
2133
|
/**
|
|
2114
2134
|
* Sets the default locale for the command handler.
|
|
2115
2135
|
* @param locale The default locale.
|
|
@@ -2254,5 +2274,5 @@ declare class AnalyticsEngine {
|
|
|
2254
2274
|
track(event: AnalyticsEvent): Promise<void>;
|
|
2255
2275
|
}
|
|
2256
2276
|
//#endregion
|
|
2257
|
-
export {
|
|
2258
|
-
//# sourceMappingURL=analytics-engine-
|
|
2277
|
+
export { isRuntimePlugin as $, MessageCommand as $t, flag as A, makeContextAwareFunction as At, CommonPluginRuntime as B, PreRegisterCommandsEvent as Bt, EvaluationContext as C, RunCommandOptions as Ct, FlagRunner as D, getCommandKit as Dt, FeatureFlagDefinition as E, exitContext as Et, CommandKitPluginRuntime as F, CommandKitEnvironmentInternalData as Ft, PluginTransformParameters as G, ChatInputCommand as Gt, CommonDirectiveTransformer as H, AutocompleteCommand as Ht, PluginCommon as I, CommandKitEnvironmentType as It, CommandKitEventDispatch as J, CommandExecutionMode as Jt, TransformedResult as K, ChatInputCommandContext as Kt, PluginOptions as L, after as Lt, FlagConfiguration as M, useEnvironment as Mt, FlagProvider as N, useStore as Nt, IdentifyFunction as O, getContext as Ot, JsonFlagProvider as P, CommandKitEnvironment as Pt, RuntimePlugin as Q, InteractionCommandMiddlewareContext as Qt, PluginType as R, cancelAfter as Rt, DecideFunction as S, AppCommandRunner as St, FeatureFlag as T, GenericFunction as Tt, CommonDirectiveTransformerOptions as U, AutocompleteCommandContext as Ut, CompilerPluginRuntime as V, AnyCommandExecute as Vt, CompilerPlugin as W, AutocompleteCommandMiddlewareContext as Wt, MaybeFalsey as X, ContextParameters as Xt, CommandKitPlugin as Y, Context as Yt, TemplateHandler as Z, InteractionCommandContext as Zt, CommandKitConfig as _, CustomAppCommandProps as _t, IdentifyEvent as a, MiddlewareContext as an, EventListener as at, CustomEvaluationContext as b, ResolvableCommand as bt, CommandKitConfiguration as c, UserContextMenuCommand as cn, ListenerFunction as ct, onBootstrap as d, CommandContext as dn, AppCommandNative as dt, MessageCommandContext as en, CommandKitHMREvent as et, DeepPartial as f, CommandData as fn, CommandBuilderLike as ft, CommandKitCompilerOptions as g, EventHandler as gn, CommandTypeData as gt, mergeDeep as h, CommandMetadataFunction as hn, CommandDataSchemaValue as ht, AnalyticsProvider as i, MessageContextMenuCommandMiddlewareContext as in, AppEventsHandlerLoadedData as it, setFlagProvider as j, provideContext as jt, MaybePromise as k, isCommandWorkerContext as kt, commandkit as l, UserContextMenuCommandContext as ln, AppCommand as lt, ResolvedCommandKitConfig as m, CommandMetadata as mn, CommandDataSchemaKey as mt, FilterFunction as n, MessageContextMenuCommand as nn, registerDevHooks as nt, BootstrapFunction as o, MiddlewareContextArgs as on, LoadedEvent as ot, DeepRequired as p, CommandKitOptions as pn, CommandDataSchema as pt, isCompilerPlugin as q, CommandContextOptions as qt, AnalyticsEvent as r, MessageContextMenuCommandContext as rn, AppEventsHandler as rt, CommandKit as s, SlashCommandMiddlewareContext as sn, CommandKitEventsChannel as st, AnalyticsEngine as t, MessageCommandMiddlewareContext as tn, IpcMessageCommand as tt, onApplicationBootstrap as u, UserContextMenuCommandMiddlewareContext as un, AppCommandHandler as ut, FlagStore as v, LoadedCommand as vt, EventFlagContext as w, AsyncFunction as wt, CustomEvaluationFunction as x, RunCommand as xt, CommandFlagContext as y, PreparedAppCommandExecution as yt, isPlugin as z, CommandRegistrar as zt };
|
|
2278
|
+
//# sourceMappingURL=analytics-engine-DnRsHBId.d.ts.map
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../../element-CAXu1XtK.js";
|
|
6
|
-
import "../../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../../types-CJ-XvOFN.js";
|
|
8
|
-
import "../../Button-4ZUXdA56.js";
|
|
9
|
-
import "../../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../../common-DOCvOVC4.js";
|
|
11
|
-
import "../../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../../container-DHBELeJ3.js";
|
|
18
|
-
import "../../file-DTrr-p09.js";
|
|
19
|
-
import "../../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../../section-Dh_FhPeC.js";
|
|
21
|
-
import "../../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../../index-DSBMRX9A.js";
|
|
24
|
-
import "../../index-DdqikUQD.js";
|
|
25
|
-
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-SHg7J1U_.js";
|
|
27
|
-
import "../../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../../index-DKcmsWXw.js";
|
|
31
|
-
import "../../constants-MKu-Q1jh.js";
|
|
1
|
+
import { Ct as RunCommandOptions, St as AppCommandRunner } from "../../analytics-engine-DnRsHBId.js";
|
|
32
2
|
export { AppCommandRunner, RunCommandOptions };
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require('../../
|
|
3
|
-
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../../common-CcfjYnPG.js');
|
|
6
|
-
require('../../common-vnMIelAE.js');
|
|
7
|
-
require('../../container-C6GtfAPW.js');
|
|
8
|
-
require('../../file-DVOELoNv.js');
|
|
9
|
-
require('../../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../../section-DlvrDoJK.js');
|
|
11
|
-
require('../../separator-DL6QH5H1.js');
|
|
12
|
-
require('../../text-display-DbMumig_.js');
|
|
13
|
-
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../element-Bak9llw_.js');
|
|
15
|
-
require('../../types-CUZOquUl.js');
|
|
16
|
-
require('../../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../../utils-KsNof0Xz.js');
|
|
25
|
-
require('../../types-package-BWArjyBF.js');
|
|
26
|
-
require('../../constants-BOOGN85p.js');
|
|
27
|
-
require('../../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../../signals-ChFMD7mB.js');
|
|
29
|
-
require('../../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../../router-DHnFRADH.js');
|
|
33
|
-
require('../../common-DVM_onKu.js');
|
|
34
|
-
require('../../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.AppCommandRunner = require_commandkit.AppCommandRunner;
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
|
-
import "../../ButtonKit-C7r7RPNf.js";
|
|
4
|
-
import "../../ModalKit-Btz58KYn.js";
|
|
5
|
-
import "../../element-CAXu1XtK.js";
|
|
6
|
-
import "../../ActionRow-DKnFVDME.js";
|
|
7
|
-
import "../../types-CJ-XvOFN.js";
|
|
8
|
-
import "../../Button-4ZUXdA56.js";
|
|
9
|
-
import "../../Modal-C6UTRdYQ.js";
|
|
10
|
-
import "../../common-DOCvOVC4.js";
|
|
11
|
-
import "../../StringSelectMenuKit-Bhs8U6WI.js";
|
|
12
|
-
import "../../ChannelSelectMenuKit-BrXvBYNH.js";
|
|
13
|
-
import "../../MentionableSelectMenuKit-CPTKqx-O.js";
|
|
14
|
-
import "../../UserSelectMenuKit-CfqFJdxz.js";
|
|
15
|
-
import "../../RoleSelectMenuKit-C26lU3sN.js";
|
|
16
|
-
import "../../SelectMenu-Diy87_ba.js";
|
|
17
|
-
import "../../container-DHBELeJ3.js";
|
|
18
|
-
import "../../file-DTrr-p09.js";
|
|
19
|
-
import "../../media-gallery-BMsXSot3.js";
|
|
20
|
-
import "../../section-Dh_FhPeC.js";
|
|
21
|
-
import "../../separator-CMf6Cyy5.js";
|
|
22
|
-
import "../../text-display-DRw3r_lK.js";
|
|
23
|
-
import "../../index-DSBMRX9A.js";
|
|
24
|
-
import "../../index-DdqikUQD.js";
|
|
25
|
-
import "../../MessageCommandParser-ROLibZPX.js";
|
|
26
|
-
import "../../signals-SHg7J1U_.js";
|
|
27
|
-
import "../../helpers-Wg6P5fRQ.js";
|
|
28
|
-
import "../../CommandsRouter-CoOA7hkf.js";
|
|
29
|
-
import "../../EventsRouter-BacqK6z3.js";
|
|
30
|
-
import "../../index-DKcmsWXw.js";
|
|
31
|
-
import "../../constants-MKu-Q1jh.js";
|
|
1
|
+
import { $t as MessageCommand, Gt as ChatInputCommand, Ht as AutocompleteCommand, Jt as CommandExecutionMode, Kt as ChatInputCommandContext, Qt as InteractionCommandMiddlewareContext, Ut as AutocompleteCommandContext, Vt as AnyCommandExecute, Wt as AutocompleteCommandMiddlewareContext, Xt as ContextParameters, Yt as Context, Zt as InteractionCommandContext, an as MiddlewareContext, cn as UserContextMenuCommand, en as MessageCommandContext, in as MessageContextMenuCommandMiddlewareContext, ln as UserContextMenuCommandContext, nn as MessageContextMenuCommand, on as MiddlewareContextArgs, qt as CommandContextOptions, rn as MessageContextMenuCommandContext, sn as SlashCommandMiddlewareContext, tn as MessageCommandMiddlewareContext, un as UserContextMenuCommandMiddlewareContext } from "../../analytics-engine-DnRsHBId.js";
|
|
32
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,38 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
require('../../
|
|
3
|
-
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-CuM4HbAQ.js');
|
|
5
|
-
require('../../common-CcfjYnPG.js');
|
|
6
|
-
require('../../common-vnMIelAE.js');
|
|
7
|
-
require('../../container-C6GtfAPW.js');
|
|
8
|
-
require('../../file-DVOELoNv.js');
|
|
9
|
-
require('../../media-gallery-zDtJ3kxb.js');
|
|
10
|
-
require('../../section-DlvrDoJK.js');
|
|
11
|
-
require('../../separator-DL6QH5H1.js');
|
|
12
|
-
require('../../text-display-DbMumig_.js');
|
|
13
|
-
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../element-Bak9llw_.js');
|
|
15
|
-
require('../../types-CUZOquUl.js');
|
|
16
|
-
require('../../EventInterceptor-CQEXyUTp.js');
|
|
17
|
-
require('../../constants-B5_Ta7PR.js');
|
|
18
|
-
require('../../PluginCommon-Cvl5yYM_.js');
|
|
19
|
-
require('../../CompilerPlugin-M8r3yNAl.js');
|
|
20
|
-
require('../../RuntimePlugin-BUecuBIU.js');
|
|
21
|
-
require('../../types-q0Nm882H.js');
|
|
22
|
-
require('../../resolve-file-url-ChIyw-Vf.js');
|
|
23
|
-
require('../../runtime-DB9CiPfe.js');
|
|
24
|
-
require('../../utils-KsNof0Xz.js');
|
|
25
|
-
require('../../types-package-BWArjyBF.js');
|
|
26
|
-
require('../../constants-BOOGN85p.js');
|
|
27
|
-
require('../../EventWorkerContext-Dq29tieI.js');
|
|
28
|
-
require('../../signals-ChFMD7mB.js');
|
|
29
|
-
require('../../MessageCommandParser-CEuO6Ex3.js');
|
|
30
|
-
require('../../CommandsRouter-DZAeB2v_.js');
|
|
31
|
-
require('../../EventsRouter-Dzpm7ubq.js');
|
|
32
|
-
require('../../router-DHnFRADH.js');
|
|
33
|
-
require('../../common-DVM_onKu.js');
|
|
34
|
-
require('../../CommandKitEventsChannel-B5vbINtP.js');
|
|
35
|
-
require('../../store-Hcgz7DSt.js');
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_commandkit = require('../../commandkit--k6yDJEr.js');
|
|
36
3
|
|
|
37
4
|
exports.CommandExecutionMode = require_commandkit.CommandExecutionMode;
|
|
38
5
|
exports.Context = require_commandkit.Context;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as ParsedMessageCommand, n as MessageCommandOptionsSchema, r as MessageCommandParser, t as MessageCommandOptions } from "../../MessageCommandParser-DPCbHXCS.js";
|
|
2
2
|
export { MessageCommandOptions, MessageCommandOptionsSchema, MessageCommandParser, ParsedMessageCommand };
|