@openspecui/core 3.11.3 → 3.11.4

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 (29) hide show
  1. package/dist/{document-translation-BrlCvnLZ.mjs → document-translation-B3QRXIXx.mjs} +1 -1
  2. package/dist/{document-translation-Cv6BIGL5.d.mts → document-translation-QMSrWNT-.d.mts} +2 -2
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/index.d.mts +120 -30
  6. package/dist/index.mjs +114 -4
  7. package/dist/{local-download-profiles-GKs2OOqJ.d.mts → local-download-profiles-DHF9dW4e.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-CJQ_F_Un.d.mts → notifications-D9yMeQqN.d.mts} +18 -18
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-BbuPTbvj.d.mts → openspec-projection-e-sOj4vr.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-BO9G2SCW.d.mts → opsx-entity-C89YFQNB.d.mts} +9 -9
  14. package/dist/opsx-entity.d.mts +2 -2
  15. package/dist/{opsx-schema-detail-DTajJW4g.d.mts → opsx-schema-detail-DIscOp9f.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DQzd1hgp.d.mts → schemas-B6ZBedD4.d.mts} +44 -44
  18. package/dist/{sounds-3yEx1YXT.d.mts → sounds-BjSZxrQO.d.mts} +5 -5
  19. package/dist/sounds.d.mts +1 -1
  20. package/dist/{terminal-audio-UCLlM1qN.d.mts → terminal-audio-6x0ceNBw.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-DCPc8hmm.d.mts → terminal-invocation-C2e1WSWM.d.mts} +91 -91
  24. package/dist/terminal-invocation.d.mts +1 -1
  25. package/dist/{translator-Car0_7uk.mjs → translator-B98pejVa.mjs} +134 -6
  26. package/dist/{translator-prn3W9lf.d.mts → translator-jn94xmWZ.d.mts} +241 -167
  27. package/dist/translator.d.mts +2 -2
  28. package/dist/translator.mjs +2 -2
  29. package/package.json +1 -1
@@ -1,5 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
+ //#region src/translation-task-control.d.ts
4
+ declare const BATCH_TRANSLATION_ERROR_KINDS: readonly ["timeout", "memory-limit", "runtime", "abort"];
5
+ type BatchTranslationErrorKind = (typeof BATCH_TRANSLATION_ERROR_KINDS)[number];
6
+ interface BatchTranslationError {
7
+ kind: BatchTranslationErrorKind;
8
+ message: string;
9
+ }
10
+ interface ControlledTranslationTaskOptions {
11
+ signal?: AbortSignal;
12
+ timeoutMs?: number;
13
+ }
14
+ type ControlledTranslationTaskResult<T> = {
15
+ ok: true;
16
+ value: T;
17
+ } | {
18
+ ok: false;
19
+ error: BatchTranslationError;
20
+ };
21
+ declare function runControlledTranslationTask<T>(task: (signal: AbortSignal) => Promise<T>, options?: ControlledTranslationTaskOptions): Promise<ControlledTranslationTaskResult<T>>;
22
+ declare function normalizeBatchTranslationError(error: unknown, parentSignal?: AbortSignal): BatchTranslationError;
23
+ declare function isBatchTranslationAbort(error: BatchTranslationError, signal: AbortSignal | undefined): boolean;
24
+ //#endregion
3
25
  //#region src/translator.d.ts
4
26
  declare const TRANSLATOR_CONTRACT_VERSION = 3;
5
27
  declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "local-llama", "openai"];
@@ -12,14 +34,17 @@ type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'l
12
34
  declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "local-llama", "openai"];
13
35
  declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "local-llama", "openai"]>;
14
36
  type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
37
+ declare const DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS = 15000;
15
38
  interface TranslatorOptions {
16
39
  instructions?: string;
17
40
  context?: string;
18
41
  signal?: AbortSignal;
42
+ timeoutMs?: number;
19
43
  }
20
44
  interface BatchTranslationResult {
21
45
  index: number;
22
- output: string;
46
+ output?: string;
47
+ error?: BatchTranslationError;
23
48
  }
24
49
  interface Translator {
25
50
  batchTranslate(inputs: string[], options?: TranslatorOptions): AsyncGenerator<BatchTranslationResult>;
@@ -193,8 +218,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
193
218
  raw?: unknown;
194
219
  }>, "many">;
195
220
  }, "strip", z.ZodTypeAny, {
196
- label: string;
197
221
  id: string;
222
+ label: string;
198
223
  selectable: boolean;
199
224
  selected: boolean;
200
225
  files: {
@@ -206,8 +231,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
206
231
  sourceUrl?: string | undefined;
207
232
  raw?: unknown;
208
233
  }[];
209
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
210
234
  error?: string | undefined;
235
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
211
236
  description?: string | undefined;
212
237
  profile?: string | undefined;
213
238
  dtype?: string | undefined;
@@ -221,8 +246,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
221
246
  totalBytes?: number | undefined;
222
247
  resumable?: boolean | undefined;
223
248
  }, {
224
- label: string;
225
249
  id: string;
250
+ label: string;
226
251
  selectable: boolean;
227
252
  selected: boolean;
228
253
  files: {
@@ -234,8 +259,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
234
259
  sourceUrl?: string | undefined;
235
260
  raw?: unknown;
236
261
  }[];
237
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
238
262
  error?: string | undefined;
263
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
239
264
  description?: string | undefined;
240
265
  profile?: string | undefined;
241
266
  dtype?: string | undefined;
@@ -316,8 +341,8 @@ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
316
341
  raw?: unknown;
317
342
  }>, "many">;
318
343
  }, "strip", z.ZodTypeAny, {
319
- label: string;
320
344
  id: string;
345
+ label: string;
321
346
  baseGroupId: string;
322
347
  commitHash: string;
323
348
  shortCommitHash: string;
@@ -338,8 +363,8 @@ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
338
363
  dtype?: string | undefined;
339
364
  estimatedTotalBytes?: number | undefined;
340
365
  }, {
341
- label: string;
342
366
  id: string;
367
+ label: string;
343
368
  baseGroupId: string;
344
369
  commitHash: string;
345
370
  shortCommitHash: string;
@@ -410,8 +435,8 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
410
435
  raw?: unknown;
411
436
  }>, "many">;
412
437
  }, "strip", z.ZodTypeAny, {
413
- label: string;
414
438
  id: string;
439
+ label: string;
415
440
  baseGroupId: string;
416
441
  commitHash: string;
417
442
  shortCommitHash: string;
@@ -432,8 +457,8 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
432
457
  dtype?: string | undefined;
433
458
  estimatedTotalBytes?: number | undefined;
434
459
  }, {
435
- label: string;
436
460
  id: string;
461
+ label: string;
437
462
  baseGroupId: string;
438
463
  commitHash: string;
439
464
  shortCommitHash: string;
@@ -456,17 +481,17 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
456
481
  }>>>;
457
482
  groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
458
483
  }, "strip", z.ZodTypeAny, {
459
- source: "huggingface";
460
484
  revision: string;
461
485
  commitHash: string;
462
486
  shortCommitHash: string;
463
487
  modelId: string;
488
+ source: "huggingface";
464
489
  endpoint: string;
465
490
  fetchedAt: number;
466
491
  updatedAt: number;
467
492
  groups: Record<string, {
468
- label: string;
469
493
  id: string;
494
+ label: string;
470
495
  baseGroupId: string;
471
496
  commitHash: string;
472
497
  shortCommitHash: string;
@@ -490,18 +515,18 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
490
515
  groupOrder: string[];
491
516
  raw?: unknown;
492
517
  }, {
493
- source: "huggingface";
494
518
  revision: string;
495
519
  commitHash: string;
496
520
  shortCommitHash: string;
497
521
  modelId: string;
522
+ source: "huggingface";
498
523
  fetchedAt: number;
499
524
  updatedAt: number;
500
525
  raw?: unknown;
501
526
  endpoint?: string | undefined;
502
527
  groups?: Record<string, {
503
- label: string;
504
528
  id: string;
529
+ label: string;
505
530
  baseGroupId: string;
506
531
  commitHash: string;
507
532
  shortCommitHash: string;
@@ -534,19 +559,19 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
534
559
  updatedAt: z.ZodOptional<z.ZodNumber>;
535
560
  error: z.ZodOptional<z.ZodString>;
536
561
  }, "strip", z.ZodTypeAny, {
537
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
538
562
  path: string;
539
563
  required: boolean;
564
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
540
565
  error?: string | undefined;
541
566
  sizeBytes?: number | undefined;
542
567
  updatedAt?: number | undefined;
543
568
  downloadedBytes?: number | undefined;
544
569
  }, {
545
570
  path: string;
546
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
547
571
  error?: string | undefined;
548
- required?: boolean | undefined;
549
572
  sizeBytes?: number | undefined;
573
+ required?: boolean | undefined;
574
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
550
575
  updatedAt?: number | undefined;
551
576
  downloadedBytes?: number | undefined;
552
577
  }>;
@@ -572,35 +597,35 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
572
597
  updatedAt: z.ZodOptional<z.ZodNumber>;
573
598
  error: z.ZodOptional<z.ZodString>;
574
599
  }, "strip", z.ZodTypeAny, {
575
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
576
600
  path: string;
577
601
  required: boolean;
602
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
578
603
  error?: string | undefined;
579
604
  sizeBytes?: number | undefined;
580
605
  updatedAt?: number | undefined;
581
606
  downloadedBytes?: number | undefined;
582
607
  }, {
583
608
  path: string;
584
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
585
609
  error?: string | undefined;
586
- required?: boolean | undefined;
587
610
  sizeBytes?: number | undefined;
611
+ required?: boolean | undefined;
612
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
588
613
  updatedAt?: number | undefined;
589
614
  downloadedBytes?: number | undefined;
590
615
  }>, "many">>;
591
616
  }, "strip", z.ZodTypeAny, {
592
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
593
- groupId: string;
617
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
594
618
  resumable: boolean;
595
619
  files: {
596
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
597
620
  path: string;
598
621
  required: boolean;
622
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
599
623
  error?: string | undefined;
600
624
  sizeBytes?: number | undefined;
601
625
  updatedAt?: number | undefined;
602
626
  downloadedBytes?: number | undefined;
603
627
  }[];
628
+ groupId: string;
604
629
  error?: string | undefined;
605
630
  baseGroupId?: string | undefined;
606
631
  rootDir?: string | undefined;
@@ -611,8 +636,8 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
611
636
  installedAt?: number | undefined;
612
637
  }, {
613
638
  groupId: string;
614
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
615
639
  error?: string | undefined;
640
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
616
641
  baseGroupId?: string | undefined;
617
642
  rootDir?: string | undefined;
618
643
  progress?: number | undefined;
@@ -621,10 +646,10 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
621
646
  resumable?: boolean | undefined;
622
647
  files?: {
623
648
  path: string;
624
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
625
649
  error?: string | undefined;
626
- required?: boolean | undefined;
627
650
  sizeBytes?: number | undefined;
651
+ required?: boolean | undefined;
652
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
628
653
  updatedAt?: number | undefined;
629
654
  downloadedBytes?: number | undefined;
630
655
  }[] | undefined;
@@ -639,13 +664,13 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
639
664
  updatedAt: z.ZodOptional<z.ZodNumber>;
640
665
  }, "strip", z.ZodTypeAny, {
641
666
  status: "error" | "idle" | "loading" | "ready";
642
- message?: string | undefined;
643
667
  error?: string | undefined;
668
+ message?: string | undefined;
644
669
  updatedAt?: number | undefined;
645
670
  }, {
646
- status?: "error" | "idle" | "loading" | "ready" | undefined;
647
- message?: string | undefined;
648
671
  error?: string | undefined;
672
+ message?: string | undefined;
673
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
649
674
  updatedAt?: number | undefined;
650
675
  }>;
651
676
  type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
@@ -676,13 +701,11 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
676
701
  }>, "many">>;
677
702
  updatedAt: z.ZodNumber;
678
703
  }, "strip", z.ZodTypeAny, {
679
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
680
704
  message: string;
705
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
681
706
  modelId: string;
682
707
  updatedAt: number;
683
708
  engineId: "local" | "local-ct2" | "local-llama";
684
- sessionId?: string | undefined;
685
- groupId?: string | undefined;
686
709
  progress?: number | undefined;
687
710
  bytesDownloaded?: number | undefined;
688
711
  totalBytes?: number | undefined;
@@ -692,15 +715,15 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
692
715
  sizeBytes?: number | undefined;
693
716
  downloadedBytes?: number | undefined;
694
717
  }[] | undefined;
718
+ groupId?: string | undefined;
695
719
  selectedGroupId?: string | undefined;
720
+ sessionId?: string | undefined;
696
721
  }, {
697
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
698
722
  message: string;
723
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
699
724
  modelId: string;
700
725
  updatedAt: number;
701
726
  engineId: "local" | "local-ct2" | "local-llama";
702
- sessionId?: string | undefined;
703
- groupId?: string | undefined;
704
727
  progress?: number | undefined;
705
728
  bytesDownloaded?: number | undefined;
706
729
  totalBytes?: number | undefined;
@@ -710,7 +733,9 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
710
733
  sizeBytes?: number | undefined;
711
734
  downloadedBytes?: number | undefined;
712
735
  }[] | undefined;
736
+ groupId?: string | undefined;
713
737
  selectedGroupId?: string | undefined;
738
+ sessionId?: string | undefined;
714
739
  }>;
715
740
  type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
716
741
  declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
@@ -788,8 +813,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
788
813
  raw?: unknown;
789
814
  }>, "many">;
790
815
  }, "strip", z.ZodTypeAny, {
791
- label: string;
792
816
  id: string;
817
+ label: string;
793
818
  selectable: boolean;
794
819
  selected: boolean;
795
820
  files: {
@@ -801,8 +826,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
801
826
  sourceUrl?: string | undefined;
802
827
  raw?: unknown;
803
828
  }[];
804
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
805
829
  error?: string | undefined;
830
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
806
831
  description?: string | undefined;
807
832
  profile?: string | undefined;
808
833
  dtype?: string | undefined;
@@ -816,8 +841,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
816
841
  totalBytes?: number | undefined;
817
842
  resumable?: boolean | undefined;
818
843
  }, {
819
- label: string;
820
844
  id: string;
845
+ label: string;
821
846
  selectable: boolean;
822
847
  selected: boolean;
823
848
  files: {
@@ -829,8 +854,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
829
854
  sourceUrl?: string | undefined;
830
855
  raw?: unknown;
831
856
  }[];
832
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
833
857
  error?: string | undefined;
858
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
834
859
  description?: string | undefined;
835
860
  profile?: string | undefined;
836
861
  dtype?: string | undefined;
@@ -858,8 +883,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
858
883
  profile?: string | undefined;
859
884
  estimatedTotalBytes?: number | undefined;
860
885
  groups?: {
861
- label: string;
862
886
  id: string;
887
+ label: string;
863
888
  selectable: boolean;
864
889
  selected: boolean;
865
890
  files: {
@@ -871,8 +896,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
871
896
  sourceUrl?: string | undefined;
872
897
  raw?: unknown;
873
898
  }[];
874
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
875
899
  error?: string | undefined;
900
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
876
901
  description?: string | undefined;
877
902
  profile?: string | undefined;
878
903
  dtype?: string | undefined;
@@ -901,8 +926,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
901
926
  profile?: string | undefined;
902
927
  estimatedTotalBytes?: number | undefined;
903
928
  groups?: {
904
- label: string;
905
929
  id: string;
930
+ label: string;
906
931
  selectable: boolean;
907
932
  selected: boolean;
908
933
  files: {
@@ -914,8 +939,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
914
939
  sourceUrl?: string | undefined;
915
940
  raw?: unknown;
916
941
  }[];
917
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
918
942
  error?: string | undefined;
943
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
919
944
  description?: string | undefined;
920
945
  profile?: string | undefined;
921
946
  dtype?: string | undefined;
@@ -952,13 +977,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
952
977
  updatedAt: z.ZodOptional<z.ZodNumber>;
953
978
  }, "strip", z.ZodTypeAny, {
954
979
  status: "error" | "idle" | "loading" | "ready";
955
- message?: string | undefined;
956
980
  error?: string | undefined;
981
+ message?: string | undefined;
957
982
  updatedAt?: number | undefined;
958
983
  }, {
959
- status?: "error" | "idle" | "loading" | "ready" | undefined;
960
- message?: string | undefined;
961
984
  error?: string | undefined;
985
+ message?: string | undefined;
986
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
962
987
  updatedAt?: number | undefined;
963
988
  }>>;
964
989
  profileManifest: z.ZodOptional<z.ZodObject<{
@@ -1010,8 +1035,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1010
1035
  raw?: unknown;
1011
1036
  }>, "many">;
1012
1037
  }, "strip", z.ZodTypeAny, {
1013
- label: string;
1014
1038
  id: string;
1039
+ label: string;
1015
1040
  baseGroupId: string;
1016
1041
  commitHash: string;
1017
1042
  shortCommitHash: string;
@@ -1032,8 +1057,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1032
1057
  dtype?: string | undefined;
1033
1058
  estimatedTotalBytes?: number | undefined;
1034
1059
  }, {
1035
- label: string;
1036
1060
  id: string;
1061
+ label: string;
1037
1062
  baseGroupId: string;
1038
1063
  commitHash: string;
1039
1064
  shortCommitHash: string;
@@ -1056,17 +1081,17 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1056
1081
  }>>>;
1057
1082
  groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1058
1083
  }, "strip", z.ZodTypeAny, {
1059
- source: "huggingface";
1060
1084
  revision: string;
1061
1085
  commitHash: string;
1062
1086
  shortCommitHash: string;
1063
1087
  modelId: string;
1088
+ source: "huggingface";
1064
1089
  endpoint: string;
1065
1090
  fetchedAt: number;
1066
1091
  updatedAt: number;
1067
1092
  groups: Record<string, {
1068
- label: string;
1069
1093
  id: string;
1094
+ label: string;
1070
1095
  baseGroupId: string;
1071
1096
  commitHash: string;
1072
1097
  shortCommitHash: string;
@@ -1090,18 +1115,18 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1090
1115
  groupOrder: string[];
1091
1116
  raw?: unknown;
1092
1117
  }, {
1093
- source: "huggingface";
1094
1118
  revision: string;
1095
1119
  commitHash: string;
1096
1120
  shortCommitHash: string;
1097
1121
  modelId: string;
1122
+ source: "huggingface";
1098
1123
  fetchedAt: number;
1099
1124
  updatedAt: number;
1100
1125
  raw?: unknown;
1101
1126
  endpoint?: string | undefined;
1102
1127
  groups?: Record<string, {
1103
- label: string;
1104
1128
  id: string;
1129
+ label: string;
1105
1130
  baseGroupId: string;
1106
1131
  commitHash: string;
1107
1132
  shortCommitHash: string;
@@ -1145,35 +1170,35 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1145
1170
  updatedAt: z.ZodOptional<z.ZodNumber>;
1146
1171
  error: z.ZodOptional<z.ZodString>;
1147
1172
  }, "strip", z.ZodTypeAny, {
1148
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1149
1173
  path: string;
1150
1174
  required: boolean;
1175
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1151
1176
  error?: string | undefined;
1152
1177
  sizeBytes?: number | undefined;
1153
1178
  updatedAt?: number | undefined;
1154
1179
  downloadedBytes?: number | undefined;
1155
1180
  }, {
1156
1181
  path: string;
1157
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1158
1182
  error?: string | undefined;
1159
- required?: boolean | undefined;
1160
1183
  sizeBytes?: number | undefined;
1184
+ required?: boolean | undefined;
1185
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1161
1186
  updatedAt?: number | undefined;
1162
1187
  downloadedBytes?: number | undefined;
1163
1188
  }>, "many">>;
1164
1189
  }, "strip", z.ZodTypeAny, {
1165
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1166
- groupId: string;
1190
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1167
1191
  resumable: boolean;
1168
1192
  files: {
1169
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1170
1193
  path: string;
1171
1194
  required: boolean;
1195
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1172
1196
  error?: string | undefined;
1173
1197
  sizeBytes?: number | undefined;
1174
1198
  updatedAt?: number | undefined;
1175
1199
  downloadedBytes?: number | undefined;
1176
1200
  }[];
1201
+ groupId: string;
1177
1202
  error?: string | undefined;
1178
1203
  baseGroupId?: string | undefined;
1179
1204
  rootDir?: string | undefined;
@@ -1184,8 +1209,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1184
1209
  installedAt?: number | undefined;
1185
1210
  }, {
1186
1211
  groupId: string;
1187
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1188
1212
  error?: string | undefined;
1213
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1189
1214
  baseGroupId?: string | undefined;
1190
1215
  rootDir?: string | undefined;
1191
1216
  progress?: number | undefined;
@@ -1194,10 +1219,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1194
1219
  resumable?: boolean | undefined;
1195
1220
  files?: {
1196
1221
  path: string;
1197
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1198
1222
  error?: string | undefined;
1199
- required?: boolean | undefined;
1200
1223
  sizeBytes?: number | undefined;
1224
+ required?: boolean | undefined;
1225
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1201
1226
  updatedAt?: number | undefined;
1202
1227
  downloadedBytes?: number | undefined;
1203
1228
  }[] | undefined;
@@ -1279,8 +1304,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1279
1304
  raw?: unknown;
1280
1305
  }>, "many">;
1281
1306
  }, "strip", z.ZodTypeAny, {
1282
- label: string;
1283
1307
  id: string;
1308
+ label: string;
1284
1309
  selectable: boolean;
1285
1310
  selected: boolean;
1286
1311
  files: {
@@ -1292,8 +1317,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1292
1317
  sourceUrl?: string | undefined;
1293
1318
  raw?: unknown;
1294
1319
  }[];
1295
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1296
1320
  error?: string | undefined;
1321
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1297
1322
  description?: string | undefined;
1298
1323
  profile?: string | undefined;
1299
1324
  dtype?: string | undefined;
@@ -1307,8 +1332,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1307
1332
  totalBytes?: number | undefined;
1308
1333
  resumable?: boolean | undefined;
1309
1334
  }, {
1310
- label: string;
1311
1335
  id: string;
1336
+ label: string;
1312
1337
  selectable: boolean;
1313
1338
  selected: boolean;
1314
1339
  files: {
@@ -1320,8 +1345,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1320
1345
  sourceUrl?: string | undefined;
1321
1346
  raw?: unknown;
1322
1347
  }[];
1323
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1324
1348
  error?: string | undefined;
1349
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1325
1350
  description?: string | undefined;
1326
1351
  profile?: string | undefined;
1327
1352
  dtype?: string | undefined;
@@ -1349,8 +1374,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1349
1374
  profile?: string | undefined;
1350
1375
  estimatedTotalBytes?: number | undefined;
1351
1376
  groups?: {
1352
- label: string;
1353
1377
  id: string;
1378
+ label: string;
1354
1379
  selectable: boolean;
1355
1380
  selected: boolean;
1356
1381
  files: {
@@ -1362,8 +1387,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1362
1387
  sourceUrl?: string | undefined;
1363
1388
  raw?: unknown;
1364
1389
  }[];
1365
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1366
1390
  error?: string | undefined;
1391
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1367
1392
  description?: string | undefined;
1368
1393
  profile?: string | undefined;
1369
1394
  dtype?: string | undefined;
@@ -1392,8 +1417,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1392
1417
  profile?: string | undefined;
1393
1418
  estimatedTotalBytes?: number | undefined;
1394
1419
  groups?: {
1395
- label: string;
1396
1420
  id: string;
1421
+ label: string;
1397
1422
  selectable: boolean;
1398
1423
  selected: boolean;
1399
1424
  files: {
@@ -1405,8 +1430,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1405
1430
  sourceUrl?: string | undefined;
1406
1431
  raw?: unknown;
1407
1432
  }[];
1408
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1409
1433
  error?: string | undefined;
1434
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1410
1435
  description?: string | undefined;
1411
1436
  profile?: string | undefined;
1412
1437
  dtype?: string | undefined;
@@ -1436,7 +1461,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1436
1461
  downloadedBytes?: number | undefined;
1437
1462
  }>, "many">>;
1438
1463
  }, "strip", z.ZodTypeAny, {
1439
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1464
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1440
1465
  resumable: boolean;
1441
1466
  selected: boolean;
1442
1467
  files: {
@@ -1448,23 +1473,23 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1448
1473
  version: 2;
1449
1474
  profileLoad: {
1450
1475
  status: "error" | "idle" | "loading" | "ready";
1451
- message?: string | undefined;
1452
1476
  error?: string | undefined;
1477
+ message?: string | undefined;
1453
1478
  updatedAt?: number | undefined;
1454
1479
  };
1455
1480
  groupsState: Record<string, {
1456
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1457
- groupId: string;
1481
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1458
1482
  resumable: boolean;
1459
1483
  files: {
1460
- status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
1461
1484
  path: string;
1462
1485
  required: boolean;
1486
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1463
1487
  error?: string | undefined;
1464
1488
  sizeBytes?: number | undefined;
1465
1489
  updatedAt?: number | undefined;
1466
1490
  downloadedBytes?: number | undefined;
1467
1491
  }[];
1492
+ groupId: string;
1468
1493
  error?: string | undefined;
1469
1494
  baseGroupId?: string | undefined;
1470
1495
  rootDir?: string | undefined;
@@ -1482,17 +1507,17 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1482
1507
  installedAt?: number | undefined;
1483
1508
  selectedGroupId?: string | undefined;
1484
1509
  profileManifest?: {
1485
- source: "huggingface";
1486
1510
  revision: string;
1487
1511
  commitHash: string;
1488
1512
  shortCommitHash: string;
1489
1513
  modelId: string;
1514
+ source: "huggingface";
1490
1515
  endpoint: string;
1491
1516
  fetchedAt: number;
1492
1517
  updatedAt: number;
1493
1518
  groups: Record<string, {
1494
- label: string;
1495
1519
  id: string;
1520
+ label: string;
1496
1521
  baseGroupId: string;
1497
1522
  commitHash: string;
1498
1523
  shortCommitHash: string;
@@ -1530,8 +1555,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1530
1555
  profile?: string | undefined;
1531
1556
  estimatedTotalBytes?: number | undefined;
1532
1557
  groups?: {
1533
- label: string;
1534
1558
  id: string;
1559
+ label: string;
1535
1560
  selectable: boolean;
1536
1561
  selected: boolean;
1537
1562
  files: {
@@ -1543,8 +1568,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1543
1568
  sourceUrl?: string | undefined;
1544
1569
  raw?: unknown;
1545
1570
  }[];
1546
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1547
1571
  error?: string | undefined;
1572
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1548
1573
  description?: string | undefined;
1549
1574
  profile?: string | undefined;
1550
1575
  dtype?: string | undefined;
@@ -1562,8 +1587,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1562
1587
  } | undefined;
1563
1588
  }, {
1564
1589
  modelId: string;
1565
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1566
1590
  error?: string | undefined;
1591
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1567
1592
  progress?: number | undefined;
1568
1593
  bytesDownloaded?: number | undefined;
1569
1594
  totalBytes?: number | undefined;
@@ -1579,24 +1604,24 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1579
1604
  selectedGroupId?: string | undefined;
1580
1605
  version?: 2 | undefined;
1581
1606
  profileLoad?: {
1582
- status?: "error" | "idle" | "loading" | "ready" | undefined;
1583
- message?: string | undefined;
1584
1607
  error?: string | undefined;
1608
+ message?: string | undefined;
1609
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
1585
1610
  updatedAt?: number | undefined;
1586
1611
  } | undefined;
1587
1612
  profileManifest?: {
1588
- source: "huggingface";
1589
1613
  revision: string;
1590
1614
  commitHash: string;
1591
1615
  shortCommitHash: string;
1592
1616
  modelId: string;
1617
+ source: "huggingface";
1593
1618
  fetchedAt: number;
1594
1619
  updatedAt: number;
1595
1620
  raw?: unknown;
1596
1621
  endpoint?: string | undefined;
1597
1622
  groups?: Record<string, {
1598
- label: string;
1599
1623
  id: string;
1624
+ label: string;
1600
1625
  baseGroupId: string;
1601
1626
  commitHash: string;
1602
1627
  shortCommitHash: string;
@@ -1621,8 +1646,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1621
1646
  } | undefined;
1622
1647
  groupsState?: Record<string, {
1623
1648
  groupId: string;
1624
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1625
1649
  error?: string | undefined;
1650
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1626
1651
  baseGroupId?: string | undefined;
1627
1652
  rootDir?: string | undefined;
1628
1653
  progress?: number | undefined;
@@ -1631,10 +1656,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1631
1656
  resumable?: boolean | undefined;
1632
1657
  files?: {
1633
1658
  path: string;
1634
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1635
1659
  error?: string | undefined;
1636
- required?: boolean | undefined;
1637
1660
  sizeBytes?: number | undefined;
1661
+ required?: boolean | undefined;
1662
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1638
1663
  updatedAt?: number | undefined;
1639
1664
  downloadedBytes?: number | undefined;
1640
1665
  }[] | undefined;
@@ -1655,8 +1680,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1655
1680
  profile?: string | undefined;
1656
1681
  estimatedTotalBytes?: number | undefined;
1657
1682
  groups?: {
1658
- label: string;
1659
1683
  id: string;
1684
+ label: string;
1660
1685
  selectable: boolean;
1661
1686
  selected: boolean;
1662
1687
  files: {
@@ -1668,8 +1693,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1668
1693
  sourceUrl?: string | undefined;
1669
1694
  raw?: unknown;
1670
1695
  }[];
1671
- status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
1672
1696
  error?: string | undefined;
1697
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1673
1698
  description?: string | undefined;
1674
1699
  profile?: string | undefined;
1675
1700
  dtype?: string | undefined;
@@ -1746,13 +1771,13 @@ declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
1746
1771
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1747
1772
  }, "strip", z.ZodTypeAny, {
1748
1773
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1749
- message?: string | undefined;
1750
1774
  error?: string | undefined;
1775
+ message?: string | undefined;
1751
1776
  progress?: number | undefined;
1752
1777
  }, {
1753
1778
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1754
- message?: string | undefined;
1755
1779
  error?: string | undefined;
1780
+ message?: string | undefined;
1756
1781
  progress?: number | undefined;
1757
1782
  }>;
1758
1783
  interface TranslationEngineRuntimeStatus {
@@ -1769,13 +1794,13 @@ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
1769
1794
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1770
1795
  }, "strip", z.ZodTypeAny, {
1771
1796
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1772
- message?: string | undefined;
1773
1797
  error?: string | undefined;
1798
+ message?: string | undefined;
1774
1799
  progress?: number | undefined;
1775
1800
  }, {
1776
1801
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1777
- message?: string | undefined;
1778
1802
  error?: string | undefined;
1803
+ message?: string | undefined;
1779
1804
  progress?: number | undefined;
1780
1805
  }>;
1781
1806
  interface TranslationEngineAssetStatus {
@@ -1791,14 +1816,14 @@ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
1791
1816
  } & {
1792
1817
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1793
1818
  }, "strip", z.ZodTypeAny, {
1794
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1795
- message?: string | undefined;
1819
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1796
1820
  error?: string | undefined;
1821
+ message?: string | undefined;
1797
1822
  progress?: number | undefined;
1798
1823
  }, {
1799
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1800
- message?: string | undefined;
1824
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1801
1825
  error?: string | undefined;
1826
+ message?: string | undefined;
1802
1827
  progress?: number | undefined;
1803
1828
  }>;
1804
1829
  interface TranslationEngineLifecycleStatus {
@@ -1816,13 +1841,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1816
1841
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1817
1842
  }, "strip", z.ZodTypeAny, {
1818
1843
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1819
- message?: string | undefined;
1820
1844
  error?: string | undefined;
1845
+ message?: string | undefined;
1821
1846
  progress?: number | undefined;
1822
1847
  }, {
1823
1848
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1824
- message?: string | undefined;
1825
1849
  error?: string | undefined;
1850
+ message?: string | undefined;
1826
1851
  progress?: number | undefined;
1827
1852
  }>;
1828
1853
  runtime: z.ZodObject<{
@@ -1833,13 +1858,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1833
1858
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1834
1859
  }, "strip", z.ZodTypeAny, {
1835
1860
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1836
- message?: string | undefined;
1837
1861
  error?: string | undefined;
1862
+ message?: string | undefined;
1838
1863
  progress?: number | undefined;
1839
1864
  }, {
1840
1865
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1841
- message?: string | undefined;
1842
1866
  error?: string | undefined;
1867
+ message?: string | undefined;
1843
1868
  progress?: number | undefined;
1844
1869
  }>;
1845
1870
  assets: z.ZodObject<{
@@ -1849,54 +1874,54 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1849
1874
  } & {
1850
1875
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1851
1876
  }, "strip", z.ZodTypeAny, {
1852
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1853
- message?: string | undefined;
1877
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1854
1878
  error?: string | undefined;
1879
+ message?: string | undefined;
1855
1880
  progress?: number | undefined;
1856
1881
  }, {
1857
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1858
- message?: string | undefined;
1882
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1859
1883
  error?: string | undefined;
1884
+ message?: string | undefined;
1860
1885
  progress?: number | undefined;
1861
1886
  }>;
1862
1887
  summary: z.ZodOptional<z.ZodString>;
1863
1888
  }, "strip", z.ZodTypeAny, {
1864
1889
  dependency: {
1865
1890
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1866
- message?: string | undefined;
1867
1891
  error?: string | undefined;
1892
+ message?: string | undefined;
1868
1893
  progress?: number | undefined;
1869
1894
  };
1870
1895
  runtime: {
1871
1896
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1872
- message?: string | undefined;
1873
1897
  error?: string | undefined;
1898
+ message?: string | undefined;
1874
1899
  progress?: number | undefined;
1875
1900
  };
1876
1901
  assets: {
1877
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1878
- message?: string | undefined;
1902
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1879
1903
  error?: string | undefined;
1904
+ message?: string | undefined;
1880
1905
  progress?: number | undefined;
1881
1906
  };
1882
1907
  summary?: string | undefined;
1883
1908
  }, {
1884
1909
  dependency: {
1885
1910
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1886
- message?: string | undefined;
1887
1911
  error?: string | undefined;
1912
+ message?: string | undefined;
1888
1913
  progress?: number | undefined;
1889
1914
  };
1890
1915
  runtime: {
1891
1916
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1892
- message?: string | undefined;
1893
1917
  error?: string | undefined;
1918
+ message?: string | undefined;
1894
1919
  progress?: number | undefined;
1895
1920
  };
1896
1921
  assets: {
1897
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1898
- message?: string | undefined;
1922
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1899
1923
  error?: string | undefined;
1924
+ message?: string | undefined;
1900
1925
  progress?: number | undefined;
1901
1926
  };
1902
1927
  summary?: string | undefined;
@@ -1920,11 +1945,11 @@ declare const TranslationEngineInstallLogEventSchema: z.ZodObject<{
1920
1945
  stream: z.ZodEnum<["stdout", "stderr"]>;
1921
1946
  text: z.ZodString;
1922
1947
  }, "strip", z.ZodTypeAny, {
1923
- text: string;
1924
1948
  stream: "stdout" | "stderr";
1925
- }, {
1926
1949
  text: string;
1950
+ }, {
1927
1951
  stream: "stdout" | "stderr";
1952
+ text: string;
1928
1953
  }>;
1929
1954
  interface TranslationEngineLifecycleStatusEvent {
1930
1955
  type: 'status';
@@ -1951,13 +1976,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1951
1976
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1952
1977
  }, "strip", z.ZodTypeAny, {
1953
1978
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1954
- message?: string | undefined;
1955
1979
  error?: string | undefined;
1980
+ message?: string | undefined;
1956
1981
  progress?: number | undefined;
1957
1982
  }, {
1958
1983
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1959
- message?: string | undefined;
1960
1984
  error?: string | undefined;
1985
+ message?: string | undefined;
1961
1986
  progress?: number | undefined;
1962
1987
  }>;
1963
1988
  runtime: z.ZodObject<{
@@ -1968,13 +1993,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1968
1993
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1969
1994
  }, "strip", z.ZodTypeAny, {
1970
1995
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1971
- message?: string | undefined;
1972
1996
  error?: string | undefined;
1997
+ message?: string | undefined;
1973
1998
  progress?: number | undefined;
1974
1999
  }, {
1975
2000
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1976
- message?: string | undefined;
1977
2001
  error?: string | undefined;
2002
+ message?: string | undefined;
1978
2003
  progress?: number | undefined;
1979
2004
  }>;
1980
2005
  assets: z.ZodObject<{
@@ -1984,54 +2009,54 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1984
2009
  } & {
1985
2010
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1986
2011
  }, "strip", z.ZodTypeAny, {
1987
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1988
- message?: string | undefined;
2012
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1989
2013
  error?: string | undefined;
2014
+ message?: string | undefined;
1990
2015
  progress?: number | undefined;
1991
2016
  }, {
1992
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
1993
- message?: string | undefined;
2017
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1994
2018
  error?: string | undefined;
2019
+ message?: string | undefined;
1995
2020
  progress?: number | undefined;
1996
2021
  }>;
1997
2022
  summary: z.ZodOptional<z.ZodString>;
1998
2023
  }, "strip", z.ZodTypeAny, {
1999
2024
  dependency: {
2000
2025
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2001
- message?: string | undefined;
2002
2026
  error?: string | undefined;
2027
+ message?: string | undefined;
2003
2028
  progress?: number | undefined;
2004
2029
  };
2005
2030
  runtime: {
2006
2031
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2007
- message?: string | undefined;
2008
2032
  error?: string | undefined;
2033
+ message?: string | undefined;
2009
2034
  progress?: number | undefined;
2010
2035
  };
2011
2036
  assets: {
2012
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2013
- message?: string | undefined;
2037
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2014
2038
  error?: string | undefined;
2039
+ message?: string | undefined;
2015
2040
  progress?: number | undefined;
2016
2041
  };
2017
2042
  summary?: string | undefined;
2018
2043
  }, {
2019
2044
  dependency: {
2020
2045
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2021
- message?: string | undefined;
2022
2046
  error?: string | undefined;
2047
+ message?: string | undefined;
2023
2048
  progress?: number | undefined;
2024
2049
  };
2025
2050
  runtime: {
2026
2051
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2027
- message?: string | undefined;
2028
2052
  error?: string | undefined;
2053
+ message?: string | undefined;
2029
2054
  progress?: number | undefined;
2030
2055
  };
2031
2056
  assets: {
2032
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2033
- message?: string | undefined;
2057
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2034
2058
  error?: string | undefined;
2059
+ message?: string | undefined;
2035
2060
  progress?: number | undefined;
2036
2061
  };
2037
2062
  summary?: string | undefined;
@@ -2041,20 +2066,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2041
2066
  lifecycle: {
2042
2067
  dependency: {
2043
2068
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2044
- message?: string | undefined;
2045
2069
  error?: string | undefined;
2070
+ message?: string | undefined;
2046
2071
  progress?: number | undefined;
2047
2072
  };
2048
2073
  runtime: {
2049
2074
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2050
- message?: string | undefined;
2051
2075
  error?: string | undefined;
2076
+ message?: string | undefined;
2052
2077
  progress?: number | undefined;
2053
2078
  };
2054
2079
  assets: {
2055
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2056
- message?: string | undefined;
2080
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2057
2081
  error?: string | undefined;
2082
+ message?: string | undefined;
2058
2083
  progress?: number | undefined;
2059
2084
  };
2060
2085
  summary?: string | undefined;
@@ -2064,20 +2089,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2064
2089
  lifecycle: {
2065
2090
  dependency: {
2066
2091
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2067
- message?: string | undefined;
2068
2092
  error?: string | undefined;
2093
+ message?: string | undefined;
2069
2094
  progress?: number | undefined;
2070
2095
  };
2071
2096
  runtime: {
2072
2097
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2073
- message?: string | undefined;
2074
2098
  error?: string | undefined;
2099
+ message?: string | undefined;
2075
2100
  progress?: number | undefined;
2076
2101
  };
2077
2102
  assets: {
2078
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2079
- message?: string | undefined;
2103
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2080
2104
  error?: string | undefined;
2105
+ message?: string | undefined;
2081
2106
  progress?: number | undefined;
2082
2107
  };
2083
2108
  summary?: string | undefined;
@@ -2088,12 +2113,12 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2088
2113
  text: z.ZodString;
2089
2114
  }, "strip", z.ZodTypeAny, {
2090
2115
  type: "log";
2091
- text: string;
2092
2116
  stream: "stdout" | "stderr";
2117
+ text: string;
2093
2118
  }, {
2094
2119
  type: "log";
2095
- text: string;
2096
2120
  stream: "stdout" | "stderr";
2121
+ text: string;
2097
2122
  }>, z.ZodObject<{
2098
2123
  type: z.ZodLiteral<"exit">;
2099
2124
  lifecycle: z.ZodObject<{
@@ -2105,13 +2130,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2105
2130
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
2106
2131
  }, "strip", z.ZodTypeAny, {
2107
2132
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2108
- message?: string | undefined;
2109
2133
  error?: string | undefined;
2134
+ message?: string | undefined;
2110
2135
  progress?: number | undefined;
2111
2136
  }, {
2112
2137
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2113
- message?: string | undefined;
2114
2138
  error?: string | undefined;
2139
+ message?: string | undefined;
2115
2140
  progress?: number | undefined;
2116
2141
  }>;
2117
2142
  runtime: z.ZodObject<{
@@ -2122,13 +2147,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2122
2147
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
2123
2148
  }, "strip", z.ZodTypeAny, {
2124
2149
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2125
- message?: string | undefined;
2126
2150
  error?: string | undefined;
2151
+ message?: string | undefined;
2127
2152
  progress?: number | undefined;
2128
2153
  }, {
2129
2154
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2130
- message?: string | undefined;
2131
2155
  error?: string | undefined;
2156
+ message?: string | undefined;
2132
2157
  progress?: number | undefined;
2133
2158
  }>;
2134
2159
  assets: z.ZodObject<{
@@ -2138,54 +2163,54 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2138
2163
  } & {
2139
2164
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
2140
2165
  }, "strip", z.ZodTypeAny, {
2141
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2142
- message?: string | undefined;
2166
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2143
2167
  error?: string | undefined;
2168
+ message?: string | undefined;
2144
2169
  progress?: number | undefined;
2145
2170
  }, {
2146
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2147
- message?: string | undefined;
2171
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2148
2172
  error?: string | undefined;
2173
+ message?: string | undefined;
2149
2174
  progress?: number | undefined;
2150
2175
  }>;
2151
2176
  summary: z.ZodOptional<z.ZodString>;
2152
2177
  }, "strip", z.ZodTypeAny, {
2153
2178
  dependency: {
2154
2179
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2155
- message?: string | undefined;
2156
2180
  error?: string | undefined;
2181
+ message?: string | undefined;
2157
2182
  progress?: number | undefined;
2158
2183
  };
2159
2184
  runtime: {
2160
2185
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2161
- message?: string | undefined;
2162
2186
  error?: string | undefined;
2187
+ message?: string | undefined;
2163
2188
  progress?: number | undefined;
2164
2189
  };
2165
2190
  assets: {
2166
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2167
- message?: string | undefined;
2191
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2168
2192
  error?: string | undefined;
2193
+ message?: string | undefined;
2169
2194
  progress?: number | undefined;
2170
2195
  };
2171
2196
  summary?: string | undefined;
2172
2197
  }, {
2173
2198
  dependency: {
2174
2199
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2175
- message?: string | undefined;
2176
2200
  error?: string | undefined;
2201
+ message?: string | undefined;
2177
2202
  progress?: number | undefined;
2178
2203
  };
2179
2204
  runtime: {
2180
2205
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2181
- message?: string | undefined;
2182
2206
  error?: string | undefined;
2207
+ message?: string | undefined;
2183
2208
  progress?: number | undefined;
2184
2209
  };
2185
2210
  assets: {
2186
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2187
- message?: string | undefined;
2211
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2188
2212
  error?: string | undefined;
2213
+ message?: string | undefined;
2189
2214
  progress?: number | undefined;
2190
2215
  };
2191
2216
  summary?: string | undefined;
@@ -2195,20 +2220,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2195
2220
  lifecycle: {
2196
2221
  dependency: {
2197
2222
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2198
- message?: string | undefined;
2199
2223
  error?: string | undefined;
2224
+ message?: string | undefined;
2200
2225
  progress?: number | undefined;
2201
2226
  };
2202
2227
  runtime: {
2203
2228
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2204
- message?: string | undefined;
2205
2229
  error?: string | undefined;
2230
+ message?: string | undefined;
2206
2231
  progress?: number | undefined;
2207
2232
  };
2208
2233
  assets: {
2209
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2210
- message?: string | undefined;
2234
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2211
2235
  error?: string | undefined;
2236
+ message?: string | undefined;
2212
2237
  progress?: number | undefined;
2213
2238
  };
2214
2239
  summary?: string | undefined;
@@ -2218,20 +2243,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2218
2243
  lifecycle: {
2219
2244
  dependency: {
2220
2245
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2221
- message?: string | undefined;
2222
2246
  error?: string | undefined;
2247
+ message?: string | undefined;
2223
2248
  progress?: number | undefined;
2224
2249
  };
2225
2250
  runtime: {
2226
2251
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2227
- message?: string | undefined;
2228
2252
  error?: string | undefined;
2253
+ message?: string | undefined;
2229
2254
  progress?: number | undefined;
2230
2255
  };
2231
2256
  assets: {
2232
- state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
2233
- message?: string | undefined;
2257
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2234
2258
  error?: string | undefined;
2259
+ message?: string | undefined;
2235
2260
  progress?: number | undefined;
2236
2261
  };
2237
2262
  summary?: string | undefined;
@@ -2368,45 +2393,55 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
2368
2393
  model: z.ZodDefault<z.ZodString>;
2369
2394
  selectedGroupId: z.ZodOptional<z.ZodString>;
2370
2395
  hfEndpoint: z.ZodDefault<z.ZodString>;
2396
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2371
2397
  }, "strip", z.ZodTypeAny, {
2372
2398
  model: string;
2373
2399
  hfEndpoint: string;
2400
+ memoryBudgetPercent: number;
2374
2401
  selectedGroupId?: string | undefined;
2375
2402
  }, {
2376
2403
  selectedGroupId?: string | undefined;
2377
2404
  model?: string | undefined;
2378
2405
  hfEndpoint?: string | undefined;
2406
+ memoryBudgetPercent?: number | undefined;
2379
2407
  }>;
2380
2408
  type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
2381
2409
  declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
2382
2410
  model: z.ZodDefault<z.ZodString>;
2383
2411
  selectedGroupId: z.ZodOptional<z.ZodString>;
2384
2412
  hfEndpoint: z.ZodDefault<z.ZodString>;
2413
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2385
2414
  }, "strip", z.ZodTypeAny, {
2386
2415
  model: string;
2387
2416
  hfEndpoint: string;
2417
+ memoryBudgetPercent: number;
2388
2418
  selectedGroupId?: string | undefined;
2389
2419
  }, {
2390
2420
  selectedGroupId?: string | undefined;
2391
2421
  model?: string | undefined;
2392
2422
  hfEndpoint?: string | undefined;
2423
+ memoryBudgetPercent?: number | undefined;
2393
2424
  }>;
2394
2425
  type TranslationLocalCt2Settings = z.infer<typeof TranslationLocalCt2SettingsSchema>;
2395
2426
  declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{
2396
2427
  model: z.ZodDefault<z.ZodString>;
2397
2428
  selectedGroupId: z.ZodOptional<z.ZodString>;
2398
2429
  hfEndpoint: z.ZodDefault<z.ZodString>;
2430
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2399
2431
  }, "strip", z.ZodTypeAny, {
2400
2432
  model: string;
2401
2433
  hfEndpoint: string;
2434
+ memoryBudgetPercent: number;
2402
2435
  selectedGroupId?: string | undefined;
2403
2436
  }, {
2404
2437
  selectedGroupId?: string | undefined;
2405
2438
  model?: string | undefined;
2406
2439
  hfEndpoint?: string | undefined;
2440
+ memoryBudgetPercent?: number | undefined;
2407
2441
  }>;
2408
2442
  type TranslationLocalLlamaSettings = z.infer<typeof TranslationLocalLlamaSettingsSchema>;
2409
2443
  declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2444
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
2410
2445
  openai: z.ZodDefault<z.ZodObject<{
2411
2446
  baseUrl: z.ZodDefault<z.ZodString>;
2412
2447
  token: z.ZodDefault<z.ZodString>;
@@ -2424,45 +2459,55 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2424
2459
  model: z.ZodDefault<z.ZodString>;
2425
2460
  selectedGroupId: z.ZodOptional<z.ZodString>;
2426
2461
  hfEndpoint: z.ZodDefault<z.ZodString>;
2462
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2427
2463
  }, "strip", z.ZodTypeAny, {
2428
2464
  model: string;
2429
2465
  hfEndpoint: string;
2466
+ memoryBudgetPercent: number;
2430
2467
  selectedGroupId?: string | undefined;
2431
2468
  }, {
2432
2469
  selectedGroupId?: string | undefined;
2433
2470
  model?: string | undefined;
2434
2471
  hfEndpoint?: string | undefined;
2472
+ memoryBudgetPercent?: number | undefined;
2435
2473
  }>>;
2436
2474
  localCt2: z.ZodDefault<z.ZodObject<{
2437
2475
  model: z.ZodDefault<z.ZodString>;
2438
2476
  selectedGroupId: z.ZodOptional<z.ZodString>;
2439
2477
  hfEndpoint: z.ZodDefault<z.ZodString>;
2478
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2440
2479
  }, "strip", z.ZodTypeAny, {
2441
2480
  model: string;
2442
2481
  hfEndpoint: string;
2482
+ memoryBudgetPercent: number;
2443
2483
  selectedGroupId?: string | undefined;
2444
2484
  }, {
2445
2485
  selectedGroupId?: string | undefined;
2446
2486
  model?: string | undefined;
2447
2487
  hfEndpoint?: string | undefined;
2488
+ memoryBudgetPercent?: number | undefined;
2448
2489
  }>>;
2449
2490
  localLlama: z.ZodDefault<z.ZodObject<{
2450
2491
  model: z.ZodDefault<z.ZodString>;
2451
2492
  selectedGroupId: z.ZodOptional<z.ZodString>;
2452
2493
  hfEndpoint: z.ZodDefault<z.ZodString>;
2494
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2453
2495
  }, "strip", z.ZodTypeAny, {
2454
2496
  model: string;
2455
2497
  hfEndpoint: string;
2498
+ memoryBudgetPercent: number;
2456
2499
  selectedGroupId?: string | undefined;
2457
2500
  }, {
2458
2501
  selectedGroupId?: string | undefined;
2459
2502
  model?: string | undefined;
2460
2503
  hfEndpoint?: string | undefined;
2504
+ memoryBudgetPercent?: number | undefined;
2461
2505
  }>>;
2462
2506
  }, "strip", z.ZodTypeAny, {
2463
2507
  local: {
2464
2508
  model: string;
2465
2509
  hfEndpoint: string;
2510
+ memoryBudgetPercent: number;
2466
2511
  selectedGroupId?: string | undefined;
2467
2512
  };
2468
2513
  openai: {
@@ -2470,14 +2515,17 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2470
2515
  token: string;
2471
2516
  model: string;
2472
2517
  };
2518
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
2473
2519
  localCt2: {
2474
2520
  model: string;
2475
2521
  hfEndpoint: string;
2522
+ memoryBudgetPercent: number;
2476
2523
  selectedGroupId?: string | undefined;
2477
2524
  };
2478
2525
  localLlama: {
2479
2526
  model: string;
2480
2527
  hfEndpoint: string;
2528
+ memoryBudgetPercent: number;
2481
2529
  selectedGroupId?: string | undefined;
2482
2530
  };
2483
2531
  }, {
@@ -2485,25 +2533,30 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2485
2533
  selectedGroupId?: string | undefined;
2486
2534
  model?: string | undefined;
2487
2535
  hfEndpoint?: string | undefined;
2536
+ memoryBudgetPercent?: number | undefined;
2488
2537
  } | undefined;
2489
2538
  openai?: {
2490
2539
  baseUrl?: string | undefined;
2491
2540
  token?: string | undefined;
2492
2541
  model?: string | undefined;
2493
2542
  } | undefined;
2543
+ engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
2494
2544
  localCt2?: {
2495
2545
  selectedGroupId?: string | undefined;
2496
2546
  model?: string | undefined;
2497
2547
  hfEndpoint?: string | undefined;
2548
+ memoryBudgetPercent?: number | undefined;
2498
2549
  } | undefined;
2499
2550
  localLlama?: {
2500
2551
  selectedGroupId?: string | undefined;
2501
2552
  model?: string | undefined;
2502
2553
  hfEndpoint?: string | undefined;
2554
+ memoryBudgetPercent?: number | undefined;
2503
2555
  } | undefined;
2504
2556
  }>;
2505
2557
  type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
2506
2558
  type TranslationEngineGlobalSettingsUpdate = {
2559
+ engineId?: TranslationEngineId;
2507
2560
  openai?: Partial<TranslationOpenAISettings>;
2508
2561
  local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
2509
2562
  selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
@@ -2524,11 +2577,13 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
2524
2577
  inputs: z.ZodArray<z.ZodString, "many">;
2525
2578
  instructions: z.ZodOptional<z.ZodString>;
2526
2579
  context: z.ZodOptional<z.ZodString>;
2580
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2527
2581
  }, "strip", z.ZodTypeAny, {
2528
2582
  engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
2529
2583
  sourceLanguage: string;
2530
2584
  targetLanguage: string;
2531
2585
  inputs: string[];
2586
+ timeoutMs: number;
2532
2587
  selectedGroupId?: string | undefined;
2533
2588
  model?: string | undefined;
2534
2589
  instructions?: string | undefined;
@@ -2542,18 +2597,37 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
2542
2597
  model?: string | undefined;
2543
2598
  instructions?: string | undefined;
2544
2599
  context?: string | undefined;
2600
+ timeoutMs?: number | undefined;
2545
2601
  }>;
2546
2602
  type BatchTranslateInput = z.infer<typeof BatchTranslateInputSchema>;
2547
2603
  declare const BatchTranslateEventSchema: z.ZodObject<{
2548
2604
  index: z.ZodNumber;
2549
- output: z.ZodString;
2605
+ output: z.ZodOptional<z.ZodString>;
2606
+ error: z.ZodOptional<z.ZodObject<{
2607
+ kind: z.ZodEnum<["timeout", "memory-limit", "runtime", "abort"]>;
2608
+ message: z.ZodString;
2609
+ }, "strip", z.ZodTypeAny, {
2610
+ message: string;
2611
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2612
+ }, {
2613
+ message: string;
2614
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2615
+ }>>;
2550
2616
  }, "strip", z.ZodTypeAny, {
2551
2617
  index: number;
2552
- output: string;
2618
+ error?: {
2619
+ message: string;
2620
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2621
+ } | undefined;
2622
+ output?: string | undefined;
2553
2623
  }, {
2554
2624
  index: number;
2555
- output: string;
2625
+ error?: {
2626
+ message: string;
2627
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2628
+ } | undefined;
2629
+ output?: string | undefined;
2556
2630
  }>;
2557
2631
  type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
2558
2632
  //#endregion
2559
- export { TranslationEngineDependencyStatusSchema as $, isTranslationEngineDependencyReady as $t, LocalModelProfileManifestSchema as A, TranslationLocalSettings as At, TRANSLATION_ENGINE_MANIFESTS as B, Translator as Bt, LocalModelProfileLoadState as C, TranslationEngineRuntimeStatus as Ct, LocalModelProfileManifestFileSchema as D, TranslationLocalCt2SettingsSchema as Dt, LocalModelProfileManifestFile as E, TranslationLocalCt2Settings as Et, ManagedLocalTranslationEngineId as F, TranslationModelSearchInput as Ft, TranslationDownloadGroupPlanSchema as G, TranslatorOptions as Gt, TranslationDownloadFilePlan as H, TranslatorFactory as Ht, SERVICE_TRANSLATION_ENGINE_IDS as I, TranslationModelSearchPhase as It, TranslationEngineAssetStatus as J, getManagedLocalTranslationEngineManifest as Jt, TranslationEngineAssetState as K, TranslatorPrepareMonitor as Kt, ServiceTranslationEngineId as L, TranslationModelSearchResult as Lt, LocalModelProfileStatusSchema as M, TranslationModelCandidate as Mt, ManagedLocalCatalogSource as N, TranslationModelDownloadPlan as Nt, LocalModelProfileManifestGroup as O, TranslationLocalLlamaSettings as Ot, ManagedLocalCatalogSourceSchema as P, TranslationModelSearchEvent as Pt, TranslationEngineDependencyStatus as Q, isManagedLocalTranslationEngineId as Qt, ServiceTranslationEngineIdSchema as R, TranslationOpenAISettings as Rt, LocalModelLifecycleGroupStateSchema as S, TranslationEngineRuntimeStateSchema as St, LocalModelProfileManifest as T, TranslationEngineSettingsKey as Tt, TranslationDownloadFilePlanSchema as U, TranslatorFactoryCreateOptions as Ut, TRANSLATOR_CONTRACT_VERSION as V, TranslatorCreateMonitor as Vt, TranslationDownloadGroupPlan as W, TranslatorFactoryPrepareOptions as Wt, TranslationEngineDependencyState as X, getTranslationEngineManifest as Xt, TranslationEngineAssetStatusSchema as Y, getTranslationEngineLifecycleMessage as Yt, TranslationEngineDependencyStateSchema as Z, isDirectionalManagedLocalTranslationEngineId as Zt, LocalModelDownloadStatus as _, TranslationEngineLifecycleStatusEvent as _t, BatchTranslationResult as a, TranslationEngineInstallLogEvent as at, LocalModelLifecycleFileStateSchema as b, TranslationEngineRuntime as bt, LocalModelAssetLogSchema as c, TranslationEngineInstallLogStreamSchema as ct, LocalModelAssetState as d, TranslationEngineLifecycleController as dt, isTranslationEngineRuntimeReady as en, TranslationEngineGlobalSettings as et, LocalModelAssetStateSchema as f, TranslationEngineLifecycleEvent as ft, LocalModelCatalogSearchEvent as g, TranslationEngineLifecycleStatus as gt, LocalModelCatalogResult as h, TranslationEngineLifecycleLogEvent as ht, BatchTranslateInputSchema as i, TranslationEngineIdSchema as it, LocalModelProfileStatus as j, TranslationLocalSettingsSchema as jt, LocalModelProfileManifestGroupSchema as k, TranslationLocalLlamaSettingsSchema as kt, LocalModelAssetPlanSnapshot as l, TranslationEngineKind as lt, LocalModelCatalogLocalResult as m, TranslationEngineLifecycleExitEvent as mt, BatchTranslateEventSchema as n, TranslationEngineGlobalSettingsUpdate as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, TranslationEngineInstallLogEventSchema as ot, LocalModelCatalogItem as p, TranslationEngineLifecycleEventSchema as pt, TranslationEngineAssetStateSchema as q, createTranslationEngineLifecycleStatus as qt, BatchTranslateInput as r, TranslationEngineId as rt, LocalModelAssetLog as s, TranslationEngineInstallLogStream as st, BatchTranslateEvent as t, shouldShowTranslationEngineInstallGate as tn, TranslationEngineGlobalSettingsSchema as tt, LocalModelAssetPlanSnapshotSchema as u, TranslationEngineLifecycleContext as ut, LocalModelDownloadStatusSchema as v, TranslationEngineLifecycleStatusSchema as vt, LocalModelProfileLoadStateSchema as w, TranslationEngineRuntimeStatusSchema as wt, LocalModelLifecycleGroupState as x, TranslationEngineRuntimeState as xt, LocalModelLifecycleFileState as y, TranslationEngineManifest as yt, TRANSLATION_ENGINE_IDS as z, TranslationOpenAISettingsSchema as zt };
2633
+ export { TranslationEngineDependencyStatus as $, isManagedLocalTranslationEngineId as $t, LocalModelProfileManifestGroupSchema as A, TranslationLocalLlamaSettingsSchema as At, TRANSLATION_ENGINE_IDS as B, TranslationOpenAISettingsSchema as Bt, LocalModelLifecycleGroupStateSchema as C, TranslationEngineRuntimeStateSchema as Ct, LocalModelProfileManifestFile as D, TranslationLocalCt2Settings as Dt, LocalModelProfileManifest as E, TranslationEngineSettingsKey as Et, ManagedLocalCatalogSourceSchema as F, TranslationModelSearchEvent as Ft, TranslationDownloadGroupPlan as G, TranslatorFactoryPrepareOptions as Gt, TRANSLATOR_CONTRACT_VERSION as H, TranslatorCreateMonitor as Ht, ManagedLocalTranslationEngineId as I, TranslationModelSearchInput as It, TranslationEngineAssetStateSchema as J, createTranslationEngineLifecycleStatus as Jt, TranslationDownloadGroupPlanSchema as K, TranslatorOptions as Kt, SERVICE_TRANSLATION_ENGINE_IDS as L, TranslationModelSearchPhase as Lt, LocalModelProfileStatus as M, TranslationLocalSettingsSchema as Mt, LocalModelProfileStatusSchema as N, TranslationModelCandidate as Nt, LocalModelProfileManifestFileSchema as O, TranslationLocalCt2SettingsSchema as Ot, ManagedLocalCatalogSource as P, TranslationModelDownloadPlan as Pt, TranslationEngineDependencyStateSchema as Q, isDirectionalManagedLocalTranslationEngineId as Qt, ServiceTranslationEngineId as R, TranslationModelSearchResult as Rt, LocalModelLifecycleGroupState as S, TranslationEngineRuntimeState as St, LocalModelProfileLoadStateSchema as T, TranslationEngineRuntimeStatusSchema as Tt, TranslationDownloadFilePlan as U, TranslatorFactory as Ut, TRANSLATION_ENGINE_MANIFESTS as V, Translator as Vt, TranslationDownloadFilePlanSchema as W, TranslatorFactoryCreateOptions as Wt, TranslationEngineAssetStatusSchema as X, getTranslationEngineLifecycleMessage as Xt, TranslationEngineAssetStatus as Y, getManagedLocalTranslationEngineManifest as Yt, TranslationEngineDependencyState as Z, getTranslationEngineManifest as Zt, LocalModelCatalogSearchEvent as _, TranslationEngineLifecycleStatus as _t, BatchTranslationResult as a, isBatchTranslationAbort as an, TranslationEngineIdSchema as at, LocalModelLifecycleFileState as b, TranslationEngineManifest as bt, LocalModelAssetLog as c, TranslationEngineInstallLogStream as ct, LocalModelAssetPlanSnapshotSchema as d, TranslationEngineLifecycleContext as dt, isTranslationEngineDependencyReady as en, TranslationEngineDependencyStatusSchema as et, LocalModelAssetState as f, TranslationEngineLifecycleController as ft, LocalModelCatalogResult as g, TranslationEngineLifecycleLogEvent as gt, LocalModelCatalogLocalResult as h, TranslationEngineLifecycleExitEvent as ht, BatchTranslateInputSchema as i, BatchTranslationErrorKind as in, TranslationEngineId as it, LocalModelProfileManifestSchema as j, TranslationLocalSettings as jt, LocalModelProfileManifestGroup as k, TranslationLocalLlamaSettings as kt, LocalModelAssetLogSchema as l, TranslationEngineInstallLogStreamSchema as lt, LocalModelCatalogItem as m, TranslationEngineLifecycleEventSchema as mt, BatchTranslateEventSchema as n, shouldShowTranslationEngineInstallGate as nn, TranslationEngineGlobalSettingsSchema as nt, DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS as o, normalizeBatchTranslationError as on, TranslationEngineInstallLogEvent as ot, LocalModelAssetStateSchema as p, TranslationEngineLifecycleEvent as pt, TranslationEngineAssetState as q, TranslatorPrepareMonitor as qt, BatchTranslateInput as r, BatchTranslationError as rn, TranslationEngineGlobalSettingsUpdate as rt, DEFAULT_TRANSLATION_ENGINE_ID as s, runControlledTranslationTask as sn, TranslationEngineInstallLogEventSchema as st, BatchTranslateEvent as t, isTranslationEngineRuntimeReady as tn, TranslationEngineGlobalSettings as tt, LocalModelAssetPlanSnapshot as u, TranslationEngineKind as ut, LocalModelDownloadStatus as v, TranslationEngineLifecycleStatusEvent as vt, LocalModelProfileLoadState as w, TranslationEngineRuntimeStatus as wt, LocalModelLifecycleFileStateSchema as x, TranslationEngineRuntime as xt, LocalModelDownloadStatusSchema as y, TranslationEngineLifecycleStatusSchema as yt, ServiceTranslationEngineIdSchema as z, TranslationOpenAISettings as zt };