@openspecui/core 3.11.1 → 3.11.2

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 (31) hide show
  1. package/dist/{document-translation-Dnl1lz2K.mjs → document-translation-BTEG-uW_.mjs} +5 -1
  2. package/dist/{document-translation-AlZtjOt5.d.mts → document-translation-EMIQf5dw.d.mts} +72 -25
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/index.d.mts +155 -55
  6. package/dist/index.mjs +229 -6
  7. package/dist/{local-download-profiles-DISrU0mw.d.mts → local-download-profiles-CSXKbamv.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-gGjGaYsF.d.mts → notifications-Ct6rtBwb.d.mts} +16 -16
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-BojcJ9zl.d.mts → openspec-projection-DrTZ0P31.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-BdyGTVs_.d.mts → opsx-entity-CIB-Wi0n.d.mts} +7 -7
  14. package/dist/opsx-entity.d.mts +2 -2
  15. package/dist/{opsx-schema-detail-Cf8YIflR.d.mts → opsx-schema-detail-Cjoesix_.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DV6yABO9.d.mts → schemas-DeEkRkAH.d.mts} +124 -124
  18. package/dist/{sounds-C906qHTJ.d.mts → sounds-BaxOUgWE.d.mts} +9 -9
  19. package/dist/sounds.d.mts +1 -1
  20. package/dist/{terminal-audio-D6dE8O1_.d.mts → terminal-audio-v3YSYJKq.d.mts} +2 -2
  21. package/dist/terminal-audio.d.mts +2 -2
  22. package/dist/terminal-control.d.mts +2 -2
  23. package/dist/{terminal-invocation-Cz0vfgkw.d.mts → terminal-invocation-C5gqne5H.d.mts} +51 -51
  24. package/dist/terminal-invocation.d.mts +1 -1
  25. package/dist/{translation-language-pair-D6f5u70K.mjs → translation-language-pair-Cb4a0hG6.mjs} +2 -1
  26. package/dist/translation-language-pair.mjs +1 -1
  27. package/dist/{translator-tTXEGRdz.d.mts → translator-BtbU7rjR.d.mts} +740 -126
  28. package/dist/{translator-B0T5VL9k.mjs → translator-yHmEiuRX.mjs} +143 -7
  29. package/dist/translator.d.mts +2 -2
  30. package/dist/translator.mjs +2 -2
  31. package/package.json +1 -1
@@ -23,7 +23,7 @@ declare const LEGACY_SOUND_ID_MAP: {
23
23
  readonly pulse: "builtin:Tink";
24
24
  };
25
25
  declare function normalizeLegacySoundId(value: unknown): unknown;
26
- declare const SoundConfigIdSchema: z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"silent">, z.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, z.ZodType<`custom:${string}`, z.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Tink" | "builtin:Blow" | "builtin:Basso" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | `custom:${string}`, unknown>;
26
+ declare const SoundConfigIdSchema: z.ZodEffects<z.ZodUnion<[z.ZodLiteral<"silent">, z.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, z.ZodType<`custom:${string}`, z.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Basso" | "builtin:Blow" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | "builtin:Tink" | `custom:${string}`, unknown>;
27
27
  declare const SoundVolumeSchema: z.ZodDefault<z.ZodNumber>;
28
28
  type SoundVolume = z.infer<typeof SoundVolumeSchema>;
29
29
  interface BuiltinSoundOption {
@@ -41,19 +41,19 @@ declare const CustomSoundMetadataSchema: z.ZodObject<{
41
41
  createdAt: z.ZodNumber;
42
42
  updatedAt: z.ZodNumber;
43
43
  }, "strip", z.ZodTypeAny, {
44
- createdAt: number;
45
44
  id: string;
45
+ updatedAt: number;
46
46
  name: string;
47
47
  mime: string;
48
48
  size: number;
49
- updatedAt: number;
50
- }, {
51
49
  createdAt: number;
50
+ }, {
52
51
  id: string;
52
+ updatedAt: number;
53
53
  name: string;
54
54
  mime: string;
55
55
  size: number;
56
- updatedAt: number;
56
+ createdAt: number;
57
57
  }>;
58
58
  type CustomSoundMetadata = z.infer<typeof CustomSoundMetadataSchema>;
59
59
  declare const CustomSoundMetadataFileSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -64,19 +64,19 @@ declare const CustomSoundMetadataFileSchema: z.ZodRecord<z.ZodString, z.ZodObjec
64
64
  createdAt: z.ZodNumber;
65
65
  updatedAt: z.ZodNumber;
66
66
  }, "strip", z.ZodTypeAny, {
67
- createdAt: number;
68
67
  id: string;
68
+ updatedAt: number;
69
69
  name: string;
70
70
  mime: string;
71
71
  size: number;
72
- updatedAt: number;
73
- }, {
74
72
  createdAt: number;
73
+ }, {
75
74
  id: string;
75
+ updatedAt: number;
76
76
  name: string;
77
77
  mime: string;
78
78
  size: number;
79
- updatedAt: number;
79
+ createdAt: number;
80
80
  }>>;
81
81
  type CustomSoundMetadataFile = z.infer<typeof CustomSoundMetadataFileSchema>;
82
82
  declare function soundIdFromCustomHash(hash: CustomSoundHash): CustomSoundId;
package/dist/sounds.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as SoundVolume, D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, _ as DEFAULT_SOUND_VOLUME, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, w as SoundVolumeSchema, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-C906qHTJ.mjs";
1
+ import { C as SoundVolume, D as normalizeLegacySoundId, E as getBuiltinSoundUrl, O as soundIdFromCustomHash, S as SoundIdSchema, T as customHashFromSoundId, _ as DEFAULT_SOUND_VOLUME, a as BuiltinSoundOption, b as SoundConfigIdSchema, c as CustomSoundHashSchema, d as CustomSoundMetadata, f as CustomSoundMetadataFile, g as DEFAULT_NOTIFICATION_SOUND_ID, h as DEFAULT_BELL_SOUND_ID, i as BuiltinSoundIdSchema, l as CustomSoundId, m as CustomSoundMetadataSchema, n as BUILTIN_SOUND_OPTIONS, o as CUSTOM_SOUND_ADD_VALUE, p as CustomSoundMetadataFileSchema, r as BuiltinSoundId, s as CustomSoundHash, t as BUILTIN_SOUND_IDS, u as CustomSoundIdSchema, v as LEGACY_SOUND_ID_MAP, w as SoundVolumeSchema, x as SoundId, y as SILENT_SOUND_ID } from "./sounds-BaxOUgWE.mjs";
2
2
  export { BUILTIN_SOUND_IDS, BUILTIN_SOUND_OPTIONS, BuiltinSoundId, BuiltinSoundIdSchema, BuiltinSoundOption, CUSTOM_SOUND_ADD_VALUE, CustomSoundHash, CustomSoundHashSchema, CustomSoundId, CustomSoundIdSchema, CustomSoundMetadata, CustomSoundMetadataFile, CustomSoundMetadataFileSchema, CustomSoundMetadataSchema, DEFAULT_BELL_SOUND_ID, DEFAULT_NOTIFICATION_SOUND_ID, DEFAULT_SOUND_VOLUME, LEGACY_SOUND_ID_MAP, SILENT_SOUND_ID, SoundConfigIdSchema, SoundId, SoundIdSchema, SoundVolume, SoundVolumeSchema, customHashFromSoundId, getBuiltinSoundUrl, normalizeLegacySoundId, soundIdFromCustomHash };
@@ -1,9 +1,9 @@
1
- import { x as SoundId } from "./sounds-C906qHTJ.mjs";
1
+ import { x as SoundId } from "./sounds-BaxOUgWE.mjs";
2
2
  import * as zod0 from "zod";
3
3
 
4
4
  //#region src/terminal-audio.d.ts
5
5
  declare const TERMINAL_BELL_SOUND_VALUES: readonly ["silent", "bell", "soft", "clear", "pulse"];
6
- declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Tink" | "builtin:Blow" | "builtin:Basso" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | `custom:${string}`, unknown>;
6
+ declare const TerminalBellSoundSchema: zod0.ZodEffects<zod0.ZodUnion<[zod0.ZodLiteral<"silent">, zod0.ZodEnum<["builtin:Basso", "builtin:Blow", "builtin:Bottle", "builtin:Frog", "builtin:Funk", "builtin:Glass", "builtin:Hero", "builtin:Morse", "builtin:Ping", "builtin:Pop", "builtin:Purr", "builtin:Sosumi", "builtin:Submarine", "builtin:Tink"]>, zod0.ZodType<`custom:${string}`, zod0.ZodTypeDef, `custom:${string}`>]>, "silent" | "builtin:Basso" | "builtin:Blow" | "builtin:Bottle" | "builtin:Frog" | "builtin:Funk" | "builtin:Glass" | "builtin:Hero" | "builtin:Morse" | "builtin:Ping" | "builtin:Pop" | "builtin:Purr" | "builtin:Sosumi" | "builtin:Submarine" | "builtin:Tink" | `custom:${string}`, unknown>;
7
7
  type TerminalBellSound = SoundId;
8
8
  declare const TERMINAL_BELL_SOUND_OPTIONS: readonly {
9
9
  id: TerminalBellSound;
@@ -1,3 +1,3 @@
1
- import "./sounds-C906qHTJ.mjs";
2
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-D6dE8O1_.mjs";
1
+ import "./sounds-BaxOUgWE.mjs";
2
+ import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-v3YSYJKq.mjs";
3
3
  export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSound, TerminalBellSoundSchema };
@@ -1,3 +1,3 @@
1
- import "./sounds-C906qHTJ.mjs";
2
- import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-gGjGaYsF.mjs";
1
+ import "./sounds-BaxOUgWE.mjs";
2
+ import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-Ct6rtBwb.mjs";
3
3
  export { TerminalControlEvent, TerminalControlParseResult, TerminalControlParser, TerminalNotificationProtocol, TerminalProgressState, TerminalPromptState, TerminalTitleTarget, terminalNotificationEventToPublishInput };
@@ -14,9 +14,9 @@ declare const PtySessionInfoSchema: z.ZodObject<{
14
14
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
- title: string;
18
17
  command: string;
19
18
  args: string[];
19
+ title: string;
20
20
  platform: "windows" | "macos" | "common";
21
21
  exitCode: number | null;
22
22
  isExited: boolean;
@@ -24,9 +24,9 @@ declare const PtySessionInfoSchema: z.ZodObject<{
24
24
  closeCallbackUrl?: string | Record<string, string> | undefined;
25
25
  }, {
26
26
  id: string;
27
- title: string;
28
27
  command: string;
29
28
  args: string[];
29
+ title: string;
30
30
  platform: "windows" | "macos" | "common";
31
31
  exitCode: number | null;
32
32
  isExited: boolean;
@@ -316,9 +316,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
316
316
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  id: string;
319
- title: string;
320
319
  command: string;
321
320
  args: string[];
321
+ title: string;
322
322
  platform: "windows" | "macos" | "common";
323
323
  exitCode: number | null;
324
324
  isExited: boolean;
@@ -326,9 +326,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
326
326
  closeCallbackUrl?: string | Record<string, string> | undefined;
327
327
  }, {
328
328
  id: string;
329
- title: string;
330
329
  command: string;
331
330
  args: string[];
331
+ title: string;
332
332
  platform: "windows" | "macos" | "common";
333
333
  exitCode: number | null;
334
334
  isExited: boolean;
@@ -339,9 +339,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
339
339
  type: "list";
340
340
  sessions: {
341
341
  id: string;
342
- title: string;
343
342
  command: string;
344
343
  args: string[];
344
+ title: string;
345
345
  platform: "windows" | "macos" | "common";
346
346
  exitCode: number | null;
347
347
  isExited: boolean;
@@ -352,9 +352,9 @@ declare const PtyListResponseSchema: z.ZodObject<{
352
352
  type: "list";
353
353
  sessions: {
354
354
  id: string;
355
- title: string;
356
355
  command: string;
357
356
  args: string[];
357
+ title: string;
358
358
  platform: "windows" | "macos" | "common";
359
359
  exitCode: number | null;
360
360
  isExited: boolean;
@@ -463,12 +463,12 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
463
463
  value: number | null;
464
464
  type: "progress";
465
465
  sessionId: string;
466
- state: "set" | "clear" | "warning" | "error" | "indeterminate";
466
+ state: "clear" | "set" | "error" | "warning" | "indeterminate";
467
467
  }, {
468
468
  value: number | null;
469
469
  type: "progress";
470
470
  sessionId: string;
471
- state: "set" | "clear" | "warning" | "error" | "indeterminate";
471
+ state: "clear" | "set" | "error" | "warning" | "indeterminate";
472
472
  }>, z.ZodObject<{
473
473
  type: z.ZodLiteral<"prompt-state">;
474
474
  sessionId: z.ZodString;
@@ -522,9 +522,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
522
522
  closeCallbackUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
523
523
  }, "strip", z.ZodTypeAny, {
524
524
  id: string;
525
- title: string;
526
525
  command: string;
527
526
  args: string[];
527
+ title: string;
528
528
  platform: "windows" | "macos" | "common";
529
529
  exitCode: number | null;
530
530
  isExited: boolean;
@@ -532,9 +532,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
532
532
  closeCallbackUrl?: string | Record<string, string> | undefined;
533
533
  }, {
534
534
  id: string;
535
- title: string;
536
535
  command: string;
537
536
  args: string[];
537
+ title: string;
538
538
  platform: "windows" | "macos" | "common";
539
539
  exitCode: number | null;
540
540
  isExited: boolean;
@@ -545,9 +545,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
545
545
  type: "list";
546
546
  sessions: {
547
547
  id: string;
548
- title: string;
549
548
  command: string;
550
549
  args: string[];
550
+ title: string;
551
551
  platform: "windows" | "macos" | "common";
552
552
  exitCode: number | null;
553
553
  isExited: boolean;
@@ -558,9 +558,9 @@ declare const PtyServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
558
558
  type: "list";
559
559
  sessions: {
560
560
  id: string;
561
- title: string;
562
561
  command: string;
563
562
  args: string[];
563
+ title: string;
564
564
  platform: "windows" | "macos" | "common";
565
565
  exitCode: number | null;
566
566
  isExited: boolean;
@@ -633,8 +633,8 @@ declare const TerminalCommandFieldSchema: z.ZodObject<{
633
633
  }, "strip", z.ZodTypeAny, {
634
634
  options: string[];
635
635
  type: "boolean" | "text" | "textarea" | "select";
636
- id: string;
637
636
  required: boolean;
637
+ id: string;
638
638
  label: string;
639
639
  advanced: boolean;
640
640
  description?: string | undefined;
@@ -698,14 +698,14 @@ declare const TerminalCommandJsonSchemaPropertySchema: z.ZodObject<{
698
698
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
699
699
  }, "strip", z.ZodTypeAny, {
700
700
  type: "string" | "boolean";
701
- title?: string | undefined;
702
701
  description?: string | undefined;
702
+ title?: string | undefined;
703
703
  default?: string | boolean | undefined;
704
704
  enum?: string[] | undefined;
705
705
  }, {
706
706
  type?: "string" | "boolean" | undefined;
707
- title?: string | undefined;
708
707
  description?: string | undefined;
708
+ title?: string | undefined;
709
709
  default?: string | boolean | undefined;
710
710
  enum?: string[] | undefined;
711
711
  }>;
@@ -720,14 +720,14 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
720
720
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
721
721
  }, "strip", z.ZodTypeAny, {
722
722
  type: "string" | "boolean";
723
- title?: string | undefined;
724
723
  description?: string | undefined;
724
+ title?: string | undefined;
725
725
  default?: string | boolean | undefined;
726
726
  enum?: string[] | undefined;
727
727
  }, {
728
728
  type?: "string" | "boolean" | undefined;
729
- title?: string | undefined;
730
729
  description?: string | undefined;
730
+ title?: string | undefined;
731
731
  default?: string | boolean | undefined;
732
732
  enum?: string[] | undefined;
733
733
  }>>>;
@@ -737,8 +737,8 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
737
737
  required: string[];
738
738
  properties: Record<string, {
739
739
  type: "string" | "boolean";
740
- title?: string | undefined;
741
740
  description?: string | undefined;
741
+ title?: string | undefined;
742
742
  default?: string | boolean | undefined;
743
743
  enum?: string[] | undefined;
744
744
  }>;
@@ -747,8 +747,8 @@ declare const TerminalCommandJsonSchemaSchema: z.ZodObject<{
747
747
  required?: string[] | undefined;
748
748
  properties?: Record<string, {
749
749
  type?: "string" | "boolean" | undefined;
750
- title?: string | undefined;
751
750
  description?: string | undefined;
751
+ title?: string | undefined;
752
752
  default?: string | boolean | undefined;
753
753
  enum?: string[] | undefined;
754
754
  }> | undefined;
@@ -765,14 +765,14 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
765
765
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
766
766
  }, "strip", z.ZodTypeAny, {
767
767
  type: "string" | "boolean";
768
- title?: string | undefined;
769
768
  description?: string | undefined;
769
+ title?: string | undefined;
770
770
  default?: string | boolean | undefined;
771
771
  enum?: string[] | undefined;
772
772
  }, {
773
773
  type?: "string" | "boolean" | undefined;
774
- title?: string | undefined;
775
774
  description?: string | undefined;
775
+ title?: string | undefined;
776
776
  default?: string | boolean | undefined;
777
777
  enum?: string[] | undefined;
778
778
  }>>>;
@@ -782,8 +782,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
782
782
  required: string[];
783
783
  properties: Record<string, {
784
784
  type: "string" | "boolean";
785
- title?: string | undefined;
786
785
  description?: string | undefined;
786
+ title?: string | undefined;
787
787
  default?: string | boolean | undefined;
788
788
  enum?: string[] | undefined;
789
789
  }>;
@@ -792,8 +792,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
792
792
  required?: string[] | undefined;
793
793
  properties?: Record<string, {
794
794
  type?: "string" | "boolean" | undefined;
795
- title?: string | undefined;
796
795
  description?: string | undefined;
796
+ title?: string | undefined;
797
797
  default?: string | boolean | undefined;
798
798
  enum?: string[] | undefined;
799
799
  }> | undefined;
@@ -805,8 +805,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
805
805
  required: string[];
806
806
  properties: Record<string, {
807
807
  type: "string" | "boolean";
808
- title?: string | undefined;
809
808
  description?: string | undefined;
809
+ title?: string | undefined;
810
810
  default?: string | boolean | undefined;
811
811
  enum?: string[] | undefined;
812
812
  }>;
@@ -818,8 +818,8 @@ declare const TerminalCommandParametersSchema: z.ZodObject<{
818
818
  required?: string[] | undefined;
819
819
  properties?: Record<string, {
820
820
  type?: "string" | "boolean" | undefined;
821
- title?: string | undefined;
822
821
  description?: string | undefined;
822
+ title?: string | undefined;
823
823
  default?: string | boolean | undefined;
824
824
  enum?: string[] | undefined;
825
825
  }> | undefined;
@@ -1000,8 +1000,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
1001
  options: string[];
1002
1002
  type: "boolean" | "text" | "textarea" | "select";
1003
- id: string;
1004
1003
  required: boolean;
1004
+ id: string;
1005
1005
  label: string;
1006
1006
  advanced: boolean;
1007
1007
  description?: string | undefined;
@@ -1029,14 +1029,14 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1029
1029
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1030
1030
  }, "strip", z.ZodTypeAny, {
1031
1031
  type: "string" | "boolean";
1032
- title?: string | undefined;
1033
1032
  description?: string | undefined;
1033
+ title?: string | undefined;
1034
1034
  default?: string | boolean | undefined;
1035
1035
  enum?: string[] | undefined;
1036
1036
  }, {
1037
1037
  type?: "string" | "boolean" | undefined;
1038
- title?: string | undefined;
1039
1038
  description?: string | undefined;
1039
+ title?: string | undefined;
1040
1040
  default?: string | boolean | undefined;
1041
1041
  enum?: string[] | undefined;
1042
1042
  }>>>;
@@ -1046,8 +1046,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1046
1046
  required: string[];
1047
1047
  properties: Record<string, {
1048
1048
  type: "string" | "boolean";
1049
- title?: string | undefined;
1050
1049
  description?: string | undefined;
1050
+ title?: string | undefined;
1051
1051
  default?: string | boolean | undefined;
1052
1052
  enum?: string[] | undefined;
1053
1053
  }>;
@@ -1056,8 +1056,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1056
1056
  required?: string[] | undefined;
1057
1057
  properties?: Record<string, {
1058
1058
  type?: "string" | "boolean" | undefined;
1059
- title?: string | undefined;
1060
1059
  description?: string | undefined;
1060
+ title?: string | undefined;
1061
1061
  default?: string | boolean | undefined;
1062
1062
  enum?: string[] | undefined;
1063
1063
  }> | undefined;
@@ -1069,8 +1069,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1069
1069
  required: string[];
1070
1070
  properties: Record<string, {
1071
1071
  type: "string" | "boolean";
1072
- title?: string | undefined;
1073
1072
  description?: string | undefined;
1073
+ title?: string | undefined;
1074
1074
  default?: string | boolean | undefined;
1075
1075
  enum?: string[] | undefined;
1076
1076
  }>;
@@ -1082,8 +1082,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1082
1082
  required?: string[] | undefined;
1083
1083
  properties?: Record<string, {
1084
1084
  type?: "string" | "boolean" | undefined;
1085
- title?: string | undefined;
1086
1085
  description?: string | undefined;
1086
+ title?: string | undefined;
1087
1087
  default?: string | boolean | undefined;
1088
1088
  enum?: string[] | undefined;
1089
1089
  }> | undefined;
@@ -1192,8 +1192,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1192
1192
  fields: {
1193
1193
  options: string[];
1194
1194
  type: "boolean" | "text" | "textarea" | "select";
1195
- id: string;
1196
1195
  required: boolean;
1196
+ id: string;
1197
1197
  label: string;
1198
1198
  advanced: boolean;
1199
1199
  description?: string | undefined;
@@ -1207,8 +1207,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1207
1207
  required: string[];
1208
1208
  properties: Record<string, {
1209
1209
  type: "string" | "boolean";
1210
- title?: string | undefined;
1211
1210
  description?: string | undefined;
1211
+ title?: string | undefined;
1212
1212
  default?: string | boolean | undefined;
1213
1213
  enum?: string[] | undefined;
1214
1214
  }>;
@@ -1239,6 +1239,7 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1239
1239
  id: string;
1240
1240
  label: string;
1241
1241
  command: string;
1242
+ description?: string | undefined;
1242
1243
  source?: "custom" | "builtin" | undefined;
1243
1244
  args?: ({
1244
1245
  value: string;
@@ -1253,7 +1254,6 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1253
1254
  fieldId: string;
1254
1255
  flag: string;
1255
1256
  })[] | undefined;
1256
- description?: string | undefined;
1257
1257
  fields?: {
1258
1258
  type: "boolean" | "text" | "textarea" | "select";
1259
1259
  id: string;
@@ -1271,8 +1271,8 @@ declare const TerminalSpawnCommandSchema: z.ZodObject<{
1271
1271
  required?: string[] | undefined;
1272
1272
  properties?: Record<string, {
1273
1273
  type?: "string" | "boolean" | undefined;
1274
- title?: string | undefined;
1275
1274
  description?: string | undefined;
1275
+ title?: string | undefined;
1276
1276
  default?: string | boolean | undefined;
1277
1277
  enum?: string[] | undefined;
1278
1278
  }> | undefined;
@@ -1380,8 +1380,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1380
1380
  }, "strip", z.ZodTypeAny, {
1381
1381
  options: string[];
1382
1382
  type: "boolean" | "text" | "textarea" | "select";
1383
- id: string;
1384
1383
  required: boolean;
1384
+ id: string;
1385
1385
  label: string;
1386
1386
  advanced: boolean;
1387
1387
  description?: string | undefined;
@@ -1409,14 +1409,14 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1409
1409
  enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1410
1410
  }, "strip", z.ZodTypeAny, {
1411
1411
  type: "string" | "boolean";
1412
- title?: string | undefined;
1413
1412
  description?: string | undefined;
1413
+ title?: string | undefined;
1414
1414
  default?: string | boolean | undefined;
1415
1415
  enum?: string[] | undefined;
1416
1416
  }, {
1417
1417
  type?: "string" | "boolean" | undefined;
1418
- title?: string | undefined;
1419
1418
  description?: string | undefined;
1419
+ title?: string | undefined;
1420
1420
  default?: string | boolean | undefined;
1421
1421
  enum?: string[] | undefined;
1422
1422
  }>>>;
@@ -1426,8 +1426,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1426
1426
  required: string[];
1427
1427
  properties: Record<string, {
1428
1428
  type: "string" | "boolean";
1429
- title?: string | undefined;
1430
1429
  description?: string | undefined;
1430
+ title?: string | undefined;
1431
1431
  default?: string | boolean | undefined;
1432
1432
  enum?: string[] | undefined;
1433
1433
  }>;
@@ -1436,8 +1436,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1436
1436
  required?: string[] | undefined;
1437
1437
  properties?: Record<string, {
1438
1438
  type?: "string" | "boolean" | undefined;
1439
- title?: string | undefined;
1440
1439
  description?: string | undefined;
1440
+ title?: string | undefined;
1441
1441
  default?: string | boolean | undefined;
1442
1442
  enum?: string[] | undefined;
1443
1443
  }> | undefined;
@@ -1449,8 +1449,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1449
1449
  required: string[];
1450
1450
  properties: Record<string, {
1451
1451
  type: "string" | "boolean";
1452
- title?: string | undefined;
1453
1452
  description?: string | undefined;
1453
+ title?: string | undefined;
1454
1454
  default?: string | boolean | undefined;
1455
1455
  enum?: string[] | undefined;
1456
1456
  }>;
@@ -1462,8 +1462,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1462
1462
  required?: string[] | undefined;
1463
1463
  properties?: Record<string, {
1464
1464
  type?: "string" | "boolean" | undefined;
1465
- title?: string | undefined;
1466
1465
  description?: string | undefined;
1466
+ title?: string | undefined;
1467
1467
  default?: string | boolean | undefined;
1468
1468
  enum?: string[] | undefined;
1469
1469
  }> | undefined;
@@ -1572,8 +1572,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1572
1572
  fields: {
1573
1573
  options: string[];
1574
1574
  type: "boolean" | "text" | "textarea" | "select";
1575
- id: string;
1576
1575
  required: boolean;
1576
+ id: string;
1577
1577
  label: string;
1578
1578
  advanced: boolean;
1579
1579
  description?: string | undefined;
@@ -1587,8 +1587,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1587
1587
  required: string[];
1588
1588
  properties: Record<string, {
1589
1589
  type: "string" | "boolean";
1590
- title?: string | undefined;
1591
1590
  description?: string | undefined;
1591
+ title?: string | undefined;
1592
1592
  default?: string | boolean | undefined;
1593
1593
  enum?: string[] | undefined;
1594
1594
  }>;
@@ -1619,6 +1619,7 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1619
1619
  id: string;
1620
1620
  label: string;
1621
1621
  command: string;
1622
+ description?: string | undefined;
1622
1623
  source?: "custom" | "builtin" | undefined;
1623
1624
  args?: ({
1624
1625
  value: string;
@@ -1633,7 +1634,6 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1633
1634
  fieldId: string;
1634
1635
  flag: string;
1635
1636
  })[] | undefined;
1636
- description?: string | undefined;
1637
1637
  fields?: {
1638
1638
  type: "boolean" | "text" | "textarea" | "select";
1639
1639
  id: string;
@@ -1651,8 +1651,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1651
1651
  required?: string[] | undefined;
1652
1652
  properties?: Record<string, {
1653
1653
  type?: "string" | "boolean" | undefined;
1654
- title?: string | undefined;
1655
1654
  description?: string | undefined;
1655
+ title?: string | undefined;
1656
1656
  default?: string | boolean | undefined;
1657
1657
  enum?: string[] | undefined;
1658
1658
  }> | undefined;
@@ -1710,8 +1710,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1710
1710
  fields: {
1711
1711
  options: string[];
1712
1712
  type: "boolean" | "text" | "textarea" | "select";
1713
- id: string;
1714
1713
  required: boolean;
1714
+ id: string;
1715
1715
  label: string;
1716
1716
  advanced: boolean;
1717
1717
  description?: string | undefined;
@@ -1725,8 +1725,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1725
1725
  required: string[];
1726
1726
  properties: Record<string, {
1727
1727
  type: "string" | "boolean";
1728
- title?: string | undefined;
1729
1728
  description?: string | undefined;
1729
+ title?: string | undefined;
1730
1730
  default?: string | boolean | undefined;
1731
1731
  enum?: string[] | undefined;
1732
1732
  }>;
@@ -1769,6 +1769,7 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1769
1769
  id: string;
1770
1770
  label: string;
1771
1771
  command: string;
1772
+ description?: string | undefined;
1772
1773
  source?: "custom" | "builtin" | undefined;
1773
1774
  args?: ({
1774
1775
  value: string;
@@ -1783,7 +1784,6 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1783
1784
  fieldId: string;
1784
1785
  flag: string;
1785
1786
  })[] | undefined;
1786
- description?: string | undefined;
1787
1787
  fields?: {
1788
1788
  type: "boolean" | "text" | "textarea" | "select";
1789
1789
  id: string;
@@ -1801,8 +1801,8 @@ declare const TerminalInvocationSettingsSchema: z.ZodObject<{
1801
1801
  required?: string[] | undefined;
1802
1802
  properties?: Record<string, {
1803
1803
  type?: "string" | "boolean" | undefined;
1804
- title?: string | undefined;
1805
1804
  description?: string | undefined;
1805
+ title?: string | undefined;
1806
1806
  default?: string | boolean | undefined;
1807
1807
  enum?: string[] | undefined;
1808
1808
  }> | undefined;
@@ -1,2 +1,2 @@
1
- import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-Cz0vfgkw.mjs";
1
+ import { A as renderTerminalSpawnCommand, C as TerminalSpawnCommand, D as getTerminalCommandParameters, E as getTerminalCommandDefaultValues, M as resolveTerminalShellDefaults, O as quoteTerminalShellArg, S as TerminalShellQuoteStyleSchema, T as fieldsToTerminalCommandParameters, _ as TerminalShellDefaults, a as TerminalCommandBuilder, b as TerminalShellProfileSchema, c as TerminalCommandFieldSchema, d as TerminalCommandJsonSchema, f as TerminalCommandJsonSchemaProperty, g as TerminalInvocationSettingsSchema, h as TerminalInvocationSettings, i as TerminalCommandArgument, j as renderTerminalSpawnCommandLine, k as renderTerminalCommandArgs, l as TerminalCommandFieldValue, m as TerminalCommandRenderResult, n as TERMINAL_COMMAND_FIELD_TYPE_VALUES, o as TerminalCommandBuilderPart, p as TerminalCommandParameters, r as TERMINAL_SHELL_QUOTE_STYLE_VALUES, s as TerminalCommandField, t as BUILTIN_TERMINAL_SPAWN_COMMANDS, u as TerminalCommandFieldValues, v as TerminalShellEnv, w as TerminalSpawnCommandSchema, x as TerminalShellQuoteStyle, y as TerminalShellProfile } from "./terminal-invocation-C5gqne5H.mjs";
2
2
  export { BUILTIN_TERMINAL_SPAWN_COMMANDS, TERMINAL_COMMAND_FIELD_TYPE_VALUES, TERMINAL_SHELL_QUOTE_STYLE_VALUES, TerminalCommandArgument, TerminalCommandBuilder, TerminalCommandBuilderPart, TerminalCommandField, TerminalCommandFieldSchema, TerminalCommandFieldValue, TerminalCommandFieldValues, TerminalCommandJsonSchema, TerminalCommandJsonSchemaProperty, TerminalCommandParameters, TerminalCommandRenderResult, TerminalInvocationSettings, TerminalInvocationSettingsSchema, TerminalShellDefaults, TerminalShellEnv, TerminalShellProfile, TerminalShellProfileSchema, TerminalShellQuoteStyle, TerminalShellQuoteStyleSchema, TerminalSpawnCommand, TerminalSpawnCommandSchema, fieldsToTerminalCommandParameters, getTerminalCommandDefaultValues, getTerminalCommandParameters, quoteTerminalShellArg, renderTerminalCommandArgs, renderTerminalSpawnCommand, renderTerminalSpawnCommandLine, resolveTerminalShellDefaults };
@@ -1,7 +1,8 @@
1
1
  //#region src/translation-language-pair.ts
2
2
  const OPUS_MT_DIRECTION_PATTERN = /^opus-mt-([a-z]{2,3})-([a-z]{2,3})$/i;
3
+ const OPUS_MT_CT2_SUFFIX_PATTERN = /-(?:ct2|ctranslate2)(?:-[a-z0-9]+)*$/i;
3
4
  function inferLocalDirectionalModelLanguagePair(model) {
4
- const modelName = model?.trim().split("/").pop();
5
+ const modelName = model?.trim().split("/").pop()?.replace(OPUS_MT_CT2_SUFFIX_PATTERN, "");
5
6
  if (!modelName) return null;
6
7
  const match = OPUS_MT_DIRECTION_PATTERN.exec(modelName);
7
8
  if (!match) return null;
@@ -1,3 +1,3 @@
1
- import { n as inferLocalDirectionalModelLanguagePair, t as checkLocalDirectionalModelLanguagePair } from "./translation-language-pair-D6f5u70K.mjs";
1
+ import { n as inferLocalDirectionalModelLanguagePair, t as checkLocalDirectionalModelLanguagePair } from "./translation-language-pair-Cb4a0hG6.mjs";
2
2
 
3
3
  export { checkLocalDirectionalModelLanguagePair, inferLocalDirectionalModelLanguagePair };