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.
Files changed (108) hide show
  1. package/dist/{CommandKit-DDSUNOAe.d.ts → CommandKit-BYtbVkJL.d.ts} +3 -3
  2. package/dist/{CommandKit-L7X8fflj.js → CommandKit-DbKHr6qT.js} +15 -15
  3. package/dist/{CommandKit-L7X8fflj.js.map → CommandKit-DbKHr6qT.js.map} +1 -1
  4. package/dist/CommandKit.d.ts +1 -1
  5. package/dist/CommandKit.js +5 -5
  6. package/dist/{CompilerPluginRuntime-BWLDMYQl.js → CompilerPluginRuntime-C9wmPMQf.js} +2 -2
  7. package/dist/{CompilerPluginRuntime-BWLDMYQl.js.map → CompilerPluginRuntime-C9wmPMQf.js.map} +1 -1
  8. package/dist/{EventInterceptor-DtRINyTP.js → EventInterceptor-Bvh05z7n.js} +4 -4
  9. package/dist/{EventInterceptor-DtRINyTP.js.map → EventInterceptor-Bvh05z7n.js.map} +1 -1
  10. package/dist/{EventWorkerContext-CjU5wt-a.d.ts → EventWorkerContext-9CTBICvs.d.ts} +2 -2
  11. package/dist/app/commands/AppCommandRunner.d.ts +1 -1
  12. package/dist/app/commands/AppCommandRunner.js +5 -5
  13. package/dist/app/commands/Context.d.ts +1 -1
  14. package/dist/app/commands/Context.js +5 -5
  15. package/dist/app/events/EventWorkerContext.d.ts +2 -2
  16. package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
  17. package/dist/app/handlers/AppCommandHandler.js +5 -5
  18. package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
  19. package/dist/app/handlers/AppEventsHandler.js +5 -5
  20. package/dist/app/index.d.ts +1 -1
  21. package/dist/app/index.js +5 -5
  22. package/dist/app/register/CommandRegistrar.d.ts +1 -1
  23. package/dist/app/register/CommandRegistrar.js +5 -5
  24. package/dist/{build-B5TuLOa-.js → build-BB9ezwQN.js} +4 -4
  25. package/dist/{build-B5TuLOa-.js.map → build-BB9ezwQN.js.map} +1 -1
  26. package/dist/cli/app-process.d.ts +2 -2
  27. package/dist/cli/build.d.ts +1 -1
  28. package/dist/cli/build.js +7 -7
  29. package/dist/cli/common.d.ts +5 -5
  30. package/dist/cli/development.js +7 -7
  31. package/dist/cli/information.js +1 -1
  32. package/dist/cli/init.d.ts +1 -1
  33. package/dist/cli/init.js +6 -6
  34. package/dist/cli/production.d.ts +2 -2
  35. package/dist/cli/production.js +7 -7
  36. package/dist/cli/type-checker.js +1 -1
  37. package/dist/components/common/EventInterceptor.js +1 -1
  38. package/dist/components/common/element.js +2 -2
  39. package/dist/components/index.js +5 -5
  40. package/dist/components/v1/button/Button.js +5 -5
  41. package/dist/components/v1/button/ButtonKit.js +5 -5
  42. package/dist/components/v1/modal/Modal.js +5 -5
  43. package/dist/components/v1/modal/ModalKit.js +5 -5
  44. package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +5 -5
  45. package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +5 -5
  46. package/dist/components/v1/select-menu/RoleSelectMenuKit.js +5 -5
  47. package/dist/components/v1/select-menu/SelectMenu.js +5 -5
  48. package/dist/components/v1/select-menu/StringSelectMenuKit.js +5 -5
  49. package/dist/components/v1/select-menu/UserSelectMenuKit.js +5 -5
  50. package/dist/config/config.d.ts +4 -4
  51. package/dist/config/config.js +5 -5
  52. package/dist/config/default.d.ts +3 -3
  53. package/dist/config/default.js +5 -5
  54. package/dist/config/loader.d.ts +3 -3
  55. package/dist/config/loader.js +5 -5
  56. package/dist/config/types.d.ts +2 -2
  57. package/dist/config/utils.d.ts +3 -3
  58. package/dist/{config-LPxTebft.d.ts → config-_NXT68BU.d.ts} +3 -3
  59. package/dist/context/async-context.d.ts +1 -1
  60. package/dist/context/async-context.js +5 -5
  61. package/dist/context/environment.d.ts +1 -1
  62. package/dist/context/environment.js +5 -5
  63. package/dist/{element-hdSqnIpC.js → element-DcqNz1dV.js} +2 -2
  64. package/dist/{element-hdSqnIpC.js.map → element-DcqNz1dV.js.map} +1 -1
  65. package/dist/events/CommandKitEventsChannel.d.ts +1 -1
  66. package/dist/{feature-flags-BtOkZJxW.js → feature-flags-DqKVc2-p.js} +2 -2
  67. package/dist/{feature-flags-BtOkZJxW.js.map → feature-flags-DqKVc2-p.js.map} +1 -1
  68. package/dist/flags/feature-flags.d.ts +1 -1
  69. package/dist/flags/feature-flags.js +6 -6
  70. package/dist/flags/store.d.ts +1 -1
  71. package/dist/index.d.ts +6 -6
  72. package/dist/index.js +8 -8
  73. package/dist/{init-CT348Okf.d.ts → init-C62l0PVB.d.ts} +3 -3
  74. package/dist/{init-CakfOuYm.js → init-O2deAczC.js} +3 -3
  75. package/dist/{init-CakfOuYm.js.map → init-O2deAczC.js.map} +1 -1
  76. package/dist/logger/DefaultLogger.js +5 -5
  77. package/dist/logger/Logger.js +5 -5
  78. package/dist/plugins/CompilerPlugin.d.ts +1 -1
  79. package/dist/plugins/PluginCommon.d.ts +1 -1
  80. package/dist/plugins/RuntimePlugin.d.ts +1 -1
  81. package/dist/plugins/index.d.ts +1 -1
  82. package/dist/plugins/index.js +5 -5
  83. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
  84. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +5 -5
  85. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
  86. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
  87. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
  88. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +5 -5
  89. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
  90. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +5 -5
  91. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
  92. package/dist/plugins/types.d.ts +1 -1
  93. package/dist/{type-checker-DodpF2I2.js → type-checker-BILXtCjQ.js} +2 -2
  94. package/dist/{type-checker-DodpF2I2.js.map → type-checker-BILXtCjQ.js.map} +1 -1
  95. package/dist/{types-w2bWHUve.d.ts → types-BI6_e27D.d.ts} +2 -2
  96. package/dist/types.d.ts +1 -1
  97. package/dist/utils/colors.d.ts +2 -2
  98. package/dist/utils/dev-hooks.d.ts +1 -1
  99. package/dist/utils/dev-hooks.js +5 -5
  100. package/dist/utils/utilities.js +5 -5
  101. package/dist/utils/warn-unstable.js +1 -1
  102. package/dist/{utils-Dprjd7Oz.d.ts → utils-CLd34EFf.d.ts} +2 -2
  103. package/dist/{version-EnexmO7x.js → version-DG7huXRq.js} +2 -2
  104. package/dist/{version-EnexmO7x.js.map → version-DG7huXRq.js.map} +1 -1
  105. package/dist/version.js +1 -1
  106. package/dist/{warn-unstable-V20WCBDd.js → warn-unstable-DHLaxPC8.js} +2 -2
  107. package/dist/{warn-unstable-V20WCBDd.js.map → warn-unstable-DHLaxPC8.js.map} +1 -1
  108. package/package.json +2 -2
@@ -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-L7X8fflj.js');
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-V20WCBDd.js');
15
- require('../../../element-hdSqnIpC.js');
14
+ require('../../../warn-unstable-DHLaxPC8.js');
15
+ require('../../../element-DcqNz1dV.js');
16
16
  require('../../../types-B5VPP9ig.js');
17
- require('../../../EventInterceptor-DtRINyTP.js');
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-BWLDMYQl.js');
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 { CommonPluginRuntime } from "../../CommandKit-DDSUNOAe.js";
1
+ import { CommonPluginRuntime } from "../../CommandKit-BYtbVkJL.js";
2
2
  import "../../EventInterceptor-D_oEWSnF.js";
3
3
  import "../../ButtonKit-BSI7lCI0.js";
4
4
  import "../../ModalKit-CKtQ8eXW.js";
@@ -1,4 +1,4 @@
1
- import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-DDSUNOAe.js";
1
+ import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-BYtbVkJL.js";
2
2
  import "../EventInterceptor-D_oEWSnF.js";
3
3
  import "../ButtonKit-BSI7lCI0.js";
4
4
  import "../ModalKit-CKtQ8eXW.js";
@@ -53,7 +53,7 @@ async function performTypeCheck(path) {
53
53
  console.log("");
54
54
  console.error(require_colors.colors_default.bold(require_colors.colors_default.red("Type checking failed with the following errors:")));
55
55
  console.log("");
56
- const byFile = new Map();
56
+ const byFile = /* @__PURE__ */ new Map();
57
57
  for (const diagnostic of diagnostics) {
58
58
  const fileName = diagnostic.file ? diagnostic.file.fileName : "Global";
59
59
  if (!byFile.has(fileName)) byFile.set(fileName, []);
@@ -81,4 +81,4 @@ Object.defineProperty(exports, 'performTypeCheck', {
81
81
  return performTypeCheck;
82
82
  }
83
83
  });
84
- //# sourceMappingURL=type-checker-DodpF2I2.js.map
84
+ //# sourceMappingURL=type-checker-BILXtCjQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"type-checker-DodpF2I2.js","names":[],"sources":["../src/cli/type-checker.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { loadTypeScript } from './common';\nimport { join, relative } from 'node:path';\nimport colors from '../utils/colors';\n\nconst TS_NOT_FOUND_ERR = `TypeScript must be installed in order to use the type checker. Please install it using \\`npm install typescript\\` or \\`yarn add typescript\\``;\n\n/**\n * Formats a TypeScript diagnostic message in a pretty, readable format\n */\nfunction formatDiagnostic(\n ts: typeof import('typescript'),\n diagnostic: import('typescript').Diagnostic,\n cwd: string,\n): string {\n const messageText = ts.flattenDiagnosticMessageText(\n diagnostic.messageText,\n '\\n',\n );\n\n if (!diagnostic.file) {\n return `${colors.red('error')}: ${messageText}`;\n }\n\n const { line, character } = ts.getLineAndCharacterOfPosition(\n diagnostic.file,\n diagnostic.start!,\n );\n const fileName = relative(cwd, diagnostic.file.fileName);\n const position = `${line + 1}:${character + 1}`;\n const errorCode = diagnostic.code ? `TS${diagnostic.code}` : '';\n\n // Format the error message nicely\n return [\n `${colors.bold(colors.cyan(fileName))}:${colors.bold(colors.yellow(position))} - ${colors.red('error')} ${colors.gray(errorCode)}`,\n `${messageText}`,\n ].join('\\n');\n}\n\n/**\n * Performs a type check on the project using TypeScript.\n * @param path The project root or cwd\n */\nexport async function performTypeCheck(path: string) {\n const tsconfigPath = join(path, 'tsconfig.json');\n\n if (!existsSync(tsconfigPath)) return;\n\n const ts = await loadTypeScript(TS_NOT_FOUND_ERR);\n\n // Format host for error reporting\n const formatHost = {\n getCanonicalFileName: (path: string) => path,\n getCurrentDirectory: ts.sys.getCurrentDirectory,\n getNewLine: () => ts.sys.newLine,\n };\n\n // Read tsconfig.json\n const configFile = ts.readConfigFile(tsconfigPath, ts.sys.readFile);\n\n if (configFile.error) {\n console.error(\n colors.red(\n `Error reading tsconfig.json: ${ts.formatDiagnostic(configFile.error, formatHost)}`,\n ),\n );\n process.exit(1);\n }\n\n // Parse the config file\n const parsedConfig = ts.parseJsonConfigFileContent(\n configFile.config,\n ts.sys,\n path,\n );\n\n // Force noEmit to true as we only want type checking\n parsedConfig.options.noEmit = true;\n\n // Create a program\n const program = ts.createProgram({\n rootNames: parsedConfig.fileNames,\n options: parsedConfig.options,\n projectReferences: parsedConfig.projectReferences,\n });\n\n // Get the diagnostics\n const diagnostics = [\n ...program.getOptionsDiagnostics(),\n ...program.getGlobalDiagnostics(),\n ...program.getSyntacticDiagnostics(),\n ...program.getSemanticDiagnostics(),\n ];\n\n // Report any errors\n if (diagnostics.length > 0) {\n console.log('');\n console.error(\n colors.bold(\n colors.red('Type checking failed with the following errors:'),\n ),\n );\n console.log('');\n\n // Group diagnostics by file for better readability\n const byFile = new Map<string, import('typescript').Diagnostic[]>();\n\n for (const diagnostic of diagnostics) {\n const fileName = diagnostic.file ? diagnostic.file.fileName : 'Global';\n if (!byFile.has(fileName)) {\n byFile.set(fileName, []);\n }\n byFile.get(fileName)!.push(diagnostic);\n }\n\n // Pretty-print each diagnostic\n const totalErrors = diagnostics.length;\n let counter = 0;\n\n for (const [_, fileDiags] of byFile) {\n for (const diagnostic of fileDiags) {\n counter++;\n console.log(formatDiagnostic(ts, diagnostic, path));\n // Add separator between errors for better readability, except for the last one\n if (counter < totalErrors) {\n console.log('');\n }\n }\n }\n\n console.log('');\n console.error(\n colors.bold(\n colors.red(`Found ${totalErrors} error${totalErrors > 1 ? 's' : ''}`),\n ),\n );\n console.log('');\n\n process.exit(1);\n }\n\n console.log(colors.green('✓ Type checking completed successfully.'));\n}\n"],"mappings":";;;;;;;AAKA,MAAM,oBAAoB;;;;AAK1B,SAAS,iBACT,IACA,YACA,KACS;CACP,MAAM,cAAc,GAAG,6BACrB,WAAW,aACX,KACD;AAED,MAAK,WAAW,KACd,SAAQ,EAAE,8BAAO,IAAI,QAAQ,CAAC,IAAI,YAAY;CAGhD,MAAM,EAAE,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,YAAY,SAAS,GAAG;AAC1B,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,IAAI,kDAAkD,CAC9D,CACF;AACD,UAAQ,IAAI,GAAG;EAGf,MAAM,SAAS,IAAI;AAEnB,OAAK,MAAM,cAAc,aAAa;GACpC,MAAM,WAAW,WAAW,OAAO,WAAW,KAAK,WAAW;AAC9D,QAAK,OAAO,IAAI,SAAS,CACvB,QAAO,IAAI,UAAU,CAAE,EAAC;AAE1B,UAAO,IAAI,SAAS,CAAE,KAAK,WAAW;EACxC;EAGA,MAAM,cAAc,YAAY;EAChC,IAAI,UAAU;AAEd,OAAK,MAAM,CAAC,GAAG,UAAU,IAAI,OAC3B,MAAK,MAAM,cAAc,WAAW;AAClC;AACA,WAAQ,IAAI,iBAAiB,IAAI,YAAY,KAAK,CAAC;AAEnD,OAAI,UAAU,YACZ,SAAQ,IAAI,GAAG;EAEnB;AAGF,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,KAAK,QAAQ,YAAY,QAAQ,cAAc,IAAI,MAAM,GAAG,EAAE,CACtE,CACF;AACD,UAAQ,IAAI,GAAG;AAEf,UAAQ,KAAK,EAAE;CACjB;AAEA,SAAQ,IAAI,8BAAO,MAAM,0CAA0C,CAAC;AACtE"}
1
+ {"version":3,"file":"type-checker-BILXtCjQ.js","names":[],"sources":["../src/cli/type-checker.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { loadTypeScript } from './common';\nimport { join, relative } from 'node:path';\nimport colors from '../utils/colors';\n\nconst TS_NOT_FOUND_ERR = `TypeScript must be installed in order to use the type checker. Please install it using \\`npm install typescript\\` or \\`yarn add typescript\\``;\n\n/**\n * Formats a TypeScript diagnostic message in a pretty, readable format\n */\nfunction formatDiagnostic(\n ts: typeof import('typescript'),\n diagnostic: import('typescript').Diagnostic,\n cwd: string,\n): string {\n const messageText = ts.flattenDiagnosticMessageText(\n diagnostic.messageText,\n '\\n',\n );\n\n if (!diagnostic.file) {\n return `${colors.red('error')}: ${messageText}`;\n }\n\n const { line, character } = ts.getLineAndCharacterOfPosition(\n diagnostic.file,\n diagnostic.start!,\n );\n const fileName = relative(cwd, diagnostic.file.fileName);\n const position = `${line + 1}:${character + 1}`;\n const errorCode = diagnostic.code ? `TS${diagnostic.code}` : '';\n\n // Format the error message nicely\n return [\n `${colors.bold(colors.cyan(fileName))}:${colors.bold(colors.yellow(position))} - ${colors.red('error')} ${colors.gray(errorCode)}`,\n `${messageText}`,\n ].join('\\n');\n}\n\n/**\n * Performs a type check on the project using TypeScript.\n * @param path The project root or cwd\n */\nexport async function performTypeCheck(path: string) {\n const tsconfigPath = join(path, 'tsconfig.json');\n\n if (!existsSync(tsconfigPath)) return;\n\n const ts = await loadTypeScript(TS_NOT_FOUND_ERR);\n\n // Format host for error reporting\n const formatHost = {\n getCanonicalFileName: (path: string) => path,\n getCurrentDirectory: ts.sys.getCurrentDirectory,\n getNewLine: () => ts.sys.newLine,\n };\n\n // Read tsconfig.json\n const configFile = ts.readConfigFile(tsconfigPath, ts.sys.readFile);\n\n if (configFile.error) {\n console.error(\n colors.red(\n `Error reading tsconfig.json: ${ts.formatDiagnostic(configFile.error, formatHost)}`,\n ),\n );\n process.exit(1);\n }\n\n // Parse the config file\n const parsedConfig = ts.parseJsonConfigFileContent(\n configFile.config,\n ts.sys,\n path,\n );\n\n // Force noEmit to true as we only want type checking\n parsedConfig.options.noEmit = true;\n\n // Create a program\n const program = ts.createProgram({\n rootNames: parsedConfig.fileNames,\n options: parsedConfig.options,\n projectReferences: parsedConfig.projectReferences,\n });\n\n // Get the diagnostics\n const diagnostics = [\n ...program.getOptionsDiagnostics(),\n ...program.getGlobalDiagnostics(),\n ...program.getSyntacticDiagnostics(),\n ...program.getSemanticDiagnostics(),\n ];\n\n // Report any errors\n if (diagnostics.length > 0) {\n console.log('');\n console.error(\n colors.bold(\n colors.red('Type checking failed with the following errors:'),\n ),\n );\n console.log('');\n\n // Group diagnostics by file for better readability\n const byFile = new Map<string, import('typescript').Diagnostic[]>();\n\n for (const diagnostic of diagnostics) {\n const fileName = diagnostic.file ? diagnostic.file.fileName : 'Global';\n if (!byFile.has(fileName)) {\n byFile.set(fileName, []);\n }\n byFile.get(fileName)!.push(diagnostic);\n }\n\n // Pretty-print each diagnostic\n const totalErrors = diagnostics.length;\n let counter = 0;\n\n for (const [_, fileDiags] of byFile) {\n for (const diagnostic of fileDiags) {\n counter++;\n console.log(formatDiagnostic(ts, diagnostic, path));\n // Add separator between errors for better readability, except for the last one\n if (counter < totalErrors) {\n console.log('');\n }\n }\n }\n\n console.log('');\n console.error(\n colors.bold(\n colors.red(`Found ${totalErrors} error${totalErrors > 1 ? 's' : ''}`),\n ),\n );\n console.log('');\n\n process.exit(1);\n }\n\n console.log(colors.green('✓ Type checking completed successfully.'));\n}\n"],"mappings":";;;;;;;AAKA,MAAM,oBAAoB;;;;AAK1B,SAAS,iBACT,IACA,YACA,KACS;CACP,MAAM,cAAc,GAAG,6BACrB,WAAW,aACX,KACD;AAED,MAAK,WAAW,KACd,SAAQ,EAAE,8BAAO,IAAI,QAAQ,CAAC,IAAI,YAAY;CAGhD,MAAM,EAAE,MAAM,WAAW,GAAG,GAAG,8BAC7B,WAAW,MACX,WAAW,MACZ;CACD,MAAM,WAAW,wBAAS,KAAK,WAAW,KAAK,SAAS;CACxD,MAAM,YAAY,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE;CAC9C,MAAM,YAAY,WAAW,QAAQ,IAAI,WAAW,KAAK,IAAI;AAG7D,QAAO,EACN,EAAE,8BAAO,KAAK,8BAAO,KAAK,SAAS,CAAC,CAAC,GAAG,8BAAO,KAAK,8BAAO,OAAO,SAAS,CAAC,CAAC,KAAK,8BAAO,IAAI,QAAQ,CAAC,GAAG,8BAAO,KAAK,UAAU,CAAC,IAChI,EAAE,YAAY,CAAE,EACjB,KAAK,KAAK;AACZ;;;;;AAMA,eAAsB,iBAAiB,MAAc;CACnD,MAAM,eAA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iBAAiB,IAAI,YAAY,KAAK,CAAC;AAEnD,OAAI,UAAU,YACZ,SAAQ,IAAI,GAAG;EAEnB;AAGF,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,KAAK,QAAQ,YAAY,QAAQ,cAAc,IAAI,MAAM,GAAG,EAAE,CACtE,CACF;AACD,UAAQ,IAAI,GAAG;AAEf,UAAQ,KAAK,EAAE;CACjB;AAEA,SAAQ,IAAI,8BAAO,MAAM,0CAA0C,CAAC;AACtE"}
@@ -1,4 +1,4 @@
1
- import { CommandKitPlugin } from "./CommandKit-DDSUNOAe.js";
1
+ import { CommandKitPlugin } from "./CommandKit-BYtbVkJL.js";
2
2
  import { MaybeArray } from "./types-CJ-XvOFN.js";
3
3
 
4
4
  //#region src/config/types.d.ts
@@ -70,4 +70,4 @@ interface CommandKitConfig {
70
70
  }
71
71
  //#endregion
72
72
  export { CommandKitConfig };
73
- //# sourceMappingURL=types-w2bWHUve.d.ts.map
73
+ //# sourceMappingURL=types-BI6_e27D.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-DDSUNOAe.js";
1
+ import { CommandContext, CommandData, CommandKitOptions } 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
- import * as picocolors_types6 from "picocolors/types";
1
+ import * as picocolors_types0 from "picocolors/types";
2
2
 
3
3
  //#region src/utils/colors.d.ts
4
- declare const _default: picocolors_types6.Colors;
4
+ declare const _default: picocolors_types0.Colors;
5
5
  //#endregion
6
6
  export { _default as default };
7
7
  //# sourceMappingURL=colors.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CommandKitHMREvent, registerDevHooks } from "../CommandKit-DDSUNOAe.js";
1
+ import { CommandKitHMREvent, registerDevHooks } 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-L7X8fflj.js');
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-V20WCBDd.js');
15
- require('../element-hdSqnIpC.js');
14
+ require('../warn-unstable-DHLaxPC8.js');
15
+ require('../element-DcqNz1dV.js');
16
16
  require('../types-B5VPP9ig.js');
17
- require('../EventInterceptor-DtRINyTP.js');
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-BWLDMYQl.js');
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,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-L7X8fflj.js');
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-V20WCBDd.js');
15
- require('../element-hdSqnIpC.js');
14
+ require('../warn-unstable-DHLaxPC8.js');
15
+ require('../element-DcqNz1dV.js');
16
16
  require('../types-B5VPP9ig.js');
17
- require('../EventInterceptor-DtRINyTP.js');
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-BWLDMYQl.js');
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
- const require_warn_unstable = require('../warn-unstable-V20WCBDd.js');
1
+ const require_warn_unstable = require('../warn-unstable-DHLaxPC8.js');
2
2
 
3
3
  exports.emitWarning = require_warn_unstable.emitWarning;
4
4
  exports.warnUnstable = require_warn_unstable.warnUnstable;
@@ -1,4 +1,4 @@
1
- import { CommandKitConfig } from "./types-w2bWHUve.js";
1
+ import { CommandKitConfig } from "./types-BI6_e27D.js";
2
2
 
3
3
  //#region src/config/utils.d.ts
4
4
  type DeepRequired<T> = { [P in keyof T]-?: DeepRequired<T[P]> };
@@ -7,4 +7,4 @@ declare const mergeDeep: <T extends Record<string, any>>(target: T, source: T) =
7
7
  type ResolvedCommandKitConfig = DeepRequired<CommandKitConfig>;
8
8
  //#endregion
9
9
  export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
10
- //# sourceMappingURL=utils-Dprjd7Oz.d.ts.map
10
+ //# sourceMappingURL=utils-CLd34EFf.d.ts.map
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * The current version of CommandKit.
5
5
  */
6
- const version = "1.0.0-dev.20250530151225";
6
+ const version = "1.0.0-dev.20250531124649";
7
7
 
8
8
  //#endregion
9
9
  Object.defineProperty(exports, 'version', {
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'version', {
12
12
  return version;
13
13
  }
14
14
  });
15
- //# sourceMappingURL=version-EnexmO7x.js.map
15
+ //# sourceMappingURL=version-DG7huXRq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-EnexmO7x.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["function $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;AAQA,MAAa,UAA4B"}
1
+ {"version":3,"file":"version-DG7huXRq.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["function $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;AAQA,MAAa,UAA4B"}
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const require_version = require('./version-EnexmO7x.js');
1
+ const require_version = require('./version-DG7huXRq.js');
2
2
 
3
3
  exports.version = require_version.version;
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/utils/warn-unstable.ts
3
- const WARNED_KEYS = new Set();
3
+ const WARNED_KEYS = /* @__PURE__ */ new Set();
4
4
  function emitWarning(message, code = "CommandKitWarning") {
5
5
  process.emitWarning(message, { code });
6
6
  }
@@ -23,4 +23,4 @@ Object.defineProperty(exports, 'warnUnstable', {
23
23
  return warnUnstable;
24
24
  }
25
25
  });
26
- //# sourceMappingURL=warn-unstable-V20WCBDd.js.map
26
+ //# sourceMappingURL=warn-unstable-DHLaxPC8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"warn-unstable-V20WCBDd.js","names":[],"sources":["../src/utils/warn-unstable.ts"],"sourcesContent":["const WARNED_KEYS = new Set<string>();\n\nexport function emitWarning(message: string, code = 'CommandKitWarning') {\n process.emitWarning(message, { code });\n}\n\nexport function warnUnstable(name: string) {\n if (WARNED_KEYS.has(name)) return;\n\n WARNED_KEYS.add(name);\n\n emitWarning(\n `${name} is unstable and may change in future versions.`,\n 'CommandKitUnstableWarning',\n );\n}\n"],"mappings":";;AAAA,MAAM,cAAc,IAAI;AAExB,SAAgB,YAAY,SAAiB,OAAO,qBAAqB;AACvE,SAAQ,YAAY,SAAS,EAAE,KAAM,EAAC;AACxC;AAEA,SAAgB,aAAa,MAAc;AACzC,KAAI,YAAY,IAAI,KAAK,CAAE;AAE3B,aAAY,IAAI,KAAK;AAErB,cACG,EAAE,KAAK,kDACR,4BACD;AACH"}
1
+ {"version":3,"file":"warn-unstable-DHLaxPC8.js","names":[],"sources":["../src/utils/warn-unstable.ts"],"sourcesContent":["const WARNED_KEYS = new Set<string>();\n\nexport function emitWarning(message: string, code = 'CommandKitWarning') {\n process.emitWarning(message, { code });\n}\n\nexport function warnUnstable(name: string) {\n if (WARNED_KEYS.has(name)) return;\n\n WARNED_KEYS.add(name);\n\n emitWarning(\n `${name} is unstable and may change in future versions.`,\n 'CommandKitUnstableWarning',\n );\n}\n"],"mappings":";;AAAA,MAAM,8BAAc,IAAI;AAExB,SAAgB,YAAY,SAAiB,OAAO,qBAAqB;AACvE,SAAQ,YAAY,SAAS,EAAE,KAAM,EAAC;AACxC;AAEA,SAAgB,aAAa,MAAc;AACzC,KAAI,YAAY,IAAI,KAAK,CAAE;AAE3B,aAAY,IAAI,KAAK;AAErB,cACG,EAAE,KAAK,kDACR,4BACD;AACH"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "commandkit",
3
3
  "description": "Beginner friendly command & event handler for Discord.js",
4
- "version": "1.0.0-dev.20250530151225",
4
+ "version": "1.0.0-dev.20250531124649",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
7
7
  "main": "./dist/index.js",
@@ -122,7 +122,7 @@
122
122
  "tsx": "^4.19.2",
123
123
  "typescript": "^5.7.3",
124
124
  "vitest": "^3.0.5",
125
- "tsconfig": "0.0.0-dev.20250530151225"
125
+ "tsconfig": "0.0.0-dev.20250531124649"
126
126
  },
127
127
  "peerDependencies": {
128
128
  "discord.js": "^14"