@rudderhq/cli 0.3.4-canary.15 → 0.3.4-canary.17

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.js CHANGED
@@ -446,7 +446,7 @@ var init_workspace_backup = __esm({
446
446
 
447
447
  // ../packages/shared/dist/validators/instance.js
448
448
  import { z } from "zod";
449
- var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
449
+ var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, KEYBOARD_SHORTCUT_ACTION_IDS, keyboardShortcutActionIdSchema, keyboardShortcutBindingSchema, keyboardShortcutPreferenceSchema, keyboardShortcutSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
450
450
  var init_instance = __esm({
451
451
  "../packages/shared/dist/validators/instance.js"() {
452
452
  "use strict";
@@ -486,6 +486,43 @@ var init_instance = __esm({
486
486
  moreAboutYou: z.string().max(OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH).default("")
487
487
  }).strict();
488
488
  patchOperatorProfileSettingsSchema = operatorProfileSettingsSchema.partial();
489
+ KEYBOARD_SHORTCUT_ACTION_IDS = [
490
+ "commandPalette.open",
491
+ "settings.open",
492
+ "issue.create",
493
+ "sidebar.toggle",
494
+ "panel.toggle"
495
+ ];
496
+ keyboardShortcutActionIdSchema = z.enum(KEYBOARD_SHORTCUT_ACTION_IDS);
497
+ keyboardShortcutBindingSchema = z.object({
498
+ key: z.string().trim().min(1).max(64),
499
+ code: z.string().trim().min(1).max(80).optional(),
500
+ metaKey: z.boolean().optional(),
501
+ ctrlKey: z.boolean().optional(),
502
+ altKey: z.boolean().optional(),
503
+ shiftKey: z.boolean().optional()
504
+ }).strict();
505
+ keyboardShortcutPreferenceSchema = z.object({
506
+ actionId: keyboardShortcutActionIdSchema,
507
+ bindings: z.array(keyboardShortcutBindingSchema).max(4).optional(),
508
+ disabled: z.boolean().optional()
509
+ }).strict();
510
+ keyboardShortcutSettingsSchema = z.object({
511
+ shortcuts: z.array(keyboardShortcutPreferenceSchema).max(KEYBOARD_SHORTCUT_ACTION_IDS.length).default([])
512
+ }).strict().superRefine((value, ctx) => {
513
+ const seen = /* @__PURE__ */ new Set();
514
+ value.shortcuts.forEach((shortcut, index) => {
515
+ if (seen.has(shortcut.actionId)) {
516
+ ctx.addIssue({
517
+ code: z.ZodIssueCode.custom,
518
+ message: `Duplicate shortcut action id: ${shortcut.actionId}`,
519
+ path: ["shortcuts", index, "actionId"]
520
+ });
521
+ return;
522
+ }
523
+ seen.add(shortcut.actionId);
524
+ });
525
+ });
489
526
  instancePathPickerSelectionTypeSchema = z.enum(["file", "directory"]);
490
527
  instancePathPickerRequestSchema = z.object({
491
528
  selectionType: instancePathPickerSelectionTypeSchema