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