@openspecui/core 3.11.1 → 3.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{document-translation-Dnl1lz2K.mjs → document-translation-BrlCvnLZ.mjs} +9 -1
- package/dist/{document-translation-AlZtjOt5.d.mts → document-translation-Cv6BIGL5.d.mts} +117 -23
- package/dist/document-translation.d.mts +1 -1
- package/dist/document-translation.mjs +2 -2
- package/dist/index.d.mts +215 -47
- package/dist/index.mjs +254 -6
- package/dist/{local-download-profiles-DISrU0mw.d.mts → local-download-profiles-GKs2OOqJ.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-gGjGaYsF.d.mts → notifications-CJQ_F_Un.d.mts} +9 -9
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-projection-BojcJ9zl.d.mts → openspec-projection-BbuPTbvj.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-BdyGTVs_.d.mts → opsx-entity-BO9G2SCW.d.mts} +7 -7
- package/dist/opsx-entity.d.mts +2 -2
- package/dist/{opsx-schema-detail-Cf8YIflR.d.mts → opsx-schema-detail-DTajJW4g.d.mts} +1 -1
- package/dist/opsx-schema-detail.d.mts +3 -3
- package/dist/{schemas-DV6yABO9.d.mts → schemas-DQzd1hgp.d.mts} +30 -30
- package/dist/{sounds-C906qHTJ.d.mts → sounds-3yEx1YXT.d.mts} +5 -5
- package/dist/sounds.d.mts +1 -1
- package/dist/{terminal-audio-D6dE8O1_.d.mts → terminal-audio-UCLlM1qN.d.mts} +2 -2
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-Cz0vfgkw.d.mts → terminal-invocation-DCPc8hmm.d.mts} +42 -42
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translation-language-pair-D6f5u70K.mjs → translation-language-pair-Cb4a0hG6.mjs} +2 -1
- package/dist/translation-language-pair.mjs +1 -1
- package/dist/translator-Car0_7uk.mjs +412 -0
- package/dist/{translator-tTXEGRdz.d.mts → translator-prn3W9lf.d.mts} +786 -111
- package/dist/translator.d.mts +2 -2
- package/dist/translator.mjs +2 -2
- package/package.json +1 -1
- package/dist/translator-B0T5VL9k.mjs +0 -239
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/translator.d.ts
|
|
4
|
-
declare const TRANSLATOR_CONTRACT_VERSION =
|
|
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", "local-llama", "openai"];
|
|
6
|
+
declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>;
|
|
7
7
|
type TranslationEngineId = z.infer<typeof TranslationEngineIdSchema>;
|
|
8
8
|
declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId;
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
9
|
+
declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2' | 'local-llama'>;
|
|
10
|
+
declare function isDirectionalManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2'>;
|
|
11
|
+
type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'local-ct2' | 'local-llama'>;
|
|
12
|
+
declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "local-llama", "openai"];
|
|
13
|
+
declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "local-llama", "openai"]>;
|
|
11
14
|
type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
|
|
12
15
|
interface TranslatorOptions {
|
|
13
16
|
instructions?: string;
|
|
@@ -190,8 +193,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
190
193
|
raw?: unknown;
|
|
191
194
|
}>, "many">;
|
|
192
195
|
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
id: string;
|
|
194
196
|
label: string;
|
|
197
|
+
id: string;
|
|
195
198
|
selectable: boolean;
|
|
196
199
|
selected: boolean;
|
|
197
200
|
files: {
|
|
@@ -218,8 +221,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
218
221
|
totalBytes?: number | undefined;
|
|
219
222
|
resumable?: boolean | undefined;
|
|
220
223
|
}, {
|
|
221
|
-
id: string;
|
|
222
224
|
label: string;
|
|
225
|
+
id: string;
|
|
223
226
|
selectable: boolean;
|
|
224
227
|
selected: boolean;
|
|
225
228
|
files: {
|
|
@@ -313,8 +316,8 @@ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
|
|
|
313
316
|
raw?: unknown;
|
|
314
317
|
}>, "many">;
|
|
315
318
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
id: string;
|
|
317
319
|
label: string;
|
|
320
|
+
id: string;
|
|
318
321
|
baseGroupId: string;
|
|
319
322
|
commitHash: string;
|
|
320
323
|
shortCommitHash: string;
|
|
@@ -335,8 +338,8 @@ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
|
|
|
335
338
|
dtype?: string | undefined;
|
|
336
339
|
estimatedTotalBytes?: number | undefined;
|
|
337
340
|
}, {
|
|
338
|
-
id: string;
|
|
339
341
|
label: string;
|
|
342
|
+
id: string;
|
|
340
343
|
baseGroupId: string;
|
|
341
344
|
commitHash: string;
|
|
342
345
|
shortCommitHash: string;
|
|
@@ -407,8 +410,8 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
407
410
|
raw?: unknown;
|
|
408
411
|
}>, "many">;
|
|
409
412
|
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
id: string;
|
|
411
413
|
label: string;
|
|
414
|
+
id: string;
|
|
412
415
|
baseGroupId: string;
|
|
413
416
|
commitHash: string;
|
|
414
417
|
shortCommitHash: string;
|
|
@@ -429,8 +432,8 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
429
432
|
dtype?: string | undefined;
|
|
430
433
|
estimatedTotalBytes?: number | undefined;
|
|
431
434
|
}, {
|
|
432
|
-
id: string;
|
|
433
435
|
label: string;
|
|
436
|
+
id: string;
|
|
434
437
|
baseGroupId: string;
|
|
435
438
|
commitHash: string;
|
|
436
439
|
shortCommitHash: string;
|
|
@@ -453,7 +456,6 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
453
456
|
}>>>;
|
|
454
457
|
groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
455
458
|
}, "strip", z.ZodTypeAny, {
|
|
456
|
-
updatedAt: number;
|
|
457
459
|
source: "huggingface";
|
|
458
460
|
revision: string;
|
|
459
461
|
commitHash: string;
|
|
@@ -461,9 +463,10 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
461
463
|
modelId: string;
|
|
462
464
|
endpoint: string;
|
|
463
465
|
fetchedAt: number;
|
|
466
|
+
updatedAt: number;
|
|
464
467
|
groups: Record<string, {
|
|
465
|
-
id: string;
|
|
466
468
|
label: string;
|
|
469
|
+
id: string;
|
|
467
470
|
baseGroupId: string;
|
|
468
471
|
commitHash: string;
|
|
469
472
|
shortCommitHash: string;
|
|
@@ -487,18 +490,18 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
487
490
|
groupOrder: string[];
|
|
488
491
|
raw?: unknown;
|
|
489
492
|
}, {
|
|
490
|
-
updatedAt: number;
|
|
491
493
|
source: "huggingface";
|
|
492
494
|
revision: string;
|
|
493
495
|
commitHash: string;
|
|
494
496
|
shortCommitHash: string;
|
|
495
497
|
modelId: string;
|
|
496
498
|
fetchedAt: number;
|
|
499
|
+
updatedAt: number;
|
|
497
500
|
raw?: unknown;
|
|
498
501
|
endpoint?: string | undefined;
|
|
499
502
|
groups?: Record<string, {
|
|
500
|
-
id: string;
|
|
501
503
|
label: string;
|
|
504
|
+
id: string;
|
|
502
505
|
baseGroupId: string;
|
|
503
506
|
commitHash: string;
|
|
504
507
|
shortCommitHash: string;
|
|
@@ -531,20 +534,20 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
|
|
|
531
534
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
532
535
|
error: z.ZodOptional<z.ZodString>;
|
|
533
536
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
path: string;
|
|
535
537
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
538
|
+
path: string;
|
|
536
539
|
required: boolean;
|
|
537
|
-
updatedAt?: number | undefined;
|
|
538
540
|
error?: string | undefined;
|
|
539
541
|
sizeBytes?: number | undefined;
|
|
542
|
+
updatedAt?: number | undefined;
|
|
540
543
|
downloadedBytes?: number | undefined;
|
|
541
544
|
}, {
|
|
542
545
|
path: string;
|
|
543
546
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
544
|
-
updatedAt?: number | undefined;
|
|
545
|
-
required?: boolean | undefined;
|
|
546
547
|
error?: string | undefined;
|
|
548
|
+
required?: boolean | undefined;
|
|
547
549
|
sizeBytes?: number | undefined;
|
|
550
|
+
updatedAt?: number | undefined;
|
|
548
551
|
downloadedBytes?: number | undefined;
|
|
549
552
|
}>;
|
|
550
553
|
type LocalModelLifecycleFileState = z.infer<typeof LocalModelLifecycleFileStateSchema>;
|
|
@@ -569,20 +572,20 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
569
572
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
570
573
|
error: z.ZodOptional<z.ZodString>;
|
|
571
574
|
}, "strip", z.ZodTypeAny, {
|
|
572
|
-
path: string;
|
|
573
575
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
576
|
+
path: string;
|
|
574
577
|
required: boolean;
|
|
575
|
-
updatedAt?: number | undefined;
|
|
576
578
|
error?: string | undefined;
|
|
577
579
|
sizeBytes?: number | undefined;
|
|
580
|
+
updatedAt?: number | undefined;
|
|
578
581
|
downloadedBytes?: number | undefined;
|
|
579
582
|
}, {
|
|
580
583
|
path: string;
|
|
581
584
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
582
|
-
updatedAt?: number | undefined;
|
|
583
|
-
required?: boolean | undefined;
|
|
584
585
|
error?: string | undefined;
|
|
586
|
+
required?: boolean | undefined;
|
|
585
587
|
sizeBytes?: number | undefined;
|
|
588
|
+
updatedAt?: number | undefined;
|
|
586
589
|
downloadedBytes?: number | undefined;
|
|
587
590
|
}>, "many">>;
|
|
588
591
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -590,26 +593,25 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
590
593
|
groupId: string;
|
|
591
594
|
resumable: boolean;
|
|
592
595
|
files: {
|
|
593
|
-
path: string;
|
|
594
596
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
597
|
+
path: string;
|
|
595
598
|
required: boolean;
|
|
596
|
-
updatedAt?: number | undefined;
|
|
597
599
|
error?: string | undefined;
|
|
598
600
|
sizeBytes?: number | undefined;
|
|
601
|
+
updatedAt?: number | undefined;
|
|
599
602
|
downloadedBytes?: number | undefined;
|
|
600
603
|
}[];
|
|
601
|
-
updatedAt?: number | undefined;
|
|
602
604
|
error?: string | undefined;
|
|
603
605
|
baseGroupId?: string | undefined;
|
|
604
606
|
rootDir?: string | undefined;
|
|
605
607
|
progress?: number | undefined;
|
|
606
608
|
bytesDownloaded?: number | undefined;
|
|
607
609
|
totalBytes?: number | undefined;
|
|
610
|
+
updatedAt?: number | undefined;
|
|
608
611
|
installedAt?: number | undefined;
|
|
609
612
|
}, {
|
|
610
613
|
groupId: string;
|
|
611
614
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
612
|
-
updatedAt?: number | undefined;
|
|
613
615
|
error?: string | undefined;
|
|
614
616
|
baseGroupId?: string | undefined;
|
|
615
617
|
rootDir?: string | undefined;
|
|
@@ -620,12 +622,13 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
620
622
|
files?: {
|
|
621
623
|
path: string;
|
|
622
624
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
623
|
-
updatedAt?: number | undefined;
|
|
624
|
-
required?: boolean | undefined;
|
|
625
625
|
error?: string | undefined;
|
|
626
|
+
required?: boolean | undefined;
|
|
626
627
|
sizeBytes?: number | undefined;
|
|
628
|
+
updatedAt?: number | undefined;
|
|
627
629
|
downloadedBytes?: number | undefined;
|
|
628
630
|
}[] | undefined;
|
|
631
|
+
updatedAt?: number | undefined;
|
|
629
632
|
installedAt?: number | undefined;
|
|
630
633
|
}>;
|
|
631
634
|
type LocalModelLifecycleGroupState = z.infer<typeof LocalModelLifecycleGroupStateSchema>;
|
|
@@ -637,17 +640,17 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
|
|
|
637
640
|
}, "strip", z.ZodTypeAny, {
|
|
638
641
|
status: "error" | "idle" | "loading" | "ready";
|
|
639
642
|
message?: string | undefined;
|
|
640
|
-
updatedAt?: number | undefined;
|
|
641
643
|
error?: string | undefined;
|
|
644
|
+
updatedAt?: number | undefined;
|
|
642
645
|
}, {
|
|
643
|
-
message?: string | undefined;
|
|
644
646
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
645
|
-
|
|
647
|
+
message?: string | undefined;
|
|
646
648
|
error?: string | undefined;
|
|
649
|
+
updatedAt?: number | undefined;
|
|
647
650
|
}>;
|
|
648
651
|
type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
|
|
649
652
|
declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
650
|
-
engineId: z.
|
|
653
|
+
engineId: z.ZodEnum<["local", "local-ct2", "local-llama"]>;
|
|
651
654
|
modelId: z.ZodString;
|
|
652
655
|
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
653
656
|
groupId: z.ZodOptional<z.ZodString>;
|
|
@@ -673,12 +676,11 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
673
676
|
}>, "many">>;
|
|
674
677
|
updatedAt: z.ZodNumber;
|
|
675
678
|
}, "strip", z.ZodTypeAny, {
|
|
676
|
-
message: string;
|
|
677
679
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
678
|
-
|
|
679
|
-
updatedAt: number;
|
|
680
|
+
message: string;
|
|
680
681
|
modelId: string;
|
|
681
|
-
|
|
682
|
+
updatedAt: number;
|
|
683
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
682
684
|
sessionId?: string | undefined;
|
|
683
685
|
groupId?: string | undefined;
|
|
684
686
|
progress?: number | undefined;
|
|
@@ -690,13 +692,13 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
690
692
|
sizeBytes?: number | undefined;
|
|
691
693
|
downloadedBytes?: number | undefined;
|
|
692
694
|
}[] | undefined;
|
|
695
|
+
selectedGroupId?: string | undefined;
|
|
693
696
|
}, {
|
|
694
|
-
message: string;
|
|
695
697
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
696
|
-
|
|
697
|
-
updatedAt: number;
|
|
698
|
+
message: string;
|
|
698
699
|
modelId: string;
|
|
699
|
-
|
|
700
|
+
updatedAt: number;
|
|
701
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
700
702
|
sessionId?: string | undefined;
|
|
701
703
|
groupId?: string | undefined;
|
|
702
704
|
progress?: number | undefined;
|
|
@@ -708,6 +710,7 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
708
710
|
sizeBytes?: number | undefined;
|
|
709
711
|
downloadedBytes?: number | undefined;
|
|
710
712
|
}[] | undefined;
|
|
713
|
+
selectedGroupId?: string | undefined;
|
|
711
714
|
}>;
|
|
712
715
|
type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
|
|
713
716
|
declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
@@ -785,8 +788,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
785
788
|
raw?: unknown;
|
|
786
789
|
}>, "many">;
|
|
787
790
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
id: string;
|
|
789
791
|
label: string;
|
|
792
|
+
id: string;
|
|
790
793
|
selectable: boolean;
|
|
791
794
|
selected: boolean;
|
|
792
795
|
files: {
|
|
@@ -813,8 +816,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
813
816
|
totalBytes?: number | undefined;
|
|
814
817
|
resumable?: boolean | undefined;
|
|
815
818
|
}, {
|
|
816
|
-
id: string;
|
|
817
819
|
label: string;
|
|
820
|
+
id: string;
|
|
818
821
|
selectable: boolean;
|
|
819
822
|
selected: boolean;
|
|
820
823
|
files: {
|
|
@@ -852,12 +855,11 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
852
855
|
raw?: unknown;
|
|
853
856
|
}[];
|
|
854
857
|
modelId: string;
|
|
855
|
-
selectedGroupId?: string | undefined;
|
|
856
858
|
profile?: string | undefined;
|
|
857
859
|
estimatedTotalBytes?: number | undefined;
|
|
858
860
|
groups?: {
|
|
859
|
-
id: string;
|
|
860
861
|
label: string;
|
|
862
|
+
id: string;
|
|
861
863
|
selectable: boolean;
|
|
862
864
|
selected: boolean;
|
|
863
865
|
files: {
|
|
@@ -884,6 +886,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
884
886
|
totalBytes?: number | undefined;
|
|
885
887
|
resumable?: boolean | undefined;
|
|
886
888
|
}[] | undefined;
|
|
889
|
+
selectedGroupId?: string | undefined;
|
|
887
890
|
}, {
|
|
888
891
|
files: {
|
|
889
892
|
path: string;
|
|
@@ -895,12 +898,11 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
895
898
|
raw?: unknown;
|
|
896
899
|
}[];
|
|
897
900
|
modelId: string;
|
|
898
|
-
selectedGroupId?: string | undefined;
|
|
899
901
|
profile?: string | undefined;
|
|
900
902
|
estimatedTotalBytes?: number | undefined;
|
|
901
903
|
groups?: {
|
|
902
|
-
id: string;
|
|
903
904
|
label: string;
|
|
905
|
+
id: string;
|
|
904
906
|
selectable: boolean;
|
|
905
907
|
selected: boolean;
|
|
906
908
|
files: {
|
|
@@ -927,6 +929,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
927
929
|
totalBytes?: number | undefined;
|
|
928
930
|
resumable?: boolean | undefined;
|
|
929
931
|
}[] | undefined;
|
|
932
|
+
selectedGroupId?: string | undefined;
|
|
930
933
|
}>;
|
|
931
934
|
type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
|
|
932
935
|
declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
@@ -950,13 +953,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
950
953
|
}, "strip", z.ZodTypeAny, {
|
|
951
954
|
status: "error" | "idle" | "loading" | "ready";
|
|
952
955
|
message?: string | undefined;
|
|
953
|
-
updatedAt?: number | undefined;
|
|
954
956
|
error?: string | undefined;
|
|
957
|
+
updatedAt?: number | undefined;
|
|
955
958
|
}, {
|
|
956
|
-
message?: string | undefined;
|
|
957
959
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
958
|
-
|
|
960
|
+
message?: string | undefined;
|
|
959
961
|
error?: string | undefined;
|
|
962
|
+
updatedAt?: number | undefined;
|
|
960
963
|
}>>;
|
|
961
964
|
profileManifest: z.ZodOptional<z.ZodObject<{
|
|
962
965
|
modelId: z.ZodString;
|
|
@@ -1007,8 +1010,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1007
1010
|
raw?: unknown;
|
|
1008
1011
|
}>, "many">;
|
|
1009
1012
|
}, "strip", z.ZodTypeAny, {
|
|
1010
|
-
id: string;
|
|
1011
1013
|
label: string;
|
|
1014
|
+
id: string;
|
|
1012
1015
|
baseGroupId: string;
|
|
1013
1016
|
commitHash: string;
|
|
1014
1017
|
shortCommitHash: string;
|
|
@@ -1029,8 +1032,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1029
1032
|
dtype?: string | undefined;
|
|
1030
1033
|
estimatedTotalBytes?: number | undefined;
|
|
1031
1034
|
}, {
|
|
1032
|
-
id: string;
|
|
1033
1035
|
label: string;
|
|
1036
|
+
id: string;
|
|
1034
1037
|
baseGroupId: string;
|
|
1035
1038
|
commitHash: string;
|
|
1036
1039
|
shortCommitHash: string;
|
|
@@ -1053,7 +1056,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1053
1056
|
}>>>;
|
|
1054
1057
|
groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1055
1058
|
}, "strip", z.ZodTypeAny, {
|
|
1056
|
-
updatedAt: number;
|
|
1057
1059
|
source: "huggingface";
|
|
1058
1060
|
revision: string;
|
|
1059
1061
|
commitHash: string;
|
|
@@ -1061,9 +1063,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1061
1063
|
modelId: string;
|
|
1062
1064
|
endpoint: string;
|
|
1063
1065
|
fetchedAt: number;
|
|
1066
|
+
updatedAt: number;
|
|
1064
1067
|
groups: Record<string, {
|
|
1065
|
-
id: string;
|
|
1066
1068
|
label: string;
|
|
1069
|
+
id: string;
|
|
1067
1070
|
baseGroupId: string;
|
|
1068
1071
|
commitHash: string;
|
|
1069
1072
|
shortCommitHash: string;
|
|
@@ -1087,18 +1090,18 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1087
1090
|
groupOrder: string[];
|
|
1088
1091
|
raw?: unknown;
|
|
1089
1092
|
}, {
|
|
1090
|
-
updatedAt: number;
|
|
1091
1093
|
source: "huggingface";
|
|
1092
1094
|
revision: string;
|
|
1093
1095
|
commitHash: string;
|
|
1094
1096
|
shortCommitHash: string;
|
|
1095
1097
|
modelId: string;
|
|
1096
1098
|
fetchedAt: number;
|
|
1099
|
+
updatedAt: number;
|
|
1097
1100
|
raw?: unknown;
|
|
1098
1101
|
endpoint?: string | undefined;
|
|
1099
1102
|
groups?: Record<string, {
|
|
1100
|
-
id: string;
|
|
1101
1103
|
label: string;
|
|
1104
|
+
id: string;
|
|
1102
1105
|
baseGroupId: string;
|
|
1103
1106
|
commitHash: string;
|
|
1104
1107
|
shortCommitHash: string;
|
|
@@ -1142,20 +1145,20 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1142
1145
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
1143
1146
|
error: z.ZodOptional<z.ZodString>;
|
|
1144
1147
|
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
path: string;
|
|
1146
1148
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1149
|
+
path: string;
|
|
1147
1150
|
required: boolean;
|
|
1148
|
-
updatedAt?: number | undefined;
|
|
1149
1151
|
error?: string | undefined;
|
|
1150
1152
|
sizeBytes?: number | undefined;
|
|
1153
|
+
updatedAt?: number | undefined;
|
|
1151
1154
|
downloadedBytes?: number | undefined;
|
|
1152
1155
|
}, {
|
|
1153
1156
|
path: string;
|
|
1154
1157
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1155
|
-
updatedAt?: number | undefined;
|
|
1156
|
-
required?: boolean | undefined;
|
|
1157
1158
|
error?: string | undefined;
|
|
1159
|
+
required?: boolean | undefined;
|
|
1158
1160
|
sizeBytes?: number | undefined;
|
|
1161
|
+
updatedAt?: number | undefined;
|
|
1159
1162
|
downloadedBytes?: number | undefined;
|
|
1160
1163
|
}>, "many">>;
|
|
1161
1164
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1163,26 +1166,25 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1163
1166
|
groupId: string;
|
|
1164
1167
|
resumable: boolean;
|
|
1165
1168
|
files: {
|
|
1166
|
-
path: string;
|
|
1167
1169
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1170
|
+
path: string;
|
|
1168
1171
|
required: boolean;
|
|
1169
|
-
updatedAt?: number | undefined;
|
|
1170
1172
|
error?: string | undefined;
|
|
1171
1173
|
sizeBytes?: number | undefined;
|
|
1174
|
+
updatedAt?: number | undefined;
|
|
1172
1175
|
downloadedBytes?: number | undefined;
|
|
1173
1176
|
}[];
|
|
1174
|
-
updatedAt?: number | undefined;
|
|
1175
1177
|
error?: string | undefined;
|
|
1176
1178
|
baseGroupId?: string | undefined;
|
|
1177
1179
|
rootDir?: string | undefined;
|
|
1178
1180
|
progress?: number | undefined;
|
|
1179
1181
|
bytesDownloaded?: number | undefined;
|
|
1180
1182
|
totalBytes?: number | undefined;
|
|
1183
|
+
updatedAt?: number | undefined;
|
|
1181
1184
|
installedAt?: number | undefined;
|
|
1182
1185
|
}, {
|
|
1183
1186
|
groupId: string;
|
|
1184
1187
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1185
|
-
updatedAt?: number | undefined;
|
|
1186
1188
|
error?: string | undefined;
|
|
1187
1189
|
baseGroupId?: string | undefined;
|
|
1188
1190
|
rootDir?: string | undefined;
|
|
@@ -1193,12 +1195,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1193
1195
|
files?: {
|
|
1194
1196
|
path: string;
|
|
1195
1197
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1196
|
-
updatedAt?: number | undefined;
|
|
1197
|
-
required?: boolean | undefined;
|
|
1198
1198
|
error?: string | undefined;
|
|
1199
|
+
required?: boolean | undefined;
|
|
1199
1200
|
sizeBytes?: number | undefined;
|
|
1201
|
+
updatedAt?: number | undefined;
|
|
1200
1202
|
downloadedBytes?: number | undefined;
|
|
1201
1203
|
}[] | undefined;
|
|
1204
|
+
updatedAt?: number | undefined;
|
|
1202
1205
|
installedAt?: number | undefined;
|
|
1203
1206
|
}>>>;
|
|
1204
1207
|
plan: z.ZodOptional<z.ZodObject<{
|
|
@@ -1276,8 +1279,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1276
1279
|
raw?: unknown;
|
|
1277
1280
|
}>, "many">;
|
|
1278
1281
|
}, "strip", z.ZodTypeAny, {
|
|
1279
|
-
id: string;
|
|
1280
1282
|
label: string;
|
|
1283
|
+
id: string;
|
|
1281
1284
|
selectable: boolean;
|
|
1282
1285
|
selected: boolean;
|
|
1283
1286
|
files: {
|
|
@@ -1304,8 +1307,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1304
1307
|
totalBytes?: number | undefined;
|
|
1305
1308
|
resumable?: boolean | undefined;
|
|
1306
1309
|
}, {
|
|
1307
|
-
id: string;
|
|
1308
1310
|
label: string;
|
|
1311
|
+
id: string;
|
|
1309
1312
|
selectable: boolean;
|
|
1310
1313
|
selected: boolean;
|
|
1311
1314
|
files: {
|
|
@@ -1343,12 +1346,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1343
1346
|
raw?: unknown;
|
|
1344
1347
|
}[];
|
|
1345
1348
|
modelId: string;
|
|
1346
|
-
selectedGroupId?: string | undefined;
|
|
1347
1349
|
profile?: string | undefined;
|
|
1348
1350
|
estimatedTotalBytes?: number | undefined;
|
|
1349
1351
|
groups?: {
|
|
1350
|
-
id: string;
|
|
1351
1352
|
label: string;
|
|
1353
|
+
id: string;
|
|
1352
1354
|
selectable: boolean;
|
|
1353
1355
|
selected: boolean;
|
|
1354
1356
|
files: {
|
|
@@ -1375,6 +1377,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1375
1377
|
totalBytes?: number | undefined;
|
|
1376
1378
|
resumable?: boolean | undefined;
|
|
1377
1379
|
}[] | undefined;
|
|
1380
|
+
selectedGroupId?: string | undefined;
|
|
1378
1381
|
}, {
|
|
1379
1382
|
files: {
|
|
1380
1383
|
path: string;
|
|
@@ -1386,12 +1389,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1386
1389
|
raw?: unknown;
|
|
1387
1390
|
}[];
|
|
1388
1391
|
modelId: string;
|
|
1389
|
-
selectedGroupId?: string | undefined;
|
|
1390
1392
|
profile?: string | undefined;
|
|
1391
1393
|
estimatedTotalBytes?: number | undefined;
|
|
1392
1394
|
groups?: {
|
|
1393
|
-
id: string;
|
|
1394
1395
|
label: string;
|
|
1396
|
+
id: string;
|
|
1395
1397
|
selectable: boolean;
|
|
1396
1398
|
selected: boolean;
|
|
1397
1399
|
files: {
|
|
@@ -1418,6 +1420,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1418
1420
|
totalBytes?: number | undefined;
|
|
1419
1421
|
resumable?: boolean | undefined;
|
|
1420
1422
|
}[] | undefined;
|
|
1423
|
+
selectedGroupId?: string | undefined;
|
|
1421
1424
|
}>>;
|
|
1422
1425
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1423
1426
|
path: z.ZodString;
|
|
@@ -1446,40 +1449,39 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1446
1449
|
profileLoad: {
|
|
1447
1450
|
status: "error" | "idle" | "loading" | "ready";
|
|
1448
1451
|
message?: string | undefined;
|
|
1449
|
-
updatedAt?: number | undefined;
|
|
1450
1452
|
error?: string | undefined;
|
|
1453
|
+
updatedAt?: number | undefined;
|
|
1451
1454
|
};
|
|
1452
1455
|
groupsState: Record<string, {
|
|
1453
1456
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1454
1457
|
groupId: string;
|
|
1455
1458
|
resumable: boolean;
|
|
1456
1459
|
files: {
|
|
1457
|
-
path: string;
|
|
1458
1460
|
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1461
|
+
path: string;
|
|
1459
1462
|
required: boolean;
|
|
1460
|
-
updatedAt?: number | undefined;
|
|
1461
1463
|
error?: string | undefined;
|
|
1462
1464
|
sizeBytes?: number | undefined;
|
|
1465
|
+
updatedAt?: number | undefined;
|
|
1463
1466
|
downloadedBytes?: number | undefined;
|
|
1464
1467
|
}[];
|
|
1465
|
-
updatedAt?: number | undefined;
|
|
1466
1468
|
error?: string | undefined;
|
|
1467
1469
|
baseGroupId?: string | undefined;
|
|
1468
1470
|
rootDir?: string | undefined;
|
|
1469
1471
|
progress?: number | undefined;
|
|
1470
1472
|
bytesDownloaded?: number | undefined;
|
|
1471
1473
|
totalBytes?: number | undefined;
|
|
1474
|
+
updatedAt?: number | undefined;
|
|
1472
1475
|
installedAt?: number | undefined;
|
|
1473
1476
|
}>;
|
|
1474
|
-
selectedGroupId?: string | undefined;
|
|
1475
|
-
updatedAt?: number | undefined;
|
|
1476
1477
|
error?: string | undefined;
|
|
1477
1478
|
progress?: number | undefined;
|
|
1478
1479
|
bytesDownloaded?: number | undefined;
|
|
1479
1480
|
totalBytes?: number | undefined;
|
|
1481
|
+
updatedAt?: number | undefined;
|
|
1480
1482
|
installedAt?: number | undefined;
|
|
1483
|
+
selectedGroupId?: string | undefined;
|
|
1481
1484
|
profileManifest?: {
|
|
1482
|
-
updatedAt: number;
|
|
1483
1485
|
source: "huggingface";
|
|
1484
1486
|
revision: string;
|
|
1485
1487
|
commitHash: string;
|
|
@@ -1487,9 +1489,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1487
1489
|
modelId: string;
|
|
1488
1490
|
endpoint: string;
|
|
1489
1491
|
fetchedAt: number;
|
|
1492
|
+
updatedAt: number;
|
|
1490
1493
|
groups: Record<string, {
|
|
1491
|
-
id: string;
|
|
1492
1494
|
label: string;
|
|
1495
|
+
id: string;
|
|
1493
1496
|
baseGroupId: string;
|
|
1494
1497
|
commitHash: string;
|
|
1495
1498
|
shortCommitHash: string;
|
|
@@ -1524,12 +1527,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1524
1527
|
raw?: unknown;
|
|
1525
1528
|
}[];
|
|
1526
1529
|
modelId: string;
|
|
1527
|
-
selectedGroupId?: string | undefined;
|
|
1528
1530
|
profile?: string | undefined;
|
|
1529
1531
|
estimatedTotalBytes?: number | undefined;
|
|
1530
1532
|
groups?: {
|
|
1531
|
-
id: string;
|
|
1532
1533
|
label: string;
|
|
1534
|
+
id: string;
|
|
1533
1535
|
selectable: boolean;
|
|
1534
1536
|
selected: boolean;
|
|
1535
1537
|
files: {
|
|
@@ -1556,12 +1558,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1556
1558
|
totalBytes?: number | undefined;
|
|
1557
1559
|
resumable?: boolean | undefined;
|
|
1558
1560
|
}[] | undefined;
|
|
1561
|
+
selectedGroupId?: string | undefined;
|
|
1559
1562
|
} | undefined;
|
|
1560
1563
|
}, {
|
|
1561
1564
|
modelId: string;
|
|
1562
|
-
selectedGroupId?: string | undefined;
|
|
1563
1565
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1564
|
-
updatedAt?: number | undefined;
|
|
1565
1566
|
error?: string | undefined;
|
|
1566
1567
|
progress?: number | undefined;
|
|
1567
1568
|
bytesDownloaded?: number | undefined;
|
|
@@ -1573,27 +1574,29 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1573
1574
|
sizeBytes?: number | undefined;
|
|
1574
1575
|
downloadedBytes?: number | undefined;
|
|
1575
1576
|
}[] | undefined;
|
|
1577
|
+
updatedAt?: number | undefined;
|
|
1576
1578
|
installedAt?: number | undefined;
|
|
1579
|
+
selectedGroupId?: string | undefined;
|
|
1577
1580
|
version?: 2 | undefined;
|
|
1578
1581
|
profileLoad?: {
|
|
1579
|
-
message?: string | undefined;
|
|
1580
1582
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
1581
|
-
|
|
1583
|
+
message?: string | undefined;
|
|
1582
1584
|
error?: string | undefined;
|
|
1585
|
+
updatedAt?: number | undefined;
|
|
1583
1586
|
} | undefined;
|
|
1584
1587
|
profileManifest?: {
|
|
1585
|
-
updatedAt: number;
|
|
1586
1588
|
source: "huggingface";
|
|
1587
1589
|
revision: string;
|
|
1588
1590
|
commitHash: string;
|
|
1589
1591
|
shortCommitHash: string;
|
|
1590
1592
|
modelId: string;
|
|
1591
1593
|
fetchedAt: number;
|
|
1594
|
+
updatedAt: number;
|
|
1592
1595
|
raw?: unknown;
|
|
1593
1596
|
endpoint?: string | undefined;
|
|
1594
1597
|
groups?: Record<string, {
|
|
1595
|
-
id: string;
|
|
1596
1598
|
label: string;
|
|
1599
|
+
id: string;
|
|
1597
1600
|
baseGroupId: string;
|
|
1598
1601
|
commitHash: string;
|
|
1599
1602
|
shortCommitHash: string;
|
|
@@ -1619,7 +1622,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1619
1622
|
groupsState?: Record<string, {
|
|
1620
1623
|
groupId: string;
|
|
1621
1624
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1622
|
-
updatedAt?: number | undefined;
|
|
1623
1625
|
error?: string | undefined;
|
|
1624
1626
|
baseGroupId?: string | undefined;
|
|
1625
1627
|
rootDir?: string | undefined;
|
|
@@ -1630,12 +1632,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1630
1632
|
files?: {
|
|
1631
1633
|
path: string;
|
|
1632
1634
|
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1633
|
-
updatedAt?: number | undefined;
|
|
1634
|
-
required?: boolean | undefined;
|
|
1635
1635
|
error?: string | undefined;
|
|
1636
|
+
required?: boolean | undefined;
|
|
1636
1637
|
sizeBytes?: number | undefined;
|
|
1638
|
+
updatedAt?: number | undefined;
|
|
1637
1639
|
downloadedBytes?: number | undefined;
|
|
1638
1640
|
}[] | undefined;
|
|
1641
|
+
updatedAt?: number | undefined;
|
|
1639
1642
|
installedAt?: number | undefined;
|
|
1640
1643
|
}> | undefined;
|
|
1641
1644
|
plan?: {
|
|
@@ -1649,12 +1652,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1649
1652
|
raw?: unknown;
|
|
1650
1653
|
}[];
|
|
1651
1654
|
modelId: string;
|
|
1652
|
-
selectedGroupId?: string | undefined;
|
|
1653
1655
|
profile?: string | undefined;
|
|
1654
1656
|
estimatedTotalBytes?: number | undefined;
|
|
1655
1657
|
groups?: {
|
|
1656
|
-
id: string;
|
|
1657
1658
|
label: string;
|
|
1659
|
+
id: string;
|
|
1658
1660
|
selectable: boolean;
|
|
1659
1661
|
selected: boolean;
|
|
1660
1662
|
files: {
|
|
@@ -1681,13 +1683,18 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1681
1683
|
totalBytes?: number | undefined;
|
|
1682
1684
|
resumable?: boolean | undefined;
|
|
1683
1685
|
}[] | undefined;
|
|
1686
|
+
selectedGroupId?: string | undefined;
|
|
1684
1687
|
} | undefined;
|
|
1685
1688
|
}>;
|
|
1686
1689
|
type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
|
|
1690
|
+
declare const ManagedLocalCatalogSourceSchema: z.ZodEnum<["local", "network", "recommended"]>;
|
|
1691
|
+
type ManagedLocalCatalogSource = z.infer<typeof ManagedLocalCatalogSourceSchema>;
|
|
1687
1692
|
interface LocalModelCatalogItem extends TranslationModelCandidate {
|
|
1688
1693
|
asset: LocalModelAssetState;
|
|
1689
1694
|
selectable: boolean;
|
|
1690
1695
|
local: boolean;
|
|
1696
|
+
primarySource: ManagedLocalCatalogSource;
|
|
1697
|
+
sources: ManagedLocalCatalogSource[];
|
|
1691
1698
|
}
|
|
1692
1699
|
interface LocalModelCatalogResult {
|
|
1693
1700
|
items: LocalModelCatalogItem[];
|
|
@@ -1719,13 +1726,545 @@ interface TranslatorFactory {
|
|
|
1719
1726
|
prepare?(options: TranslatorFactoryPrepareOptions): Promise<void>;
|
|
1720
1727
|
create(options: TranslatorFactoryCreateOptions): Promise<Translator>;
|
|
1721
1728
|
}
|
|
1729
|
+
type TranslationEngineDependencyState = 'installed' | 'installing' | 'missing' | 'error' | 'not-applicable';
|
|
1730
|
+
declare const TranslationEngineDependencyStateSchema: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1731
|
+
type TranslationEngineRuntimeState = 'ready' | 'probing' | 'failed' | 'error' | 'not-applicable';
|
|
1732
|
+
declare const TranslationEngineRuntimeStateSchema: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1733
|
+
type TranslationEngineAssetState = 'ready' | 'missing' | 'downloading' | 'error' | 'not-applicable';
|
|
1734
|
+
declare const TranslationEngineAssetStateSchema: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1735
|
+
interface TranslationEngineDependencyStatus {
|
|
1736
|
+
state: TranslationEngineDependencyState;
|
|
1737
|
+
message?: string;
|
|
1738
|
+
progress?: number;
|
|
1739
|
+
error?: string;
|
|
1740
|
+
}
|
|
1741
|
+
declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
|
|
1742
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1744
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
} & {
|
|
1746
|
+
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1747
|
+
}, "strip", z.ZodTypeAny, {
|
|
1748
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1749
|
+
message?: string | undefined;
|
|
1750
|
+
error?: string | undefined;
|
|
1751
|
+
progress?: number | undefined;
|
|
1752
|
+
}, {
|
|
1753
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1754
|
+
message?: string | undefined;
|
|
1755
|
+
error?: string | undefined;
|
|
1756
|
+
progress?: number | undefined;
|
|
1757
|
+
}>;
|
|
1758
|
+
interface TranslationEngineRuntimeStatus {
|
|
1759
|
+
state: TranslationEngineRuntimeState;
|
|
1760
|
+
message?: string;
|
|
1761
|
+
progress?: number;
|
|
1762
|
+
error?: string;
|
|
1763
|
+
}
|
|
1764
|
+
declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
|
|
1765
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1766
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1767
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
} & {
|
|
1769
|
+
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1770
|
+
}, "strip", z.ZodTypeAny, {
|
|
1771
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1772
|
+
message?: string | undefined;
|
|
1773
|
+
error?: string | undefined;
|
|
1774
|
+
progress?: number | undefined;
|
|
1775
|
+
}, {
|
|
1776
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1777
|
+
message?: string | undefined;
|
|
1778
|
+
error?: string | undefined;
|
|
1779
|
+
progress?: number | undefined;
|
|
1780
|
+
}>;
|
|
1781
|
+
interface TranslationEngineAssetStatus {
|
|
1782
|
+
state: TranslationEngineAssetState;
|
|
1783
|
+
message?: string;
|
|
1784
|
+
progress?: number;
|
|
1785
|
+
error?: string;
|
|
1786
|
+
}
|
|
1787
|
+
declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
|
|
1788
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1790
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1791
|
+
} & {
|
|
1792
|
+
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1793
|
+
}, "strip", z.ZodTypeAny, {
|
|
1794
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1795
|
+
message?: string | undefined;
|
|
1796
|
+
error?: string | undefined;
|
|
1797
|
+
progress?: number | undefined;
|
|
1798
|
+
}, {
|
|
1799
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1800
|
+
message?: string | undefined;
|
|
1801
|
+
error?: string | undefined;
|
|
1802
|
+
progress?: number | undefined;
|
|
1803
|
+
}>;
|
|
1804
|
+
interface TranslationEngineLifecycleStatus {
|
|
1805
|
+
dependency: TranslationEngineDependencyStatus;
|
|
1806
|
+
runtime: TranslationEngineRuntimeStatus;
|
|
1807
|
+
assets: TranslationEngineAssetStatus;
|
|
1808
|
+
summary?: string;
|
|
1809
|
+
}
|
|
1810
|
+
declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
1811
|
+
dependency: z.ZodObject<{
|
|
1812
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1814
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
} & {
|
|
1816
|
+
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1817
|
+
}, "strip", z.ZodTypeAny, {
|
|
1818
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1819
|
+
message?: string | undefined;
|
|
1820
|
+
error?: string | undefined;
|
|
1821
|
+
progress?: number | undefined;
|
|
1822
|
+
}, {
|
|
1823
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1824
|
+
message?: string | undefined;
|
|
1825
|
+
error?: string | undefined;
|
|
1826
|
+
progress?: number | undefined;
|
|
1827
|
+
}>;
|
|
1828
|
+
runtime: z.ZodObject<{
|
|
1829
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1830
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1831
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1832
|
+
} & {
|
|
1833
|
+
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1834
|
+
}, "strip", z.ZodTypeAny, {
|
|
1835
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1836
|
+
message?: string | undefined;
|
|
1837
|
+
error?: string | undefined;
|
|
1838
|
+
progress?: number | undefined;
|
|
1839
|
+
}, {
|
|
1840
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1841
|
+
message?: string | undefined;
|
|
1842
|
+
error?: string | undefined;
|
|
1843
|
+
progress?: number | undefined;
|
|
1844
|
+
}>;
|
|
1845
|
+
assets: z.ZodObject<{
|
|
1846
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1848
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1849
|
+
} & {
|
|
1850
|
+
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1851
|
+
}, "strip", z.ZodTypeAny, {
|
|
1852
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1853
|
+
message?: string | undefined;
|
|
1854
|
+
error?: string | undefined;
|
|
1855
|
+
progress?: number | undefined;
|
|
1856
|
+
}, {
|
|
1857
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1858
|
+
message?: string | undefined;
|
|
1859
|
+
error?: string | undefined;
|
|
1860
|
+
progress?: number | undefined;
|
|
1861
|
+
}>;
|
|
1862
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
}, "strip", z.ZodTypeAny, {
|
|
1864
|
+
dependency: {
|
|
1865
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1866
|
+
message?: string | undefined;
|
|
1867
|
+
error?: string | undefined;
|
|
1868
|
+
progress?: number | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
runtime: {
|
|
1871
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1872
|
+
message?: string | undefined;
|
|
1873
|
+
error?: string | undefined;
|
|
1874
|
+
progress?: number | undefined;
|
|
1875
|
+
};
|
|
1876
|
+
assets: {
|
|
1877
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1878
|
+
message?: string | undefined;
|
|
1879
|
+
error?: string | undefined;
|
|
1880
|
+
progress?: number | undefined;
|
|
1881
|
+
};
|
|
1882
|
+
summary?: string | undefined;
|
|
1883
|
+
}, {
|
|
1884
|
+
dependency: {
|
|
1885
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1886
|
+
message?: string | undefined;
|
|
1887
|
+
error?: string | undefined;
|
|
1888
|
+
progress?: number | undefined;
|
|
1889
|
+
};
|
|
1890
|
+
runtime: {
|
|
1891
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1892
|
+
message?: string | undefined;
|
|
1893
|
+
error?: string | undefined;
|
|
1894
|
+
progress?: number | undefined;
|
|
1895
|
+
};
|
|
1896
|
+
assets: {
|
|
1897
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1898
|
+
message?: string | undefined;
|
|
1899
|
+
error?: string | undefined;
|
|
1900
|
+
progress?: number | undefined;
|
|
1901
|
+
};
|
|
1902
|
+
summary?: string | undefined;
|
|
1903
|
+
}>;
|
|
1904
|
+
declare function createTranslationEngineLifecycleStatus(input?: Partial<TranslationEngineLifecycleStatus> & {
|
|
1905
|
+
dependency?: Partial<TranslationEngineDependencyStatus>;
|
|
1906
|
+
runtime?: Partial<TranslationEngineRuntimeStatus>;
|
|
1907
|
+
assets?: Partial<TranslationEngineAssetStatus>;
|
|
1908
|
+
}): TranslationEngineLifecycleStatus;
|
|
1909
|
+
declare function isTranslationEngineDependencyReady(status: TranslationEngineLifecycleStatus): boolean;
|
|
1910
|
+
declare function isTranslationEngineRuntimeReady(status: TranslationEngineLifecycleStatus): boolean;
|
|
1911
|
+
declare function shouldShowTranslationEngineInstallGate(status: TranslationEngineLifecycleStatus | null | undefined): boolean;
|
|
1912
|
+
declare function getTranslationEngineLifecycleMessage(status: TranslationEngineLifecycleStatus | null | undefined): string | undefined;
|
|
1913
|
+
declare const TranslationEngineInstallLogStreamSchema: z.ZodEnum<["stdout", "stderr"]>;
|
|
1914
|
+
type TranslationEngineInstallLogStream = z.infer<typeof TranslationEngineInstallLogStreamSchema>;
|
|
1915
|
+
interface TranslationEngineInstallLogEvent {
|
|
1916
|
+
stream: TranslationEngineInstallLogStream;
|
|
1917
|
+
text: string;
|
|
1918
|
+
}
|
|
1919
|
+
declare const TranslationEngineInstallLogEventSchema: z.ZodObject<{
|
|
1920
|
+
stream: z.ZodEnum<["stdout", "stderr"]>;
|
|
1921
|
+
text: z.ZodString;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
text: string;
|
|
1924
|
+
stream: "stdout" | "stderr";
|
|
1925
|
+
}, {
|
|
1926
|
+
text: string;
|
|
1927
|
+
stream: "stdout" | "stderr";
|
|
1928
|
+
}>;
|
|
1929
|
+
interface TranslationEngineLifecycleStatusEvent {
|
|
1930
|
+
type: 'status';
|
|
1931
|
+
lifecycle: TranslationEngineLifecycleStatus;
|
|
1932
|
+
}
|
|
1933
|
+
interface TranslationEngineLifecycleLogEvent {
|
|
1934
|
+
type: 'log';
|
|
1935
|
+
stream: TranslationEngineInstallLogStream;
|
|
1936
|
+
text: string;
|
|
1937
|
+
}
|
|
1938
|
+
interface TranslationEngineLifecycleExitEvent {
|
|
1939
|
+
type: 'exit';
|
|
1940
|
+
lifecycle: TranslationEngineLifecycleStatus;
|
|
1941
|
+
}
|
|
1942
|
+
type TranslationEngineLifecycleEvent = TranslationEngineLifecycleStatusEvent | TranslationEngineLifecycleLogEvent | TranslationEngineLifecycleExitEvent;
|
|
1943
|
+
declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1944
|
+
type: z.ZodLiteral<"status">;
|
|
1945
|
+
lifecycle: z.ZodObject<{
|
|
1946
|
+
dependency: z.ZodObject<{
|
|
1947
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1948
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1949
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1950
|
+
} & {
|
|
1951
|
+
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1952
|
+
}, "strip", z.ZodTypeAny, {
|
|
1953
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1954
|
+
message?: string | undefined;
|
|
1955
|
+
error?: string | undefined;
|
|
1956
|
+
progress?: number | undefined;
|
|
1957
|
+
}, {
|
|
1958
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1959
|
+
message?: string | undefined;
|
|
1960
|
+
error?: string | undefined;
|
|
1961
|
+
progress?: number | undefined;
|
|
1962
|
+
}>;
|
|
1963
|
+
runtime: z.ZodObject<{
|
|
1964
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1966
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1967
|
+
} & {
|
|
1968
|
+
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1969
|
+
}, "strip", z.ZodTypeAny, {
|
|
1970
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1971
|
+
message?: string | undefined;
|
|
1972
|
+
error?: string | undefined;
|
|
1973
|
+
progress?: number | undefined;
|
|
1974
|
+
}, {
|
|
1975
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1976
|
+
message?: string | undefined;
|
|
1977
|
+
error?: string | undefined;
|
|
1978
|
+
progress?: number | undefined;
|
|
1979
|
+
}>;
|
|
1980
|
+
assets: z.ZodObject<{
|
|
1981
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1983
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
} & {
|
|
1985
|
+
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1986
|
+
}, "strip", z.ZodTypeAny, {
|
|
1987
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1988
|
+
message?: string | undefined;
|
|
1989
|
+
error?: string | undefined;
|
|
1990
|
+
progress?: number | undefined;
|
|
1991
|
+
}, {
|
|
1992
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
1993
|
+
message?: string | undefined;
|
|
1994
|
+
error?: string | undefined;
|
|
1995
|
+
progress?: number | undefined;
|
|
1996
|
+
}>;
|
|
1997
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
}, "strip", z.ZodTypeAny, {
|
|
1999
|
+
dependency: {
|
|
2000
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2001
|
+
message?: string | undefined;
|
|
2002
|
+
error?: string | undefined;
|
|
2003
|
+
progress?: number | undefined;
|
|
2004
|
+
};
|
|
2005
|
+
runtime: {
|
|
2006
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2007
|
+
message?: string | undefined;
|
|
2008
|
+
error?: string | undefined;
|
|
2009
|
+
progress?: number | undefined;
|
|
2010
|
+
};
|
|
2011
|
+
assets: {
|
|
2012
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2013
|
+
message?: string | undefined;
|
|
2014
|
+
error?: string | undefined;
|
|
2015
|
+
progress?: number | undefined;
|
|
2016
|
+
};
|
|
2017
|
+
summary?: string | undefined;
|
|
2018
|
+
}, {
|
|
2019
|
+
dependency: {
|
|
2020
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2021
|
+
message?: string | undefined;
|
|
2022
|
+
error?: string | undefined;
|
|
2023
|
+
progress?: number | undefined;
|
|
2024
|
+
};
|
|
2025
|
+
runtime: {
|
|
2026
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2027
|
+
message?: string | undefined;
|
|
2028
|
+
error?: string | undefined;
|
|
2029
|
+
progress?: number | undefined;
|
|
2030
|
+
};
|
|
2031
|
+
assets: {
|
|
2032
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2033
|
+
message?: string | undefined;
|
|
2034
|
+
error?: string | undefined;
|
|
2035
|
+
progress?: number | undefined;
|
|
2036
|
+
};
|
|
2037
|
+
summary?: string | undefined;
|
|
2038
|
+
}>;
|
|
2039
|
+
}, "strip", z.ZodTypeAny, {
|
|
2040
|
+
type: "status";
|
|
2041
|
+
lifecycle: {
|
|
2042
|
+
dependency: {
|
|
2043
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2044
|
+
message?: string | undefined;
|
|
2045
|
+
error?: string | undefined;
|
|
2046
|
+
progress?: number | undefined;
|
|
2047
|
+
};
|
|
2048
|
+
runtime: {
|
|
2049
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2050
|
+
message?: string | undefined;
|
|
2051
|
+
error?: string | undefined;
|
|
2052
|
+
progress?: number | undefined;
|
|
2053
|
+
};
|
|
2054
|
+
assets: {
|
|
2055
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2056
|
+
message?: string | undefined;
|
|
2057
|
+
error?: string | undefined;
|
|
2058
|
+
progress?: number | undefined;
|
|
2059
|
+
};
|
|
2060
|
+
summary?: string | undefined;
|
|
2061
|
+
};
|
|
2062
|
+
}, {
|
|
2063
|
+
type: "status";
|
|
2064
|
+
lifecycle: {
|
|
2065
|
+
dependency: {
|
|
2066
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2067
|
+
message?: string | undefined;
|
|
2068
|
+
error?: string | undefined;
|
|
2069
|
+
progress?: number | undefined;
|
|
2070
|
+
};
|
|
2071
|
+
runtime: {
|
|
2072
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2073
|
+
message?: string | undefined;
|
|
2074
|
+
error?: string | undefined;
|
|
2075
|
+
progress?: number | undefined;
|
|
2076
|
+
};
|
|
2077
|
+
assets: {
|
|
2078
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2079
|
+
message?: string | undefined;
|
|
2080
|
+
error?: string | undefined;
|
|
2081
|
+
progress?: number | undefined;
|
|
2082
|
+
};
|
|
2083
|
+
summary?: string | undefined;
|
|
2084
|
+
};
|
|
2085
|
+
}>, z.ZodObject<{
|
|
2086
|
+
type: z.ZodLiteral<"log">;
|
|
2087
|
+
stream: z.ZodEnum<["stdout", "stderr"]>;
|
|
2088
|
+
text: z.ZodString;
|
|
2089
|
+
}, "strip", z.ZodTypeAny, {
|
|
2090
|
+
type: "log";
|
|
2091
|
+
text: string;
|
|
2092
|
+
stream: "stdout" | "stderr";
|
|
2093
|
+
}, {
|
|
2094
|
+
type: "log";
|
|
2095
|
+
text: string;
|
|
2096
|
+
stream: "stdout" | "stderr";
|
|
2097
|
+
}>, z.ZodObject<{
|
|
2098
|
+
type: z.ZodLiteral<"exit">;
|
|
2099
|
+
lifecycle: z.ZodObject<{
|
|
2100
|
+
dependency: z.ZodObject<{
|
|
2101
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
2103
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
} & {
|
|
2105
|
+
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
2106
|
+
}, "strip", z.ZodTypeAny, {
|
|
2107
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2108
|
+
message?: string | undefined;
|
|
2109
|
+
error?: string | undefined;
|
|
2110
|
+
progress?: number | undefined;
|
|
2111
|
+
}, {
|
|
2112
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2113
|
+
message?: string | undefined;
|
|
2114
|
+
error?: string | undefined;
|
|
2115
|
+
progress?: number | undefined;
|
|
2116
|
+
}>;
|
|
2117
|
+
runtime: z.ZodObject<{
|
|
2118
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2119
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
2120
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
} & {
|
|
2122
|
+
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
2123
|
+
}, "strip", z.ZodTypeAny, {
|
|
2124
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2125
|
+
message?: string | undefined;
|
|
2126
|
+
error?: string | undefined;
|
|
2127
|
+
progress?: number | undefined;
|
|
2128
|
+
}, {
|
|
2129
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2130
|
+
message?: string | undefined;
|
|
2131
|
+
error?: string | undefined;
|
|
2132
|
+
progress?: number | undefined;
|
|
2133
|
+
}>;
|
|
2134
|
+
assets: z.ZodObject<{
|
|
2135
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
2137
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
} & {
|
|
2139
|
+
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
2140
|
+
}, "strip", z.ZodTypeAny, {
|
|
2141
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2142
|
+
message?: string | undefined;
|
|
2143
|
+
error?: string | undefined;
|
|
2144
|
+
progress?: number | undefined;
|
|
2145
|
+
}, {
|
|
2146
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2147
|
+
message?: string | undefined;
|
|
2148
|
+
error?: string | undefined;
|
|
2149
|
+
progress?: number | undefined;
|
|
2150
|
+
}>;
|
|
2151
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2152
|
+
}, "strip", z.ZodTypeAny, {
|
|
2153
|
+
dependency: {
|
|
2154
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2155
|
+
message?: string | undefined;
|
|
2156
|
+
error?: string | undefined;
|
|
2157
|
+
progress?: number | undefined;
|
|
2158
|
+
};
|
|
2159
|
+
runtime: {
|
|
2160
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2161
|
+
message?: string | undefined;
|
|
2162
|
+
error?: string | undefined;
|
|
2163
|
+
progress?: number | undefined;
|
|
2164
|
+
};
|
|
2165
|
+
assets: {
|
|
2166
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2167
|
+
message?: string | undefined;
|
|
2168
|
+
error?: string | undefined;
|
|
2169
|
+
progress?: number | undefined;
|
|
2170
|
+
};
|
|
2171
|
+
summary?: string | undefined;
|
|
2172
|
+
}, {
|
|
2173
|
+
dependency: {
|
|
2174
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2175
|
+
message?: string | undefined;
|
|
2176
|
+
error?: string | undefined;
|
|
2177
|
+
progress?: number | undefined;
|
|
2178
|
+
};
|
|
2179
|
+
runtime: {
|
|
2180
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2181
|
+
message?: string | undefined;
|
|
2182
|
+
error?: string | undefined;
|
|
2183
|
+
progress?: number | undefined;
|
|
2184
|
+
};
|
|
2185
|
+
assets: {
|
|
2186
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2187
|
+
message?: string | undefined;
|
|
2188
|
+
error?: string | undefined;
|
|
2189
|
+
progress?: number | undefined;
|
|
2190
|
+
};
|
|
2191
|
+
summary?: string | undefined;
|
|
2192
|
+
}>;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
type: "exit";
|
|
2195
|
+
lifecycle: {
|
|
2196
|
+
dependency: {
|
|
2197
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2198
|
+
message?: string | undefined;
|
|
2199
|
+
error?: string | undefined;
|
|
2200
|
+
progress?: number | undefined;
|
|
2201
|
+
};
|
|
2202
|
+
runtime: {
|
|
2203
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2204
|
+
message?: string | undefined;
|
|
2205
|
+
error?: string | undefined;
|
|
2206
|
+
progress?: number | undefined;
|
|
2207
|
+
};
|
|
2208
|
+
assets: {
|
|
2209
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2210
|
+
message?: string | undefined;
|
|
2211
|
+
error?: string | undefined;
|
|
2212
|
+
progress?: number | undefined;
|
|
2213
|
+
};
|
|
2214
|
+
summary?: string | undefined;
|
|
2215
|
+
};
|
|
2216
|
+
}, {
|
|
2217
|
+
type: "exit";
|
|
2218
|
+
lifecycle: {
|
|
2219
|
+
dependency: {
|
|
2220
|
+
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2221
|
+
message?: string | undefined;
|
|
2222
|
+
error?: string | undefined;
|
|
2223
|
+
progress?: number | undefined;
|
|
2224
|
+
};
|
|
2225
|
+
runtime: {
|
|
2226
|
+
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2227
|
+
message?: string | undefined;
|
|
2228
|
+
error?: string | undefined;
|
|
2229
|
+
progress?: number | undefined;
|
|
2230
|
+
};
|
|
2231
|
+
assets: {
|
|
2232
|
+
state: "error" | "downloading" | "ready" | "missing" | "not-applicable";
|
|
2233
|
+
message?: string | undefined;
|
|
2234
|
+
error?: string | undefined;
|
|
2235
|
+
progress?: number | undefined;
|
|
2236
|
+
};
|
|
2237
|
+
summary?: string | undefined;
|
|
2238
|
+
};
|
|
2239
|
+
}>]>;
|
|
2240
|
+
interface TranslationEngineLifecycleContext {
|
|
2241
|
+
projectDir: string;
|
|
2242
|
+
globalSettings: TranslationEngineGlobalSettings;
|
|
2243
|
+
signal?: AbortSignal;
|
|
2244
|
+
onLifecycle?: (status: TranslationEngineLifecycleStatus) => void;
|
|
2245
|
+
onLog?: (event: TranslationEngineInstallLogEvent) => void;
|
|
2246
|
+
}
|
|
2247
|
+
interface TranslationEngineLifecycleController {
|
|
2248
|
+
detectLifecycle(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
|
|
2249
|
+
install(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
|
|
2250
|
+
}
|
|
1722
2251
|
type TranslationEngineRuntime = 'browser' | 'server';
|
|
2252
|
+
type TranslationEngineKind = 'browser' | 'managed-local' | 'remote-provider';
|
|
2253
|
+
type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'localLlama' | 'openai';
|
|
1723
2254
|
interface TranslationEngineManifest {
|
|
1724
2255
|
id: TranslationEngineId;
|
|
1725
2256
|
label: string;
|
|
1726
2257
|
description: string;
|
|
1727
2258
|
technicalSummary: string;
|
|
1728
2259
|
runtime: TranslationEngineRuntime;
|
|
2260
|
+
kind: TranslationEngineKind;
|
|
2261
|
+
settingsKey?: TranslationEngineSettingsKey;
|
|
2262
|
+
defaultModel?: string;
|
|
2263
|
+
runtimePackageName?: string;
|
|
2264
|
+
installDescription?: string;
|
|
2265
|
+
modelLabel?: string;
|
|
2266
|
+
downloadGroupsLabel?: string;
|
|
2267
|
+
refreshTooltip?: string;
|
|
1729
2268
|
moduleName?: string;
|
|
1730
2269
|
factoryExport?: string;
|
|
1731
2270
|
}
|
|
@@ -1735,38 +2274,94 @@ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
|
|
|
1735
2274
|
readonly description: "Uses the browser Translator API and future browser-side providers.";
|
|
1736
2275
|
readonly technicalSummary: "Browser-native Web Translator adapter. Package payload is about 5 KB; browser language packs are managed by the browser.";
|
|
1737
2276
|
readonly runtime: "browser";
|
|
2277
|
+
readonly kind: "browser";
|
|
2278
|
+
readonly installDescription: "Browser translation support is built into the browser runtime.";
|
|
1738
2279
|
readonly moduleName: "@openspecui/browser-translator";
|
|
1739
2280
|
readonly factoryExport: "createBrowserTranslatorFactory";
|
|
1740
2281
|
}, {
|
|
1741
2282
|
readonly id: "local";
|
|
1742
2283
|
readonly label: "Local-Transformers";
|
|
1743
|
-
readonly description: "Runs
|
|
1744
|
-
readonly technicalSummary: "Server-side
|
|
2284
|
+
readonly description: "Runs an ONNX Runtime-backed local translation adapter through Transformers.js with managed ONNX model files.";
|
|
2285
|
+
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
2286
|
readonly runtime: "server";
|
|
2287
|
+
readonly kind: "managed-local";
|
|
2288
|
+
readonly settingsKey: "local";
|
|
2289
|
+
readonly defaultModel: "Xenova/nllb-200-distilled-600M";
|
|
2290
|
+
readonly runtimePackageName: "@huggingface/transformers";
|
|
2291
|
+
readonly installDescription: "Install the Local-Transformers runtime package to enable server-side translation.";
|
|
2292
|
+
readonly modelLabel: "Local Model";
|
|
2293
|
+
readonly downloadGroupsLabel: "Local download profiles";
|
|
2294
|
+
readonly refreshTooltip: "Refresh local model profiles";
|
|
1746
2295
|
readonly moduleName: "@openspecui/local-translator";
|
|
1747
2296
|
readonly factoryExport: "createLocalTranslatorFactory";
|
|
2297
|
+
}, {
|
|
2298
|
+
readonly id: "local-ct2";
|
|
2299
|
+
readonly label: "Local-CT2";
|
|
2300
|
+
readonly description: "Runs a bundled local CTranslate2 translation runtime with managed model files.";
|
|
2301
|
+
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.";
|
|
2302
|
+
readonly runtime: "server";
|
|
2303
|
+
readonly kind: "managed-local";
|
|
2304
|
+
readonly settingsKey: "localCt2";
|
|
2305
|
+
readonly defaultModel: "ooeoeo/opus-mt-en-zh-ct2-float16";
|
|
2306
|
+
readonly runtimePackageName: "ctranslate2";
|
|
2307
|
+
readonly installDescription: "Install the Local-CT2 runtime package to enable server-side translation.";
|
|
2308
|
+
readonly modelLabel: "CT2 Model";
|
|
2309
|
+
readonly downloadGroupsLabel: "Local CT2 download groups";
|
|
2310
|
+
readonly refreshTooltip: "Refresh local model artifacts";
|
|
2311
|
+
readonly moduleName: "@openspecui/local-ct2-translator";
|
|
2312
|
+
readonly factoryExport: "createLocalCt2TranslatorFactory";
|
|
2313
|
+
}, {
|
|
2314
|
+
readonly id: "local-llama";
|
|
2315
|
+
readonly label: "Local-Llama";
|
|
2316
|
+
readonly description: "Runs a local GGUF translation-capable LLM through node-llama-cpp with managed GGUF model files.";
|
|
2317
|
+
readonly technicalSummary: "Server-side llama.cpp adapter via node-llama-cpp. Runtime package is installed on demand; selected GGUF model files are downloaded separately and can range from hundreds of MB to multiple GB.";
|
|
2318
|
+
readonly runtime: "server";
|
|
2319
|
+
readonly kind: "managed-local";
|
|
2320
|
+
readonly settingsKey: "localLlama";
|
|
2321
|
+
readonly defaultModel: "bartowski/Qwen2.5-0.5B-Instruct-GGUF";
|
|
2322
|
+
readonly runtimePackageName: "node-llama-cpp";
|
|
2323
|
+
readonly installDescription: "Install the Local-Llama runtime package to enable server-side GGUF translation.";
|
|
2324
|
+
readonly modelLabel: "Llama Model";
|
|
2325
|
+
readonly downloadGroupsLabel: "Local GGUF files";
|
|
2326
|
+
readonly refreshTooltip: "Refresh local GGUF artifacts";
|
|
2327
|
+
readonly moduleName: "@openspecui/local-llama-translator";
|
|
2328
|
+
readonly factoryExport: "createLocalLlamaTranslatorFactory";
|
|
1748
2329
|
}, {
|
|
1749
2330
|
readonly id: "openai";
|
|
1750
2331
|
readonly label: "OpenAI-Completion";
|
|
1751
2332
|
readonly description: "Uses an OpenAI-compatible TanStack AI completion provider for context-aware translation.";
|
|
1752
2333
|
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
2334
|
readonly runtime: "server";
|
|
2335
|
+
readonly kind: "remote-provider";
|
|
2336
|
+
readonly settingsKey: "openai";
|
|
2337
|
+
readonly defaultModel: "gpt-4.1-mini";
|
|
2338
|
+
readonly installDescription: "OpenAI completion translation is bundled with the server runtime.";
|
|
1754
2339
|
readonly moduleName: "@openspecui/openai-completion-translator";
|
|
1755
2340
|
readonly factoryExport: "createOpenAICompletionTranslatorFactory";
|
|
1756
2341
|
}];
|
|
1757
2342
|
declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest;
|
|
2343
|
+
declare function getManagedLocalTranslationEngineManifest(engineId: ManagedLocalTranslationEngineId): TranslationEngineManifest & {
|
|
2344
|
+
kind: 'managed-local';
|
|
2345
|
+
settingsKey: Extract<TranslationEngineSettingsKey, 'local' | 'localCt2' | 'localLlama'>;
|
|
2346
|
+
defaultModel: string;
|
|
2347
|
+
runtimePackageName: string;
|
|
2348
|
+
installDescription: string;
|
|
2349
|
+
modelLabel: string;
|
|
2350
|
+
downloadGroupsLabel: string;
|
|
2351
|
+
refreshTooltip: string;
|
|
2352
|
+
};
|
|
1758
2353
|
declare const TranslationOpenAISettingsSchema: z.ZodObject<{
|
|
1759
2354
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
1760
2355
|
token: z.ZodDefault<z.ZodString>;
|
|
1761
2356
|
model: z.ZodDefault<z.ZodString>;
|
|
1762
2357
|
}, "strip", z.ZodTypeAny, {
|
|
1763
|
-
model: string;
|
|
1764
2358
|
baseUrl: string;
|
|
1765
2359
|
token: string;
|
|
2360
|
+
model: string;
|
|
1766
2361
|
}, {
|
|
1767
|
-
model?: string | undefined;
|
|
1768
2362
|
baseUrl?: string | undefined;
|
|
1769
2363
|
token?: string | undefined;
|
|
2364
|
+
model?: string | undefined;
|
|
1770
2365
|
}>;
|
|
1771
2366
|
type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
|
|
1772
2367
|
declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
@@ -1778,24 +2373,52 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
|
1778
2373
|
hfEndpoint: string;
|
|
1779
2374
|
selectedGroupId?: string | undefined;
|
|
1780
2375
|
}, {
|
|
1781
|
-
model?: string | undefined;
|
|
1782
2376
|
selectedGroupId?: string | undefined;
|
|
2377
|
+
model?: string | undefined;
|
|
1783
2378
|
hfEndpoint?: string | undefined;
|
|
1784
2379
|
}>;
|
|
1785
2380
|
type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
|
|
2381
|
+
declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
|
|
2382
|
+
model: z.ZodDefault<z.ZodString>;
|
|
2383
|
+
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
2384
|
+
hfEndpoint: z.ZodDefault<z.ZodString>;
|
|
2385
|
+
}, "strip", z.ZodTypeAny, {
|
|
2386
|
+
model: string;
|
|
2387
|
+
hfEndpoint: string;
|
|
2388
|
+
selectedGroupId?: string | undefined;
|
|
2389
|
+
}, {
|
|
2390
|
+
selectedGroupId?: string | undefined;
|
|
2391
|
+
model?: string | undefined;
|
|
2392
|
+
hfEndpoint?: string | undefined;
|
|
2393
|
+
}>;
|
|
2394
|
+
type TranslationLocalCt2Settings = z.infer<typeof TranslationLocalCt2SettingsSchema>;
|
|
2395
|
+
declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{
|
|
2396
|
+
model: z.ZodDefault<z.ZodString>;
|
|
2397
|
+
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
hfEndpoint: z.ZodDefault<z.ZodString>;
|
|
2399
|
+
}, "strip", z.ZodTypeAny, {
|
|
2400
|
+
model: string;
|
|
2401
|
+
hfEndpoint: string;
|
|
2402
|
+
selectedGroupId?: string | undefined;
|
|
2403
|
+
}, {
|
|
2404
|
+
selectedGroupId?: string | undefined;
|
|
2405
|
+
model?: string | undefined;
|
|
2406
|
+
hfEndpoint?: string | undefined;
|
|
2407
|
+
}>;
|
|
2408
|
+
type TranslationLocalLlamaSettings = z.infer<typeof TranslationLocalLlamaSettingsSchema>;
|
|
1786
2409
|
declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
1787
2410
|
openai: z.ZodDefault<z.ZodObject<{
|
|
1788
2411
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
1789
2412
|
token: z.ZodDefault<z.ZodString>;
|
|
1790
2413
|
model: z.ZodDefault<z.ZodString>;
|
|
1791
2414
|
}, "strip", z.ZodTypeAny, {
|
|
1792
|
-
model: string;
|
|
1793
2415
|
baseUrl: string;
|
|
1794
2416
|
token: string;
|
|
2417
|
+
model: string;
|
|
1795
2418
|
}, {
|
|
1796
|
-
model?: string | undefined;
|
|
1797
2419
|
baseUrl?: string | undefined;
|
|
1798
2420
|
token?: string | undefined;
|
|
2421
|
+
model?: string | undefined;
|
|
1799
2422
|
}>>;
|
|
1800
2423
|
local: z.ZodDefault<z.ZodObject<{
|
|
1801
2424
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -1806,8 +2429,34 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
1806
2429
|
hfEndpoint: string;
|
|
1807
2430
|
selectedGroupId?: string | undefined;
|
|
1808
2431
|
}, {
|
|
2432
|
+
selectedGroupId?: string | undefined;
|
|
2433
|
+
model?: string | undefined;
|
|
2434
|
+
hfEndpoint?: string | undefined;
|
|
2435
|
+
}>>;
|
|
2436
|
+
localCt2: z.ZodDefault<z.ZodObject<{
|
|
2437
|
+
model: z.ZodDefault<z.ZodString>;
|
|
2438
|
+
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
hfEndpoint: z.ZodDefault<z.ZodString>;
|
|
2440
|
+
}, "strip", z.ZodTypeAny, {
|
|
2441
|
+
model: string;
|
|
2442
|
+
hfEndpoint: string;
|
|
2443
|
+
selectedGroupId?: string | undefined;
|
|
2444
|
+
}, {
|
|
2445
|
+
selectedGroupId?: string | undefined;
|
|
1809
2446
|
model?: string | undefined;
|
|
2447
|
+
hfEndpoint?: string | undefined;
|
|
2448
|
+
}>>;
|
|
2449
|
+
localLlama: z.ZodDefault<z.ZodObject<{
|
|
2450
|
+
model: z.ZodDefault<z.ZodString>;
|
|
2451
|
+
selectedGroupId: z.ZodOptional<z.ZodString>;
|
|
2452
|
+
hfEndpoint: z.ZodDefault<z.ZodString>;
|
|
2453
|
+
}, "strip", z.ZodTypeAny, {
|
|
2454
|
+
model: string;
|
|
2455
|
+
hfEndpoint: string;
|
|
1810
2456
|
selectedGroupId?: string | undefined;
|
|
2457
|
+
}, {
|
|
2458
|
+
selectedGroupId?: string | undefined;
|
|
2459
|
+
model?: string | undefined;
|
|
1811
2460
|
hfEndpoint?: string | undefined;
|
|
1812
2461
|
}>>;
|
|
1813
2462
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1817,20 +2466,40 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
1817
2466
|
selectedGroupId?: string | undefined;
|
|
1818
2467
|
};
|
|
1819
2468
|
openai: {
|
|
1820
|
-
model: string;
|
|
1821
2469
|
baseUrl: string;
|
|
1822
2470
|
token: string;
|
|
2471
|
+
model: string;
|
|
2472
|
+
};
|
|
2473
|
+
localCt2: {
|
|
2474
|
+
model: string;
|
|
2475
|
+
hfEndpoint: string;
|
|
2476
|
+
selectedGroupId?: string | undefined;
|
|
2477
|
+
};
|
|
2478
|
+
localLlama: {
|
|
2479
|
+
model: string;
|
|
2480
|
+
hfEndpoint: string;
|
|
2481
|
+
selectedGroupId?: string | undefined;
|
|
1823
2482
|
};
|
|
1824
2483
|
}, {
|
|
1825
2484
|
local?: {
|
|
1826
|
-
model?: string | undefined;
|
|
1827
2485
|
selectedGroupId?: string | undefined;
|
|
2486
|
+
model?: string | undefined;
|
|
1828
2487
|
hfEndpoint?: string | undefined;
|
|
1829
2488
|
} | undefined;
|
|
1830
2489
|
openai?: {
|
|
1831
|
-
model?: string | undefined;
|
|
1832
2490
|
baseUrl?: string | undefined;
|
|
1833
2491
|
token?: string | undefined;
|
|
2492
|
+
model?: string | undefined;
|
|
2493
|
+
} | undefined;
|
|
2494
|
+
localCt2?: {
|
|
2495
|
+
selectedGroupId?: string | undefined;
|
|
2496
|
+
model?: string | undefined;
|
|
2497
|
+
hfEndpoint?: string | undefined;
|
|
2498
|
+
} | undefined;
|
|
2499
|
+
localLlama?: {
|
|
2500
|
+
selectedGroupId?: string | undefined;
|
|
2501
|
+
model?: string | undefined;
|
|
2502
|
+
hfEndpoint?: string | undefined;
|
|
1834
2503
|
} | undefined;
|
|
1835
2504
|
}>;
|
|
1836
2505
|
type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
|
|
@@ -1839,9 +2508,15 @@ type TranslationEngineGlobalSettingsUpdate = {
|
|
|
1839
2508
|
local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
|
|
1840
2509
|
selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
|
|
1841
2510
|
};
|
|
2511
|
+
localCt2?: Partial<Omit<TranslationLocalCt2Settings, 'selectedGroupId'>> & {
|
|
2512
|
+
selectedGroupId?: TranslationLocalCt2Settings['selectedGroupId'] | null;
|
|
2513
|
+
};
|
|
2514
|
+
localLlama?: Partial<Omit<TranslationLocalLlamaSettings, 'selectedGroupId'>> & {
|
|
2515
|
+
selectedGroupId?: TranslationLocalLlamaSettings['selectedGroupId'] | null;
|
|
2516
|
+
};
|
|
1842
2517
|
};
|
|
1843
2518
|
declare const BatchTranslateInputSchema: z.ZodObject<{
|
|
1844
|
-
engineId: z.ZodEnum<["browser", "local", "openai"]>;
|
|
2519
|
+
engineId: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>;
|
|
1845
2520
|
sourceLanguage: z.ZodString;
|
|
1846
2521
|
targetLanguage: z.ZodString;
|
|
1847
2522
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1850,21 +2525,21 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
|
|
|
1850
2525
|
instructions: z.ZodOptional<z.ZodString>;
|
|
1851
2526
|
context: z.ZodOptional<z.ZodString>;
|
|
1852
2527
|
}, "strip", z.ZodTypeAny, {
|
|
1853
|
-
|
|
1854
|
-
engineId: "local" | "openai" | "browser";
|
|
2528
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
1855
2529
|
sourceLanguage: string;
|
|
2530
|
+
targetLanguage: string;
|
|
1856
2531
|
inputs: string[];
|
|
1857
|
-
model?: string | undefined;
|
|
1858
2532
|
selectedGroupId?: string | undefined;
|
|
2533
|
+
model?: string | undefined;
|
|
1859
2534
|
instructions?: string | undefined;
|
|
1860
2535
|
context?: string | undefined;
|
|
1861
2536
|
}, {
|
|
1862
|
-
|
|
1863
|
-
engineId: "local" | "openai" | "browser";
|
|
2537
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
1864
2538
|
sourceLanguage: string;
|
|
2539
|
+
targetLanguage: string;
|
|
1865
2540
|
inputs: string[];
|
|
1866
|
-
model?: string | undefined;
|
|
1867
2541
|
selectedGroupId?: string | undefined;
|
|
2542
|
+
model?: string | undefined;
|
|
1868
2543
|
instructions?: string | undefined;
|
|
1869
2544
|
context?: string | undefined;
|
|
1870
2545
|
}>;
|
|
@@ -1881,4 +2556,4 @@ declare const BatchTranslateEventSchema: z.ZodObject<{
|
|
|
1881
2556
|
}>;
|
|
1882
2557
|
type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
|
|
1883
2558
|
//#endregion
|
|
1884
|
-
export {
|
|
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 };
|