commandkit 1.0.0-dev.20250605142146 → 1.0.0-dev.20250606020134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CommandKit-DKSB7WUZ.js → CommandKit-D8HJegdh.js} +10 -6
- package/dist/{CommandKit-DKSB7WUZ.js.map → CommandKit-D8HJegdh.js.map} +1 -1
- package/dist/CommandKit.js +2 -2
- package/dist/analytics/analytics-engine.js +2 -2
- package/dist/analytics/constants.d.ts +2 -0
- package/dist/analytics/constants.js +1 -1
- package/dist/analytics/utils.js +2 -2
- package/dist/app/commands/AppCommandRunner.js +2 -2
- package/dist/app/commands/Context.js +2 -2
- package/dist/app/handlers/AppCommandHandler.js +2 -2
- package/dist/app/handlers/AppEventsHandler.js +2 -2
- package/dist/app/index.js +2 -2
- package/dist/app/register/CommandRegistrar.js +2 -2
- package/dist/{build-DIRQN8GJ.js → build-DqOWmJAg.js} +2 -2
- package/dist/{build-DIRQN8GJ.js.map → build-DqOWmJAg.js.map} +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/build.js +3 -3
- package/dist/cli/common.d.ts +2 -2
- package/dist/cli/development.js +3 -3
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +3 -3
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +3 -3
- package/dist/components/index.js +2 -2
- package/dist/components/v1/button/Button.js +2 -2
- package/dist/components/v1/button/ButtonKit.js +2 -2
- package/dist/components/v1/modal/Modal.js +2 -2
- package/dist/components/v1/modal/ModalKit.js +2 -2
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/SelectMenu.js +2 -2
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +2 -2
- package/dist/config/config.js +2 -2
- package/dist/config/default.js +2 -2
- package/dist/config/loader.js +2 -2
- package/dist/{constants-Do7znYzW.js → constants-DWe181uQ.js} +3 -1
- package/dist/constants-DWe181uQ.js.map +1 -0
- package/dist/context/async-context.js +2 -2
- package/dist/context/environment.js +2 -2
- package/dist/{feature-flags-DpEniib-.js → feature-flags-DBD8a_eD.js} +5 -4
- package/dist/feature-flags-DBD8a_eD.js.map +1 -0
- package/dist/flags/feature-flags.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/{init-BYIeA5Nh.js → init-B2LsvQoh.js} +2 -2
- package/dist/{init-BYIeA5Nh.js.map → init-B2LsvQoh.js.map} +1 -1
- package/dist/{init-CEa28dgv.d.ts → init-CT348Okf.d.ts} +3 -3
- package/dist/logger/DefaultLogger.js +2 -2
- package/dist/logger/Logger.js +2 -2
- package/dist/plugins/index.js +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -2
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -2
- package/dist/utils/colors.d.ts +2 -2
- package/dist/utils/dev-hooks.js +2 -2
- package/dist/utils/utilities.js +2 -2
- package/dist/{version-jzaJoR_o.js → version-C9ijCrHf.js} +2 -2
- package/dist/{version-jzaJoR_o.js.map → version-C9ijCrHf.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/constants-Do7znYzW.js.map +0 -1
- package/dist/feature-flags-DpEniib-.js.map +0 -1
|
@@ -11,7 +11,7 @@ const require_EventWorkerContext = require('./EventWorkerContext-BAKiTqJz.js');
|
|
|
11
11
|
const require_resolve_file_url = require('./resolve-file-url-ifwdwqmq.js');
|
|
12
12
|
const require_MessageCommandParser = require('./MessageCommandParser-D02-wpZN.js');
|
|
13
13
|
const require_signals = require('./signals-scJdEbly.js');
|
|
14
|
-
const require_constants$1 = require('./constants-
|
|
14
|
+
const require_constants$1 = require('./constants-DWe181uQ.js');
|
|
15
15
|
const require_types_package = require('./types-package-CTSNSM93.js');
|
|
16
16
|
const require_CommandsRouter = require('./CommandsRouter-BHaPno8o.js');
|
|
17
17
|
const require_EventsRouter = require('./EventsRouter-CqnrlbjN.js');
|
|
@@ -2177,25 +2177,29 @@ var AppCommandRunner = class {
|
|
|
2177
2177
|
if (error) {
|
|
2178
2178
|
var _prepared$command;
|
|
2179
2179
|
Logger.error(`[${marker} - ${time}] Error executing command: ${error.stack || error}`);
|
|
2180
|
+
const commandName$1 = ((_prepared$command = prepared.command) === null || _prepared$command === void 0 || (_prepared$command = _prepared$command.data) === null || _prepared$command === void 0 || (_prepared$command = _prepared$command.command) === null || _prepared$command === void 0 ? void 0 : _prepared$command.name) ?? prepared.command.command.name;
|
|
2180
2181
|
await analytics.track({
|
|
2181
2182
|
name: require_constants$1.AnalyticsEvents.COMMAND_EXECUTION,
|
|
2182
|
-
id:
|
|
2183
|
+
id: commandName$1,
|
|
2183
2184
|
data: {
|
|
2184
2185
|
error: true,
|
|
2185
2186
|
executionTime: env$1.getExecutionTime().toFixed(2),
|
|
2186
|
-
type: executionMode
|
|
2187
|
+
type: executionMode,
|
|
2188
|
+
command: commandName$1
|
|
2187
2189
|
}
|
|
2188
2190
|
});
|
|
2189
2191
|
return;
|
|
2190
2192
|
}
|
|
2191
2193
|
Logger.info(`[${marker} - ${time}] Command executed successfully`);
|
|
2194
|
+
const commandName = ((_prepared$command2 = prepared.command) === null || _prepared$command2 === void 0 || (_prepared$command2 = _prepared$command2.data) === null || _prepared$command2 === void 0 || (_prepared$command2 = _prepared$command2.command) === null || _prepared$command2 === void 0 ? void 0 : _prepared$command2.name) ?? prepared.command.command.name;
|
|
2192
2195
|
await analytics.track({
|
|
2193
2196
|
name: require_constants$1.AnalyticsEvents.COMMAND_EXECUTION,
|
|
2194
|
-
id:
|
|
2197
|
+
id: commandName,
|
|
2195
2198
|
data: {
|
|
2196
2199
|
error: false,
|
|
2197
2200
|
executionTime: env$1.getExecutionTime().toFixed(2),
|
|
2198
|
-
type: executionMode
|
|
2201
|
+
type: executionMode,
|
|
2202
|
+
command: commandName
|
|
2199
2203
|
}
|
|
2200
2204
|
});
|
|
2201
2205
|
});
|
|
@@ -3507,4 +3511,4 @@ Object.defineProperty(exports, 'useEnvironment', {
|
|
|
3507
3511
|
return useEnvironment;
|
|
3508
3512
|
}
|
|
3509
3513
|
});
|
|
3510
|
-
//# sourceMappingURL=CommandKit-
|
|
3514
|
+
//# sourceMappingURL=CommandKit-D8HJegdh.js.map
|