commandkit 0.1.11-dev.20250314022547 → 0.1.11-dev.20250327153237

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { RESTPostAPIApplicationCommandsJSONBody, Client, Interaction, CacheType, PermissionsString, ChatInputCommandInteraction, ContextMenuCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, ClientEvents, Awaitable, ButtonBuilder, ButtonInteraction, Events, ModalBuilder, ModalSubmitInteraction, ActionRowBuilder, TextInputBuilder, ButtonStyle, ComponentEmojiResolvable, TextInputStyle, LocalizationMap, Locale, Message as Message$1, ApplicationCommandOptionType, GuildMember, Attachment, User, Role, CommandInteractionOption, Collection, SlashCommandBuilder, ContextMenuCommandBuilder, PartialMessage } from 'discord.js';
2
+ import { RESTPostAPIApplicationCommandsJSONBody, Client, Interaction, CacheType, PermissionsString, ChatInputCommandInteraction, ContextMenuCommandInteraction, UserContextMenuCommandInteraction, MessageContextMenuCommandInteraction, AutocompleteInteraction, ClientEvents, Awaitable, ButtonBuilder, ButtonInteraction, Events, ModalBuilder, ModalSubmitInteraction, ActionRowBuilder, TextInputBuilder, ButtonStyle, ComponentEmojiResolvable, TextInputStyle, LocalizationMap, Locale, Message as Message$1, ApplicationCommandOptionType, GuildMember, Attachment, User, Role, CommandInteractionOption, SlashCommandBuilder, ContextMenuCommandBuilder, PartialMessage } from 'discord.js';
3
3
  import EventEmitter from 'node:events';
4
4
  import { Channel } from 'diagnostics_channel';
5
5
  import * as commander from 'commander';
@@ -1026,141 +1026,6 @@ declare class MiddlewareContext<T extends CommandExecutionMode = CommandExecutio
1026
1026
  setCommandRunner(fn: RunCommand): void;
1027
1027
  }
1028
1028
 
1029
- interface ParsedCommand {
1030
- id: string;
1031
- name: string;
1032
- path: string;
1033
- relativePath: string;
1034
- category: string | null;
1035
- subcommands: ParsedSubCommand[];
1036
- middlewareIds: string[];
1037
- }
1038
- interface ParsedMiddleware {
1039
- id: string;
1040
- path: string;
1041
- relativePath: string;
1042
- }
1043
- interface ParsedSubCommand {
1044
- name: string;
1045
- group: string | null;
1046
- path: string;
1047
- relativePath: string;
1048
- command: string;
1049
- }
1050
- interface CommandsRouterOptions {
1051
- entrypoint: string;
1052
- }
1053
- interface CommandsRouterData {
1054
- commands: Collection<string, ParsedCommand>;
1055
- middlewares: Collection<string, ParsedMiddleware>;
1056
- }
1057
- interface CommandsRouterRawData {
1058
- commands: Record<string, ParsedCommand>;
1059
- middlewares: Record<string, ParsedMiddleware>;
1060
- }
1061
- declare class CommandsRouter {
1062
- private readonly options;
1063
- private commands;
1064
- private middlewares;
1065
- constructor(options: CommandsRouterOptions);
1066
- fromData(data: CommandsRouterRawData): void;
1067
- isValidPath(): boolean;
1068
- getData(): CommandsRouterData;
1069
- toJSON(): CommandsRouterRawData;
1070
- clear(): void;
1071
- reload(): Promise<CommandsRouterRawData>;
1072
- scan(): Promise<CommandsRouterRawData>;
1073
- private traverse;
1074
- private applyBindings;
1075
- private distanceFromRoot;
1076
- private parseGroup;
1077
- private parseCategory;
1078
- private parseFileName;
1079
- private toRelativePath;
1080
- }
1081
-
1082
- /**
1083
- * Configuration options for the EventsRouter
1084
- * @interface EventsRouterOptions
1085
- */
1086
- interface EventsRouterOptions {
1087
- /** Root directory path where event handlers are located */
1088
- entrypoint: string;
1089
- }
1090
- /**
1091
- * Represents a parsed event with its handlers
1092
- * @interface ParsedEvent
1093
- */
1094
- interface ParsedEvent {
1095
- /** Name of the event derived from directory name */
1096
- event: string;
1097
- /** Absolute path to the event directory */
1098
- path: string;
1099
- /** Array of file paths to event listener handlers */
1100
- listeners: string[];
1101
- /** Namespace of the event */
1102
- namespace: string | null;
1103
- }
1104
- /** Map of event names to their parsed metadata */
1105
- type EventsTree = Record<string, ParsedEvent>;
1106
- /**
1107
- * Router for discovering and managing event handler files in a directory structure.
1108
- * Events are represented by directories, and handlers are files within those directories.
1109
- */
1110
- declare class EventsRouter {
1111
- private options;
1112
- /** Internal storage of parsed events */
1113
- private events;
1114
- /**
1115
- * Creates a new EventsRouter instance
1116
- * @param options - Configuration options for the router
1117
- * @throws Error if entrypoint is not provided
1118
- */
1119
- constructor(options: EventsRouterOptions);
1120
- /**
1121
- * Find a parsed event by its name
1122
- * @param event - Name of the event to find
1123
- * @returns Parsed event metadata or null if not found
1124
- */
1125
- match(event: string): ParsedEvent | null;
1126
- /**
1127
- * Get the entrypoint directory path
1128
- * @returns Entrypoint directory path
1129
- */
1130
- get entrypoint(): string;
1131
- /**
1132
- * Checks if the entrypoint path is valid
1133
- */
1134
- isValidPath(): boolean;
1135
- /**
1136
- * Clear all parsed events
1137
- */
1138
- clear(): void;
1139
- /**
1140
- * Reload and re-scan the entrypoint directory for events
1141
- * @returns Promise resolving to the updated events tree
1142
- */
1143
- reload(): Promise<EventsTree>;
1144
- /**
1145
- * Scan the entrypoint directory for events and their handlers
1146
- * @returns Promise resolving to the events tree
1147
- */
1148
- scan(): Promise<EventsTree>;
1149
- /**
1150
- * Convert the internal events map to a plain object
1151
- * @returns Events tree as a plain object
1152
- */
1153
- toJSON(): EventsTree;
1154
- /**
1155
- * Recursively scan a directory for event handlers
1156
- * @param event - Name of the event
1157
- * @param path - Path to the event directory
1158
- * @param listeners - Array to collect listener file paths
1159
- * @returns Promise resolving to the parsed event metadata
1160
- */
1161
- private scanEvent;
1162
- }
1163
-
1164
1029
  declare class CommandRegistrar {
1165
1030
  readonly commandkit: CommandKit;
1166
1031
  private api;
@@ -1173,10 +1038,6 @@ declare class CommandRegistrar {
1173
1038
  * Gets the commands data.
1174
1039
  */
1175
1040
  getCommandsData(): CommandData[];
1176
- /**
1177
- * Process and merge subcommands into the parent command's options
1178
- */
1179
- private processSubcommands;
1180
1041
  /**
1181
1042
  * Registers loaded commands.
1182
1043
  */
@@ -1319,6 +1180,156 @@ declare function revalidate<T = unknown>(tag: string, ...args: any[]): Promise<T
1319
1180
  */
1320
1181
  declare function isCachedFunction(fn: GenericFunction): boolean;
1321
1182
 
1183
+ interface Command {
1184
+ id: string;
1185
+ name: string;
1186
+ path: string;
1187
+ relativePath: string;
1188
+ parentPath: string;
1189
+ middlewares: Array<string>;
1190
+ category: string | null;
1191
+ }
1192
+ interface Middleware {
1193
+ id: string;
1194
+ name: string;
1195
+ path: string;
1196
+ relativePath: string;
1197
+ parentPath: string;
1198
+ }
1199
+ interface ParsedCommandData {
1200
+ commands: Record<string, Command>;
1201
+ middlewares: Record<string, Middleware>;
1202
+ }
1203
+ interface CommandsRouterOptions {
1204
+ entrypoint: string;
1205
+ }
1206
+ declare class CommandsRouter {
1207
+ private readonly options;
1208
+ private commands;
1209
+ private middlewares;
1210
+ constructor(options: CommandsRouterOptions);
1211
+ populate(data: ParsedCommandData): void;
1212
+ isValidPath(): boolean;
1213
+ private isCommand;
1214
+ private isMiddleware;
1215
+ private isCategory;
1216
+ clear(): void;
1217
+ scan(): Promise<{
1218
+ commands: {
1219
+ [k: string]: Command;
1220
+ };
1221
+ middlewares: {
1222
+ [k: string]: Middleware;
1223
+ };
1224
+ }>;
1225
+ getData(): {
1226
+ commands: Map<string, Command>;
1227
+ middlewares: Map<string, Middleware>;
1228
+ };
1229
+ toJSON(): {
1230
+ commands: {
1231
+ [k: string]: Command;
1232
+ };
1233
+ middlewares: {
1234
+ [k: string]: Middleware;
1235
+ };
1236
+ };
1237
+ private traverse;
1238
+ private handle;
1239
+ private applyMiddlewares;
1240
+ private replaceEntrypoint;
1241
+ }
1242
+
1243
+ /**
1244
+ * Configuration options for the EventsRouter
1245
+ * @interface EventsRouterOptions
1246
+ */
1247
+ interface EventsRouterOptions {
1248
+ /** Root directory path where event handlers are located */
1249
+ entrypoint: string;
1250
+ }
1251
+ /**
1252
+ * Represents a parsed event with its handlers
1253
+ * @interface ParsedEvent
1254
+ */
1255
+ interface ParsedEvent {
1256
+ /** Name of the event derived from directory name */
1257
+ event: string;
1258
+ /** Absolute path to the event directory */
1259
+ path: string;
1260
+ /** Array of file paths to event listener handlers */
1261
+ listeners: string[];
1262
+ /** Namespace of the event */
1263
+ namespace: string | null;
1264
+ }
1265
+ /** Map of event names to their parsed metadata */
1266
+ type EventsTree = Record<string, ParsedEvent>;
1267
+ /**
1268
+ * Router for discovering and managing event handler files in a directory structure.
1269
+ * Events are represented by directories, and handlers are files within those directories.
1270
+ */
1271
+ declare class EventsRouter {
1272
+ private options;
1273
+ /** Internal storage of parsed events */
1274
+ private events;
1275
+ /**
1276
+ * Creates a new EventsRouter instance
1277
+ * @param options - Configuration options for the router
1278
+ * @throws Error if entrypoint is not provided
1279
+ */
1280
+ constructor(options: EventsRouterOptions);
1281
+ /**
1282
+ * Find a parsed event by its name
1283
+ * @param event - Name of the event to find
1284
+ * @returns Parsed event metadata or null if not found
1285
+ */
1286
+ match(event: string): ParsedEvent | null;
1287
+ /**
1288
+ * Get the entrypoint directory path
1289
+ * @returns Entrypoint directory path
1290
+ */
1291
+ get entrypoint(): string;
1292
+ /**
1293
+ * Checks if the entrypoint path is valid
1294
+ */
1295
+ isValidPath(): boolean;
1296
+ /**
1297
+ * Clear all parsed events
1298
+ */
1299
+ clear(): void;
1300
+ /**
1301
+ * Reload and re-scan the entrypoint directory for events
1302
+ * @returns Promise resolving to the updated events tree
1303
+ */
1304
+ reload(): Promise<EventsTree>;
1305
+ /**
1306
+ * Scan the entrypoint directory for events and their handlers
1307
+ * @returns Promise resolving to the events tree
1308
+ */
1309
+ scan(): Promise<EventsTree>;
1310
+ /**
1311
+ * Convert the internal events map to a plain object
1312
+ * @returns Events tree as a plain object
1313
+ */
1314
+ toJSON(): EventsTree;
1315
+ /**
1316
+ * Recursively scan a directory for event handlers
1317
+ * @param event - Name of the event
1318
+ * @param path - Path to the event directory
1319
+ * @param listeners - Array to collect listener file paths
1320
+ * @returns Promise resolving to the parsed event metadata
1321
+ */
1322
+ private scanEvent;
1323
+ }
1324
+
1325
+ declare class AppCommandRunner {
1326
+ #private;
1327
+ private handler;
1328
+ constructor(handler: AppCommandHandler);
1329
+ runCommand(prepared: PreparedAppCommandExecution, source: Interaction | Message$1): Promise<void>;
1330
+ getExecutionMode(source: Interaction | Message$1): CommandExecutionMode;
1331
+ }
1332
+
1322
1333
  type RunCommand = <T extends AsyncFunction>(fn: T) => T;
1323
1334
  interface AppCommand {
1324
1335
  command: SlashCommandBuilder | Record<string, any>;
@@ -1333,31 +1344,23 @@ interface AppCommandMiddleware {
1333
1344
  afterExecute: (ctx: Context) => Awaitable<unknown>;
1334
1345
  }
1335
1346
  interface LoadedCommand {
1336
- command: ParsedCommand;
1347
+ command: Command;
1337
1348
  data: AppCommand;
1338
- subcommands?: ParsedSubCommand[];
1339
1349
  guilds?: string[];
1340
1350
  }
1341
1351
  interface LoadedMiddleware {
1342
- middleware: ParsedMiddleware;
1352
+ middleware: Middleware;
1343
1353
  data: AppCommandMiddleware;
1344
1354
  }
1345
1355
  interface PreparedAppCommandExecution {
1346
1356
  command: LoadedCommand;
1347
- subcommand?: LoadedSubCommand | null;
1348
1357
  middlewares: LoadedMiddleware[];
1349
1358
  messageCommandParser?: MessageCommandParser;
1350
1359
  }
1351
- interface LoadedSubCommand {
1352
- subcommand: ParsedSubCommand;
1353
- data: AppCommand;
1354
- }
1355
1360
  type CommandBuilderLike = SlashCommandBuilder | ContextMenuCommandBuilder | Record<string, any>;
1356
1361
  declare class AppCommandHandler {
1357
- #private;
1358
1362
  readonly commandkit: CommandKit;
1359
1363
  private loadedCommands;
1360
- private loadedSubCommands;
1361
1364
  private loadedMiddlewares;
1362
1365
  private commandNameToId;
1363
1366
  private subcommandPathToId;
@@ -1365,22 +1368,16 @@ declare class AppCommandHandler {
1365
1368
  private onInteraction;
1366
1369
  private onMessageCreate;
1367
1370
  private onMessageUpdate;
1371
+ readonly commandRunner: AppCommandRunner;
1368
1372
  constructor(commandkit: CommandKit);
1369
1373
  getCommandsArray(): LoadedCommand[];
1370
- /**
1371
- * Get subcommand data by command ID and subcommand name
1372
- */
1373
- getSubcommandData(commandId: string, subcommandName: string): any;
1374
1374
  registerCommandHandler(): void;
1375
- getExecutionMode(source: Interaction | Message$1): CommandExecutionMode;
1376
- runCommand(prepared: PreparedAppCommandExecution, source: Interaction | Message$1): Promise<void>;
1377
1375
  prepareCommandRun(source: Interaction | Message$1): Promise<PreparedAppCommandExecution | null>;
1378
1376
  reloadCommands(): Promise<void>;
1379
1377
  loadCommands(): Promise<void>;
1380
1378
  private loadMiddleware;
1381
1379
  private loadCommand;
1382
- private loadSubcommand;
1383
- applyLocalizations(command: CommandBuilderLike, subcommand?: ParsedSubCommand): Promise<CommandBuilderLike>;
1380
+ applyLocalizations(command: CommandBuilderLike): Promise<CommandBuilderLike>;
1384
1381
  }
1385
1382
 
1386
1383
  type ListenerFunction = GenericFunction | AsyncFunction;
@@ -1524,6 +1521,7 @@ declare abstract class CompilerPlugin<T extends PluginOptions = PluginOptions> e
1524
1521
  */
1525
1522
  onBuildEnd(): Promise<void>;
1526
1523
  }
1524
+ declare function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin;
1527
1525
 
1528
1526
  declare class CompilerPluginRuntime {
1529
1527
  private readonly plugins;
@@ -1543,6 +1541,7 @@ declare class CompilerPluginRuntime {
1543
1541
  setup: (build: Setup) => Promise<void>;
1544
1542
  };
1545
1543
  }
1544
+ declare function fromEsbuildPlugin(plugin: any): typeof CompilerPlugin;
1546
1545
 
1547
1546
  type CommonPluginRuntime = CommandKitPluginRuntime | CompilerPluginRuntime;
1548
1547
 
@@ -1643,6 +1642,7 @@ declare abstract class RuntimePlugin<T extends PluginOptions = PluginOptions> ex
1643
1642
  */
1644
1643
  executeCommand(ctx: CommandKitPluginRuntime, source: Interaction | Message$1, command: PreparedAppCommandExecution, execute: () => Promise<any>): Promise<boolean>;
1645
1644
  }
1645
+ declare function isRuntimePlugin(plugin: unknown): plugin is RuntimePlugin;
1646
1646
 
1647
1647
  declare class CommandKitPluginRuntime extends EventTarget {
1648
1648
  readonly commandkit: CommandKit;
@@ -1927,4 +1927,4 @@ declare const version: string;
1927
1927
  */
1928
1928
  declare function bootstrapCommandkitCLI(argv: string[], options?: commander.ParseOptions | undefined): Promise<void>;
1929
1929
 
1930
- export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, type ApiTranslatableCommandOptions, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, type AutocompleteProps, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, type CacheContext, type CacheEntry, type CacheMetadata, CacheProvider, type CommandContext, type CommandContextOptions, type CommandData, CommandExecutionMode, type CommandFileObject, CommandKit, type CommandKitButtonBuilderInteractionCollectorDispatch, type CommandKitButtonBuilderInteractionCollectorDispatchContextData, type CommandKitButtonBuilderOnEnd, type CommandKitConfiguration, type CommandKitElement, type CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandObject, type CommandOptions, type CommandProps, CommandsRouter, type CommandsRouterData, type CommandsRouterOptions, type CommandsRouterRawData, Context, type ContextMenuCommandProps, type ContextParameters, DefaultLocalizationStrategy, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, EventsRouter, type EventsRouterOptions, type EventsTree, Fragment, type FragmentElementProps, type GenericFunction, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, Localization, type LocalizationConfig, type LocalizationStrategy, type LocalizationTranslationRequest, Logger, type LoggerImpl, type MaybeArray, MemoryCache, type MessageCommand, type MessageCommandContext, type MessageCommandMiddlewareContext, MessageCommandOptions, type MessageCommandOptionsSchema, MessageCommandParser, type MessageContextMenuCommand, type MessageContextMenuCommandContext, type MessageContextMenuCommandMiddlewareContext, type MessageContextMenuCommandProps, MiddlewareContext, type MiddlewareContextArgs, Modal, ModalKit, type ModalKitPredicate, type ModalProps, type OnButtonKitClick, type OnButtonKitEnd, type OnModalKitEnd, type OnModalKitSubmit, ParagraphInput, type ParsedCommand, type ParsedEvent, type ParsedMessageCommand, type ParsedMiddleware, type ParsedSubCommand, type PreparedAppCommandExecution, type ReloadOptions, ReloadType, type RunCommand, ShortInput, type SlashCommand, type SlashCommandContext, type SlashCommandMiddlewareContext, type SlashCommandProps, TextInput, type TextInputProps, type TranslatableArguments, type TranslatableCommand, type TranslatableCommandOptions, type Translation, type TranslationResult, type Translator, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, type UserContextMenuCommandProps, type ValidationProps, afterCommand, bootstrapCommandkitCLI, cache, cacheLife, cacheTag, cancelAfterCommand, commandkit, createElement, createLogger, CommandKit as default, defineConfig, dmOnly, exitContext, exitMiddleware, getCommandKit, getConfig, getContext, getElement, guildOnly, invalidate, isCachedFunction, isCommandKitElement, makeContextAwareFunction, redirect, rethrow, revalidate, useCache as super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_from_your_job_kthxbai, useEnvironment, version };
1930
+ export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, type ApiTranslatableCommandOptions, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, type AutocompleteProps, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, type CacheContext, type CacheEntry, type CacheMetadata, CacheProvider, type Command, type CommandContext, type CommandContextOptions, type CommandData, CommandExecutionMode, type CommandFileObject, CommandKit, type CommandKitButtonBuilderInteractionCollectorDispatch, type CommandKitButtonBuilderInteractionCollectorDispatchContextData, type CommandKitButtonBuilderOnEnd, type CommandKitConfiguration, type CommandKitElement, type CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandKitPlugin, CommandKitPluginRuntime, type CommandObject, type CommandOptions, type CommandProps, CommandsRouter, type CommandsRouterOptions, type CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, type ContextMenuCommandProps, type ContextParameters, DefaultLocalizationStrategy, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, EventsRouter, type EventsRouterOptions, type EventsTree, Fragment, type FragmentElementProps, type GenericFunction, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, type Loader, Localization, type LocalizationConfig, type LocalizationStrategy, type LocalizationTranslationRequest, type Location, Logger, type LoggerImpl, type MaybeArray, type MaybeFalsey, MemoryCache, type Message, type MessageCommand, type MessageCommandContext, type MessageCommandMiddlewareContext, MessageCommandOptions, type MessageCommandOptionsSchema, MessageCommandParser, type MessageContextMenuCommand, type MessageContextMenuCommandContext, type MessageContextMenuCommandMiddlewareContext, type MessageContextMenuCommandProps, type Middleware, MiddlewareContext, type MiddlewareContextArgs, Modal, ModalKit, type ModalKitPredicate, type ModalProps, type OnButtonKitClick, type OnButtonKitEnd, type OnLoadArgs, type OnLoadOptions, type OnLoadResult, type OnModalKitEnd, type OnModalKitSubmit, type OnResolveArgs, type OnResolveOptions, type OnResolveResult, ParagraphInput, type ParsedCommandData, type ParsedEvent, type ParsedMessageCommand, type PluginTransformParameters, type PreparedAppCommandExecution, type ReloadOptions, ReloadType, type ResolveKind, type ResolveResult, type RunCommand, RuntimePlugin, type Setup, ShortInput, type SlashCommand, type SlashCommandContext, type SlashCommandMiddlewareContext, type SlashCommandProps, TextInput, type TextInputProps, type TransformedResult, type TranslatableArguments, type TranslatableCommand, type TranslatableCommandOptions, type Translation, type TranslationResult, type Translator, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, type UserContextMenuCommandProps, type ValidationProps, afterCommand, bootstrapCommandkitCLI, cache, cacheLife, cacheTag, cancelAfterCommand, commandkit, createElement, createLogger, CommandKit as default, defineConfig, dmOnly, exitContext, exitMiddleware, fromEsbuildPlugin, getCommandKit, getConfig, getContext, getElement, guildOnly, invalidate, isCachedFunction, isCommandKitElement, isCompilerPlugin, isRuntimePlugin, makeContextAwareFunction, redirect, rethrow, revalidate, useCache as super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_from_your_job_kthxbai, useEnvironment, version };