commandkit 1.2.0-dev.20251015015506 → 1.2.0-dev.20251015125840
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/config.cjs +3 -0
- package/config.d.ts +1 -0
- package/dist/{EventWorkerContext-CLhZRHhH.d.ts → EventWorkerContext-Si7O8BHF.d.ts} +2 -2
- package/dist/analytics/analytics-engine.d.ts +2 -2
- package/dist/analytics/analytics-engine.js +4 -4
- package/dist/analytics/analytics-provider.d.ts +2 -2
- package/dist/analytics/utils.js +4 -4
- package/dist/{analytics-engine-NOInIjv8.d.ts → analytics-engine-Bysw_gql.d.ts} +2 -2
- package/dist/app/commands/AppCommandRunner.d.ts +2 -2
- package/dist/app/commands/AppCommandRunner.js +4 -4
- package/dist/app/commands/Context.d.ts +2 -2
- package/dist/app/commands/Context.js +4 -4
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/handlers/AppCommandHandler.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.js +4 -4
- package/dist/app/handlers/AppEventsHandler.d.ts +2 -2
- package/dist/app/handlers/AppEventsHandler.js +4 -4
- package/dist/app/index.d.ts +2 -2
- package/dist/app/index.js +4 -4
- package/dist/app/middlewares/permissions.d.ts +2 -2
- package/dist/app/middlewares/permissions.js +4 -4
- package/dist/app/register/CommandRegistrar.d.ts +2 -2
- package/dist/app/register/CommandRegistrar.js +4 -4
- package/dist/{app-process-AQ3Cbf6j.js → app-process-CjyrRAFH.js} +3 -3
- package/dist/{app-process-AQ3Cbf6j.js.map → app-process-CjyrRAFH.js.map} +1 -1
- package/dist/{build-BYMHMOl_.js → build-Cy9iGxZu.js} +6 -6
- package/dist/{build-BYMHMOl_.js.map → build-Cy9iGxZu.js.map} +1 -1
- package/dist/cli/app-process.js +5 -5
- package/dist/cli/build.d.ts +2 -2
- package/dist/cli/build.js +7 -7
- package/dist/cli/common.d.ts +2 -2
- package/dist/cli/common.js +3 -3
- package/dist/cli/development.js +9 -8
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +4 -0
- package/dist/cli/env.js +1 -1
- package/dist/cli/generators.js +3 -3
- package/dist/cli/information.js +2 -2
- package/dist/cli/init.js +5 -5
- package/dist/cli/production.js +10 -8
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +4 -4
- package/dist/{commandkit-DabqpQ6v.js → commandkit-KwTRAgZd.js} +52 -4
- package/dist/commandkit-KwTRAgZd.js.map +1 -0
- package/dist/commandkit.d.ts +2 -2
- package/dist/commandkit.js +4 -4
- package/dist/{common-fIO6fqGZ.js → common-vl9iZ7Th.js} +3 -3
- package/dist/{common-fIO6fqGZ.js.map → common-vl9iZ7Th.js.map} +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/interactive/button/Button.js +4 -4
- package/dist/components/interactive/button/ButtonKit.js +4 -4
- package/dist/components/interactive/modal/Modal.js +4 -4
- package/dist/components/interactive/modal/ModalKit.js +4 -4
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/SelectMenu.js +4 -4
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +4 -4
- package/dist/config/config.d.ts +3 -3
- package/dist/config/config.js +4 -4
- package/dist/config/default.d.ts +2 -2
- package/dist/config/default.js +4 -4
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/loader.js +4 -4
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +2 -2
- package/dist/{config-DbgXt6mf.d.ts → config-B78JuOAI.d.ts} +2 -2
- package/dist/{constants-DqnSDZ6l.d.ts → constants-CN1xFOiX.d.ts} +8 -2
- package/dist/{constants-BMWH2YUr.js → constants-CxkFFZ7p.js} +16 -1
- package/dist/constants-CxkFFZ7p.js.map +1 -0
- package/dist/{constants-CCFSX2NG.d.ts → constants-DwLQQVLy.d.ts} +1 -1
- package/dist/context/async-context.d.ts +2 -2
- package/dist/context/async-context.js +4 -4
- package/dist/context/environment.d.ts +2 -2
- package/dist/context/environment.js +4 -4
- package/dist/{env-8yY-6pbC.js → env-Dd5904hf.js} +7 -3
- package/dist/env-Dd5904hf.js.map +1 -0
- package/dist/{error-codes-BiNRVMiV.d.ts → error-codes-DM-Mbprh.d.ts} +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +2 -2
- package/dist/{feature-flags-BoBV4Dsj.js → feature-flags-DJqNMI5w.js} +2 -2
- package/dist/{feature-flags-BoBV4Dsj.js.map → feature-flags-DJqNMI5w.js.map} +1 -1
- package/dist/flags/FlagProvider.d.ts +2 -2
- package/dist/flags/feature-flags.d.ts +2 -2
- package/dist/flags/feature-flags.js +5 -5
- package/dist/flags/store.d.ts +2 -2
- package/dist/index.d.ts +9 -8
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/{init-CBb0StSB.js → init-hoTNDwPt.js} +5 -5
- package/dist/{init-CBb0StSB.js.map → init-hoTNDwPt.js.map} +1 -1
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/kv.d.ts +2 -2
- package/dist/kv/serde.d.ts +2 -2
- package/dist/logger/DefaultLogger.js +4 -4
- package/dist/logger/Logger.js +4 -4
- package/dist/plugins/CompilerPlugin.d.ts +2 -2
- package/dist/plugins/PluginCommon.d.ts +2 -2
- package/dist/plugins/RuntimePlugin.d.ts +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +4 -4
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +4 -4
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +4 -4
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +4 -4
- package/dist/plugins/plugin-runtime/runtime.d.ts +2 -2
- package/dist/plugins/types.d.ts +2 -2
- package/dist/{resolve-file-url-DFtR8jRR.d.ts → resolve-file-url-BDJud8AT.d.ts} +1 -1
- package/dist/{serde-D4H23l2F.d.ts → serde-BLi3Garu.d.ts} +2 -2
- package/dist/{type-checker-CEFHoQoV.js → type-checker-BGO8o3rM.js} +2 -2
- package/dist/{type-checker-CEFHoQoV.js.map → type-checker-BGO8o3rM.js.map} +1 -1
- package/dist/{types-package-D11rQXLs.js → types-package-elMCB4mL.js} +2 -2
- package/dist/{types-package-D11rQXLs.js.map → types-package-elMCB4mL.js.map} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{utilities-CQUaua43.d.ts → utilities-y6Wu2hdM.d.ts} +28 -2
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +3 -2
- package/dist/utils/dev-hooks.d.ts +2 -2
- package/dist/utils/dev-hooks.js +4 -4
- package/dist/utils/error-codes.d.ts +1 -1
- package/dist/utils/resolve-file-url.d.ts +1 -1
- package/dist/utils/types-package.js +2 -2
- package/dist/utils/utilities.d.ts +2 -2
- package/dist/utils/utilities.js +7 -5
- package/dist/utils/warning.d.ts +2 -25
- package/dist/{version-q6N-AqDi.js → version-CK3cCEHc.js} +2 -2
- package/dist/{version-q6N-AqDi.js.map → version-CK3cCEHc.js.map} +1 -1
- package/dist/version.js +1 -1
- package/dist/warning-Ddig3lHP.d.ts +25 -0
- package/package.json +2 -2
- package/dist/commandkit-DabqpQ6v.js.map +0 -1
- package/dist/constants-BMWH2YUr.js.map +0 -1
- package/dist/env-8yY-6pbC.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './components/common/EventInterceptor';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CommandKit } from './commandkit';\n\nexport default CommandKit;\n\nexport * from './commandkit';\nexport * from './components';\nexport * from './components/common/EventInterceptor';\nexport * from './config/config';\nexport * from './context/async-context';\nexport {\n type CommandKitEnvironmentInternalData,\n CommandKitEnvironment,\n CommandKitEnvironmentType,\n cancelAfter as unstable_cancelAfter,\n after as unstable_after,\n} from './context/environment';\nexport * from './app/index';\nexport * from './logger/DefaultLogger';\nexport * from './logger/ILogger';\nexport * from './logger/Logger';\nexport * from './app/router/index';\nexport type * from './types';\nexport * from './version';\nexport * from './plugins/index';\nexport * from './flags/feature-flags';\nexport {\n getCurrentDirectory,\n getSourceDirectories,\n devOnly,\n debounce,\n defer,\n} from './utils/utilities';\nexport { warnDeprecated, emitWarning, warnUnstable } from './utils/warning';\nexport { toFileURL } from './utils/resolve-file-url';\nexport * from './app/interrupt/signals';\nexport type { CommandKitHMREvent } from './utils/dev-hooks';\nexport * from './utils/constants';\nexport * from './app/events/EventWorkerContext';\nexport { CommandKitErrorCodes, isErrorType } from './utils/error-codes';\nexport { Collection, type Client } from 'discord.js';\n\n// cli\nexport { bootstrapCommandkitCLI } from './cli/init';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
|
-
const require_commandkit = require('./commandkit-
|
|
3
|
-
const require_constants = require('./constants-
|
|
2
|
+
const require_commandkit = require('./commandkit-KwTRAgZd.js');
|
|
3
|
+
const require_constants = require('./constants-CxkFFZ7p.js');
|
|
4
4
|
const require_CompilerPlugin = require('./CompilerPlugin-CZ4412Zm.js');
|
|
5
|
-
const require_types_package = require('./types-package-
|
|
6
|
-
const require_common = require('./common-
|
|
5
|
+
const require_types_package = require('./types-package-elMCB4mL.js');
|
|
6
|
+
const require_common = require('./common-vl9iZ7Th.js');
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -88,4 +88,4 @@ Object.defineProperty(exports, 'bootstrapCommandkitCLI', {
|
|
|
88
88
|
return bootstrapCommandkitCLI;
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
//# sourceMappingURL=init-
|
|
91
|
+
//# sourceMappingURL=init-hoTNDwPt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-
|
|
1
|
+
{"version":3,"file":"init-hoTNDwPt.js","names":[],"sources":["../src/cli/init.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { mkdir } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { generateTypesPackage } from '../utils/types-package';\nimport { loadConfigFile } from '../config/loader';\nimport {\n CompilerPlugin,\n CompilerPluginRuntime,\n isCompilerPlugin,\n} from '../plugins';\nimport { panic } from './common';\nimport { COMMANDKIT_CWD } from '../utils/constants';\n\n/**\n * Creates a command line interface for CommandKit.\n * @param argv The arguments passed to the CLI.\n * @param options The options passed to the CLI.\n */\nexport async function bootstrapCommandkitCLI(\n argv: string[],\n options?: import('commander').ParseOptions | undefined,\n) {\n process.title = 'CommandKit CLI';\n\n // imports are lazily loaded when the cli is used, instead of loading it with the lib itself\n const { Command } = await import('commander');\n const { bootstrapDevelopmentServer } = await import('./development');\n const { bootstrapProductionServer, createProductionBuild } = await import(\n './production'\n );\n const { generateCommand, generateEvent } = await import('./generators');\n const { version } = await import('../version');\n const { showInformation } = await import('./information');\n const { setCLIEnv } = await import('./env');\n\n const program = new Command('commandkit');\n\n program\n .command('dev')\n .version(version)\n .description('Start your bot in development mode.')\n .option(\n '-c, --config [path]',\n 'Path to your commandkit config file.',\n './commandkit.js',\n )\n .action(() => {\n const options = program.opts();\n bootstrapDevelopmentServer(options.config);\n });\n\n program\n .command('info')\n .description(\n 'Show information about the system which can be used to report bugs.',\n )\n .action(async () => {\n await showInformation();\n });\n\n program\n .command('start')\n .description(\n 'Start your bot in production mode after running the build command.',\n )\n .option('-c, --config [path]', 'Path to your commandkit config file.')\n .action(() => {\n const options = program.opts();\n bootstrapProductionServer(options.config);\n });\n\n program\n .command('build')\n .description('Build your project for production usage.')\n .option('-c, --config [path]', 'Path to your commandkit config file.')\n .action(() => {\n setCLIEnv();\n const options = program.opts();\n return createProductionBuild(options.config);\n });\n\n program\n .command('create')\n .description(\n 'Create new files using built-in templates or custom plugin templates',\n )\n .argument(\n '<template>',\n 'The template to use (e.g. command, event, or custom plugin template)',\n )\n .argument('[args...]', 'Additional arguments for the template')\n .action(async (template, args) => {\n setCLIEnv();\n\n // Handle custom plugin templates\n const { plugins } = await loadConfigFile();\n const runtime = new CompilerPluginRuntime(\n plugins.filter((p) => isCompilerPlugin(p)) as CompilerPlugin[],\n );\n\n try {\n await runtime.init();\n const templateHandler = runtime.getTemplate(template);\n\n if (!templateHandler) {\n // Handle built-in templates\n if (template === 'command') {\n const [name] = args;\n if (!name) {\n panic('Command name is required');\n }\n await generateCommand(name);\n return;\n }\n\n if (template === 'event') {\n const [name] = args;\n if (!name) {\n panic('Event name is required');\n }\n await generateEvent(name);\n return;\n }\n\n const valid = Array.from(\n new Set([\n 'command',\n 'event',\n ...Array.from(runtime.getTemplates().keys()),\n ]),\n ).map((t) => `\"${t}\"`);\n\n panic(\n `Template \"${template}\" not found. Available templates: ${valid.join(', ')}`,\n );\n }\n\n await templateHandler(args);\n } catch (e: any) {\n panic(`Failed to execute template \"${template}\": ${e?.message || e}`);\n } finally {\n await runtime.destroy();\n }\n });\n\n const types = join(COMMANDKIT_CWD, 'node_modules', 'commandkit-types');\n\n if (!existsSync(types)) {\n await mkdir(types, { recursive: true }).catch(() => {});\n await generateTypesPackage(true).catch(() => {});\n }\n\n await program.parseAsync(argv, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,eAAsB,uBACtB,MACA,SACA;AACE,SAAQ,QAAQ;CAGhB,MAAM,EAAE,YAAY,MAAM,OAAO;CACjC,MAAM,EAAE,+BAA+B,2CAAM;CAC7C,MAAM,EAAE,2BAA2B,0BAA0B,2CAAM;CAGnE,MAAM,EAAE,iBAAiB,kBAAkB,2CAAM;CACjD,MAAM,EAAE,YAAY,2CAAM;CAC1B,MAAM,EAAE,oBAAoB,2CAAM;CAClC,MAAM,EAAE,cAAc,2CAAM;CAE5B,MAAM,UAAU,IAAI,QAAQ,aAAa;AAEzC,SACA,QAAQ,MAAM,CACd,QAAQ,QAAQ,CAChB,YAAY,sCAAsC,CAClD,OACE,uBACA,wCACA,kBACD,CACD,aAAa;AAEX,6BADgB,QAAQ,MAAM,CACK,OAAO;GAC1C;AAEF,SACA,QAAQ,OAAO,CACf,YACE,sEACD,CACD,OAAO,YAAY;AACjB,QAAM,iBAAiB;GACvB;AAEF,SACA,QAAQ,QAAQ,CAChB,YACE,qEACD,CACD,OAAO,uBAAuB,uCAAuC,CACrE,aAAa;AAEX,4BADgB,QAAQ,MAAM,CACI,OAAO;GACzC;AAEF,SACA,QAAQ,QAAQ,CAChB,YAAY,2CAA2C,CACvD,OAAO,uBAAuB,uCAAuC,CACrE,aAAa;AACX,aAAW;AAEX,SAAO,sBADS,QAAQ,MAAM,CACO,OAAO;GAC5C;AAEF,SACA,QAAQ,SAAS,CACjB,YACE,uEACD,CACD,SACE,cACA,uEACD,CACD,SAAS,aAAa,wCAAwC,CAC9D,OAAO,OAAO,UAAU,SAAS;AAC/B,aAAW;EAGX,MAAM,EAAE,YAAY,MAAM,mCAAgB;EAC1C,MAAM,UAAU,IAAI,yCAClB,QAAQ,QAAQ,MAAM,wCAAiB,EAAE,CAAC,CAC3C;AAED,MAAI;AACF,SAAM,QAAQ,MAAM;GACpB,MAAM,kBAAkB,QAAQ,YAAY,SAAS;AAErD,OAAI,CAAC,iBAAiB;AAEpB,QAAI,aAAa,WAAW;KAC1B,MAAM,CAAC,QAAQ;AACf,SAAI,CAAC,KACH,sBAAM,2BAA2B;AAEnC,WAAM,gBAAgB,KAAK;AAC3B;;AAGF,QAAI,aAAa,SAAS;KACxB,MAAM,CAAC,QAAQ;AACf,SAAI,CAAC,KACH,sBAAM,yBAAyB;AAEjC,WAAM,cAAc,KAAK;AACzB;;AAWF,yBACE,aAAa,SAAS,oCATV,MAAM,KAClB,IAAI,IAAI;KACR;KACA;KACA,GAAG,MAAM,KAAK,QAAQ,cAAc,CAAC,MAAM,CAAC;KAAC,CAC5C,CACF,CAAC,KAAK,MAAM,IAAI,EAAE,GAAG,CAG4C,KAAK,KAAK,GAC3E;;AAGH,SAAM,gBAAgB,KAAK;WACpB,GAAQ;AACf,wBAAM,+BAA+B,SAAS,4CAAK,EAAG,YAAW,IAAI;YAC7D;AACR,SAAM,QAAQ,SAAS;;GAEzB;CAEF,MAAM,4BAAa,kCAAgB,gBAAgB,mBAAmB;AAEtE,KAAI,yBAAY,MAAM,EAAE;AACtB,oCAAY,OAAO,EAAE,WAAW,MAAM,CAAC,CAAC,YAAY,GAAG;AACvD,QAAM,2CAAqB,KAAK,CAAC,YAAY,GAAG;;AAGlD,OAAM,QAAQ,WAAW,MAAM,QAAQ"}
|
package/dist/kv/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SerializerType } from "../constants-
|
|
1
|
+
import { SerializerType } from "../constants-DwLQQVLy.js";
|
|
2
2
|
export { SerializerType };
|
package/dist/kv/kv.d.ts
CHANGED
package/dist/kv/serde.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../constants-
|
|
2
|
-
import { SerializedValue, deserializer, serializer } from "../serde-
|
|
1
|
+
import "../constants-DwLQQVLy.js";
|
|
2
|
+
import { SerializedValue, deserializer, serializer } from "../serde-BLi3Garu.js";
|
|
3
3
|
export { SerializedValue, deserializer, serializer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
2
|
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
4
|
+
const require_commandkit = require('../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../warning-CszH8HeS.js');
|
|
6
6
|
require('../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../element-DibzzA5L.js');
|
|
18
18
|
require('../types-TC4g3w91.js');
|
|
19
19
|
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-
|
|
28
|
+
require('../types-package-elMCB4mL.js');
|
|
29
29
|
require('../constants-D0dawKxO.js');
|
|
30
30
|
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-
|
|
37
|
+
require('../common-vl9iZ7Th.js');
|
|
38
38
|
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../store-ZwL2gN6a.js');
|
|
40
40
|
|
package/dist/logger/Logger.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
2
|
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
4
|
+
const require_commandkit = require('../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../warning-CszH8HeS.js');
|
|
6
6
|
require('../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../element-DibzzA5L.js');
|
|
18
18
|
require('../types-TC4g3w91.js');
|
|
19
19
|
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-
|
|
28
|
+
require('../types-package-elMCB4mL.js');
|
|
29
29
|
require('../constants-D0dawKxO.js');
|
|
30
30
|
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-
|
|
37
|
+
require('../common-vl9iZ7Th.js');
|
|
38
38
|
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin } from "../analytics-engine-
|
|
1
|
+
import { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { CompilerPlugin, PluginTransformParameters, TransformedResult, isCompilerPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginCommon, PluginOptions, PluginType, isPlugin } from "../analytics-engine-
|
|
1
|
+
import { PluginCommon, PluginOptions, PluginType, isPlugin } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { PluginCommon, PluginOptions, PluginType, isPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimePlugin, isRuntimePlugin } from "../analytics-engine-
|
|
1
|
+
import { RuntimePlugin, isRuntimePlugin } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { RuntimePlugin, isRuntimePlugin };
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin } from "../analytics-engine-
|
|
1
|
+
import { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommandKitEventDispatch, CommandKitPlugin, CommandKitPluginRuntime, CommonDirectiveTransformer, CommonDirectiveTransformerOptions, CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, MaybeFalsey, PluginTransformParameters, RuntimePlugin, TemplateHandler, TransformedResult, isCompilerPlugin, isRuntimePlugin };
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
2
|
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
4
|
+
const require_commandkit = require('../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../warning-CszH8HeS.js');
|
|
6
6
|
require('../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../element-DibzzA5L.js');
|
|
18
18
|
require('../types-TC4g3w91.js');
|
|
19
19
|
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
const require_CompilerPlugin = require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
const require_RuntimePlugin = require('../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-
|
|
28
|
+
require('../types-package-elMCB4mL.js');
|
|
29
29
|
require('../constants-D0dawKxO.js');
|
|
30
30
|
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-
|
|
37
|
+
require('../common-vl9iZ7Th.js');
|
|
38
38
|
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitPluginRuntime } from "../../analytics-engine-
|
|
1
|
+
import { CommandKitPluginRuntime } from "../../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../../index-B5F3AfVc.js";
|
|
33
|
-
import "../../constants-
|
|
33
|
+
import "../../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommandKitPluginRuntime };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-DL3ucTiT.js');
|
|
2
2
|
require('../../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
4
|
+
const require_commandkit = require('../../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../../warning-CszH8HeS.js');
|
|
6
6
|
require('../../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../../element-DibzzA5L.js');
|
|
18
18
|
require('../../types-TC4g3w91.js');
|
|
19
19
|
require('../../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../../constants-
|
|
20
|
+
require('../../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../../utils-Br3eenD1.js');
|
|
28
|
-
require('../../types-package-
|
|
28
|
+
require('../../types-package-elMCB4mL.js');
|
|
29
29
|
require('../../constants-D0dawKxO.js');
|
|
30
30
|
require('../../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../../router-BvamdzoF.js');
|
|
37
|
-
require('../../common-
|
|
37
|
+
require('../../common-vl9iZ7Th.js');
|
|
38
38
|
require('../../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPluginRuntime } from "../../analytics-engine-
|
|
1
|
+
import { CompilerPluginRuntime } from "../../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../../index-B5F3AfVc.js";
|
|
33
|
-
import "../../constants-
|
|
33
|
+
import "../../constants-CN1xFOiX.js";
|
|
34
34
|
export { CompilerPluginRuntime };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../colors-DL3ucTiT.js');
|
|
2
2
|
require('../../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../commandkit-
|
|
4
|
+
const require_commandkit = require('../../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../../warning-CszH8HeS.js');
|
|
6
6
|
require('../../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../../element-DibzzA5L.js');
|
|
18
18
|
require('../../types-TC4g3w91.js');
|
|
19
19
|
require('../../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../../constants-
|
|
20
|
+
require('../../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../../utils-Br3eenD1.js');
|
|
28
|
-
require('../../types-package-
|
|
28
|
+
require('../../types-package-elMCB4mL.js');
|
|
29
29
|
require('../../constants-D0dawKxO.js');
|
|
30
30
|
require('../../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../../router-BvamdzoF.js');
|
|
37
|
-
require('../../common-
|
|
37
|
+
require('../../common-vl9iZ7Th.js');
|
|
38
38
|
require('../../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../analytics-engine-
|
|
1
|
+
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../../../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../../../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../../../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../../../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../../../index-B5F3AfVc.js";
|
|
33
|
-
import "../../../constants-
|
|
33
|
+
import "../../../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommonDirectiveTransformer, CommonDirectiveTransformerOptions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../../colors-DL3ucTiT.js');
|
|
2
2
|
require('../../../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../../commandkit-
|
|
4
|
+
const require_commandkit = require('../../../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../../../warning-CszH8HeS.js');
|
|
6
6
|
require('../../../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../../../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../../../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../../../element-DibzzA5L.js');
|
|
18
18
|
require('../../../types-TC4g3w91.js');
|
|
19
19
|
require('../../../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../../../constants-
|
|
20
|
+
require('../../../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../../../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../../../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../../../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../../../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../../../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../../../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../../../utils-Br3eenD1.js');
|
|
28
|
-
require('../../../types-package-
|
|
28
|
+
require('../../../types-package-elMCB4mL.js');
|
|
29
29
|
require('../../../constants-D0dawKxO.js');
|
|
30
30
|
require('../../../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../../../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../../../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../../../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../../../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../../../router-BvamdzoF.js');
|
|
37
|
-
require('../../../common-
|
|
37
|
+
require('../../../common-vl9iZ7Th.js');
|
|
38
38
|
require('../../../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../../../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../analytics-engine-
|
|
1
|
+
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../../../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,7 +30,7 @@ import "../../../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../../../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../../../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../../../index-B5F3AfVc.js";
|
|
33
|
-
import "../../../constants-
|
|
33
|
+
import "../../../constants-CN1xFOiX.js";
|
|
34
34
|
|
|
35
35
|
//#region src/plugins/plugin-runtime/builtin/MacroPlugin.d.ts
|
|
36
36
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../../colors-DL3ucTiT.js');
|
|
2
2
|
require('../../../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../../../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../../../commandkit-
|
|
4
|
+
const require_commandkit = require('../../../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../../../warning-CszH8HeS.js');
|
|
6
6
|
require('../../../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../../../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../../../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../../../element-DibzzA5L.js');
|
|
18
18
|
require('../../../types-TC4g3w91.js');
|
|
19
19
|
require('../../../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../../../constants-
|
|
20
|
+
require('../../../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../../../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../../../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../../../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../../../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../../../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../../../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../../../utils-Br3eenD1.js');
|
|
28
|
-
require('../../../types-package-
|
|
28
|
+
require('../../../types-package-elMCB4mL.js');
|
|
29
29
|
require('../../../constants-D0dawKxO.js');
|
|
30
30
|
require('../../../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../../../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../../../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../../../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../../../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../../../router-BvamdzoF.js');
|
|
37
|
-
require('../../../common-
|
|
37
|
+
require('../../../common-vl9iZ7Th.js');
|
|
38
38
|
require('../../../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../../../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonPluginRuntime } from "../../analytics-engine-
|
|
1
|
+
import { CommonPluginRuntime } from "../../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../../index-B5F3AfVc.js";
|
|
33
|
-
import "../../constants-
|
|
33
|
+
import "../../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommonPluginRuntime };
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../analytics-engine-
|
|
1
|
+
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SerializerType } from "./constants-
|
|
1
|
+
import { SerializerType } from "./constants-DwLQQVLy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/kv/serde.d.ts
|
|
4
4
|
interface SerializedValue {
|
|
@@ -9,4 +9,4 @@ declare function serializer(value: any): SerializedValue;
|
|
|
9
9
|
declare function deserializer(serialized: SerializedValue): any;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SerializedValue, deserializer, serializer };
|
|
12
|
-
//# sourceMappingURL=serde-
|
|
12
|
+
//# sourceMappingURL=serde-BLi3Garu.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
2
|
const require_colors = require('./colors-DL3ucTiT.js');
|
|
3
|
-
const require_common = require('./common-
|
|
3
|
+
const require_common = require('./common-vl9iZ7Th.js');
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
node_fs = require_chunk.__toESM(node_fs);
|
|
6
6
|
let node_path = require("node:path");
|
|
@@ -87,4 +87,4 @@ Object.defineProperty(exports, 'performTypeCheck', {
|
|
|
87
87
|
return performTypeCheck;
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
//# sourceMappingURL=type-checker-
|
|
90
|
+
//# sourceMappingURL=type-checker-BGO8o3rM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-checker-
|
|
1
|
+
{"version":3,"file":"type-checker-BGO8o3rM.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 * @private\n * @internal\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 * @private\n * @internal\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,mBAAmB;;;;;;AAOzB,SAAS,iBACT,IACA,YACA,KACS;CACP,MAAM,cAAc,GAAG,6BACrB,WAAW,aACX,KACD;AAED,KAAI,CAAC,WAAW,KACd,QAAO,GAAG,8BAAO,IAAI,QAAQ,CAAC,IAAI;CAGpC,MAAM,EAAE,MAAM,cAAc,GAAG,8BAC7B,WAAW,MACX,WAAW,MACZ;CACD,MAAM,mCAAoB,KAAK,WAAW,KAAK,SAAS;CACxD,MAAM,WAAW,GAAG,OAAO,EAAE,GAAG,YAAY;CAC5C,MAAM,YAAY,WAAW,OAAO,KAAK,WAAW,SAAS;AAG7D,QAAO,CACP,GAAG,8BAAO,KAAK,8BAAO,KAAK,SAAS,CAAC,CAAC,GAAG,8BAAO,KAAK,8BAAO,OAAO,SAAS,CAAC,CAAC,KAAK,8BAAO,IAAI,QAAQ,CAAC,GAAG,8BAAO,KAAK,UAAU,IAChI,GAAG,cAAc,CACjB,KAAK,KAAK;;;;;;;;AASZ,eAAsB,iBAAiB,MAAc;CACnD,MAAM,mCAAoB,MAAM,gBAAgB;AAEhD,KAAI,yBAAY,aAAa,CAAE;CAE/B,MAAM,KAAK,MAAM,8BAAe,iBAAiB;CAGjD,MAAM,aAAa;EACjB,uBAAuB,WAAiB;EACxC,qBAAqB,GAAG,IAAI;EAC5B,kBAAkB,GAAG,IAAI;EAC1B;CAGD,MAAM,aAAa,GAAG,eAAe,cAAc,GAAG,IAAI,SAAS;AAEnE,KAAI,WAAW,OAAO;AACpB,UAAQ,MACN,8BAAO,IACL,gCAAgC,GAAG,iBAAiB,WAAW,OAAO,WAAW,GAClF,CACF;AACD,UAAQ,KAAK,EAAE;;CAIjB,MAAM,eAAe,GAAG,2BACtB,WAAW,QACX,GAAG,KACH,KACD;AAGD,cAAa,QAAQ,SAAS;CAG9B,MAAM,UAAU,GAAG,cAAc;EAC/B,WAAW,aAAa;EACxB,SAAS,aAAa;EACtB,mBAAmB,aAAa;EACjC,CAAC;CAGF,MAAM,cAAc;EACpB,GAAG,QAAQ,uBAAuB;EAClC,GAAG,QAAQ,sBAAsB;EACjC,GAAG,QAAQ,yBAAyB;EACpC,GAAG,QAAQ,wBAAwB;EAAC;AAIpC,KAAI,YAAY,SAAS,GAAG;AAC1B,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,IAAI,kDAAkD,CAC9D,CACF;AACD,UAAQ,IAAI,GAAG;EAGf,MAAM,yBAAS,IAAI,KAAgD;AAEnE,OAAK,MAAM,cAAc,aAAa;GACpC,MAAM,WAAW,WAAW,OAAO,WAAW,KAAK,WAAW;AAC9D,OAAI,CAAC,OAAO,IAAI,SAAS,CACvB,QAAO,IAAI,UAAU,EAAE,CAAC;AAE1B,UAAO,IAAI,SAAS,CAAE,KAAK,WAAW;;EAIxC,MAAM,cAAc,YAAY;EAChC,IAAI,UAAU;AAEd,OAAK,MAAM,CAAC,GAAG,cAAc,OAC3B,MAAK,MAAM,cAAc,WAAW;AAClC;AACA,WAAQ,IAAI,iBAAiB,IAAI,YAAY,KAAK,CAAC;AAEnD,OAAI,UAAU,YACZ,SAAQ,IAAI,GAAG;;AAKrB,UAAQ,IAAI,GAAG;AACf,UAAQ,MACN,8BAAO,KACL,8BAAO,IAAI,SAAS,YAAY,QAAQ,cAAc,IAAI,MAAM,KAAK,CACtE,CACF;AACD,UAAQ,IAAI,GAAG;AAEf,UAAQ,KAAK,EAAE;;AAGjB,SAAQ,IAAI,8BAAO,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
|
-
const require_constants = require('./constants-
|
|
2
|
+
const require_constants = require('./constants-CxkFFZ7p.js');
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
node_fs = require_chunk.__toESM(node_fs);
|
|
5
5
|
let node_path = require("node:path");
|
|
@@ -71,4 +71,4 @@ Object.defineProperty(exports, 'rewriteCommandDeclaration', {
|
|
|
71
71
|
return rewriteCommandDeclaration;
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
//# sourceMappingURL=types-package-
|
|
74
|
+
//# sourceMappingURL=types-package-elMCB4mL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-package-
|
|
1
|
+
{"version":3,"file":"types-package-elMCB4mL.js","names":[],"sources":["../src/utils/types-package.ts"],"sourcesContent":["import { mkdir, writeFile } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { COMMANDKIT_CWD, COMMANDKIT_IS_DEV } from './constants';\nimport { existsSync } from 'node:fs';\n\n/**\n * @private\n */\nexport async function generateTypesPackage(force = false) {\n const location = join(COMMANDKIT_CWD, 'node_modules', 'commandkit-types');\n if (!COMMANDKIT_IS_DEV && !force) return location;\n const packageJSON = join(location, 'package.json');\n const index = join(location, 'index.js');\n const types = join(location, 'index.d.ts');\n const command = join(location, 'command.d.ts');\n\n const packageJSONContent = {\n name: 'commandkit-types',\n version: '1.0.0',\n description: 'CommandKit types package',\n type: 'commonjs',\n main: 'index.js',\n types: 'index.d.ts',\n };\n\n const indexContent = `module.exports = {};`;\n\n // Restructuring the type declarations to properly extend rather than replace types\n const typesContent = `// Main types index file - imports all type declarations\nimport './command';\nexport {};\n`;\n\n // Properly set up command types to extend the CommandTypeData interface\n const commandTypesContent = `// Auto-generated command types\n export {};\ndeclare module 'commandkit' {\n type CommandTypeData = string\n}`;\n\n await mkdir(location, { recursive: true }).catch(() => {});\n await writeFile(packageJSON, JSON.stringify(packageJSONContent, null, 2));\n await writeFile(index, indexContent);\n await writeFile(types, typesContent);\n await writeFile(command, commandTypesContent);\n\n return location;\n}\n\n/**\n * @private\n */\nexport async function rewriteCommandDeclaration(data: string) {\n const commandTypesContent = `// Auto-generated command types\n declare module 'commandkit' {\n ${data}\n}\n export {};\n`;\n\n const location = join(COMMANDKIT_CWD, 'node_modules', 'commandkit-types');\n\n if (!existsSync(location)) return;\n\n const type = join(location, 'command.d.ts');\n\n await writeFile(type, commandTypesContent, { encoding: 'utf-8' });\n}\n"],"mappings":";;;;;;;;;;;;;AAQA,eAAsB,qBAAqB,QAAQ,OAAO;CACxD,MAAM,+BAAgB,kCAAgB,gBAAgB,mBAAmB;AACzE,KAAI,CAAC,uCAAqB,CAAC,MAAO,QAAO;CACzC,MAAM,kCAAmB,UAAU,eAAe;CAClD,MAAM,4BAAa,UAAU,WAAW;CACxC,MAAM,4BAAa,UAAU,aAAa;CAC1C,MAAM,8BAAe,UAAU,eAAe;CAE9C,MAAM,qBAAqB;EACzB,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,MAAM;EACN,OAAO;EACR;CAED,MAAM,eAAe;CAGrB,MAAM,eAAe;;;;CAMrB,MAAM,sBAAsB;;;;;AAM5B,mCAAY,UAAU,EAAE,WAAW,MAAM,CAAC,CAAC,YAAY,GAAG;AAC1D,uCAAgB,aAAa,KAAK,UAAU,oBAAoB,MAAM,EAAE,CAAC;AACzE,uCAAgB,OAAO,aAAa;AACpC,uCAAgB,OAAO,aAAa;AACpC,uCAAgB,SAAS,oBAAoB;AAE7C,QAAO;;;;;AAMT,eAAsB,0BAA0B,MAAc;CAC5D,MAAM,sBAAsB;;MAExB,KAAI;;;;CAKR,MAAM,+BAAgB,kCAAgB,gBAAgB,mBAAmB;AAEzE,KAAI,yBAAY,SAAS,CAAE;AAI3B,2DAFkB,UAAU,eAAe,EAErB,qBAAqB,EAAE,UAAU,SAAS,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandContext, CommandData, CommandKitOptions, CommandMetadata, CommandMetadataFunction, EventHandler } from "./analytics-engine-
|
|
1
|
+
import { CommandContext, CommandData, CommandKitOptions, CommandMetadata, CommandMetadataFunction, EventHandler } from "./analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "./EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "./ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "./ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "./helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "./CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "./EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "./index-B5F3AfVc.js";
|
|
33
|
-
import "./constants-
|
|
33
|
+
import "./constants-CN1xFOiX.js";
|
|
34
34
|
export { CommandContext, CommandData, CommandKitOptions, CommandMetadata, CommandMetadataFunction, EventHandler };
|