commandkit 1.0.0-dev.20250530151225 → 1.0.0-dev.20250531124649
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/dist/{CommandKit-DDSUNOAe.d.ts → CommandKit-BYtbVkJL.d.ts} +3 -3
- package/dist/{CommandKit-L7X8fflj.js → CommandKit-DbKHr6qT.js} +15 -15
- package/dist/{CommandKit-L7X8fflj.js.map → CommandKit-DbKHr6qT.js.map} +1 -1
- package/dist/CommandKit.d.ts +1 -1
- package/dist/CommandKit.js +5 -5
- package/dist/{CompilerPluginRuntime-BWLDMYQl.js → CompilerPluginRuntime-C9wmPMQf.js} +2 -2
- package/dist/{CompilerPluginRuntime-BWLDMYQl.js.map → CompilerPluginRuntime-C9wmPMQf.js.map} +1 -1
- package/dist/{EventInterceptor-DtRINyTP.js → EventInterceptor-Bvh05z7n.js} +4 -4
- package/dist/{EventInterceptor-DtRINyTP.js.map → EventInterceptor-Bvh05z7n.js.map} +1 -1
- package/dist/{EventWorkerContext-CjU5wt-a.d.ts → EventWorkerContext-9CTBICvs.d.ts} +2 -2
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +5 -5
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +5 -5
- package/dist/app/events/EventWorkerContext.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +5 -5
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +5 -5
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +5 -5
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +5 -5
- package/dist/{build-B5TuLOa-.js → build-BB9ezwQN.js} +4 -4
- package/dist/{build-B5TuLOa-.js.map → build-BB9ezwQN.js.map} +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/build.d.ts +1 -1
- package/dist/cli/build.js +7 -7
- package/dist/cli/common.d.ts +5 -5
- package/dist/cli/development.js +7 -7
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +6 -6
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +7 -7
- package/dist/cli/type-checker.js +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.js +2 -2
- package/dist/components/index.js +5 -5
- package/dist/components/v1/button/Button.js +5 -5
- package/dist/components/v1/button/ButtonKit.js +5 -5
- package/dist/components/v1/modal/Modal.js +5 -5
- package/dist/components/v1/modal/ModalKit.js +5 -5
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/SelectMenu.js +5 -5
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +5 -5
- package/dist/config/config.d.ts +4 -4
- package/dist/config/config.js +5 -5
- package/dist/config/default.d.ts +3 -3
- package/dist/config/default.js +5 -5
- package/dist/config/loader.d.ts +3 -3
- package/dist/config/loader.js +5 -5
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +3 -3
- package/dist/{config-LPxTebft.d.ts → config-_NXT68BU.d.ts} +3 -3
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +5 -5
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +5 -5
- package/dist/{element-hdSqnIpC.js → element-DcqNz1dV.js} +2 -2
- package/dist/{element-hdSqnIpC.js.map → element-DcqNz1dV.js.map} +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/{feature-flags-BtOkZJxW.js → feature-flags-DqKVc2-p.js} +2 -2
- package/dist/{feature-flags-BtOkZJxW.js.map → feature-flags-DqKVc2-p.js.map} +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +6 -6
- package/dist/flags/store.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +8 -8
- package/dist/{init-CT348Okf.d.ts → init-C62l0PVB.d.ts} +3 -3
- package/dist/{init-CakfOuYm.js → init-O2deAczC.js} +3 -3
- package/dist/{init-CakfOuYm.js.map → init-O2deAczC.js.map} +1 -1
- package/dist/logger/DefaultLogger.js +5 -5
- package/dist/logger/Logger.js +5 -5
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +5 -5
- 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 +5 -5
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +5 -5
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/{type-checker-DodpF2I2.js → type-checker-BILXtCjQ.js} +2 -2
- package/dist/{type-checker-DodpF2I2.js.map → type-checker-BILXtCjQ.js.map} +1 -1
- package/dist/{types-w2bWHUve.d.ts → types-BI6_e27D.d.ts} +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -2
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +5 -5
- package/dist/utils/utilities.js +5 -5
- package/dist/utils/warn-unstable.js +1 -1
- package/dist/{utils-Dprjd7Oz.d.ts → utils-CLd34EFf.d.ts} +2 -2
- package/dist/{version-EnexmO7x.js → version-DG7huXRq.js} +2 -2
- package/dist/{version-EnexmO7x.js.map → version-DG7huXRq.js.map} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warn-unstable-V20WCBDd.js → warn-unstable-DHLaxPC8.js} +2 -2
- package/dist/{warn-unstable-V20WCBDd.js.map → warn-unstable-DHLaxPC8.js.map} +1 -1
- package/package.json +2 -2
package/dist/CommandKit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-
|
|
1
|
+
import { BootstrapFunction, CommandKit, CommandKitConfiguration, commandkit, onApplicationBootstrap, onBootstrap } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "./EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "./ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "./ModalKit-CKtQ8eXW.js";
|
package/dist/CommandKit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('./colors-Cd4Oz-r-.js');
|
|
2
2
|
require('./ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('./error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('./CommandKit-
|
|
4
|
+
const require_CommandKit = require('./CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('./common-CcfjYnPG.js');
|
|
6
6
|
require('./common-CeO-vn8Y.js');
|
|
7
7
|
require('./container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('./section-D6t7tyEZ.js');
|
|
|
11
11
|
require('./separator-DYAFK-Jj.js');
|
|
12
12
|
require('./text-display-Dy6JHB5X.js');
|
|
13
13
|
require('./v2-DofkPKHs.js');
|
|
14
|
-
require('./warn-unstable-
|
|
15
|
-
require('./element-
|
|
14
|
+
require('./warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('./element-DcqNz1dV.js');
|
|
16
16
|
require('./types-B5VPP9ig.js');
|
|
17
|
-
require('./EventInterceptor-
|
|
17
|
+
require('./EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('./constants-DOPSzXI0.js');
|
|
19
19
|
require('./PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('./CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('./RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('./types-Bq0EWaM3.js');
|
|
23
|
-
require('./CompilerPluginRuntime-
|
|
23
|
+
require('./CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('./runtime-D0JnztkU.js');
|
|
25
25
|
require('./EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('./resolve-file-url-ifwdwqmq.js');
|
|
@@ -10,7 +10,7 @@ var PluginExecutionMode = /* @__PURE__ */ function(PluginExecutionMode$1) {
|
|
|
10
10
|
var CompilerPluginRuntime = class {
|
|
11
11
|
name = "CompilerPluginRuntime";
|
|
12
12
|
initialized = false;
|
|
13
|
-
templates = new Map();
|
|
13
|
+
templates = /* @__PURE__ */ new Map();
|
|
14
14
|
#pluginContext = new node_async_hooks.AsyncLocalStorage();
|
|
15
15
|
constructor(plugins) {
|
|
16
16
|
this.plugins = plugins;
|
|
@@ -110,4 +110,4 @@ Object.defineProperty(exports, 'CompilerPluginRuntime', {
|
|
|
110
110
|
return CompilerPluginRuntime;
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
//# sourceMappingURL=CompilerPluginRuntime-
|
|
113
|
+
//# sourceMappingURL=CompilerPluginRuntime-C9wmPMQf.js.map
|
package/dist/{CompilerPluginRuntime-BWLDMYQl.js.map → CompilerPluginRuntime-C9wmPMQf.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompilerPluginRuntime-
|
|
1
|
+
{"version":3,"file":"CompilerPluginRuntime-C9wmPMQf.js","names":[],"sources":["../src/plugins/plugin-runtime/CompilerPluginRuntime.ts"],"sourcesContent":["import {\n CompilerPlugin,\n MaybeFalsey,\n TransformedResult,\n TemplateHandler,\n} from '..';\nimport { AsyncLocalStorage } from 'node:async_hooks';\n\ninterface TemplateEntry {\n handler: TemplateHandler;\n plugin: CompilerPlugin;\n}\n\nenum PluginExecutionMode {\n Activate = 'activate',\n Deactivate = 'deactivate',\n}\n\ntype PluginContext = {\n plugin: CompilerPlugin;\n mode: PluginExecutionMode;\n};\n\nexport class CompilerPluginRuntime {\n public readonly name = 'CompilerPluginRuntime';\n private initialized = false;\n private templates = new Map<string, TemplateEntry>();\n #pluginContext = new AsyncLocalStorage<PluginContext>();\n\n public constructor(private readonly plugins: CompilerPlugin[]) {}\n\n public getPlugins() {\n return this.plugins;\n }\n\n public isEmpty() {\n return !this.plugins.length;\n }\n\n public registerTemplate(name: string, handler: TemplateHandler) {\n const ctx = this.#pluginContext.getStore();\n\n if (!ctx || ctx.mode !== PluginExecutionMode.Activate) {\n throw new Error(\n 'registerTemplate() must be called inside activate() method',\n );\n }\n\n if (this.templates.has(name)) {\n throw new Error(`Template \"${name}\" already exists`);\n }\n\n this.templates.set(name, { handler, plugin: ctx.plugin });\n }\n\n public unregisterTemplate(name: string) {\n const ctx = this.#pluginContext.getStore();\n\n if (!ctx || ctx.mode !== PluginExecutionMode.Deactivate) {\n throw new Error(\n 'unregisterTemplate() must be called inside deactivate() method',\n );\n }\n\n const template = this.templates.get(name);\n if (!template) {\n throw new Error(`Template \"${name}\" does not exist`);\n }\n\n if (template.plugin !== ctx.plugin) {\n throw new Error(\n `Template \"${name}\" is owned by plugin \"${template.plugin.name}\" and cannot be unregistered by \"${ctx.plugin.name}\"`,\n );\n }\n\n this.templates.delete(name);\n }\n\n public getTemplate(name: string): TemplateHandler | undefined {\n return this.templates.get(name)?.handler;\n }\n\n public getTemplates(): Map<string, TemplateHandler> {\n return new Map(\n Array.from(this.templates.entries()).map(([name, entry]) => [\n name,\n entry.handler,\n ]),\n );\n }\n\n public async transform(\n code: string,\n id: string,\n ): Promise<{ code: string; map: string | null }> {\n let map: string | null = null;\n for (const plugin of this.plugins) {\n try {\n const res: MaybeFalsey<TransformedResult> = await plugin.transform?.({\n code,\n id,\n });\n\n if (!res) continue;\n\n if (res.code) {\n code = res.code;\n }\n\n if (res.map) {\n map = res.map;\n }\n } catch (e: any) {\n const err = e instanceof Error ? e : new Error(e);\n throw new Error(\n `Plugin ${plugin.name} failed to transform: ${err.message}`,\n );\n }\n }\n\n return {\n code,\n map,\n };\n }\n\n public async init() {\n if (this.initialized) return;\n\n for (const plugin of this.plugins) {\n try {\n await this.#pluginContext.run(\n {\n plugin,\n mode: PluginExecutionMode.Activate,\n },\n async () => {\n await plugin.activate?.(this);\n },\n );\n } catch (e: any) {\n console.error(\n `Plugin ${plugin.name} failed to activate with ${e?.stack || e}`,\n );\n }\n }\n\n this.initialized = true;\n }\n\n public async destroy() {\n if (!this.initialized) return;\n\n for (const plugin of this.plugins) {\n try {\n await this.#pluginContext.run(\n {\n plugin,\n mode: PluginExecutionMode.Deactivate,\n },\n async () => {\n await plugin.deactivate?.(this);\n },\n );\n } catch (e: any) {\n console.error(\n `Plugin ${plugin.name} failed to deactivate with ${e?.stack || e}`,\n );\n }\n }\n\n this.initialized = false;\n }\n\n public toJSON() {\n return {\n name: this.name,\n transform: this.transform.bind(this),\n };\n }\n}\n"],"mappings":";;;;AAaA,IAAK,sEAAL;AACE;AACA;;AACF,EAHK;AAUL,IAAa,wBAAb,MAAmC;CACjC,AAAgB,OAAO;CACvB,AAAQ,cAAc;CACtB,AAAQ,4BAAY,IAAI;CACxB,iBAAiB,IAAI;CAErB,AAAO,YAA6B,SAA2B;EAA3B;CAA4B;CAEhE,AAAO,aAAa;AAClB,SAAO,KAAK;CACd;CAEA,AAAO,UAAU;AACf,UAAQ,KAAK,QAAQ;CACvB;CAEA,AAAO,iBAAiB,MAAc,SAA0B;EAC9D,MA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;EAE9D;AAGF,SAAO;GACL;GACA;EACD;CACH;CAEA,MAAa,OAAO;AAClB,MAAI,KAAK,YAAa;AAEtB,OAAK,MAAM,UAAU,KAAK,QACxB,KAAI;AACF,SAAM,KAAK,eAAe,IACxB;IACE;IACA,MAAM,oBAAoB;GAC3B,GACD,YAAY;;AACV,+BAAM,OAAO,6DAAP,8BAAkB,KAAK;GAC9B,EACF;EACF,SAAQ,GAAQ;AACf,WAAQ,OACL,SAAS,OAAO,KAAK,kEAA2B,EAAG,UAAS,EAAE,EAChE;EACH;AAGF,OAAK,cAAc;CACrB;CAEA,MAAa,UAAU;AACrB,OAAK,KAAK,YAAa;AAEvB,OAAK,MAAM,UAAU,KAAK,QACxB,KAAI;AACF,SAAM,KAAK,eAAe,IACxB;IACE;IACA,MAAM,oBAAoB;GAC3B,GACD,YAAY;;AACV,iCAAM,OAAO,iEAAP,gCAAoB,KAAK;GAChC,EACF;EACF,SAAQ,GAAQ;AACf,WAAQ,OACL,SAAS,OAAO,KAAK,oEAA6B,EAAG,UAAS,EAAE,EAClE;EACH;AAGF,OAAK,cAAc;CACrB;CAEA,AAAO,SAAS;AACd,SAAO;GACL,MAAM,KAAK;GACX,WAAW,KAAK,UAAU,KAAK,KAAK;EACrC;CACH;AACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/components/common/EventInterceptor.ts
|
|
3
3
|
var EventInterceptor = class {
|
|
4
|
-
subscribers = new Map();
|
|
5
|
-
globalHandlers = new Map();
|
|
4
|
+
subscribers = /* @__PURE__ */ new Map();
|
|
5
|
+
globalHandlers = /* @__PURE__ */ new Map();
|
|
6
6
|
cleanupTimer = null;
|
|
7
7
|
/**
|
|
8
8
|
* Creates the event interceptor.
|
|
@@ -68,7 +68,7 @@ var EventInterceptor = class {
|
|
|
68
68
|
*/
|
|
69
69
|
subscribe(event, listener, options) {
|
|
70
70
|
if (!this.subscribers.has(event)) {
|
|
71
|
-
this.subscribers.set(event, new Set());
|
|
71
|
+
this.subscribers.set(event, /* @__PURE__ */ new Set());
|
|
72
72
|
this.client.on(event, this.createGlobalHandler(event));
|
|
73
73
|
this.client.setMaxListeners(this.client.getMaxListeners() + 1);
|
|
74
74
|
}
|
|
@@ -137,4 +137,4 @@ Object.defineProperty(exports, 'EventInterceptor', {
|
|
|
137
137
|
return EventInterceptor;
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
-
//# sourceMappingURL=EventInterceptor-
|
|
140
|
+
//# sourceMappingURL=EventInterceptor-Bvh05z7n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventInterceptor-
|
|
1
|
+
{"version":3,"file":"EventInterceptor-Bvh05z7n.js","names":[],"sources":["../src/components/common/EventInterceptor.ts"],"sourcesContent":["import { Awaitable, Client, ClientEvents, Events } from 'discord.js';\n\nexport interface EventInterceptorContextData<E extends keyof ClientEvents> {\n /**\n * The filter to use for the collector.\n */\n filter?: (...args: ClientEvents[E]) => Awaitable<boolean>;\n /**\n * The duration (in ms) that the collector should run for.\n */\n time?: number;\n /**\n * If the collector should automatically reset the timer when a button is clicked.\n */\n autoReset?: boolean;\n /**\n * Whether the collector should run only once.\n */\n once?: boolean;\n /**\n * The handler to run when the collector ends.\n */\n onEnd?: (reason: string) => Awaitable<void>;\n /**\n * The handler to run upon an error.\n */\n onError?: EventInterceptorErrorHandler;\n}\n\nexport type EventInterceptorErrorHandler = (error: Error) => Awaitable<void>;\n\nexport class EventInterceptor {\n private subscribers = new Map<\n keyof ClientEvents,\n Set<(...args: any[]) => void>\n >();\n private globalHandlers = new Map<\n keyof ClientEvents,\n (...args: any[]) => void\n >();\n private cleanupTimer: NodeJS.Timeout | null = null;\n\n /**\n * Creates the event interceptor.\n */\n public constructor(public readonly client: Client) {\n this.#cleanupLoop();\n }\n\n #cleanupLoop() {\n if (this.cleanupTimer) clearInterval(this.cleanupTimer);\n\n this.cleanupTimer = setInterval(() => {\n for (const [event, handlers] of this.subscribers) {\n for (const handler of handlers) {\n const options = Reflect.get(\n handler,\n 'options',\n ) as EventInterceptorContextData<keyof ClientEvents> & {\n registeredAt: number;\n };\n\n const isExpired =\n options.time && Date.now() - options.registeredAt > options.time;\n\n if (isExpired) {\n this.unsubscribe(event, handler, 'time');\n }\n }\n }\n }, 60_000).unref();\n }\n\n /**\n * Destroys the event interceptor.\n */\n public destroy(): void {\n if (this.cleanupTimer) {\n clearInterval(this.cleanupTimer);\n this.cleanupTimer = null;\n }\n\n for (const [event, handlers] of this.subscribers) {\n for (const handler of handlers) {\n this.unsubscribe(event, handler, 'destroy');\n }\n }\n\n this.subscribers.clear();\n this.globalHandlers.clear();\n }\n\n /**\n * Whether the event has subscribers.\n * @param event The event to check.\n */\n public hasSubscribers(event: keyof ClientEvents): boolean {\n return this.subscribers.has(event);\n }\n\n /**\n * Returns the number of subscribers for the event.\n * @param event The event to check.\n */\n public getSubscriberCount(event: keyof ClientEvents): number {\n const handlers = this.subscribers.get(event);\n return handlers?.size ?? 0;\n }\n\n /**\n * Whether the event has global handlers.\n */\n public hasGlobalHandlers(): boolean {\n return this.globalHandlers.size > 0;\n }\n\n /**\n * Returns the number of global handlers.\n */\n public getGlobalHandlersCount(): number {\n return this.subscribers.size;\n }\n\n /**\n * Subscribes to an event.\n * @param event The event to subscribe to.\n * @param listener The listener to call when the event is emitted.\n * @returns A function to unsubscribe from the event.\n */\n public subscribe<Event extends keyof ClientEvents>(\n event: Event,\n listener: (...args: ClientEvents[Event]) => void,\n options?: EventInterceptorContextData<Event>,\n ): () => void {\n if (!this.subscribers.has(event)) {\n this.subscribers.set(event, new Set());\n this.client.on(event, this.createGlobalHandler(event));\n this.client.setMaxListeners(this.client.getMaxListeners() + 1);\n }\n\n options ??= {};\n\n // @ts-ignore\n options.registeredAt = Date.now();\n\n Reflect.set(listener, 'options', options);\n\n this.subscribers.get(event)!.add(listener);\n\n return () => {\n this.unsubscribe(event, listener);\n };\n }\n\n /**\n * Unsubscribes from an event.\n * @param event The event to unsubscribe from.\n */\n public unsubscribe<Event extends keyof ClientEvents>(\n event: Event,\n listener: (...args: ClientEvents[Event]) => void,\n reason?: string,\n ): void {\n const handlers = this.subscribers.get(event);\n if (!handlers) return;\n\n handlers.delete(listener);\n\n if (handlers.size < 1) {\n this.subscribers.delete(event);\n this.client.removeListener(event, this.globalHandlers.get(event)!);\n this.globalHandlers.delete(event);\n this.client.setMaxListeners(\n Math.max(this.client.getMaxListeners() - 1, 0),\n );\n }\n\n Reflect.get(listener, 'options').onEnd?.(reason ?? 'unsubscribe');\n }\n\n /**\n * Creates a global handler for the event.\n * @param event The event to create a global handler for.\n * @returns The global handler.\n */\n private createGlobalHandler<Event extends keyof ClientEvents>(\n event: Event,\n ): (...args: ClientEvents[Event]) => void {\n if (this.globalHandlers.has(event)) {\n return this.globalHandlers.get(event)!;\n }\n\n const handler = async (...args: ClientEvents[Event]) => {\n const subscribers = this.subscribers.get(event);\n if (subscribers && subscribers.size > 0) {\n for (const subscriber of subscribers) {\n const options = Reflect.get(\n subscriber,\n 'options',\n ) as EventInterceptorContextData<Event> & { registeredAt: number };\n\n const isExpired =\n options.time && Date.now() - options.registeredAt > options.time;\n\n if (isExpired) {\n this.unsubscribe(event, subscriber, 'time');\n continue;\n }\n\n if (options.autoReset) {\n options.registeredAt = Date.now();\n }\n\n if (options.filter && !(await options.filter(...args))) {\n continue;\n }\n\n try {\n await subscriber(...args);\n } catch (e) {\n if (options.onError) {\n await options.onError(<Error>e);\n } else {\n throw e;\n }\n } finally {\n if (options.once) {\n this.unsubscribe(event, subscriber, 'once');\n }\n }\n }\n }\n };\n\n this.globalHandlers.set(event, handler);\n\n return handler;\n }\n}\n"],"mappings":";;AA+BA,IAAa,mBAAb,MAA8B;CAC5B,AAAQ,8BAAc,IAAI;CAI1B,AAAQ,iCAAiB,IAAI;CAI7B,AAAQ,eAAsC;;;;CAK9C,AAAO,YAA4B,QAAgB;EAAhB;AACjC,OAAK,cAAc;CACrB;CAEA,eAAe;AACb,MAAI,K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ACV,MAAK,YAAY,OAAO,YAAY,OAAO;IAE/C;GACF;EAEH;AAED,OAAK,eAAe,IAAI,OAAO,QAAQ;AAEvC,SAAO;CACT;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKit } from "./CommandKit-
|
|
1
|
+
import { CommandKit } from "./CommandKit-BYtbVkJL.js";
|
|
2
2
|
import { ParsedEvent } from "./EventsRouter-BacqK6z3.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
|
|
@@ -16,4 +16,4 @@ declare function getEventWorkerContext(): EventWorkerContext;
|
|
|
16
16
|
declare function isEventWorkerContext(worker: any): worker is EventWorkerContext;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
19
|
-
//# sourceMappingURL=EventWorkerContext-
|
|
19
|
+
//# sourceMappingURL=EventWorkerContext-9CTBICvs.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../warn-unstable-
|
|
15
|
-
require('../../element-
|
|
14
|
+
require('../../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../../element-DcqNz1dV.js');
|
|
16
16
|
require('../../types-B5VPP9ig.js');
|
|
17
|
-
require('../../EventInterceptor-
|
|
17
|
+
require('../../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../../constants-DOPSzXI0.js');
|
|
19
19
|
require('../../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../../types-Bq0EWaM3.js');
|
|
23
|
-
require('../../CompilerPluginRuntime-
|
|
23
|
+
require('../../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../../runtime-D0JnztkU.js');
|
|
25
25
|
require('../../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../../resolve-file-url-ifwdwqmq.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../CommandKit-
|
|
1
|
+
import { AnyCommandExecute, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandContextOptions, CommandExecutionMode, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../warn-unstable-
|
|
15
|
-
require('../../element-
|
|
14
|
+
require('../../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../../element-DcqNz1dV.js');
|
|
16
16
|
require('../../types-B5VPP9ig.js');
|
|
17
|
-
require('../../EventInterceptor-
|
|
17
|
+
require('../../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../../constants-DOPSzXI0.js');
|
|
19
19
|
require('../../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../../types-Bq0EWaM3.js');
|
|
23
|
-
require('../../CompilerPluginRuntime-
|
|
23
|
+
require('../../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../../runtime-D0JnztkU.js');
|
|
25
25
|
require('../../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../../resolve-file-url-ifwdwqmq.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../CommandKit-
|
|
1
|
+
import "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,5 +29,5 @@ import "../../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../../index-CUPkUUOR.js";
|
|
31
31
|
import "../../constants-Ce6w4OFe.js";
|
|
32
|
-
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-
|
|
32
|
+
import { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext } from "../../EventWorkerContext-9CTBICvs.js";
|
|
33
33
|
export { EventWorkerContext, eventWorkerContext, getEventWorkerContext, isEventWorkerContext, runInEventWorkerContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-
|
|
1
|
+
import { AppCommandHandler, CommandBuilderLike, CommandTypeData, LoadedCommand, PreparedAppCommandExecution, ResolvableCommand, RunCommand } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../warn-unstable-
|
|
15
|
-
require('../../element-
|
|
14
|
+
require('../../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../../element-DcqNz1dV.js');
|
|
16
16
|
require('../../types-B5VPP9ig.js');
|
|
17
|
-
require('../../EventInterceptor-
|
|
17
|
+
require('../../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../../constants-DOPSzXI0.js');
|
|
19
19
|
require('../../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../../types-Bq0EWaM3.js');
|
|
23
|
-
require('../../CompilerPluginRuntime-
|
|
23
|
+
require('../../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../../runtime-D0JnztkU.js');
|
|
25
25
|
require('../../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../../resolve-file-url-ifwdwqmq.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-
|
|
1
|
+
import { AppEventsHandler, AppEventsHandlerLoadedData, EventListener, LoadedEvent } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../warn-unstable-
|
|
15
|
-
require('../../element-
|
|
14
|
+
require('../../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../../element-DcqNz1dV.js');
|
|
16
16
|
require('../../types-B5VPP9ig.js');
|
|
17
|
-
require('../../EventInterceptor-
|
|
17
|
+
require('../../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../../constants-DOPSzXI0.js');
|
|
19
19
|
require('../../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../../types-Bq0EWaM3.js');
|
|
23
|
-
require('../../CompilerPluginRuntime-
|
|
23
|
+
require('../../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../../runtime-D0JnztkU.js');
|
|
25
25
|
require('../../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../../resolve-file-url-ifwdwqmq.js');
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyCommandExecute, AppCommandHandler, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../CommandKit-
|
|
1
|
+
import { AnyCommandExecute, AppCommandHandler, AutocompleteCommand, AutocompleteCommandContext, AutocompleteCommandMiddlewareContext, ChatInputCommand, ChatInputCommandContext, CommandBuilderLike, CommandContextOptions, CommandExecutionMode, CommandRegistrar, CommandTypeData, Context, ContextParameters, InteractionCommandContext, InteractionCommandMiddlewareContext, LoadedCommand, MessageCommand, MessageCommandContext, MessageCommandMiddlewareContext, MessageContextMenuCommand, MessageContextMenuCommandContext, MessageContextMenuCommandMiddlewareContext, MiddlewareContext, MiddlewareContextArgs, PreRegisterCommandsEvent, PreparedAppCommandExecution, ResolvableCommand, RunCommand, SlashCommandMiddlewareContext, UserContextMenuCommand, UserContextMenuCommandContext, UserContextMenuCommandMiddlewareContext } from "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
package/dist/app/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-CeO-vn8Y.js');
|
|
7
7
|
require('../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../v2-DofkPKHs.js');
|
|
14
|
-
require('../warn-unstable-
|
|
15
|
-
require('../element-
|
|
14
|
+
require('../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../element-DcqNz1dV.js');
|
|
16
16
|
require('../types-B5VPP9ig.js');
|
|
17
|
-
require('../EventInterceptor-
|
|
17
|
+
require('../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../constants-DOPSzXI0.js');
|
|
19
19
|
require('../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../types-Bq0EWaM3.js');
|
|
23
|
-
require('../CompilerPluginRuntime-
|
|
23
|
+
require('../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../runtime-D0JnztkU.js');
|
|
25
25
|
require('../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../resolve-file-url-ifwdwqmq.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-
|
|
1
|
+
import { CommandRegistrar, PreRegisterCommandsEvent } from "../../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../../v2-DofkPKHs.js');
|
|
14
|
-
require('../../warn-unstable-
|
|
15
|
-
require('../../element-
|
|
14
|
+
require('../../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../../element-DcqNz1dV.js');
|
|
16
16
|
require('../../types-B5VPP9ig.js');
|
|
17
|
-
require('../../EventInterceptor-
|
|
17
|
+
require('../../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../../constants-DOPSzXI0.js');
|
|
19
19
|
require('../../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../../types-Bq0EWaM3.js');
|
|
23
|
-
require('../../CompilerPluginRuntime-
|
|
23
|
+
require('../../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../../runtime-D0JnztkU.js');
|
|
25
25
|
require('../../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../../resolve-file-url-ifwdwqmq.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
|
-
const require_CommandKit = require('./CommandKit-
|
|
3
|
-
const require_CompilerPluginRuntime = require('./CompilerPluginRuntime-
|
|
2
|
+
const require_CommandKit = require('./CommandKit-DbKHr6qT.js');
|
|
3
|
+
const require_CompilerPluginRuntime = require('./CompilerPluginRuntime-C9wmPMQf.js');
|
|
4
4
|
const require_common = require('./common-CtMBxAf-.js');
|
|
5
5
|
const require_env = require('./env-DXL8PZiG.js');
|
|
6
|
-
const require_type_checker = require('./type-checker-
|
|
6
|
+
const require_type_checker = require('./type-checker-BILXtCjQ.js');
|
|
7
7
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
8
8
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
9
9
|
const rimraf = require_chunk.__toESM(require("rimraf"));
|
|
@@ -122,4 +122,4 @@ Object.defineProperty(exports, 'buildApplication', {
|
|
|
122
122
|
return buildApplication;
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
//# sourceMappingURL=build-
|
|
125
|
+
//# sourceMappingURL=build-BB9ezwQN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-
|
|
1
|
+
{"version":3,"file":"build-BB9ezwQN.js","names":[],"sources":["../src/cli/build.ts"],"sourcesContent":["import { build } from 'tsdown';\nimport { CompilerPlugin, CompilerPluginRuntime } from '../plugins';\nimport { loadConfigFile } from '../config/loader';\nimport { writeFile } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { DevEnv, devEnvFileArgs, ProdEnv, prodEnvFileArgs } from './env';\nimport { rimraf } from 'rimraf';\nimport { performTypeCheck } from './type-checker';\nimport { copyLocaleFiles } from './common';\nimport { MaybeArray } from '../components';\n\nexport interface ApplicationBuildOptions {\n plugins?: MaybeArray<CompilerPlugin>[] | Array<CompilerPlugin>;\n rolldownPlugins?: any[];\n isDev?: boolean;\n configPath?: string;\n}\n\nexport async function buildApplication({\n plugins,\n rolldownPlugins,\n isDev,\n configPath,\n}: ApplicationBuildOptions) {\n const config = await loadConfigFile(configPath);\n\n if (!isDev && !config?.typescript?.ignoreBuildErrors) {\n await performTypeCheck(configPath || process.cwd());\n }\n\n const pluginRuntime = new CompilerPluginRuntime(\n (plugins || []) as CompilerPlugin[],\n );\n\n rolldownPlugins ??= [];\n\n rolldownPlugins.push(pluginRuntime.toJSON());\n\n try {\n const dest = isDev ? '.commandkit' : config.distDir;\n\n // Clean the destination directory\n await rimraf(dest);\n\n await pluginRuntime.init();\n\n await build({\n watch: false,\n dts: false,\n clean: true,\n format: ['esm'],\n shims: true,\n minify: false,\n silent: !!isDev,\n inputOptions: {\n transform: {\n jsx: {\n runtime: 'automatic',\n importSource: 'commandkit',\n },\n },\n moduleTypes: {\n '.json': 'js',\n '.node': 'binary',\n },\n },\n plugins: rolldownPlugins,\n platform: 'node',\n skipNodeModulesBundle: true,\n name: 'CommandKit',\n sourcemap: true,\n target: 'node16',\n outDir: dest,\n env: (isDev ? DevEnv(true) : ProdEnv(true)) as Record<string, string>,\n entry: [\n 'src',\n `!${config.distDir}`,\n '!.commandkit',\n '!**/*.test.*',\n '!**/*.spec.*',\n ],\n unbundle: false,\n });\n\n await copyLocaleFiles('src', dest);\n await injectEntryFile(configPath || process.cwd(), !!isDev, config.distDir);\n } catch (error) {\n console.error('Build failed:', error);\n if (error instanceof Error) {\n console.error('Error details:', error.stack);\n }\n process.exit(1); // Force exit on error\n } finally {\n // Ensure plugins are cleaned up\n await pluginRuntime.destroy();\n }\n}\n\nconst envScript = (dev: boolean) => `// --- Environment Variables Loader ---\nconst $env = [${(dev ? devEnvFileArgs : prodEnvFileArgs).map((p) => `\"${p}\"`).join(', ')}];\nfor (const file of $env) {\n try {\n process.loadEnvFile(file);\n console.log('\\\\x1b[36m✔ Loaded \\\\x1b[0m\\\\x1b[33m%s\\\\x1b[0m', file);\n } catch {}\n}\n`;\n\nconst antiCrashScript = [\n '// --- CommandKit Anti-Crash Monitor ---',\n \" // 'uncaughtException' event is supposed to be used to perform synchronous cleanup before shutting down the process\",\n ' // instead of using it as a means to resume operation.',\n ' // But it exists here due to compatibility reasons with discord bot ecosystem.',\n \" const p = (t) => `\\\\x1b[31m${t}\\\\x1b[0m`, b = '[CommandKit Anti-Crash Monitor]', l = console.log, e1 = 'uncaughtException', e2 = 'unhandledRejection';\",\n ' if (!process.eventNames().includes(e1)) // skip if it is already handled',\n ' process.on(e1, (e) => {',\n ' l(p(`${b} Uncaught Exception`)); l(p(b), p(e.stack || e));',\n ' })',\n ' if (!process.eventNames().includes(e2)) // skip if it is already handled',\n ' process.on(e2, (r) => {',\n ' l(p(`${b} Unhandled promise rejection`)); l(p(`${b} ${r.stack || r}`));',\n ' });',\n '// --- CommandKit Anti-Crash Monitor ---',\n].join('\\n');\n\nconst wrapInAsyncIIFE = (code: string[]) =>\n `;await (async () => {\\n${code.join('\\n\\n')}\\n})();`;\n\nasync function injectEntryFile(\n configPath: string,\n isDev: boolean,\n distDir?: string,\n) {\n const code = `/* Entrypoint File Generated By CommandKit */\n${isDev ? `\\n\\n// Injected for development\\n${wrapInAsyncIIFE([envScript(isDev), antiCrashScript])}\\n\\n` : wrapInAsyncIIFE([envScript(isDev)])}\n\nimport { CommandKit } from 'commandkit';\n\nasync function bootstrap() {\n const app = await import('./app.js').then((m) => m.default ?? m);\n const commandkit = new CommandKit({\n client: app,\n });\n\n await commandkit.start();\n}\n\nawait bootstrap().catch((e) => {\n console.error('Failed to bootstrap CommandKit application:\\\\n', e.stack);\n})\n`;\n\n const dist = isDev ? '.commandkit' : distDir || 'dist';\n\n await writeFile(join(configPath, dist, 'index.js'), code);\n}\n"],"mappings":";;;;;;;;;;;;AAkBA,eAAsB,iBAAiB,EACrC,SACA,iBACA,OACA,YACwB,EAAE;;CAC1B,MAAM,SAAS,MAAM,kCAAe,WAAW;AAE/C,MAAK,yEAAU,OAAQ,oFAAY,mBACjC,OAAM,sCAAiB,cAAc,QAAQ,KAAK,CAAC;CAGrD,MAAM,gBAAgB,IAAI,oDACvB,WAAW,CAAE;AAGhB,qBAAoB,CAAE;AAEtB,iBAAgB,KAAK,cAAc,QAAQ,CAAC;AAE5C,KAAI;EACF,MAAM,OAAO,QAAQ,gBAAgB,OAAO;AAG5C,QAAM,mBAAO,KAAK;AAElB,QAAM,cAAc,MAAM;AAE1B,QAAM,kBAAM;GACV,OAAO;GACP,KAAK;GACL,OAAO;GACP,QAAQ,CAAC,KAAM;GACf,OAAO;GACP,QAAQ;GACR,UAAU;GACV,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@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as child_process2 from "child_process";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/app-process.d.ts
|
|
4
|
-
declare function createAppProcess(fileName: string, cwd: string, isDev: boolean):
|
|
4
|
+
declare function createAppProcess(fileName: string, cwd: string, isDev: boolean): child_process2.ChildProcess;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { createAppProcess };
|
|
7
7
|
//# sourceMappingURL=app-process.d.ts.map
|
package/dist/cli/build.d.ts
CHANGED
package/dist/cli/build.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../error-codes-C_UO39jz.js');
|
|
4
|
-
require('../CommandKit-
|
|
4
|
+
require('../CommandKit-DbKHr6qT.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-CeO-vn8Y.js');
|
|
7
7
|
require('../container-CpuiLsZM.js');
|
|
@@ -11,16 +11,16 @@ require('../section-D6t7tyEZ.js');
|
|
|
11
11
|
require('../separator-DYAFK-Jj.js');
|
|
12
12
|
require('../text-display-Dy6JHB5X.js');
|
|
13
13
|
require('../v2-DofkPKHs.js');
|
|
14
|
-
require('../warn-unstable-
|
|
15
|
-
require('../element-
|
|
14
|
+
require('../warn-unstable-DHLaxPC8.js');
|
|
15
|
+
require('../element-DcqNz1dV.js');
|
|
16
16
|
require('../types-B5VPP9ig.js');
|
|
17
|
-
require('../EventInterceptor-
|
|
17
|
+
require('../EventInterceptor-Bvh05z7n.js');
|
|
18
18
|
require('../constants-DOPSzXI0.js');
|
|
19
19
|
require('../PluginCommon-DPqnQngK.js');
|
|
20
20
|
require('../CompilerPlugin-XzuGixkC.js');
|
|
21
21
|
require('../RuntimePlugin-CKsd83M3.js');
|
|
22
22
|
require('../types-Bq0EWaM3.js');
|
|
23
|
-
require('../CompilerPluginRuntime-
|
|
23
|
+
require('../CompilerPluginRuntime-C9wmPMQf.js');
|
|
24
24
|
require('../runtime-D0JnztkU.js');
|
|
25
25
|
require('../EventWorkerContext-BAKiTqJz.js');
|
|
26
26
|
require('../resolve-file-url-ifwdwqmq.js');
|
|
@@ -34,7 +34,7 @@ require('../common-CtMBxAf-.js');
|
|
|
34
34
|
require('../CommandKitEventsChannel-BnSPcFdq.js');
|
|
35
35
|
require('../store-B9bo6On8.js');
|
|
36
36
|
require('../env-DXL8PZiG.js');
|
|
37
|
-
require('../type-checker-
|
|
38
|
-
const require_build = require('../build-
|
|
37
|
+
require('../type-checker-BILXtCjQ.js');
|
|
38
|
+
const require_build = require('../build-BB9ezwQN.js');
|
|
39
39
|
|
|
40
40
|
exports.buildApplication = require_build.buildApplication;
|
package/dist/cli/common.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../CommandKit-
|
|
1
|
+
import "../CommandKit-BYtbVkJL.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -29,9 +29,9 @@ import "../CommandsRouter-C7X-eXE2.js";
|
|
|
29
29
|
import "../EventsRouter-BacqK6z3.js";
|
|
30
30
|
import "../index-CUPkUUOR.js";
|
|
31
31
|
import "../constants-Ce6w4OFe.js";
|
|
32
|
-
import "../types-
|
|
33
|
-
import { ResolvedCommandKitConfig } from "../utils-
|
|
34
|
-
import * as
|
|
32
|
+
import "../types-BI6_e27D.js";
|
|
33
|
+
import { ResolvedCommandKitConfig } from "../utils-CLd34EFf.js";
|
|
34
|
+
import * as typescript3 from "typescript";
|
|
35
35
|
|
|
36
36
|
//#region src/cli/common.d.ts
|
|
37
37
|
declare function write(message: any): void;
|
|
@@ -41,7 +41,7 @@ declare function findEntrypoint(dir: string): string;
|
|
|
41
41
|
*/
|
|
42
42
|
declare function panic(message: any): never;
|
|
43
43
|
declare function findPackageJSON(): any;
|
|
44
|
-
declare function loadTypeScript(e?: string): Promise<typeof
|
|
44
|
+
declare function loadTypeScript(e?: string): Promise<typeof typescript3>;
|
|
45
45
|
declare function loadConfigFileFromPath(target: string): Promise<ResolvedCommandKitConfig>;
|
|
46
46
|
declare function erase(dir: string): void;
|
|
47
47
|
declare function copyLocaleFiles(_from: string, _to: string): Promise<void>;
|
package/dist/cli/development.js
CHANGED
|
@@ -2,7 +2,7 @@ const require_chunk = require('../chunk-nOFOJqeH.js');
|
|
|
2
2
|
const require_colors = require('../colors-Cd4Oz-r-.js');
|
|
3
3
|
require('../ActionRow-CmTHbo2t.js');
|
|
4
4
|
require('../error-codes-C_UO39jz.js');
|
|
5
|
-
const require_CommandKit = require('../CommandKit-
|
|
5
|
+
const require_CommandKit = require('../CommandKit-DbKHr6qT.js');
|
|
6
6
|
require('../common-CcfjYnPG.js');
|
|
7
7
|
require('../common-CeO-vn8Y.js');
|
|
8
8
|
require('../container-CpuiLsZM.js');
|
|
@@ -12,16 +12,16 @@ require('../section-D6t7tyEZ.js');
|
|
|
12
12
|
require('../separator-DYAFK-Jj.js');
|
|
13
13
|
require('../text-display-Dy6JHB5X.js');
|
|
14
14
|
require('../v2-DofkPKHs.js');
|
|
15
|
-
require('../warn-unstable-
|
|
16
|
-
require('../element-
|
|
15
|
+
require('../warn-unstable-DHLaxPC8.js');
|
|
16
|
+
require('../element-DcqNz1dV.js');
|
|
17
17
|
require('../types-B5VPP9ig.js');
|
|
18
|
-
require('../EventInterceptor-
|
|
18
|
+
require('../EventInterceptor-Bvh05z7n.js');
|
|
19
19
|
const require_constants = require('../constants-DOPSzXI0.js');
|
|
20
20
|
require('../PluginCommon-DPqnQngK.js');
|
|
21
21
|
const require_CompilerPlugin = require('../CompilerPlugin-XzuGixkC.js');
|
|
22
22
|
require('../RuntimePlugin-CKsd83M3.js');
|
|
23
23
|
require('../types-Bq0EWaM3.js');
|
|
24
|
-
require('../CompilerPluginRuntime-
|
|
24
|
+
require('../CompilerPluginRuntime-C9wmPMQf.js');
|
|
25
25
|
require('../runtime-D0JnztkU.js');
|
|
26
26
|
require('../EventWorkerContext-BAKiTqJz.js');
|
|
27
27
|
require('../resolve-file-url-ifwdwqmq.js');
|
|
@@ -36,8 +36,8 @@ require('../CommandKitEventsChannel-BnSPcFdq.js');
|
|
|
36
36
|
require('../store-B9bo6On8.js');
|
|
37
37
|
require('../env-DXL8PZiG.js');
|
|
38
38
|
const require_app_process = require('../app-process-juzsCZp9.js');
|
|
39
|
-
require('../type-checker-
|
|
40
|
-
const require_build = require('../build-
|
|
39
|
+
require('../type-checker-BILXtCjQ.js');
|
|
40
|
+
const require_build = require('../build-BB9ezwQN.js');
|
|
41
41
|
const node_crypto = require_chunk.__toESM(require("node:crypto"));
|
|
42
42
|
const path = require_chunk.__toESM(require("path"));
|
|
43
43
|
const chokidar = require_chunk.__toESM(require("chokidar"));
|
package/dist/cli/information.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-nOFOJqeH.js');
|
|
2
|
-
const require_version = require('../version-
|
|
2
|
+
const require_version = require('../version-DG7huXRq.js');
|
|
3
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_child_process = require_chunk.__toESM(require("node:child_process"));
|