@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
@@ -1,13 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/translator.d.ts
4
- declare const TRANSLATOR_CONTRACT_VERSION = 2;
5
- declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "openai"];
6
- declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "openai"]>;
4
+ declare const TRANSLATOR_CONTRACT_VERSION = 3;
5
+ declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "openai"];
6
+ declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
7
7
  type TranslationEngineId = z.infer<typeof TranslationEngineIdSchema>;
8
8
  declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId;
9
- declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "openai"];
10
- declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "openai"]>;
9
+ declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2'>;
10
+ type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'local-ct2'>;
11
+ declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "openai"];
12
+ declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "openai"]>;
11
13
  type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
12
14
  interface TranslatorOptions {
13
15
  instructions?: string;
@@ -203,7 +205,7 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
203
205
  sourceUrl?: string | undefined;
204
206
  raw?: unknown;
205
207
  }[];
206
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
208
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
207
209
  error?: string | undefined;
208
210
  description?: string | undefined;
209
211
  profile?: string | undefined;
@@ -231,7 +233,7 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
231
233
  sourceUrl?: string | undefined;
232
234
  raw?: unknown;
233
235
  }[];
234
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
236
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
235
237
  error?: string | undefined;
236
238
  description?: string | undefined;
237
239
  profile?: string | undefined;
@@ -453,14 +455,14 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
453
455
  }>>>;
454
456
  groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
455
457
  }, "strip", z.ZodTypeAny, {
456
- updatedAt: number;
457
- source: "huggingface";
458
458
  revision: string;
459
459
  commitHash: string;
460
460
  shortCommitHash: string;
461
461
  modelId: string;
462
+ source: "huggingface";
462
463
  endpoint: string;
463
464
  fetchedAt: number;
465
+ updatedAt: number;
464
466
  groups: Record<string, {
465
467
  id: string;
466
468
  label: string;
@@ -487,13 +489,13 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
487
489
  groupOrder: string[];
488
490
  raw?: unknown;
489
491
  }, {
490
- updatedAt: number;
491
- source: "huggingface";
492
492
  revision: string;
493
493
  commitHash: string;
494
494
  shortCommitHash: string;
495
495
  modelId: string;
496
+ source: "huggingface";
496
497
  fetchedAt: number;
498
+ updatedAt: number;
497
499
  raw?: unknown;
498
500
  endpoint?: string | undefined;
499
501
  groups?: Record<string, {
@@ -531,20 +533,20 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
531
533
  updatedAt: z.ZodOptional<z.ZodNumber>;
532
534
  error: z.ZodOptional<z.ZodString>;
533
535
  }, "strip", z.ZodTypeAny, {
536
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
534
537
  path: string;
535
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
536
538
  required: boolean;
537
- updatedAt?: number | undefined;
538
539
  error?: string | undefined;
539
540
  sizeBytes?: number | undefined;
541
+ updatedAt?: number | undefined;
540
542
  downloadedBytes?: number | undefined;
541
543
  }, {
542
544
  path: string;
543
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
544
- updatedAt?: number | undefined;
545
- required?: boolean | undefined;
545
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
546
546
  error?: string | undefined;
547
547
  sizeBytes?: number | undefined;
548
+ required?: boolean | undefined;
549
+ updatedAt?: number | undefined;
548
550
  downloadedBytes?: number | undefined;
549
551
  }>;
550
552
  type LocalModelLifecycleFileState = z.infer<typeof LocalModelLifecycleFileStateSchema>;
@@ -569,47 +571,46 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
569
571
  updatedAt: z.ZodOptional<z.ZodNumber>;
570
572
  error: z.ZodOptional<z.ZodString>;
571
573
  }, "strip", z.ZodTypeAny, {
574
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
572
575
  path: string;
573
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
574
576
  required: boolean;
575
- updatedAt?: number | undefined;
576
577
  error?: string | undefined;
577
578
  sizeBytes?: number | undefined;
579
+ updatedAt?: number | undefined;
578
580
  downloadedBytes?: number | undefined;
579
581
  }, {
580
582
  path: string;
581
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
582
- updatedAt?: number | undefined;
583
- required?: boolean | undefined;
583
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
584
584
  error?: string | undefined;
585
585
  sizeBytes?: number | undefined;
586
+ required?: boolean | undefined;
587
+ updatedAt?: number | undefined;
586
588
  downloadedBytes?: number | undefined;
587
589
  }>, "many">>;
588
590
  }, "strip", z.ZodTypeAny, {
589
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
590
- groupId: string;
591
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
591
592
  resumable: boolean;
592
593
  files: {
594
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
593
595
  path: string;
594
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
595
596
  required: boolean;
596
- updatedAt?: number | undefined;
597
597
  error?: string | undefined;
598
598
  sizeBytes?: number | undefined;
599
+ updatedAt?: number | undefined;
599
600
  downloadedBytes?: number | undefined;
600
601
  }[];
601
- updatedAt?: number | undefined;
602
+ groupId: string;
602
603
  error?: string | undefined;
603
604
  baseGroupId?: string | undefined;
604
605
  rootDir?: string | undefined;
605
606
  progress?: number | undefined;
606
607
  bytesDownloaded?: number | undefined;
607
608
  totalBytes?: number | undefined;
609
+ updatedAt?: number | undefined;
608
610
  installedAt?: number | undefined;
609
611
  }, {
610
612
  groupId: string;
611
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
612
- updatedAt?: number | undefined;
613
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
613
614
  error?: string | undefined;
614
615
  baseGroupId?: string | undefined;
615
616
  rootDir?: string | undefined;
@@ -619,13 +620,14 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
619
620
  resumable?: boolean | undefined;
620
621
  files?: {
621
622
  path: string;
622
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
623
- updatedAt?: number | undefined;
624
- required?: boolean | undefined;
623
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
625
624
  error?: string | undefined;
626
625
  sizeBytes?: number | undefined;
626
+ required?: boolean | undefined;
627
+ updatedAt?: number | undefined;
627
628
  downloadedBytes?: number | undefined;
628
629
  }[] | undefined;
630
+ updatedAt?: number | undefined;
629
631
  installedAt?: number | undefined;
630
632
  }>;
631
633
  type LocalModelLifecycleGroupState = z.infer<typeof LocalModelLifecycleGroupStateSchema>;
@@ -637,17 +639,17 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
637
639
  }, "strip", z.ZodTypeAny, {
638
640
  status: "error" | "idle" | "loading" | "ready";
639
641
  message?: string | undefined;
640
- updatedAt?: number | undefined;
641
642
  error?: string | undefined;
643
+ updatedAt?: number | undefined;
642
644
  }, {
643
- message?: string | undefined;
644
645
  status?: "error" | "idle" | "loading" | "ready" | undefined;
645
- updatedAt?: number | undefined;
646
+ message?: string | undefined;
646
647
  error?: string | undefined;
648
+ updatedAt?: number | undefined;
647
649
  }>;
648
650
  type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
649
651
  declare const LocalModelAssetLogSchema: z.ZodObject<{
650
- engineId: z.ZodLiteral<"local">;
652
+ engineId: z.ZodEnum<["local", "local-ct2"]>;
651
653
  modelId: z.ZodString;
652
654
  selectedGroupId: z.ZodOptional<z.ZodString>;
653
655
  groupId: z.ZodOptional<z.ZodString>;
@@ -673,14 +675,11 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
673
675
  }>, "many">>;
674
676
  updatedAt: z.ZodNumber;
675
677
  }, "strip", z.ZodTypeAny, {
678
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
676
679
  message: string;
677
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
678
- engineId: "local";
679
- updatedAt: number;
680
680
  modelId: string;
681
- selectedGroupId?: string | undefined;
682
- sessionId?: string | undefined;
683
- groupId?: string | undefined;
681
+ updatedAt: number;
682
+ engineId: "local" | "local-ct2";
684
683
  progress?: number | undefined;
685
684
  bytesDownloaded?: number | undefined;
686
685
  totalBytes?: number | undefined;
@@ -690,15 +689,15 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
690
689
  sizeBytes?: number | undefined;
691
690
  downloadedBytes?: number | undefined;
692
691
  }[] | undefined;
692
+ groupId?: string | undefined;
693
+ selectedGroupId?: string | undefined;
694
+ sessionId?: string | undefined;
693
695
  }, {
696
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
694
697
  message: string;
695
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
696
- engineId: "local";
697
- updatedAt: number;
698
698
  modelId: string;
699
- selectedGroupId?: string | undefined;
700
- sessionId?: string | undefined;
701
- groupId?: string | undefined;
699
+ updatedAt: number;
700
+ engineId: "local" | "local-ct2";
702
701
  progress?: number | undefined;
703
702
  bytesDownloaded?: number | undefined;
704
703
  totalBytes?: number | undefined;
@@ -708,6 +707,9 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
708
707
  sizeBytes?: number | undefined;
709
708
  downloadedBytes?: number | undefined;
710
709
  }[] | undefined;
710
+ groupId?: string | undefined;
711
+ selectedGroupId?: string | undefined;
712
+ sessionId?: string | undefined;
711
713
  }>;
712
714
  type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
713
715
  declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
@@ -798,7 +800,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
798
800
  sourceUrl?: string | undefined;
799
801
  raw?: unknown;
800
802
  }[];
801
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
803
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
802
804
  error?: string | undefined;
803
805
  description?: string | undefined;
804
806
  profile?: string | undefined;
@@ -826,7 +828,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
826
828
  sourceUrl?: string | undefined;
827
829
  raw?: unknown;
828
830
  }[];
829
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
831
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
830
832
  error?: string | undefined;
831
833
  description?: string | undefined;
832
834
  profile?: string | undefined;
@@ -852,7 +854,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
852
854
  raw?: unknown;
853
855
  }[];
854
856
  modelId: string;
855
- selectedGroupId?: string | undefined;
856
857
  profile?: string | undefined;
857
858
  estimatedTotalBytes?: number | undefined;
858
859
  groups?: {
@@ -869,7 +870,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
869
870
  sourceUrl?: string | undefined;
870
871
  raw?: unknown;
871
872
  }[];
872
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
873
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
873
874
  error?: string | undefined;
874
875
  description?: string | undefined;
875
876
  profile?: string | undefined;
@@ -884,6 +885,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
884
885
  totalBytes?: number | undefined;
885
886
  resumable?: boolean | undefined;
886
887
  }[] | undefined;
888
+ selectedGroupId?: string | undefined;
887
889
  }, {
888
890
  files: {
889
891
  path: string;
@@ -895,7 +897,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
895
897
  raw?: unknown;
896
898
  }[];
897
899
  modelId: string;
898
- selectedGroupId?: string | undefined;
899
900
  profile?: string | undefined;
900
901
  estimatedTotalBytes?: number | undefined;
901
902
  groups?: {
@@ -912,7 +913,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
912
913
  sourceUrl?: string | undefined;
913
914
  raw?: unknown;
914
915
  }[];
915
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
916
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
916
917
  error?: string | undefined;
917
918
  description?: string | undefined;
918
919
  profile?: string | undefined;
@@ -927,6 +928,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
927
928
  totalBytes?: number | undefined;
928
929
  resumable?: boolean | undefined;
929
930
  }[] | undefined;
931
+ selectedGroupId?: string | undefined;
930
932
  }>;
931
933
  type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
932
934
  declare const LocalModelAssetStateSchema: z.ZodObject<{
@@ -950,13 +952,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
950
952
  }, "strip", z.ZodTypeAny, {
951
953
  status: "error" | "idle" | "loading" | "ready";
952
954
  message?: string | undefined;
953
- updatedAt?: number | undefined;
954
955
  error?: string | undefined;
956
+ updatedAt?: number | undefined;
955
957
  }, {
956
- message?: string | undefined;
957
958
  status?: "error" | "idle" | "loading" | "ready" | undefined;
958
- updatedAt?: number | undefined;
959
+ message?: string | undefined;
959
960
  error?: string | undefined;
961
+ updatedAt?: number | undefined;
960
962
  }>>;
961
963
  profileManifest: z.ZodOptional<z.ZodObject<{
962
964
  modelId: z.ZodString;
@@ -1053,14 +1055,14 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1053
1055
  }>>>;
1054
1056
  groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1055
1057
  }, "strip", z.ZodTypeAny, {
1056
- updatedAt: number;
1057
- source: "huggingface";
1058
1058
  revision: string;
1059
1059
  commitHash: string;
1060
1060
  shortCommitHash: string;
1061
1061
  modelId: string;
1062
+ source: "huggingface";
1062
1063
  endpoint: string;
1063
1064
  fetchedAt: number;
1065
+ updatedAt: number;
1064
1066
  groups: Record<string, {
1065
1067
  id: string;
1066
1068
  label: string;
@@ -1087,13 +1089,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1087
1089
  groupOrder: string[];
1088
1090
  raw?: unknown;
1089
1091
  }, {
1090
- updatedAt: number;
1091
- source: "huggingface";
1092
1092
  revision: string;
1093
1093
  commitHash: string;
1094
1094
  shortCommitHash: string;
1095
1095
  modelId: string;
1096
+ source: "huggingface";
1096
1097
  fetchedAt: number;
1098
+ updatedAt: number;
1097
1099
  raw?: unknown;
1098
1100
  endpoint?: string | undefined;
1099
1101
  groups?: Record<string, {
@@ -1142,47 +1144,46 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1142
1144
  updatedAt: z.ZodOptional<z.ZodNumber>;
1143
1145
  error: z.ZodOptional<z.ZodString>;
1144
1146
  }, "strip", z.ZodTypeAny, {
1147
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1145
1148
  path: string;
1146
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1147
1149
  required: boolean;
1148
- updatedAt?: number | undefined;
1149
1150
  error?: string | undefined;
1150
1151
  sizeBytes?: number | undefined;
1152
+ updatedAt?: number | undefined;
1151
1153
  downloadedBytes?: number | undefined;
1152
1154
  }, {
1153
1155
  path: string;
1154
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1155
- updatedAt?: number | undefined;
1156
- required?: boolean | undefined;
1156
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1157
1157
  error?: string | undefined;
1158
1158
  sizeBytes?: number | undefined;
1159
+ required?: boolean | undefined;
1160
+ updatedAt?: number | undefined;
1159
1161
  downloadedBytes?: number | undefined;
1160
1162
  }>, "many">>;
1161
1163
  }, "strip", z.ZodTypeAny, {
1162
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1163
- groupId: string;
1164
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1164
1165
  resumable: boolean;
1165
1166
  files: {
1167
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1166
1168
  path: string;
1167
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1168
1169
  required: boolean;
1169
- updatedAt?: number | undefined;
1170
1170
  error?: string | undefined;
1171
1171
  sizeBytes?: number | undefined;
1172
+ updatedAt?: number | undefined;
1172
1173
  downloadedBytes?: number | undefined;
1173
1174
  }[];
1174
- updatedAt?: number | undefined;
1175
+ groupId: string;
1175
1176
  error?: string | undefined;
1176
1177
  baseGroupId?: string | undefined;
1177
1178
  rootDir?: string | undefined;
1178
1179
  progress?: number | undefined;
1179
1180
  bytesDownloaded?: number | undefined;
1180
1181
  totalBytes?: number | undefined;
1182
+ updatedAt?: number | undefined;
1181
1183
  installedAt?: number | undefined;
1182
1184
  }, {
1183
1185
  groupId: string;
1184
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1185
- updatedAt?: number | undefined;
1186
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1186
1187
  error?: string | undefined;
1187
1188
  baseGroupId?: string | undefined;
1188
1189
  rootDir?: string | undefined;
@@ -1192,13 +1193,14 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1192
1193
  resumable?: boolean | undefined;
1193
1194
  files?: {
1194
1195
  path: string;
1195
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1196
- updatedAt?: number | undefined;
1197
- required?: boolean | undefined;
1196
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1198
1197
  error?: string | undefined;
1199
1198
  sizeBytes?: number | undefined;
1199
+ required?: boolean | undefined;
1200
+ updatedAt?: number | undefined;
1200
1201
  downloadedBytes?: number | undefined;
1201
1202
  }[] | undefined;
1203
+ updatedAt?: number | undefined;
1202
1204
  installedAt?: number | undefined;
1203
1205
  }>>>;
1204
1206
  plan: z.ZodOptional<z.ZodObject<{
@@ -1289,7 +1291,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1289
1291
  sourceUrl?: string | undefined;
1290
1292
  raw?: unknown;
1291
1293
  }[];
1292
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1294
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1293
1295
  error?: string | undefined;
1294
1296
  description?: string | undefined;
1295
1297
  profile?: string | undefined;
@@ -1317,7 +1319,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1317
1319
  sourceUrl?: string | undefined;
1318
1320
  raw?: unknown;
1319
1321
  }[];
1320
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1322
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1321
1323
  error?: string | undefined;
1322
1324
  description?: string | undefined;
1323
1325
  profile?: string | undefined;
@@ -1343,7 +1345,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1343
1345
  raw?: unknown;
1344
1346
  }[];
1345
1347
  modelId: string;
1346
- selectedGroupId?: string | undefined;
1347
1348
  profile?: string | undefined;
1348
1349
  estimatedTotalBytes?: number | undefined;
1349
1350
  groups?: {
@@ -1360,7 +1361,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1360
1361
  sourceUrl?: string | undefined;
1361
1362
  raw?: unknown;
1362
1363
  }[];
1363
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1364
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1364
1365
  error?: string | undefined;
1365
1366
  description?: string | undefined;
1366
1367
  profile?: string | undefined;
@@ -1375,6 +1376,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1375
1376
  totalBytes?: number | undefined;
1376
1377
  resumable?: boolean | undefined;
1377
1378
  }[] | undefined;
1379
+ selectedGroupId?: string | undefined;
1378
1380
  }, {
1379
1381
  files: {
1380
1382
  path: string;
@@ -1386,7 +1388,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1386
1388
  raw?: unknown;
1387
1389
  }[];
1388
1390
  modelId: string;
1389
- selectedGroupId?: string | undefined;
1390
1391
  profile?: string | undefined;
1391
1392
  estimatedTotalBytes?: number | undefined;
1392
1393
  groups?: {
@@ -1403,7 +1404,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1403
1404
  sourceUrl?: string | undefined;
1404
1405
  raw?: unknown;
1405
1406
  }[];
1406
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1407
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1407
1408
  error?: string | undefined;
1408
1409
  description?: string | undefined;
1409
1410
  profile?: string | undefined;
@@ -1418,6 +1419,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1418
1419
  totalBytes?: number | undefined;
1419
1420
  resumable?: boolean | undefined;
1420
1421
  }[] | undefined;
1422
+ selectedGroupId?: string | undefined;
1421
1423
  }>>;
1422
1424
  files: z.ZodDefault<z.ZodArray<z.ZodObject<{
1423
1425
  path: z.ZodString;
@@ -1433,7 +1435,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1433
1435
  downloadedBytes?: number | undefined;
1434
1436
  }>, "many">>;
1435
1437
  }, "strip", z.ZodTypeAny, {
1436
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1438
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1437
1439
  resumable: boolean;
1438
1440
  selected: boolean;
1439
1441
  files: {
@@ -1446,47 +1448,47 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1446
1448
  profileLoad: {
1447
1449
  status: "error" | "idle" | "loading" | "ready";
1448
1450
  message?: string | undefined;
1449
- updatedAt?: number | undefined;
1450
1451
  error?: string | undefined;
1452
+ updatedAt?: number | undefined;
1451
1453
  };
1452
1454
  groupsState: Record<string, {
1453
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1454
- groupId: string;
1455
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1455
1456
  resumable: boolean;
1456
1457
  files: {
1458
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1457
1459
  path: string;
1458
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1459
1460
  required: boolean;
1460
- updatedAt?: number | undefined;
1461
1461
  error?: string | undefined;
1462
1462
  sizeBytes?: number | undefined;
1463
+ updatedAt?: number | undefined;
1463
1464
  downloadedBytes?: number | undefined;
1464
1465
  }[];
1465
- updatedAt?: number | undefined;
1466
+ groupId: string;
1466
1467
  error?: string | undefined;
1467
1468
  baseGroupId?: string | undefined;
1468
1469
  rootDir?: string | undefined;
1469
1470
  progress?: number | undefined;
1470
1471
  bytesDownloaded?: number | undefined;
1471
1472
  totalBytes?: number | undefined;
1473
+ updatedAt?: number | undefined;
1472
1474
  installedAt?: number | undefined;
1473
1475
  }>;
1474
- selectedGroupId?: string | undefined;
1475
- updatedAt?: number | undefined;
1476
1476
  error?: string | undefined;
1477
1477
  progress?: number | undefined;
1478
1478
  bytesDownloaded?: number | undefined;
1479
1479
  totalBytes?: number | undefined;
1480
+ updatedAt?: number | undefined;
1480
1481
  installedAt?: number | undefined;
1482
+ selectedGroupId?: string | undefined;
1481
1483
  profileManifest?: {
1482
- updatedAt: number;
1483
- source: "huggingface";
1484
1484
  revision: string;
1485
1485
  commitHash: string;
1486
1486
  shortCommitHash: string;
1487
1487
  modelId: string;
1488
+ source: "huggingface";
1488
1489
  endpoint: string;
1489
1490
  fetchedAt: number;
1491
+ updatedAt: number;
1490
1492
  groups: Record<string, {
1491
1493
  id: string;
1492
1494
  label: string;
@@ -1524,7 +1526,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1524
1526
  raw?: unknown;
1525
1527
  }[];
1526
1528
  modelId: string;
1527
- selectedGroupId?: string | undefined;
1528
1529
  profile?: string | undefined;
1529
1530
  estimatedTotalBytes?: number | undefined;
1530
1531
  groups?: {
@@ -1541,7 +1542,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1541
1542
  sourceUrl?: string | undefined;
1542
1543
  raw?: unknown;
1543
1544
  }[];
1544
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1545
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1545
1546
  error?: string | undefined;
1546
1547
  description?: string | undefined;
1547
1548
  profile?: string | undefined;
@@ -1556,12 +1557,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1556
1557
  totalBytes?: number | undefined;
1557
1558
  resumable?: boolean | undefined;
1558
1559
  }[] | undefined;
1560
+ selectedGroupId?: string | undefined;
1559
1561
  } | undefined;
1560
1562
  }, {
1561
1563
  modelId: string;
1562
- selectedGroupId?: string | undefined;
1563
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1564
- updatedAt?: number | undefined;
1564
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1565
1565
  error?: string | undefined;
1566
1566
  progress?: number | undefined;
1567
1567
  bytesDownloaded?: number | undefined;
@@ -1573,22 +1573,24 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1573
1573
  sizeBytes?: number | undefined;
1574
1574
  downloadedBytes?: number | undefined;
1575
1575
  }[] | undefined;
1576
+ updatedAt?: number | undefined;
1576
1577
  installedAt?: number | undefined;
1578
+ selectedGroupId?: string | undefined;
1577
1579
  version?: 2 | undefined;
1578
1580
  profileLoad?: {
1579
- message?: string | undefined;
1580
1581
  status?: "error" | "idle" | "loading" | "ready" | undefined;
1581
- updatedAt?: number | undefined;
1582
+ message?: string | undefined;
1582
1583
  error?: string | undefined;
1584
+ updatedAt?: number | undefined;
1583
1585
  } | undefined;
1584
1586
  profileManifest?: {
1585
- updatedAt: number;
1586
- source: "huggingface";
1587
1587
  revision: string;
1588
1588
  commitHash: string;
1589
1589
  shortCommitHash: string;
1590
1590
  modelId: string;
1591
+ source: "huggingface";
1591
1592
  fetchedAt: number;
1593
+ updatedAt: number;
1592
1594
  raw?: unknown;
1593
1595
  endpoint?: string | undefined;
1594
1596
  groups?: Record<string, {
@@ -1618,8 +1620,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1618
1620
  } | undefined;
1619
1621
  groupsState?: Record<string, {
1620
1622
  groupId: string;
1621
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1622
- updatedAt?: number | undefined;
1623
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1623
1624
  error?: string | undefined;
1624
1625
  baseGroupId?: string | undefined;
1625
1626
  rootDir?: string | undefined;
@@ -1629,13 +1630,14 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1629
1630
  resumable?: boolean | undefined;
1630
1631
  files?: {
1631
1632
  path: string;
1632
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1633
- updatedAt?: number | undefined;
1634
- required?: boolean | undefined;
1633
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1635
1634
  error?: string | undefined;
1636
1635
  sizeBytes?: number | undefined;
1636
+ required?: boolean | undefined;
1637
+ updatedAt?: number | undefined;
1637
1638
  downloadedBytes?: number | undefined;
1638
1639
  }[] | undefined;
1640
+ updatedAt?: number | undefined;
1639
1641
  installedAt?: number | undefined;
1640
1642
  }> | undefined;
1641
1643
  plan?: {
@@ -1649,7 +1651,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1649
1651
  raw?: unknown;
1650
1652
  }[];
1651
1653
  modelId: string;
1652
- selectedGroupId?: string | undefined;
1653
1654
  profile?: string | undefined;
1654
1655
  estimatedTotalBytes?: number | undefined;
1655
1656
  groups?: {
@@ -1666,7 +1667,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1666
1667
  sourceUrl?: string | undefined;
1667
1668
  raw?: unknown;
1668
1669
  }[];
1669
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1670
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1670
1671
  error?: string | undefined;
1671
1672
  description?: string | undefined;
1672
1673
  profile?: string | undefined;
@@ -1681,6 +1682,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1681
1682
  totalBytes?: number | undefined;
1682
1683
  resumable?: boolean | undefined;
1683
1684
  }[] | undefined;
1685
+ selectedGroupId?: string | undefined;
1684
1686
  } | undefined;
1685
1687
  }>;
1686
1688
  type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
@@ -1719,13 +1721,545 @@ interface TranslatorFactory {
1719
1721
  prepare?(options: TranslatorFactoryPrepareOptions): Promise<void>;
1720
1722
  create(options: TranslatorFactoryCreateOptions): Promise<Translator>;
1721
1723
  }
1724
+ type TranslationEngineDependencyState = 'installed' | 'installing' | 'missing' | 'error' | 'not-applicable';
1725
+ declare const TranslationEngineDependencyStateSchema: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1726
+ type TranslationEngineRuntimeState = 'ready' | 'probing' | 'failed' | 'error' | 'not-applicable';
1727
+ declare const TranslationEngineRuntimeStateSchema: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1728
+ type TranslationEngineAssetState = 'ready' | 'missing' | 'downloading' | 'error' | 'not-applicable';
1729
+ declare const TranslationEngineAssetStateSchema: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1730
+ interface TranslationEngineDependencyStatus {
1731
+ state: TranslationEngineDependencyState;
1732
+ message?: string;
1733
+ progress?: number;
1734
+ error?: string;
1735
+ }
1736
+ declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
1737
+ message: z.ZodOptional<z.ZodString>;
1738
+ progress: z.ZodOptional<z.ZodNumber>;
1739
+ error: z.ZodOptional<z.ZodString>;
1740
+ } & {
1741
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1744
+ message?: string | undefined;
1745
+ error?: string | undefined;
1746
+ progress?: number | undefined;
1747
+ }, {
1748
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1749
+ message?: string | undefined;
1750
+ error?: string | undefined;
1751
+ progress?: number | undefined;
1752
+ }>;
1753
+ interface TranslationEngineRuntimeStatus {
1754
+ state: TranslationEngineRuntimeState;
1755
+ message?: string;
1756
+ progress?: number;
1757
+ error?: string;
1758
+ }
1759
+ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
1760
+ message: z.ZodOptional<z.ZodString>;
1761
+ progress: z.ZodOptional<z.ZodNumber>;
1762
+ error: z.ZodOptional<z.ZodString>;
1763
+ } & {
1764
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1767
+ message?: string | undefined;
1768
+ error?: string | undefined;
1769
+ progress?: number | undefined;
1770
+ }, {
1771
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1772
+ message?: string | undefined;
1773
+ error?: string | undefined;
1774
+ progress?: number | undefined;
1775
+ }>;
1776
+ interface TranslationEngineAssetStatus {
1777
+ state: TranslationEngineAssetState;
1778
+ message?: string;
1779
+ progress?: number;
1780
+ error?: string;
1781
+ }
1782
+ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
1783
+ message: z.ZodOptional<z.ZodString>;
1784
+ progress: z.ZodOptional<z.ZodNumber>;
1785
+ error: z.ZodOptional<z.ZodString>;
1786
+ } & {
1787
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1790
+ message?: string | undefined;
1791
+ error?: string | undefined;
1792
+ progress?: number | undefined;
1793
+ }, {
1794
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1795
+ message?: string | undefined;
1796
+ error?: string | undefined;
1797
+ progress?: number | undefined;
1798
+ }>;
1799
+ interface TranslationEngineLifecycleStatus {
1800
+ dependency: TranslationEngineDependencyStatus;
1801
+ runtime: TranslationEngineRuntimeStatus;
1802
+ assets: TranslationEngineAssetStatus;
1803
+ summary?: string;
1804
+ }
1805
+ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1806
+ dependency: z.ZodObject<{
1807
+ message: z.ZodOptional<z.ZodString>;
1808
+ progress: z.ZodOptional<z.ZodNumber>;
1809
+ error: z.ZodOptional<z.ZodString>;
1810
+ } & {
1811
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1814
+ message?: string | undefined;
1815
+ error?: string | undefined;
1816
+ progress?: number | undefined;
1817
+ }, {
1818
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1819
+ message?: string | undefined;
1820
+ error?: string | undefined;
1821
+ progress?: number | undefined;
1822
+ }>;
1823
+ runtime: z.ZodObject<{
1824
+ message: z.ZodOptional<z.ZodString>;
1825
+ progress: z.ZodOptional<z.ZodNumber>;
1826
+ error: z.ZodOptional<z.ZodString>;
1827
+ } & {
1828
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1831
+ message?: string | undefined;
1832
+ error?: string | undefined;
1833
+ progress?: number | undefined;
1834
+ }, {
1835
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1836
+ message?: string | undefined;
1837
+ error?: string | undefined;
1838
+ progress?: number | undefined;
1839
+ }>;
1840
+ assets: z.ZodObject<{
1841
+ message: z.ZodOptional<z.ZodString>;
1842
+ progress: z.ZodOptional<z.ZodNumber>;
1843
+ error: z.ZodOptional<z.ZodString>;
1844
+ } & {
1845
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1848
+ message?: string | undefined;
1849
+ error?: string | undefined;
1850
+ progress?: number | undefined;
1851
+ }, {
1852
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1853
+ message?: string | undefined;
1854
+ error?: string | undefined;
1855
+ progress?: number | undefined;
1856
+ }>;
1857
+ summary: z.ZodOptional<z.ZodString>;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ dependency: {
1860
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1861
+ message?: string | undefined;
1862
+ error?: string | undefined;
1863
+ progress?: number | undefined;
1864
+ };
1865
+ runtime: {
1866
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1867
+ message?: string | undefined;
1868
+ error?: string | undefined;
1869
+ progress?: number | undefined;
1870
+ };
1871
+ assets: {
1872
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1873
+ message?: string | undefined;
1874
+ error?: string | undefined;
1875
+ progress?: number | undefined;
1876
+ };
1877
+ summary?: string | undefined;
1878
+ }, {
1879
+ dependency: {
1880
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1881
+ message?: string | undefined;
1882
+ error?: string | undefined;
1883
+ progress?: number | undefined;
1884
+ };
1885
+ runtime: {
1886
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1887
+ message?: string | undefined;
1888
+ error?: string | undefined;
1889
+ progress?: number | undefined;
1890
+ };
1891
+ assets: {
1892
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1893
+ message?: string | undefined;
1894
+ error?: string | undefined;
1895
+ progress?: number | undefined;
1896
+ };
1897
+ summary?: string | undefined;
1898
+ }>;
1899
+ declare function createTranslationEngineLifecycleStatus(input?: Partial<TranslationEngineLifecycleStatus> & {
1900
+ dependency?: Partial<TranslationEngineDependencyStatus>;
1901
+ runtime?: Partial<TranslationEngineRuntimeStatus>;
1902
+ assets?: Partial<TranslationEngineAssetStatus>;
1903
+ }): TranslationEngineLifecycleStatus;
1904
+ declare function isTranslationEngineDependencyReady(status: TranslationEngineLifecycleStatus): boolean;
1905
+ declare function isTranslationEngineRuntimeReady(status: TranslationEngineLifecycleStatus): boolean;
1906
+ declare function shouldShowTranslationEngineInstallGate(status: TranslationEngineLifecycleStatus | null | undefined): boolean;
1907
+ declare function getTranslationEngineLifecycleMessage(status: TranslationEngineLifecycleStatus | null | undefined): string | undefined;
1908
+ declare const TranslationEngineInstallLogStreamSchema: z.ZodEnum<["stdout", "stderr"]>;
1909
+ type TranslationEngineInstallLogStream = z.infer<typeof TranslationEngineInstallLogStreamSchema>;
1910
+ interface TranslationEngineInstallLogEvent {
1911
+ stream: TranslationEngineInstallLogStream;
1912
+ text: string;
1913
+ }
1914
+ declare const TranslationEngineInstallLogEventSchema: z.ZodObject<{
1915
+ stream: z.ZodEnum<["stdout", "stderr"]>;
1916
+ text: z.ZodString;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ stream: "stdout" | "stderr";
1919
+ text: string;
1920
+ }, {
1921
+ stream: "stdout" | "stderr";
1922
+ text: string;
1923
+ }>;
1924
+ interface TranslationEngineLifecycleStatusEvent {
1925
+ type: 'status';
1926
+ lifecycle: TranslationEngineLifecycleStatus;
1927
+ }
1928
+ interface TranslationEngineLifecycleLogEvent {
1929
+ type: 'log';
1930
+ stream: TranslationEngineInstallLogStream;
1931
+ text: string;
1932
+ }
1933
+ interface TranslationEngineLifecycleExitEvent {
1934
+ type: 'exit';
1935
+ lifecycle: TranslationEngineLifecycleStatus;
1936
+ }
1937
+ type TranslationEngineLifecycleEvent = TranslationEngineLifecycleStatusEvent | TranslationEngineLifecycleLogEvent | TranslationEngineLifecycleExitEvent;
1938
+ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1939
+ type: z.ZodLiteral<"status">;
1940
+ lifecycle: z.ZodObject<{
1941
+ dependency: z.ZodObject<{
1942
+ message: z.ZodOptional<z.ZodString>;
1943
+ progress: z.ZodOptional<z.ZodNumber>;
1944
+ error: z.ZodOptional<z.ZodString>;
1945
+ } & {
1946
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1949
+ message?: string | undefined;
1950
+ error?: string | undefined;
1951
+ progress?: number | undefined;
1952
+ }, {
1953
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1954
+ message?: string | undefined;
1955
+ error?: string | undefined;
1956
+ progress?: number | undefined;
1957
+ }>;
1958
+ runtime: z.ZodObject<{
1959
+ message: z.ZodOptional<z.ZodString>;
1960
+ progress: z.ZodOptional<z.ZodNumber>;
1961
+ error: z.ZodOptional<z.ZodString>;
1962
+ } & {
1963
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1966
+ message?: string | undefined;
1967
+ error?: string | undefined;
1968
+ progress?: number | undefined;
1969
+ }, {
1970
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1971
+ message?: string | undefined;
1972
+ error?: string | undefined;
1973
+ progress?: number | undefined;
1974
+ }>;
1975
+ assets: z.ZodObject<{
1976
+ message: z.ZodOptional<z.ZodString>;
1977
+ progress: z.ZodOptional<z.ZodNumber>;
1978
+ error: z.ZodOptional<z.ZodString>;
1979
+ } & {
1980
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1983
+ message?: string | undefined;
1984
+ error?: string | undefined;
1985
+ progress?: number | undefined;
1986
+ }, {
1987
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1988
+ message?: string | undefined;
1989
+ error?: string | undefined;
1990
+ progress?: number | undefined;
1991
+ }>;
1992
+ summary: z.ZodOptional<z.ZodString>;
1993
+ }, "strip", z.ZodTypeAny, {
1994
+ dependency: {
1995
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1996
+ message?: string | undefined;
1997
+ error?: string | undefined;
1998
+ progress?: number | undefined;
1999
+ };
2000
+ runtime: {
2001
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2002
+ message?: string | undefined;
2003
+ error?: string | undefined;
2004
+ progress?: number | undefined;
2005
+ };
2006
+ assets: {
2007
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2008
+ message?: string | undefined;
2009
+ error?: string | undefined;
2010
+ progress?: number | undefined;
2011
+ };
2012
+ summary?: string | undefined;
2013
+ }, {
2014
+ dependency: {
2015
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2016
+ message?: string | undefined;
2017
+ error?: string | undefined;
2018
+ progress?: number | undefined;
2019
+ };
2020
+ runtime: {
2021
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2022
+ message?: string | undefined;
2023
+ error?: string | undefined;
2024
+ progress?: number | undefined;
2025
+ };
2026
+ assets: {
2027
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2028
+ message?: string | undefined;
2029
+ error?: string | undefined;
2030
+ progress?: number | undefined;
2031
+ };
2032
+ summary?: string | undefined;
2033
+ }>;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ type: "status";
2036
+ lifecycle: {
2037
+ dependency: {
2038
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2039
+ message?: string | undefined;
2040
+ error?: string | undefined;
2041
+ progress?: number | undefined;
2042
+ };
2043
+ runtime: {
2044
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2045
+ message?: string | undefined;
2046
+ error?: string | undefined;
2047
+ progress?: number | undefined;
2048
+ };
2049
+ assets: {
2050
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2051
+ message?: string | undefined;
2052
+ error?: string | undefined;
2053
+ progress?: number | undefined;
2054
+ };
2055
+ summary?: string | undefined;
2056
+ };
2057
+ }, {
2058
+ type: "status";
2059
+ lifecycle: {
2060
+ dependency: {
2061
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2062
+ message?: string | undefined;
2063
+ error?: string | undefined;
2064
+ progress?: number | undefined;
2065
+ };
2066
+ runtime: {
2067
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2068
+ message?: string | undefined;
2069
+ error?: string | undefined;
2070
+ progress?: number | undefined;
2071
+ };
2072
+ assets: {
2073
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2074
+ message?: string | undefined;
2075
+ error?: string | undefined;
2076
+ progress?: number | undefined;
2077
+ };
2078
+ summary?: string | undefined;
2079
+ };
2080
+ }>, z.ZodObject<{
2081
+ type: z.ZodLiteral<"log">;
2082
+ stream: z.ZodEnum<["stdout", "stderr"]>;
2083
+ text: z.ZodString;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ type: "log";
2086
+ stream: "stdout" | "stderr";
2087
+ text: string;
2088
+ }, {
2089
+ type: "log";
2090
+ stream: "stdout" | "stderr";
2091
+ text: string;
2092
+ }>, z.ZodObject<{
2093
+ type: z.ZodLiteral<"exit">;
2094
+ lifecycle: z.ZodObject<{
2095
+ dependency: z.ZodObject<{
2096
+ message: z.ZodOptional<z.ZodString>;
2097
+ progress: z.ZodOptional<z.ZodNumber>;
2098
+ error: z.ZodOptional<z.ZodString>;
2099
+ } & {
2100
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
2101
+ }, "strip", z.ZodTypeAny, {
2102
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2103
+ message?: string | undefined;
2104
+ error?: string | undefined;
2105
+ progress?: number | undefined;
2106
+ }, {
2107
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2108
+ message?: string | undefined;
2109
+ error?: string | undefined;
2110
+ progress?: number | undefined;
2111
+ }>;
2112
+ runtime: z.ZodObject<{
2113
+ message: z.ZodOptional<z.ZodString>;
2114
+ progress: z.ZodOptional<z.ZodNumber>;
2115
+ error: z.ZodOptional<z.ZodString>;
2116
+ } & {
2117
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2120
+ message?: string | undefined;
2121
+ error?: string | undefined;
2122
+ progress?: number | undefined;
2123
+ }, {
2124
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2125
+ message?: string | undefined;
2126
+ error?: string | undefined;
2127
+ progress?: number | undefined;
2128
+ }>;
2129
+ assets: z.ZodObject<{
2130
+ message: z.ZodOptional<z.ZodString>;
2131
+ progress: z.ZodOptional<z.ZodNumber>;
2132
+ error: z.ZodOptional<z.ZodString>;
2133
+ } & {
2134
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
2135
+ }, "strip", z.ZodTypeAny, {
2136
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2137
+ message?: string | undefined;
2138
+ error?: string | undefined;
2139
+ progress?: number | undefined;
2140
+ }, {
2141
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2142
+ message?: string | undefined;
2143
+ error?: string | undefined;
2144
+ progress?: number | undefined;
2145
+ }>;
2146
+ summary: z.ZodOptional<z.ZodString>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ dependency: {
2149
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2150
+ message?: string | undefined;
2151
+ error?: string | undefined;
2152
+ progress?: number | undefined;
2153
+ };
2154
+ runtime: {
2155
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2156
+ message?: string | undefined;
2157
+ error?: string | undefined;
2158
+ progress?: number | undefined;
2159
+ };
2160
+ assets: {
2161
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2162
+ message?: string | undefined;
2163
+ error?: string | undefined;
2164
+ progress?: number | undefined;
2165
+ };
2166
+ summary?: string | undefined;
2167
+ }, {
2168
+ dependency: {
2169
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2170
+ message?: string | undefined;
2171
+ error?: string | undefined;
2172
+ progress?: number | undefined;
2173
+ };
2174
+ runtime: {
2175
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2176
+ message?: string | undefined;
2177
+ error?: string | undefined;
2178
+ progress?: number | undefined;
2179
+ };
2180
+ assets: {
2181
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2182
+ message?: string | undefined;
2183
+ error?: string | undefined;
2184
+ progress?: number | undefined;
2185
+ };
2186
+ summary?: string | undefined;
2187
+ }>;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ type: "exit";
2190
+ lifecycle: {
2191
+ dependency: {
2192
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2193
+ message?: string | undefined;
2194
+ error?: string | undefined;
2195
+ progress?: number | undefined;
2196
+ };
2197
+ runtime: {
2198
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2199
+ message?: string | undefined;
2200
+ error?: string | undefined;
2201
+ progress?: number | undefined;
2202
+ };
2203
+ assets: {
2204
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2205
+ message?: string | undefined;
2206
+ error?: string | undefined;
2207
+ progress?: number | undefined;
2208
+ };
2209
+ summary?: string | undefined;
2210
+ };
2211
+ }, {
2212
+ type: "exit";
2213
+ lifecycle: {
2214
+ dependency: {
2215
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2216
+ message?: string | undefined;
2217
+ error?: string | undefined;
2218
+ progress?: number | undefined;
2219
+ };
2220
+ runtime: {
2221
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2222
+ message?: string | undefined;
2223
+ error?: string | undefined;
2224
+ progress?: number | undefined;
2225
+ };
2226
+ assets: {
2227
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2228
+ message?: string | undefined;
2229
+ error?: string | undefined;
2230
+ progress?: number | undefined;
2231
+ };
2232
+ summary?: string | undefined;
2233
+ };
2234
+ }>]>;
2235
+ interface TranslationEngineLifecycleContext {
2236
+ projectDir: string;
2237
+ globalSettings: TranslationEngineGlobalSettings;
2238
+ signal?: AbortSignal;
2239
+ onLifecycle?: (status: TranslationEngineLifecycleStatus) => void;
2240
+ onLog?: (event: TranslationEngineInstallLogEvent) => void;
2241
+ }
2242
+ interface TranslationEngineLifecycleController {
2243
+ detectLifecycle(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
2244
+ install(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
2245
+ }
1722
2246
  type TranslationEngineRuntime = 'browser' | 'server';
2247
+ type TranslationEngineKind = 'browser' | 'managed-local' | 'remote-provider';
2248
+ type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'openai';
1723
2249
  interface TranslationEngineManifest {
1724
2250
  id: TranslationEngineId;
1725
2251
  label: string;
1726
2252
  description: string;
1727
2253
  technicalSummary: string;
1728
2254
  runtime: TranslationEngineRuntime;
2255
+ kind: TranslationEngineKind;
2256
+ settingsKey?: TranslationEngineSettingsKey;
2257
+ defaultModel?: string;
2258
+ runtimePackageName?: string;
2259
+ installDescription?: string;
2260
+ modelLabel?: string;
2261
+ downloadGroupsLabel?: string;
2262
+ refreshTooltip?: string;
1729
2263
  moduleName?: string;
1730
2264
  factoryExport?: string;
1731
2265
  }
@@ -1735,38 +2269,78 @@ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
1735
2269
  readonly description: "Uses the browser Translator API and future browser-side providers.";
1736
2270
  readonly technicalSummary: "Browser-native Web Translator adapter. Package payload is about 5 KB; browser language packs are managed by the browser.";
1737
2271
  readonly runtime: "browser";
2272
+ readonly kind: "browser";
2273
+ readonly installDescription: "Browser translation support is built into the browser runtime.";
1738
2274
  readonly moduleName: "@openspecui/browser-translator";
1739
2275
  readonly factoryExport: "createBrowserTranslatorFactory";
1740
2276
  }, {
1741
2277
  readonly id: "local";
1742
2278
  readonly label: "Local-Transformers";
1743
- readonly description: "Runs a bundled local Transformers.js translation runtime with managed model files.";
1744
- readonly technicalSummary: "Server-side Transformers.js local adapter. Package payload is about 5 KB; selected model groups are downloaded separately and can range from tens to hundreds of MB.";
2279
+ readonly description: "Runs an ONNX Runtime-backed local translation adapter through Transformers.js with managed ONNX model files.";
2280
+ readonly technicalSummary: "Server-side ONNX Runtime adapter via Transformers.js. Runtime package is installed on demand; selected ONNX model groups are downloaded separately and can range from tens to hundreds of MB.";
1745
2281
  readonly runtime: "server";
2282
+ readonly kind: "managed-local";
2283
+ readonly settingsKey: "local";
2284
+ readonly defaultModel: "Xenova/nllb-200-distilled-600M";
2285
+ readonly runtimePackageName: "@huggingface/transformers";
2286
+ readonly installDescription: "Install the Local-Transformers runtime package to enable server-side translation.";
2287
+ readonly modelLabel: "Local Model";
2288
+ readonly downloadGroupsLabel: "Local download profiles";
2289
+ readonly refreshTooltip: "Refresh local model profiles";
1746
2290
  readonly moduleName: "@openspecui/local-translator";
1747
2291
  readonly factoryExport: "createLocalTranslatorFactory";
2292
+ }, {
2293
+ readonly id: "local-ct2";
2294
+ readonly label: "Local-CT2";
2295
+ readonly description: "Runs a bundled local CTranslate2 translation runtime with managed model files.";
2296
+ readonly technicalSummary: "Server-side native CTranslate2 adapter. Runtime package is installed on demand; selected model artifacts are downloaded separately and can range from tens to hundreds of MB.";
2297
+ readonly runtime: "server";
2298
+ readonly kind: "managed-local";
2299
+ readonly settingsKey: "localCt2";
2300
+ readonly defaultModel: "ooeoeo/opus-mt-en-zh-ct2-float16";
2301
+ readonly runtimePackageName: "ctranslate2";
2302
+ readonly installDescription: "Install the Local-CT2 runtime package to enable server-side translation.";
2303
+ readonly modelLabel: "CT2 Model";
2304
+ readonly downloadGroupsLabel: "Local CT2 download groups";
2305
+ readonly refreshTooltip: "Refresh local model artifacts";
2306
+ readonly moduleName: "@openspecui/local-ct2-translator";
2307
+ readonly factoryExport: "createLocalCt2TranslatorFactory";
1748
2308
  }, {
1749
2309
  readonly id: "openai";
1750
2310
  readonly label: "OpenAI-Completion";
1751
2311
  readonly description: "Uses an OpenAI-compatible TanStack AI completion provider for context-aware translation.";
1752
2312
  readonly technicalSummary: "Server-side TanStack AI adapter for OpenAI-compatible APIs. Package payload is about 5 KB; model size stays with the remote provider.";
1753
2313
  readonly runtime: "server";
2314
+ readonly kind: "remote-provider";
2315
+ readonly settingsKey: "openai";
2316
+ readonly defaultModel: "gpt-4.1-mini";
2317
+ readonly installDescription: "OpenAI completion translation is bundled with the server runtime.";
1754
2318
  readonly moduleName: "@openspecui/openai-completion-translator";
1755
2319
  readonly factoryExport: "createOpenAICompletionTranslatorFactory";
1756
2320
  }];
1757
2321
  declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest;
2322
+ declare function getManagedLocalTranslationEngineManifest(engineId: ManagedLocalTranslationEngineId): TranslationEngineManifest & {
2323
+ kind: 'managed-local';
2324
+ settingsKey: Extract<TranslationEngineSettingsKey, 'local' | 'localCt2'>;
2325
+ defaultModel: string;
2326
+ runtimePackageName: string;
2327
+ installDescription: string;
2328
+ modelLabel: string;
2329
+ downloadGroupsLabel: string;
2330
+ refreshTooltip: string;
2331
+ };
1758
2332
  declare const TranslationOpenAISettingsSchema: z.ZodObject<{
1759
2333
  baseUrl: z.ZodDefault<z.ZodString>;
1760
2334
  token: z.ZodDefault<z.ZodString>;
1761
2335
  model: z.ZodDefault<z.ZodString>;
1762
2336
  }, "strip", z.ZodTypeAny, {
1763
- model: string;
1764
2337
  baseUrl: string;
1765
2338
  token: string;
2339
+ model: string;
1766
2340
  }, {
1767
- model?: string | undefined;
1768
2341
  baseUrl?: string | undefined;
1769
2342
  token?: string | undefined;
2343
+ model?: string | undefined;
1770
2344
  }>;
1771
2345
  type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
1772
2346
  declare const TranslationLocalSettingsSchema: z.ZodObject<{
@@ -1778,24 +2352,38 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
1778
2352
  hfEndpoint: string;
1779
2353
  selectedGroupId?: string | undefined;
1780
2354
  }, {
1781
- model?: string | undefined;
1782
2355
  selectedGroupId?: string | undefined;
2356
+ model?: string | undefined;
1783
2357
  hfEndpoint?: string | undefined;
1784
2358
  }>;
1785
2359
  type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
2360
+ declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
2361
+ model: z.ZodDefault<z.ZodString>;
2362
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2363
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ model: string;
2366
+ hfEndpoint: string;
2367
+ selectedGroupId?: string | undefined;
2368
+ }, {
2369
+ selectedGroupId?: string | undefined;
2370
+ model?: string | undefined;
2371
+ hfEndpoint?: string | undefined;
2372
+ }>;
2373
+ type TranslationLocalCt2Settings = z.infer<typeof TranslationLocalCt2SettingsSchema>;
1786
2374
  declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
1787
2375
  openai: z.ZodDefault<z.ZodObject<{
1788
2376
  baseUrl: z.ZodDefault<z.ZodString>;
1789
2377
  token: z.ZodDefault<z.ZodString>;
1790
2378
  model: z.ZodDefault<z.ZodString>;
1791
2379
  }, "strip", z.ZodTypeAny, {
1792
- model: string;
1793
2380
  baseUrl: string;
1794
2381
  token: string;
2382
+ model: string;
1795
2383
  }, {
1796
- model?: string | undefined;
1797
2384
  baseUrl?: string | undefined;
1798
2385
  token?: string | undefined;
2386
+ model?: string | undefined;
1799
2387
  }>>;
1800
2388
  local: z.ZodDefault<z.ZodObject<{
1801
2389
  model: z.ZodDefault<z.ZodString>;
@@ -1806,8 +2394,21 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
1806
2394
  hfEndpoint: string;
1807
2395
  selectedGroupId?: string | undefined;
1808
2396
  }, {
2397
+ selectedGroupId?: string | undefined;
1809
2398
  model?: string | undefined;
2399
+ hfEndpoint?: string | undefined;
2400
+ }>>;
2401
+ localCt2: z.ZodDefault<z.ZodObject<{
2402
+ model: z.ZodDefault<z.ZodString>;
2403
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2404
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2405
+ }, "strip", z.ZodTypeAny, {
2406
+ model: string;
2407
+ hfEndpoint: string;
2408
+ selectedGroupId?: string | undefined;
2409
+ }, {
1810
2410
  selectedGroupId?: string | undefined;
2411
+ model?: string | undefined;
1811
2412
  hfEndpoint?: string | undefined;
1812
2413
  }>>;
1813
2414
  }, "strip", z.ZodTypeAny, {
@@ -1817,20 +2418,30 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
1817
2418
  selectedGroupId?: string | undefined;
1818
2419
  };
1819
2420
  openai: {
1820
- model: string;
1821
2421
  baseUrl: string;
1822
2422
  token: string;
2423
+ model: string;
2424
+ };
2425
+ localCt2: {
2426
+ model: string;
2427
+ hfEndpoint: string;
2428
+ selectedGroupId?: string | undefined;
1823
2429
  };
1824
2430
  }, {
1825
2431
  local?: {
1826
- model?: string | undefined;
1827
2432
  selectedGroupId?: string | undefined;
2433
+ model?: string | undefined;
1828
2434
  hfEndpoint?: string | undefined;
1829
2435
  } | undefined;
1830
2436
  openai?: {
1831
- model?: string | undefined;
1832
2437
  baseUrl?: string | undefined;
1833
2438
  token?: string | undefined;
2439
+ model?: string | undefined;
2440
+ } | undefined;
2441
+ localCt2?: {
2442
+ selectedGroupId?: string | undefined;
2443
+ model?: string | undefined;
2444
+ hfEndpoint?: string | undefined;
1834
2445
  } | undefined;
1835
2446
  }>;
1836
2447
  type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
@@ -1839,9 +2450,12 @@ type TranslationEngineGlobalSettingsUpdate = {
1839
2450
  local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
1840
2451
  selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
1841
2452
  };
2453
+ localCt2?: Partial<Omit<TranslationLocalCt2Settings, 'selectedGroupId'>> & {
2454
+ selectedGroupId?: TranslationLocalCt2Settings['selectedGroupId'] | null;
2455
+ };
1842
2456
  };
1843
2457
  declare const BatchTranslateInputSchema: z.ZodObject<{
1844
- engineId: z.ZodEnum<["browser", "local", "openai"]>;
2458
+ engineId: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
1845
2459
  sourceLanguage: z.ZodString;
1846
2460
  targetLanguage: z.ZodString;
1847
2461
  model: z.ZodOptional<z.ZodString>;
@@ -1850,21 +2464,21 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
1850
2464
  instructions: z.ZodOptional<z.ZodString>;
1851
2465
  context: z.ZodOptional<z.ZodString>;
1852
2466
  }, "strip", z.ZodTypeAny, {
1853
- targetLanguage: string;
1854
- engineId: "local" | "openai" | "browser";
2467
+ engineId: "browser" | "local" | "local-ct2" | "openai";
1855
2468
  sourceLanguage: string;
2469
+ targetLanguage: string;
1856
2470
  inputs: string[];
1857
- model?: string | undefined;
1858
2471
  selectedGroupId?: string | undefined;
2472
+ model?: string | undefined;
1859
2473
  instructions?: string | undefined;
1860
2474
  context?: string | undefined;
1861
2475
  }, {
1862
- targetLanguage: string;
1863
- engineId: "local" | "openai" | "browser";
2476
+ engineId: "browser" | "local" | "local-ct2" | "openai";
1864
2477
  sourceLanguage: string;
2478
+ targetLanguage: string;
1865
2479
  inputs: string[];
1866
- model?: string | undefined;
1867
2480
  selectedGroupId?: string | undefined;
2481
+ model?: string | undefined;
1868
2482
  instructions?: string | undefined;
1869
2483
  context?: string | undefined;
1870
2484
  }>;
@@ -1881,4 +2495,4 @@ declare const BatchTranslateEventSchema: z.ZodObject<{
1881
2495
  }>;
1882
2496
  type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
1883
2497
  //#endregion
1884
- export { TranslationModelDownloadPlan as $, LocalModelProfileManifestSchema as A, TranslationDownloadFilePlanSchema as B, LocalModelProfileLoadState as C, LocalModelProfileManifestFileSchema as D, LocalModelProfileManifestFile as E, ServiceTranslationEngineIdSchema as F, TranslationEngineGlobalSettingsUpdate as G, TranslationDownloadGroupPlanSchema as H, TRANSLATION_ENGINE_IDS as I, TranslationEngineManifest as J, TranslationEngineId as K, TRANSLATION_ENGINE_MANIFESTS as L, LocalModelProfileStatusSchema as M, SERVICE_TRANSLATION_ENGINE_IDS as N, LocalModelProfileManifestGroup as O, ServiceTranslationEngineId as P, TranslationModelCandidate as Q, TRANSLATOR_CONTRACT_VERSION as R, LocalModelLifecycleGroupStateSchema as S, LocalModelProfileManifest as T, TranslationEngineGlobalSettings as U, TranslationDownloadGroupPlan as V, TranslationEngineGlobalSettingsSchema as W, TranslationLocalSettings as X, TranslationEngineRuntime as Y, TranslationLocalSettingsSchema as Z, LocalModelDownloadStatus as _, BatchTranslationResult as a, TranslationOpenAISettingsSchema as at, LocalModelLifecycleFileStateSchema as b, LocalModelAssetLogSchema as c, TranslatorFactory as ct, LocalModelAssetState as d, TranslatorOptions as dt, TranslationModelSearchEvent as et, LocalModelAssetStateSchema as f, TranslatorPrepareMonitor as ft, LocalModelCatalogSearchEvent as g, LocalModelCatalogResult as h, BatchTranslateInputSchema as i, TranslationOpenAISettings as it, LocalModelProfileStatus as j, LocalModelProfileManifestGroupSchema as k, LocalModelAssetPlanSnapshot as l, TranslatorFactoryCreateOptions as lt, LocalModelCatalogLocalResult as m, BatchTranslateEventSchema as n, TranslationModelSearchPhase as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, Translator as ot, LocalModelCatalogItem as p, getTranslationEngineManifest as pt, TranslationEngineIdSchema as q, BatchTranslateInput as r, TranslationModelSearchResult as rt, LocalModelAssetLog as s, TranslatorCreateMonitor as st, BatchTranslateEvent as t, TranslationModelSearchInput as tt, LocalModelAssetPlanSnapshotSchema as u, TranslatorFactoryPrepareOptions as ut, LocalModelDownloadStatusSchema as v, LocalModelProfileLoadStateSchema as w, LocalModelLifecycleGroupState as x, LocalModelLifecycleFileState as y, TranslationDownloadFilePlan as z };
2498
+ export { TranslationEngineGlobalSettingsSchema as $, LocalModelProfileManifestSchema as A, TranslationModelSearchEvent as At, TranslationDownloadFilePlan as B, TranslatorFactoryPrepareOptions as Bt, LocalModelProfileLoadState as C, TranslationEngineSettingsKey as Ct, LocalModelProfileManifestFileSchema as D, TranslationLocalSettingsSchema as Dt, LocalModelProfileManifestFile as E, TranslationLocalSettings as Et, ServiceTranslationEngineId as F, TranslationOpenAISettingsSchema as Ft, TranslationEngineAssetStateSchema as G, getTranslationEngineLifecycleMessage as Gt, TranslationDownloadGroupPlan as H, TranslatorPrepareMonitor as Ht, ServiceTranslationEngineIdSchema as I, Translator as It, TranslationEngineDependencyState as J, isTranslationEngineDependencyReady as Jt, TranslationEngineAssetStatus as K, getTranslationEngineManifest as Kt, TRANSLATION_ENGINE_IDS as L, TranslatorCreateMonitor as Lt, LocalModelProfileStatusSchema as M, TranslationModelSearchPhase as Mt, ManagedLocalTranslationEngineId as N, TranslationModelSearchResult as Nt, LocalModelProfileManifestGroup as O, TranslationModelCandidate as Ot, SERVICE_TRANSLATION_ENGINE_IDS as P, TranslationOpenAISettings as Pt, TranslationEngineGlobalSettings as Q, TRANSLATION_ENGINE_MANIFESTS as R, TranslatorFactory as Rt, LocalModelLifecycleGroupStateSchema as S, TranslationEngineRuntimeStatusSchema as St, LocalModelProfileManifest as T, TranslationLocalCt2SettingsSchema as Tt, TranslationDownloadGroupPlanSchema as U, createTranslationEngineLifecycleStatus as Ut, TranslationDownloadFilePlanSchema as V, TranslatorOptions as Vt, TranslationEngineAssetState as W, getManagedLocalTranslationEngineManifest as Wt, TranslationEngineDependencyStatus as X, shouldShowTranslationEngineInstallGate as Xt, TranslationEngineDependencyStateSchema as Y, isTranslationEngineRuntimeReady as Yt, TranslationEngineDependencyStatusSchema as Z, LocalModelDownloadStatus as _, TranslationEngineManifest as _t, BatchTranslationResult as a, TranslationEngineInstallLogStream as at, LocalModelLifecycleFileStateSchema as b, TranslationEngineRuntimeStateSchema as bt, LocalModelAssetLogSchema as c, TranslationEngineLifecycleContext as ct, LocalModelAssetState as d, TranslationEngineLifecycleEventSchema as dt, TranslationEngineGlobalSettingsUpdate as et, LocalModelAssetStateSchema as f, TranslationEngineLifecycleExitEvent as ft, LocalModelCatalogSearchEvent as g, TranslationEngineLifecycleStatusSchema as gt, LocalModelCatalogResult as h, TranslationEngineLifecycleStatusEvent as ht, BatchTranslateInputSchema as i, TranslationEngineInstallLogEventSchema as it, LocalModelProfileStatus as j, TranslationModelSearchInput as jt, LocalModelProfileManifestGroupSchema as k, TranslationModelDownloadPlan as kt, LocalModelAssetPlanSnapshot as l, TranslationEngineLifecycleController as lt, LocalModelCatalogLocalResult as m, TranslationEngineLifecycleStatus as mt, BatchTranslateEventSchema as n, TranslationEngineIdSchema as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, TranslationEngineInstallLogStreamSchema as ot, LocalModelCatalogItem as p, TranslationEngineLifecycleLogEvent as pt, TranslationEngineAssetStatusSchema as q, isManagedLocalTranslationEngineId as qt, BatchTranslateInput as r, TranslationEngineInstallLogEvent as rt, LocalModelAssetLog as s, TranslationEngineKind as st, BatchTranslateEvent as t, TranslationEngineId as tt, LocalModelAssetPlanSnapshotSchema as u, TranslationEngineLifecycleEvent as ut, LocalModelDownloadStatusSchema as v, TranslationEngineRuntime as vt, LocalModelProfileLoadStateSchema as w, TranslationLocalCt2Settings as wt, LocalModelLifecycleGroupState as x, TranslationEngineRuntimeStatus as xt, LocalModelLifecycleFileState as y, TranslationEngineRuntimeState as yt, TRANSLATOR_CONTRACT_VERSION as z, TranslatorFactoryCreateOptions as zt };