@openspecui/core 3.11.4 → 3.11.6
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-B3QRXIXx.mjs → document-translation-B6VWf7ll.mjs} +26 -2
- package/dist/{document-translation-QMSrWNT-.d.mts → document-translation-DhFREeHW.d.mts} +254 -52
- package/dist/document-translation.d.mts +2 -2
- package/dist/document-translation.mjs +3 -3
- package/dist/index.d.mts +334 -103
- package/dist/index.mjs +120 -93
- package/dist/{local-download-profiles-DHF9dW4e.d.mts → local-download-profiles-DIVr0mFh.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-D9yMeQqN.d.mts → notifications-DiY78-k4.d.mts} +3 -3
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-projection-e-sOj4vr.d.mts → openspec-projection-CmxjMsxS.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-C89YFQNB.d.mts → opsx-entity-CRa2u1j3.d.mts} +9 -9
- package/dist/opsx-entity.d.mts +2 -2
- package/dist/{opsx-schema-detail-DIscOp9f.d.mts → opsx-schema-detail-aVlqvbro.d.mts} +1 -1
- package/dist/opsx-schema-detail.d.mts +3 -3
- package/dist/{schemas-B6ZBedD4.d.mts → schemas-Dp8-Wm-X.d.mts} +16 -16
- package/dist/{sounds-BjSZxrQO.d.mts → sounds-DIvZfWxA.d.mts} +4 -4
- package/dist/sounds.d.mts +1 -1
- package/dist/{terminal-audio-6x0ceNBw.d.mts → terminal-audio-DkjquHlQ.d.mts} +1 -1
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-C2e1WSWM.d.mts → terminal-invocation-B3js0mEF.d.mts} +32 -32
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translator-jn94xmWZ.d.mts → translator-CS7MsNZp.d.mts} +297 -122
- package/dist/{translator-B98pejVa.mjs → translator-Cx9j32Og.mjs} +31 -1
- package/dist/translator.d.mts +2 -2
- package/dist/translator.mjs +2 -2
- package/package.json +1 -1
|
@@ -231,8 +231,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
231
231
|
sourceUrl?: string | undefined;
|
|
232
232
|
raw?: unknown;
|
|
233
233
|
}[];
|
|
234
|
-
error?: string | undefined;
|
|
235
234
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
235
|
+
error?: string | undefined;
|
|
236
236
|
description?: string | undefined;
|
|
237
237
|
profile?: string | undefined;
|
|
238
238
|
dtype?: string | undefined;
|
|
@@ -259,8 +259,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
259
259
|
sourceUrl?: string | undefined;
|
|
260
260
|
raw?: unknown;
|
|
261
261
|
}[];
|
|
262
|
-
error?: string | undefined;
|
|
263
262
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
263
|
+
error?: string | undefined;
|
|
264
264
|
description?: string | undefined;
|
|
265
265
|
profile?: string | undefined;
|
|
266
266
|
dtype?: string | undefined;
|
|
@@ -560,18 +560,18 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
|
|
|
560
560
|
error: z.ZodOptional<z.ZodString>;
|
|
561
561
|
}, "strip", z.ZodTypeAny, {
|
|
562
562
|
path: string;
|
|
563
|
-
required: boolean;
|
|
564
563
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
564
|
+
required: boolean;
|
|
565
565
|
error?: string | undefined;
|
|
566
566
|
sizeBytes?: number | undefined;
|
|
567
567
|
updatedAt?: number | undefined;
|
|
568
568
|
downloadedBytes?: number | undefined;
|
|
569
569
|
}, {
|
|
570
570
|
path: string;
|
|
571
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
571
572
|
error?: string | undefined;
|
|
572
573
|
sizeBytes?: number | undefined;
|
|
573
574
|
required?: boolean | undefined;
|
|
574
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
575
575
|
updatedAt?: number | undefined;
|
|
576
576
|
downloadedBytes?: number | undefined;
|
|
577
577
|
}>;
|
|
@@ -598,18 +598,18 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
598
598
|
error: z.ZodOptional<z.ZodString>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
600
|
path: string;
|
|
601
|
-
required: boolean;
|
|
602
601
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
602
|
+
required: boolean;
|
|
603
603
|
error?: string | undefined;
|
|
604
604
|
sizeBytes?: number | undefined;
|
|
605
605
|
updatedAt?: number | undefined;
|
|
606
606
|
downloadedBytes?: number | undefined;
|
|
607
607
|
}, {
|
|
608
608
|
path: string;
|
|
609
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
609
610
|
error?: string | undefined;
|
|
610
611
|
sizeBytes?: number | undefined;
|
|
611
612
|
required?: boolean | undefined;
|
|
612
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
613
613
|
updatedAt?: number | undefined;
|
|
614
614
|
downloadedBytes?: number | undefined;
|
|
615
615
|
}>, "many">>;
|
|
@@ -618,8 +618,8 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
618
618
|
resumable: boolean;
|
|
619
619
|
files: {
|
|
620
620
|
path: string;
|
|
621
|
-
required: boolean;
|
|
622
621
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
622
|
+
required: boolean;
|
|
623
623
|
error?: string | undefined;
|
|
624
624
|
sizeBytes?: number | undefined;
|
|
625
625
|
updatedAt?: number | undefined;
|
|
@@ -636,8 +636,8 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
636
636
|
installedAt?: number | undefined;
|
|
637
637
|
}, {
|
|
638
638
|
groupId: string;
|
|
639
|
-
error?: string | undefined;
|
|
640
639
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
640
|
+
error?: string | undefined;
|
|
641
641
|
baseGroupId?: string | undefined;
|
|
642
642
|
rootDir?: string | undefined;
|
|
643
643
|
progress?: number | undefined;
|
|
@@ -646,10 +646,10 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
646
646
|
resumable?: boolean | undefined;
|
|
647
647
|
files?: {
|
|
648
648
|
path: string;
|
|
649
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
649
650
|
error?: string | undefined;
|
|
650
651
|
sizeBytes?: number | undefined;
|
|
651
652
|
required?: boolean | undefined;
|
|
652
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
653
653
|
updatedAt?: number | undefined;
|
|
654
654
|
downloadedBytes?: number | undefined;
|
|
655
655
|
}[] | undefined;
|
|
@@ -664,13 +664,13 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
|
|
|
664
664
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
665
665
|
}, "strip", z.ZodTypeAny, {
|
|
666
666
|
status: "error" | "idle" | "loading" | "ready";
|
|
667
|
-
error?: string | undefined;
|
|
668
667
|
message?: string | undefined;
|
|
668
|
+
error?: string | undefined;
|
|
669
669
|
updatedAt?: number | undefined;
|
|
670
670
|
}, {
|
|
671
|
-
error?: string | undefined;
|
|
672
671
|
message?: string | undefined;
|
|
673
672
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
673
|
+
error?: string | undefined;
|
|
674
674
|
updatedAt?: number | undefined;
|
|
675
675
|
}>;
|
|
676
676
|
type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
|
|
@@ -703,9 +703,10 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
704
|
message: string;
|
|
705
705
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
706
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
706
707
|
modelId: string;
|
|
707
708
|
updatedAt: number;
|
|
708
|
-
|
|
709
|
+
selectedGroupId?: string | undefined;
|
|
709
710
|
progress?: number | undefined;
|
|
710
711
|
bytesDownloaded?: number | undefined;
|
|
711
712
|
totalBytes?: number | undefined;
|
|
@@ -716,14 +717,14 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
716
717
|
downloadedBytes?: number | undefined;
|
|
717
718
|
}[] | undefined;
|
|
718
719
|
groupId?: string | undefined;
|
|
719
|
-
selectedGroupId?: string | undefined;
|
|
720
720
|
sessionId?: string | undefined;
|
|
721
721
|
}, {
|
|
722
722
|
message: string;
|
|
723
723
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
724
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
724
725
|
modelId: string;
|
|
725
726
|
updatedAt: number;
|
|
726
|
-
|
|
727
|
+
selectedGroupId?: string | undefined;
|
|
727
728
|
progress?: number | undefined;
|
|
728
729
|
bytesDownloaded?: number | undefined;
|
|
729
730
|
totalBytes?: number | undefined;
|
|
@@ -734,7 +735,6 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
734
735
|
downloadedBytes?: number | undefined;
|
|
735
736
|
}[] | undefined;
|
|
736
737
|
groupId?: string | undefined;
|
|
737
|
-
selectedGroupId?: string | undefined;
|
|
738
738
|
sessionId?: string | undefined;
|
|
739
739
|
}>;
|
|
740
740
|
type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
|
|
@@ -826,8 +826,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
826
826
|
sourceUrl?: string | undefined;
|
|
827
827
|
raw?: unknown;
|
|
828
828
|
}[];
|
|
829
|
-
error?: string | undefined;
|
|
830
829
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
830
|
+
error?: string | undefined;
|
|
831
831
|
description?: string | undefined;
|
|
832
832
|
profile?: string | undefined;
|
|
833
833
|
dtype?: string | undefined;
|
|
@@ -854,8 +854,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
854
854
|
sourceUrl?: string | undefined;
|
|
855
855
|
raw?: unknown;
|
|
856
856
|
}[];
|
|
857
|
-
error?: string | undefined;
|
|
858
857
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
858
|
+
error?: string | undefined;
|
|
859
859
|
description?: string | undefined;
|
|
860
860
|
profile?: string | undefined;
|
|
861
861
|
dtype?: string | undefined;
|
|
@@ -880,6 +880,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
880
880
|
raw?: unknown;
|
|
881
881
|
}[];
|
|
882
882
|
modelId: string;
|
|
883
|
+
selectedGroupId?: string | undefined;
|
|
883
884
|
profile?: string | undefined;
|
|
884
885
|
estimatedTotalBytes?: number | undefined;
|
|
885
886
|
groups?: {
|
|
@@ -896,8 +897,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
896
897
|
sourceUrl?: string | undefined;
|
|
897
898
|
raw?: unknown;
|
|
898
899
|
}[];
|
|
899
|
-
error?: string | undefined;
|
|
900
900
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
901
|
+
error?: string | undefined;
|
|
901
902
|
description?: string | undefined;
|
|
902
903
|
profile?: string | undefined;
|
|
903
904
|
dtype?: string | undefined;
|
|
@@ -911,7 +912,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
911
912
|
totalBytes?: number | undefined;
|
|
912
913
|
resumable?: boolean | undefined;
|
|
913
914
|
}[] | undefined;
|
|
914
|
-
selectedGroupId?: string | undefined;
|
|
915
915
|
}, {
|
|
916
916
|
files: {
|
|
917
917
|
path: string;
|
|
@@ -923,6 +923,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
923
923
|
raw?: unknown;
|
|
924
924
|
}[];
|
|
925
925
|
modelId: string;
|
|
926
|
+
selectedGroupId?: string | undefined;
|
|
926
927
|
profile?: string | undefined;
|
|
927
928
|
estimatedTotalBytes?: number | undefined;
|
|
928
929
|
groups?: {
|
|
@@ -939,8 +940,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
939
940
|
sourceUrl?: string | undefined;
|
|
940
941
|
raw?: unknown;
|
|
941
942
|
}[];
|
|
942
|
-
error?: string | undefined;
|
|
943
943
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
944
|
+
error?: string | undefined;
|
|
944
945
|
description?: string | undefined;
|
|
945
946
|
profile?: string | undefined;
|
|
946
947
|
dtype?: string | undefined;
|
|
@@ -954,7 +955,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
954
955
|
totalBytes?: number | undefined;
|
|
955
956
|
resumable?: boolean | undefined;
|
|
956
957
|
}[] | undefined;
|
|
957
|
-
selectedGroupId?: string | undefined;
|
|
958
958
|
}>;
|
|
959
959
|
type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
|
|
960
960
|
declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
@@ -977,13 +977,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
977
977
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
978
978
|
}, "strip", z.ZodTypeAny, {
|
|
979
979
|
status: "error" | "idle" | "loading" | "ready";
|
|
980
|
-
error?: string | undefined;
|
|
981
980
|
message?: string | undefined;
|
|
981
|
+
error?: string | undefined;
|
|
982
982
|
updatedAt?: number | undefined;
|
|
983
983
|
}, {
|
|
984
|
-
error?: string | undefined;
|
|
985
984
|
message?: string | undefined;
|
|
986
985
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
986
|
+
error?: string | undefined;
|
|
987
987
|
updatedAt?: number | undefined;
|
|
988
988
|
}>>;
|
|
989
989
|
profileManifest: z.ZodOptional<z.ZodObject<{
|
|
@@ -1171,18 +1171,18 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1171
1171
|
error: z.ZodOptional<z.ZodString>;
|
|
1172
1172
|
}, "strip", z.ZodTypeAny, {
|
|
1173
1173
|
path: string;
|
|
1174
|
-
required: boolean;
|
|
1175
1174
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
1175
|
+
required: boolean;
|
|
1176
1176
|
error?: string | undefined;
|
|
1177
1177
|
sizeBytes?: number | undefined;
|
|
1178
1178
|
updatedAt?: number | undefined;
|
|
1179
1179
|
downloadedBytes?: number | undefined;
|
|
1180
1180
|
}, {
|
|
1181
1181
|
path: string;
|
|
1182
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1182
1183
|
error?: string | undefined;
|
|
1183
1184
|
sizeBytes?: number | undefined;
|
|
1184
1185
|
required?: boolean | undefined;
|
|
1185
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1186
1186
|
updatedAt?: number | undefined;
|
|
1187
1187
|
downloadedBytes?: number | undefined;
|
|
1188
1188
|
}>, "many">>;
|
|
@@ -1191,8 +1191,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1191
1191
|
resumable: boolean;
|
|
1192
1192
|
files: {
|
|
1193
1193
|
path: string;
|
|
1194
|
-
required: boolean;
|
|
1195
1194
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
1195
|
+
required: boolean;
|
|
1196
1196
|
error?: string | undefined;
|
|
1197
1197
|
sizeBytes?: number | undefined;
|
|
1198
1198
|
updatedAt?: number | undefined;
|
|
@@ -1209,8 +1209,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1209
1209
|
installedAt?: number | undefined;
|
|
1210
1210
|
}, {
|
|
1211
1211
|
groupId: string;
|
|
1212
|
-
error?: string | undefined;
|
|
1213
1212
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1213
|
+
error?: string | undefined;
|
|
1214
1214
|
baseGroupId?: string | undefined;
|
|
1215
1215
|
rootDir?: string | undefined;
|
|
1216
1216
|
progress?: number | undefined;
|
|
@@ -1219,10 +1219,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1219
1219
|
resumable?: boolean | undefined;
|
|
1220
1220
|
files?: {
|
|
1221
1221
|
path: string;
|
|
1222
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1222
1223
|
error?: string | undefined;
|
|
1223
1224
|
sizeBytes?: number | undefined;
|
|
1224
1225
|
required?: boolean | undefined;
|
|
1225
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1226
1226
|
updatedAt?: number | undefined;
|
|
1227
1227
|
downloadedBytes?: number | undefined;
|
|
1228
1228
|
}[] | undefined;
|
|
@@ -1317,8 +1317,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1317
1317
|
sourceUrl?: string | undefined;
|
|
1318
1318
|
raw?: unknown;
|
|
1319
1319
|
}[];
|
|
1320
|
-
error?: string | undefined;
|
|
1321
1320
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1321
|
+
error?: string | undefined;
|
|
1322
1322
|
description?: string | undefined;
|
|
1323
1323
|
profile?: string | undefined;
|
|
1324
1324
|
dtype?: string | undefined;
|
|
@@ -1345,8 +1345,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1345
1345
|
sourceUrl?: string | undefined;
|
|
1346
1346
|
raw?: unknown;
|
|
1347
1347
|
}[];
|
|
1348
|
-
error?: string | undefined;
|
|
1349
1348
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1349
|
+
error?: string | undefined;
|
|
1350
1350
|
description?: string | undefined;
|
|
1351
1351
|
profile?: string | undefined;
|
|
1352
1352
|
dtype?: string | undefined;
|
|
@@ -1371,6 +1371,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1371
1371
|
raw?: unknown;
|
|
1372
1372
|
}[];
|
|
1373
1373
|
modelId: string;
|
|
1374
|
+
selectedGroupId?: string | undefined;
|
|
1374
1375
|
profile?: string | undefined;
|
|
1375
1376
|
estimatedTotalBytes?: number | undefined;
|
|
1376
1377
|
groups?: {
|
|
@@ -1387,8 +1388,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1387
1388
|
sourceUrl?: string | undefined;
|
|
1388
1389
|
raw?: unknown;
|
|
1389
1390
|
}[];
|
|
1390
|
-
error?: string | undefined;
|
|
1391
1391
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1392
|
+
error?: string | undefined;
|
|
1392
1393
|
description?: string | undefined;
|
|
1393
1394
|
profile?: string | undefined;
|
|
1394
1395
|
dtype?: string | undefined;
|
|
@@ -1402,7 +1403,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1402
1403
|
totalBytes?: number | undefined;
|
|
1403
1404
|
resumable?: boolean | undefined;
|
|
1404
1405
|
}[] | undefined;
|
|
1405
|
-
selectedGroupId?: string | undefined;
|
|
1406
1406
|
}, {
|
|
1407
1407
|
files: {
|
|
1408
1408
|
path: string;
|
|
@@ -1414,6 +1414,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1414
1414
|
raw?: unknown;
|
|
1415
1415
|
}[];
|
|
1416
1416
|
modelId: string;
|
|
1417
|
+
selectedGroupId?: string | undefined;
|
|
1417
1418
|
profile?: string | undefined;
|
|
1418
1419
|
estimatedTotalBytes?: number | undefined;
|
|
1419
1420
|
groups?: {
|
|
@@ -1430,8 +1431,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1430
1431
|
sourceUrl?: string | undefined;
|
|
1431
1432
|
raw?: unknown;
|
|
1432
1433
|
}[];
|
|
1433
|
-
error?: string | undefined;
|
|
1434
1434
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1435
|
+
error?: string | undefined;
|
|
1435
1436
|
description?: string | undefined;
|
|
1436
1437
|
profile?: string | undefined;
|
|
1437
1438
|
dtype?: string | undefined;
|
|
@@ -1445,7 +1446,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1445
1446
|
totalBytes?: number | undefined;
|
|
1446
1447
|
resumable?: boolean | undefined;
|
|
1447
1448
|
}[] | undefined;
|
|
1448
|
-
selectedGroupId?: string | undefined;
|
|
1449
1449
|
}>>;
|
|
1450
1450
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1451
1451
|
path: z.ZodString;
|
|
@@ -1473,8 +1473,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1473
1473
|
version: 2;
|
|
1474
1474
|
profileLoad: {
|
|
1475
1475
|
status: "error" | "idle" | "loading" | "ready";
|
|
1476
|
-
error?: string | undefined;
|
|
1477
1476
|
message?: string | undefined;
|
|
1477
|
+
error?: string | undefined;
|
|
1478
1478
|
updatedAt?: number | undefined;
|
|
1479
1479
|
};
|
|
1480
1480
|
groupsState: Record<string, {
|
|
@@ -1482,8 +1482,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1482
1482
|
resumable: boolean;
|
|
1483
1483
|
files: {
|
|
1484
1484
|
path: string;
|
|
1485
|
-
required: boolean;
|
|
1486
1485
|
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
|
|
1486
|
+
required: boolean;
|
|
1487
1487
|
error?: string | undefined;
|
|
1488
1488
|
sizeBytes?: number | undefined;
|
|
1489
1489
|
updatedAt?: number | undefined;
|
|
@@ -1499,13 +1499,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1499
1499
|
updatedAt?: number | undefined;
|
|
1500
1500
|
installedAt?: number | undefined;
|
|
1501
1501
|
}>;
|
|
1502
|
+
selectedGroupId?: string | undefined;
|
|
1502
1503
|
error?: string | undefined;
|
|
1503
1504
|
progress?: number | undefined;
|
|
1504
1505
|
bytesDownloaded?: number | undefined;
|
|
1505
1506
|
totalBytes?: number | undefined;
|
|
1506
1507
|
updatedAt?: number | undefined;
|
|
1507
1508
|
installedAt?: number | undefined;
|
|
1508
|
-
selectedGroupId?: string | undefined;
|
|
1509
1509
|
profileManifest?: {
|
|
1510
1510
|
revision: string;
|
|
1511
1511
|
commitHash: string;
|
|
@@ -1552,6 +1552,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1552
1552
|
raw?: unknown;
|
|
1553
1553
|
}[];
|
|
1554
1554
|
modelId: string;
|
|
1555
|
+
selectedGroupId?: string | undefined;
|
|
1555
1556
|
profile?: string | undefined;
|
|
1556
1557
|
estimatedTotalBytes?: number | undefined;
|
|
1557
1558
|
groups?: {
|
|
@@ -1568,8 +1569,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1568
1569
|
sourceUrl?: string | undefined;
|
|
1569
1570
|
raw?: unknown;
|
|
1570
1571
|
}[];
|
|
1571
|
-
error?: string | undefined;
|
|
1572
1572
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1573
|
+
error?: string | undefined;
|
|
1573
1574
|
description?: string | undefined;
|
|
1574
1575
|
profile?: string | undefined;
|
|
1575
1576
|
dtype?: string | undefined;
|
|
@@ -1583,12 +1584,12 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1583
1584
|
totalBytes?: number | undefined;
|
|
1584
1585
|
resumable?: boolean | undefined;
|
|
1585
1586
|
}[] | undefined;
|
|
1586
|
-
selectedGroupId?: string | undefined;
|
|
1587
1587
|
} | undefined;
|
|
1588
1588
|
}, {
|
|
1589
1589
|
modelId: string;
|
|
1590
|
-
|
|
1590
|
+
selectedGroupId?: string | undefined;
|
|
1591
1591
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1592
|
+
error?: string | undefined;
|
|
1592
1593
|
progress?: number | undefined;
|
|
1593
1594
|
bytesDownloaded?: number | undefined;
|
|
1594
1595
|
totalBytes?: number | undefined;
|
|
@@ -1601,12 +1602,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1601
1602
|
}[] | undefined;
|
|
1602
1603
|
updatedAt?: number | undefined;
|
|
1603
1604
|
installedAt?: number | undefined;
|
|
1604
|
-
selectedGroupId?: string | undefined;
|
|
1605
1605
|
version?: 2 | undefined;
|
|
1606
1606
|
profileLoad?: {
|
|
1607
|
-
error?: string | undefined;
|
|
1608
1607
|
message?: string | undefined;
|
|
1609
1608
|
status?: "error" | "idle" | "loading" | "ready" | undefined;
|
|
1609
|
+
error?: string | undefined;
|
|
1610
1610
|
updatedAt?: number | undefined;
|
|
1611
1611
|
} | undefined;
|
|
1612
1612
|
profileManifest?: {
|
|
@@ -1646,8 +1646,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1646
1646
|
} | undefined;
|
|
1647
1647
|
groupsState?: Record<string, {
|
|
1648
1648
|
groupId: string;
|
|
1649
|
-
error?: string | undefined;
|
|
1650
1649
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1650
|
+
error?: string | undefined;
|
|
1651
1651
|
baseGroupId?: string | undefined;
|
|
1652
1652
|
rootDir?: string | undefined;
|
|
1653
1653
|
progress?: number | undefined;
|
|
@@ -1656,10 +1656,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1656
1656
|
resumable?: boolean | undefined;
|
|
1657
1657
|
files?: {
|
|
1658
1658
|
path: string;
|
|
1659
|
+
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1659
1660
|
error?: string | undefined;
|
|
1660
1661
|
sizeBytes?: number | undefined;
|
|
1661
1662
|
required?: boolean | undefined;
|
|
1662
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1663
1663
|
updatedAt?: number | undefined;
|
|
1664
1664
|
downloadedBytes?: number | undefined;
|
|
1665
1665
|
}[] | undefined;
|
|
@@ -1677,6 +1677,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1677
1677
|
raw?: unknown;
|
|
1678
1678
|
}[];
|
|
1679
1679
|
modelId: string;
|
|
1680
|
+
selectedGroupId?: string | undefined;
|
|
1680
1681
|
profile?: string | undefined;
|
|
1681
1682
|
estimatedTotalBytes?: number | undefined;
|
|
1682
1683
|
groups?: {
|
|
@@ -1693,8 +1694,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1693
1694
|
sourceUrl?: string | undefined;
|
|
1694
1695
|
raw?: unknown;
|
|
1695
1696
|
}[];
|
|
1696
|
-
error?: string | undefined;
|
|
1697
1697
|
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1698
|
+
error?: string | undefined;
|
|
1698
1699
|
description?: string | undefined;
|
|
1699
1700
|
profile?: string | undefined;
|
|
1700
1701
|
dtype?: string | undefined;
|
|
@@ -1708,7 +1709,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1708
1709
|
totalBytes?: number | undefined;
|
|
1709
1710
|
resumable?: boolean | undefined;
|
|
1710
1711
|
}[] | undefined;
|
|
1711
|
-
selectedGroupId?: string | undefined;
|
|
1712
1712
|
} | undefined;
|
|
1713
1713
|
}>;
|
|
1714
1714
|
type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
|
|
@@ -1771,13 +1771,13 @@ declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
|
|
|
1771
1771
|
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1772
1772
|
}, "strip", z.ZodTypeAny, {
|
|
1773
1773
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1774
|
-
error?: string | undefined;
|
|
1775
1774
|
message?: string | undefined;
|
|
1775
|
+
error?: string | undefined;
|
|
1776
1776
|
progress?: number | undefined;
|
|
1777
1777
|
}, {
|
|
1778
1778
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1779
|
-
error?: string | undefined;
|
|
1780
1779
|
message?: string | undefined;
|
|
1780
|
+
error?: string | undefined;
|
|
1781
1781
|
progress?: number | undefined;
|
|
1782
1782
|
}>;
|
|
1783
1783
|
interface TranslationEngineRuntimeStatus {
|
|
@@ -1794,13 +1794,13 @@ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
|
|
|
1794
1794
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1795
1795
|
}, "strip", z.ZodTypeAny, {
|
|
1796
1796
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1797
|
-
error?: string | undefined;
|
|
1798
1797
|
message?: string | undefined;
|
|
1798
|
+
error?: string | undefined;
|
|
1799
1799
|
progress?: number | undefined;
|
|
1800
1800
|
}, {
|
|
1801
1801
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1802
|
-
error?: string | undefined;
|
|
1803
1802
|
message?: string | undefined;
|
|
1803
|
+
error?: string | undefined;
|
|
1804
1804
|
progress?: number | undefined;
|
|
1805
1805
|
}>;
|
|
1806
1806
|
interface TranslationEngineAssetStatus {
|
|
@@ -1817,13 +1817,13 @@ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
|
|
|
1817
1817
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1818
1818
|
}, "strip", z.ZodTypeAny, {
|
|
1819
1819
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1820
|
-
error?: string | undefined;
|
|
1821
1820
|
message?: string | undefined;
|
|
1821
|
+
error?: string | undefined;
|
|
1822
1822
|
progress?: number | undefined;
|
|
1823
1823
|
}, {
|
|
1824
1824
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1825
|
-
error?: string | undefined;
|
|
1826
1825
|
message?: string | undefined;
|
|
1826
|
+
error?: string | undefined;
|
|
1827
1827
|
progress?: number | undefined;
|
|
1828
1828
|
}>;
|
|
1829
1829
|
interface TranslationEngineLifecycleStatus {
|
|
@@ -1841,13 +1841,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1841
1841
|
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1842
1842
|
}, "strip", z.ZodTypeAny, {
|
|
1843
1843
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1844
|
-
error?: string | undefined;
|
|
1845
1844
|
message?: string | undefined;
|
|
1845
|
+
error?: string | undefined;
|
|
1846
1846
|
progress?: number | undefined;
|
|
1847
1847
|
}, {
|
|
1848
1848
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1849
|
-
error?: string | undefined;
|
|
1850
1849
|
message?: string | undefined;
|
|
1850
|
+
error?: string | undefined;
|
|
1851
1851
|
progress?: number | undefined;
|
|
1852
1852
|
}>;
|
|
1853
1853
|
runtime: z.ZodObject<{
|
|
@@ -1858,13 +1858,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1858
1858
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1859
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1860
1860
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1861
|
-
error?: string | undefined;
|
|
1862
1861
|
message?: string | undefined;
|
|
1862
|
+
error?: string | undefined;
|
|
1863
1863
|
progress?: number | undefined;
|
|
1864
1864
|
}, {
|
|
1865
1865
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1866
|
-
error?: string | undefined;
|
|
1867
1866
|
message?: string | undefined;
|
|
1867
|
+
error?: string | undefined;
|
|
1868
1868
|
progress?: number | undefined;
|
|
1869
1869
|
}>;
|
|
1870
1870
|
assets: z.ZodObject<{
|
|
@@ -1875,53 +1875,53 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1875
1875
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1876
1876
|
}, "strip", z.ZodTypeAny, {
|
|
1877
1877
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1878
|
-
error?: string | undefined;
|
|
1879
1878
|
message?: string | undefined;
|
|
1879
|
+
error?: string | undefined;
|
|
1880
1880
|
progress?: number | undefined;
|
|
1881
1881
|
}, {
|
|
1882
1882
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1883
|
-
error?: string | undefined;
|
|
1884
1883
|
message?: string | undefined;
|
|
1884
|
+
error?: string | undefined;
|
|
1885
1885
|
progress?: number | undefined;
|
|
1886
1886
|
}>;
|
|
1887
1887
|
summary: z.ZodOptional<z.ZodString>;
|
|
1888
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1889
1889
|
dependency: {
|
|
1890
1890
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1891
|
-
error?: string | undefined;
|
|
1892
1891
|
message?: string | undefined;
|
|
1892
|
+
error?: string | undefined;
|
|
1893
1893
|
progress?: number | undefined;
|
|
1894
1894
|
};
|
|
1895
1895
|
runtime: {
|
|
1896
1896
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1897
|
-
error?: string | undefined;
|
|
1898
1897
|
message?: string | undefined;
|
|
1898
|
+
error?: string | undefined;
|
|
1899
1899
|
progress?: number | undefined;
|
|
1900
1900
|
};
|
|
1901
1901
|
assets: {
|
|
1902
1902
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1903
|
-
error?: string | undefined;
|
|
1904
1903
|
message?: string | undefined;
|
|
1904
|
+
error?: string | undefined;
|
|
1905
1905
|
progress?: number | undefined;
|
|
1906
1906
|
};
|
|
1907
1907
|
summary?: string | undefined;
|
|
1908
1908
|
}, {
|
|
1909
1909
|
dependency: {
|
|
1910
1910
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1911
|
-
error?: string | undefined;
|
|
1912
1911
|
message?: string | undefined;
|
|
1912
|
+
error?: string | undefined;
|
|
1913
1913
|
progress?: number | undefined;
|
|
1914
1914
|
};
|
|
1915
1915
|
runtime: {
|
|
1916
1916
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1917
|
-
error?: string | undefined;
|
|
1918
1917
|
message?: string | undefined;
|
|
1918
|
+
error?: string | undefined;
|
|
1919
1919
|
progress?: number | undefined;
|
|
1920
1920
|
};
|
|
1921
1921
|
assets: {
|
|
1922
1922
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
1923
|
-
error?: string | undefined;
|
|
1924
1923
|
message?: string | undefined;
|
|
1924
|
+
error?: string | undefined;
|
|
1925
1925
|
progress?: number | undefined;
|
|
1926
1926
|
};
|
|
1927
1927
|
summary?: string | undefined;
|
|
@@ -1976,13 +1976,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
1976
1976
|
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
1977
1977
|
}, "strip", z.ZodTypeAny, {
|
|
1978
1978
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1979
|
-
error?: string | undefined;
|
|
1980
1979
|
message?: string | undefined;
|
|
1980
|
+
error?: string | undefined;
|
|
1981
1981
|
progress?: number | undefined;
|
|
1982
1982
|
}, {
|
|
1983
1983
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
1984
|
-
error?: string | undefined;
|
|
1985
1984
|
message?: string | undefined;
|
|
1985
|
+
error?: string | undefined;
|
|
1986
1986
|
progress?: number | undefined;
|
|
1987
1987
|
}>;
|
|
1988
1988
|
runtime: z.ZodObject<{
|
|
@@ -1993,13 +1993,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
1993
1993
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1994
1994
|
}, "strip", z.ZodTypeAny, {
|
|
1995
1995
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
1996
|
-
error?: string | undefined;
|
|
1997
1996
|
message?: string | undefined;
|
|
1997
|
+
error?: string | undefined;
|
|
1998
1998
|
progress?: number | undefined;
|
|
1999
1999
|
}, {
|
|
2000
2000
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2001
|
-
error?: string | undefined;
|
|
2002
2001
|
message?: string | undefined;
|
|
2002
|
+
error?: string | undefined;
|
|
2003
2003
|
progress?: number | undefined;
|
|
2004
2004
|
}>;
|
|
2005
2005
|
assets: z.ZodObject<{
|
|
@@ -2010,53 +2010,53 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2010
2010
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
2011
2011
|
}, "strip", z.ZodTypeAny, {
|
|
2012
2012
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2013
|
-
error?: string | undefined;
|
|
2014
2013
|
message?: string | undefined;
|
|
2014
|
+
error?: string | undefined;
|
|
2015
2015
|
progress?: number | undefined;
|
|
2016
2016
|
}, {
|
|
2017
2017
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2018
|
-
error?: string | undefined;
|
|
2019
2018
|
message?: string | undefined;
|
|
2019
|
+
error?: string | undefined;
|
|
2020
2020
|
progress?: number | undefined;
|
|
2021
2021
|
}>;
|
|
2022
2022
|
summary: z.ZodOptional<z.ZodString>;
|
|
2023
2023
|
}, "strip", z.ZodTypeAny, {
|
|
2024
2024
|
dependency: {
|
|
2025
2025
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2026
|
-
error?: string | undefined;
|
|
2027
2026
|
message?: string | undefined;
|
|
2027
|
+
error?: string | undefined;
|
|
2028
2028
|
progress?: number | undefined;
|
|
2029
2029
|
};
|
|
2030
2030
|
runtime: {
|
|
2031
2031
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2032
|
-
error?: string | undefined;
|
|
2033
2032
|
message?: string | undefined;
|
|
2033
|
+
error?: string | undefined;
|
|
2034
2034
|
progress?: number | undefined;
|
|
2035
2035
|
};
|
|
2036
2036
|
assets: {
|
|
2037
2037
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2038
|
-
error?: string | undefined;
|
|
2039
2038
|
message?: string | undefined;
|
|
2039
|
+
error?: string | undefined;
|
|
2040
2040
|
progress?: number | undefined;
|
|
2041
2041
|
};
|
|
2042
2042
|
summary?: string | undefined;
|
|
2043
2043
|
}, {
|
|
2044
2044
|
dependency: {
|
|
2045
2045
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2046
|
-
error?: string | undefined;
|
|
2047
2046
|
message?: string | undefined;
|
|
2047
|
+
error?: string | undefined;
|
|
2048
2048
|
progress?: number | undefined;
|
|
2049
2049
|
};
|
|
2050
2050
|
runtime: {
|
|
2051
2051
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2052
|
-
error?: string | undefined;
|
|
2053
2052
|
message?: string | undefined;
|
|
2053
|
+
error?: string | undefined;
|
|
2054
2054
|
progress?: number | undefined;
|
|
2055
2055
|
};
|
|
2056
2056
|
assets: {
|
|
2057
2057
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2058
|
-
error?: string | undefined;
|
|
2059
2058
|
message?: string | undefined;
|
|
2059
|
+
error?: string | undefined;
|
|
2060
2060
|
progress?: number | undefined;
|
|
2061
2061
|
};
|
|
2062
2062
|
summary?: string | undefined;
|
|
@@ -2066,20 +2066,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2066
2066
|
lifecycle: {
|
|
2067
2067
|
dependency: {
|
|
2068
2068
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2069
|
-
error?: string | undefined;
|
|
2070
2069
|
message?: string | undefined;
|
|
2070
|
+
error?: string | undefined;
|
|
2071
2071
|
progress?: number | undefined;
|
|
2072
2072
|
};
|
|
2073
2073
|
runtime: {
|
|
2074
2074
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2075
|
-
error?: string | undefined;
|
|
2076
2075
|
message?: string | undefined;
|
|
2076
|
+
error?: string | undefined;
|
|
2077
2077
|
progress?: number | undefined;
|
|
2078
2078
|
};
|
|
2079
2079
|
assets: {
|
|
2080
2080
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2081
|
-
error?: string | undefined;
|
|
2082
2081
|
message?: string | undefined;
|
|
2082
|
+
error?: string | undefined;
|
|
2083
2083
|
progress?: number | undefined;
|
|
2084
2084
|
};
|
|
2085
2085
|
summary?: string | undefined;
|
|
@@ -2089,20 +2089,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2089
2089
|
lifecycle: {
|
|
2090
2090
|
dependency: {
|
|
2091
2091
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2092
|
-
error?: string | undefined;
|
|
2093
2092
|
message?: string | undefined;
|
|
2093
|
+
error?: string | undefined;
|
|
2094
2094
|
progress?: number | undefined;
|
|
2095
2095
|
};
|
|
2096
2096
|
runtime: {
|
|
2097
2097
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2098
|
-
error?: string | undefined;
|
|
2099
2098
|
message?: string | undefined;
|
|
2099
|
+
error?: string | undefined;
|
|
2100
2100
|
progress?: number | undefined;
|
|
2101
2101
|
};
|
|
2102
2102
|
assets: {
|
|
2103
2103
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2104
|
-
error?: string | undefined;
|
|
2105
2104
|
message?: string | undefined;
|
|
2105
|
+
error?: string | undefined;
|
|
2106
2106
|
progress?: number | undefined;
|
|
2107
2107
|
};
|
|
2108
2108
|
summary?: string | undefined;
|
|
@@ -2130,13 +2130,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2130
2130
|
state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
|
|
2131
2131
|
}, "strip", z.ZodTypeAny, {
|
|
2132
2132
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2133
|
-
error?: string | undefined;
|
|
2134
2133
|
message?: string | undefined;
|
|
2134
|
+
error?: string | undefined;
|
|
2135
2135
|
progress?: number | undefined;
|
|
2136
2136
|
}, {
|
|
2137
2137
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2138
|
-
error?: string | undefined;
|
|
2139
2138
|
message?: string | undefined;
|
|
2139
|
+
error?: string | undefined;
|
|
2140
2140
|
progress?: number | undefined;
|
|
2141
2141
|
}>;
|
|
2142
2142
|
runtime: z.ZodObject<{
|
|
@@ -2147,13 +2147,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2147
2147
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
2148
2148
|
}, "strip", z.ZodTypeAny, {
|
|
2149
2149
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2150
|
-
error?: string | undefined;
|
|
2151
2150
|
message?: string | undefined;
|
|
2151
|
+
error?: string | undefined;
|
|
2152
2152
|
progress?: number | undefined;
|
|
2153
2153
|
}, {
|
|
2154
2154
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2155
|
-
error?: string | undefined;
|
|
2156
2155
|
message?: string | undefined;
|
|
2156
|
+
error?: string | undefined;
|
|
2157
2157
|
progress?: number | undefined;
|
|
2158
2158
|
}>;
|
|
2159
2159
|
assets: z.ZodObject<{
|
|
@@ -2164,53 +2164,53 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2164
2164
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
2165
2165
|
}, "strip", z.ZodTypeAny, {
|
|
2166
2166
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2167
|
-
error?: string | undefined;
|
|
2168
2167
|
message?: string | undefined;
|
|
2168
|
+
error?: string | undefined;
|
|
2169
2169
|
progress?: number | undefined;
|
|
2170
2170
|
}, {
|
|
2171
2171
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2172
|
-
error?: string | undefined;
|
|
2173
2172
|
message?: string | undefined;
|
|
2173
|
+
error?: string | undefined;
|
|
2174
2174
|
progress?: number | undefined;
|
|
2175
2175
|
}>;
|
|
2176
2176
|
summary: z.ZodOptional<z.ZodString>;
|
|
2177
2177
|
}, "strip", z.ZodTypeAny, {
|
|
2178
2178
|
dependency: {
|
|
2179
2179
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2180
|
-
error?: string | undefined;
|
|
2181
2180
|
message?: string | undefined;
|
|
2181
|
+
error?: string | undefined;
|
|
2182
2182
|
progress?: number | undefined;
|
|
2183
2183
|
};
|
|
2184
2184
|
runtime: {
|
|
2185
2185
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2186
|
-
error?: string | undefined;
|
|
2187
2186
|
message?: string | undefined;
|
|
2187
|
+
error?: string | undefined;
|
|
2188
2188
|
progress?: number | undefined;
|
|
2189
2189
|
};
|
|
2190
2190
|
assets: {
|
|
2191
2191
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2192
|
-
error?: string | undefined;
|
|
2193
2192
|
message?: string | undefined;
|
|
2193
|
+
error?: string | undefined;
|
|
2194
2194
|
progress?: number | undefined;
|
|
2195
2195
|
};
|
|
2196
2196
|
summary?: string | undefined;
|
|
2197
2197
|
}, {
|
|
2198
2198
|
dependency: {
|
|
2199
2199
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2200
|
-
error?: string | undefined;
|
|
2201
2200
|
message?: string | undefined;
|
|
2201
|
+
error?: string | undefined;
|
|
2202
2202
|
progress?: number | undefined;
|
|
2203
2203
|
};
|
|
2204
2204
|
runtime: {
|
|
2205
2205
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2206
|
-
error?: string | undefined;
|
|
2207
2206
|
message?: string | undefined;
|
|
2207
|
+
error?: string | undefined;
|
|
2208
2208
|
progress?: number | undefined;
|
|
2209
2209
|
};
|
|
2210
2210
|
assets: {
|
|
2211
2211
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2212
|
-
error?: string | undefined;
|
|
2213
2212
|
message?: string | undefined;
|
|
2213
|
+
error?: string | undefined;
|
|
2214
2214
|
progress?: number | undefined;
|
|
2215
2215
|
};
|
|
2216
2216
|
summary?: string | undefined;
|
|
@@ -2220,20 +2220,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2220
2220
|
lifecycle: {
|
|
2221
2221
|
dependency: {
|
|
2222
2222
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2223
|
-
error?: string | undefined;
|
|
2224
2223
|
message?: string | undefined;
|
|
2224
|
+
error?: string | undefined;
|
|
2225
2225
|
progress?: number | undefined;
|
|
2226
2226
|
};
|
|
2227
2227
|
runtime: {
|
|
2228
2228
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2229
|
-
error?: string | undefined;
|
|
2230
2229
|
message?: string | undefined;
|
|
2230
|
+
error?: string | undefined;
|
|
2231
2231
|
progress?: number | undefined;
|
|
2232
2232
|
};
|
|
2233
2233
|
assets: {
|
|
2234
2234
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2235
|
-
error?: string | undefined;
|
|
2236
2235
|
message?: string | undefined;
|
|
2236
|
+
error?: string | undefined;
|
|
2237
2237
|
progress?: number | undefined;
|
|
2238
2238
|
};
|
|
2239
2239
|
summary?: string | undefined;
|
|
@@ -2243,20 +2243,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2243
2243
|
lifecycle: {
|
|
2244
2244
|
dependency: {
|
|
2245
2245
|
state: "error" | "installed" | "installing" | "missing" | "not-applicable";
|
|
2246
|
-
error?: string | undefined;
|
|
2247
2246
|
message?: string | undefined;
|
|
2247
|
+
error?: string | undefined;
|
|
2248
2248
|
progress?: number | undefined;
|
|
2249
2249
|
};
|
|
2250
2250
|
runtime: {
|
|
2251
2251
|
state: "error" | "ready" | "not-applicable" | "probing" | "failed";
|
|
2252
|
-
error?: string | undefined;
|
|
2253
2252
|
message?: string | undefined;
|
|
2253
|
+
error?: string | undefined;
|
|
2254
2254
|
progress?: number | undefined;
|
|
2255
2255
|
};
|
|
2256
2256
|
assets: {
|
|
2257
2257
|
state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
|
|
2258
|
-
error?: string | undefined;
|
|
2259
2258
|
message?: string | undefined;
|
|
2259
|
+
error?: string | undefined;
|
|
2260
2260
|
progress?: number | undefined;
|
|
2261
2261
|
};
|
|
2262
2262
|
summary?: string | undefined;
|
|
@@ -2380,13 +2380,26 @@ declare const TranslationOpenAISettingsSchema: z.ZodObject<{
|
|
|
2380
2380
|
token: z.ZodDefault<z.ZodString>;
|
|
2381
2381
|
model: z.ZodDefault<z.ZodString>;
|
|
2382
2382
|
}, "strip", z.ZodTypeAny, {
|
|
2383
|
+
model: string;
|
|
2383
2384
|
baseUrl: string;
|
|
2384
2385
|
token: string;
|
|
2385
|
-
model: string;
|
|
2386
2386
|
}, {
|
|
2387
|
+
model?: string | undefined;
|
|
2387
2388
|
baseUrl?: string | undefined;
|
|
2388
2389
|
token?: string | undefined;
|
|
2390
|
+
}>;
|
|
2391
|
+
declare const TranslationOpenAISettingsUpdateSchema: z.ZodObject<{
|
|
2392
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
token: z.ZodOptional<z.ZodString>;
|
|
2394
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2395
|
+
}, "strip", z.ZodTypeAny, {
|
|
2396
|
+
model?: string | undefined;
|
|
2397
|
+
baseUrl?: string | undefined;
|
|
2398
|
+
token?: string | undefined;
|
|
2399
|
+
}, {
|
|
2389
2400
|
model?: string | undefined;
|
|
2401
|
+
baseUrl?: string | undefined;
|
|
2402
|
+
token?: string | undefined;
|
|
2390
2403
|
}>;
|
|
2391
2404
|
type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
|
|
2392
2405
|
declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
@@ -2400,8 +2413,24 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
|
2400
2413
|
memoryBudgetPercent: number;
|
|
2401
2414
|
selectedGroupId?: string | undefined;
|
|
2402
2415
|
}, {
|
|
2416
|
+
model?: string | undefined;
|
|
2403
2417
|
selectedGroupId?: string | undefined;
|
|
2418
|
+
hfEndpoint?: string | undefined;
|
|
2419
|
+
memoryBudgetPercent?: number | undefined;
|
|
2420
|
+
}>;
|
|
2421
|
+
declare const TranslationLocalSettingsUpdateSchema: z.ZodObject<{
|
|
2422
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2423
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2424
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2426
|
+
}, "strip", z.ZodTypeAny, {
|
|
2427
|
+
model?: string | undefined;
|
|
2428
|
+
selectedGroupId?: string | null | undefined;
|
|
2429
|
+
hfEndpoint?: string | undefined;
|
|
2430
|
+
memoryBudgetPercent?: number | undefined;
|
|
2431
|
+
}, {
|
|
2404
2432
|
model?: string | undefined;
|
|
2433
|
+
selectedGroupId?: string | null | undefined;
|
|
2405
2434
|
hfEndpoint?: string | undefined;
|
|
2406
2435
|
memoryBudgetPercent?: number | undefined;
|
|
2407
2436
|
}>;
|
|
@@ -2417,8 +2446,24 @@ declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
|
|
|
2417
2446
|
memoryBudgetPercent: number;
|
|
2418
2447
|
selectedGroupId?: string | undefined;
|
|
2419
2448
|
}, {
|
|
2449
|
+
model?: string | undefined;
|
|
2420
2450
|
selectedGroupId?: string | undefined;
|
|
2451
|
+
hfEndpoint?: string | undefined;
|
|
2452
|
+
memoryBudgetPercent?: number | undefined;
|
|
2453
|
+
}>;
|
|
2454
|
+
declare const TranslationLocalCt2SettingsUpdateSchema: z.ZodObject<{
|
|
2455
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2456
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2457
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2459
|
+
}, "strip", z.ZodTypeAny, {
|
|
2460
|
+
model?: string | undefined;
|
|
2461
|
+
selectedGroupId?: string | null | undefined;
|
|
2462
|
+
hfEndpoint?: string | undefined;
|
|
2463
|
+
memoryBudgetPercent?: number | undefined;
|
|
2464
|
+
}, {
|
|
2421
2465
|
model?: string | undefined;
|
|
2466
|
+
selectedGroupId?: string | null | undefined;
|
|
2422
2467
|
hfEndpoint?: string | undefined;
|
|
2423
2468
|
memoryBudgetPercent?: number | undefined;
|
|
2424
2469
|
}>;
|
|
@@ -2434,8 +2479,24 @@ declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{
|
|
|
2434
2479
|
memoryBudgetPercent: number;
|
|
2435
2480
|
selectedGroupId?: string | undefined;
|
|
2436
2481
|
}, {
|
|
2482
|
+
model?: string | undefined;
|
|
2437
2483
|
selectedGroupId?: string | undefined;
|
|
2484
|
+
hfEndpoint?: string | undefined;
|
|
2485
|
+
memoryBudgetPercent?: number | undefined;
|
|
2486
|
+
}>;
|
|
2487
|
+
declare const TranslationLocalLlamaSettingsUpdateSchema: z.ZodObject<{
|
|
2488
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2489
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2490
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2491
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2492
|
+
}, "strip", z.ZodTypeAny, {
|
|
2438
2493
|
model?: string | undefined;
|
|
2494
|
+
selectedGroupId?: string | null | undefined;
|
|
2495
|
+
hfEndpoint?: string | undefined;
|
|
2496
|
+
memoryBudgetPercent?: number | undefined;
|
|
2497
|
+
}, {
|
|
2498
|
+
model?: string | undefined;
|
|
2499
|
+
selectedGroupId?: string | null | undefined;
|
|
2439
2500
|
hfEndpoint?: string | undefined;
|
|
2440
2501
|
memoryBudgetPercent?: number | undefined;
|
|
2441
2502
|
}>;
|
|
@@ -2447,13 +2508,13 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2447
2508
|
token: z.ZodDefault<z.ZodString>;
|
|
2448
2509
|
model: z.ZodDefault<z.ZodString>;
|
|
2449
2510
|
}, "strip", z.ZodTypeAny, {
|
|
2511
|
+
model: string;
|
|
2450
2512
|
baseUrl: string;
|
|
2451
2513
|
token: string;
|
|
2452
|
-
model: string;
|
|
2453
2514
|
}, {
|
|
2515
|
+
model?: string | undefined;
|
|
2454
2516
|
baseUrl?: string | undefined;
|
|
2455
2517
|
token?: string | undefined;
|
|
2456
|
-
model?: string | undefined;
|
|
2457
2518
|
}>>;
|
|
2458
2519
|
local: z.ZodDefault<z.ZodObject<{
|
|
2459
2520
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -2466,8 +2527,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2466
2527
|
memoryBudgetPercent: number;
|
|
2467
2528
|
selectedGroupId?: string | undefined;
|
|
2468
2529
|
}, {
|
|
2469
|
-
selectedGroupId?: string | undefined;
|
|
2470
2530
|
model?: string | undefined;
|
|
2531
|
+
selectedGroupId?: string | undefined;
|
|
2471
2532
|
hfEndpoint?: string | undefined;
|
|
2472
2533
|
memoryBudgetPercent?: number | undefined;
|
|
2473
2534
|
}>>;
|
|
@@ -2482,8 +2543,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2482
2543
|
memoryBudgetPercent: number;
|
|
2483
2544
|
selectedGroupId?: string | undefined;
|
|
2484
2545
|
}, {
|
|
2485
|
-
selectedGroupId?: string | undefined;
|
|
2486
2546
|
model?: string | undefined;
|
|
2547
|
+
selectedGroupId?: string | undefined;
|
|
2487
2548
|
hfEndpoint?: string | undefined;
|
|
2488
2549
|
memoryBudgetPercent?: number | undefined;
|
|
2489
2550
|
}>>;
|
|
@@ -2498,8 +2559,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2498
2559
|
memoryBudgetPercent: number;
|
|
2499
2560
|
selectedGroupId?: string | undefined;
|
|
2500
2561
|
}, {
|
|
2501
|
-
selectedGroupId?: string | undefined;
|
|
2502
2562
|
model?: string | undefined;
|
|
2563
|
+
selectedGroupId?: string | undefined;
|
|
2503
2564
|
hfEndpoint?: string | undefined;
|
|
2504
2565
|
memoryBudgetPercent?: number | undefined;
|
|
2505
2566
|
}>>;
|
|
@@ -2510,12 +2571,6 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2510
2571
|
memoryBudgetPercent: number;
|
|
2511
2572
|
selectedGroupId?: string | undefined;
|
|
2512
2573
|
};
|
|
2513
|
-
openai: {
|
|
2514
|
-
baseUrl: string;
|
|
2515
|
-
token: string;
|
|
2516
|
-
model: string;
|
|
2517
|
-
};
|
|
2518
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2519
2574
|
localCt2: {
|
|
2520
2575
|
model: string;
|
|
2521
2576
|
hfEndpoint: string;
|
|
@@ -2528,31 +2583,151 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2528
2583
|
memoryBudgetPercent: number;
|
|
2529
2584
|
selectedGroupId?: string | undefined;
|
|
2530
2585
|
};
|
|
2586
|
+
openai: {
|
|
2587
|
+
model: string;
|
|
2588
|
+
baseUrl: string;
|
|
2589
|
+
token: string;
|
|
2590
|
+
};
|
|
2591
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2531
2592
|
}, {
|
|
2532
2593
|
local?: {
|
|
2594
|
+
model?: string | undefined;
|
|
2595
|
+
selectedGroupId?: string | undefined;
|
|
2596
|
+
hfEndpoint?: string | undefined;
|
|
2597
|
+
memoryBudgetPercent?: number | undefined;
|
|
2598
|
+
} | undefined;
|
|
2599
|
+
localCt2?: {
|
|
2600
|
+
model?: string | undefined;
|
|
2533
2601
|
selectedGroupId?: string | undefined;
|
|
2602
|
+
hfEndpoint?: string | undefined;
|
|
2603
|
+
memoryBudgetPercent?: number | undefined;
|
|
2604
|
+
} | undefined;
|
|
2605
|
+
localLlama?: {
|
|
2606
|
+
model?: string | undefined;
|
|
2607
|
+
selectedGroupId?: string | undefined;
|
|
2608
|
+
hfEndpoint?: string | undefined;
|
|
2609
|
+
memoryBudgetPercent?: number | undefined;
|
|
2610
|
+
} | undefined;
|
|
2611
|
+
openai?: {
|
|
2612
|
+
model?: string | undefined;
|
|
2613
|
+
baseUrl?: string | undefined;
|
|
2614
|
+
token?: string | undefined;
|
|
2615
|
+
} | undefined;
|
|
2616
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2617
|
+
}>;
|
|
2618
|
+
declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
2619
|
+
engineId: z.ZodOptional<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
|
|
2620
|
+
openai: z.ZodOptional<z.ZodObject<{
|
|
2621
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2622
|
+
token: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
}, "strip", z.ZodTypeAny, {
|
|
2625
|
+
model?: string | undefined;
|
|
2626
|
+
baseUrl?: string | undefined;
|
|
2627
|
+
token?: string | undefined;
|
|
2628
|
+
}, {
|
|
2629
|
+
model?: string | undefined;
|
|
2630
|
+
baseUrl?: string | undefined;
|
|
2631
|
+
token?: string | undefined;
|
|
2632
|
+
}>>;
|
|
2633
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
2634
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2636
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2638
|
+
}, "strip", z.ZodTypeAny, {
|
|
2639
|
+
model?: string | undefined;
|
|
2640
|
+
selectedGroupId?: string | null | undefined;
|
|
2641
|
+
hfEndpoint?: string | undefined;
|
|
2642
|
+
memoryBudgetPercent?: number | undefined;
|
|
2643
|
+
}, {
|
|
2644
|
+
model?: string | undefined;
|
|
2645
|
+
selectedGroupId?: string | null | undefined;
|
|
2646
|
+
hfEndpoint?: string | undefined;
|
|
2647
|
+
memoryBudgetPercent?: number | undefined;
|
|
2648
|
+
}>>;
|
|
2649
|
+
localCt2: z.ZodOptional<z.ZodObject<{
|
|
2650
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2651
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2652
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2654
|
+
}, "strip", z.ZodTypeAny, {
|
|
2655
|
+
model?: string | undefined;
|
|
2656
|
+
selectedGroupId?: string | null | undefined;
|
|
2657
|
+
hfEndpoint?: string | undefined;
|
|
2658
|
+
memoryBudgetPercent?: number | undefined;
|
|
2659
|
+
}, {
|
|
2660
|
+
model?: string | undefined;
|
|
2661
|
+
selectedGroupId?: string | null | undefined;
|
|
2662
|
+
hfEndpoint?: string | undefined;
|
|
2663
|
+
memoryBudgetPercent?: number | undefined;
|
|
2664
|
+
}>>;
|
|
2665
|
+
localLlama: z.ZodOptional<z.ZodObject<{
|
|
2666
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2667
|
+
selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2668
|
+
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2669
|
+
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2670
|
+
}, "strip", z.ZodTypeAny, {
|
|
2671
|
+
model?: string | undefined;
|
|
2672
|
+
selectedGroupId?: string | null | undefined;
|
|
2673
|
+
hfEndpoint?: string | undefined;
|
|
2674
|
+
memoryBudgetPercent?: number | undefined;
|
|
2675
|
+
}, {
|
|
2676
|
+
model?: string | undefined;
|
|
2677
|
+
selectedGroupId?: string | null | undefined;
|
|
2678
|
+
hfEndpoint?: string | undefined;
|
|
2679
|
+
memoryBudgetPercent?: number | undefined;
|
|
2680
|
+
}>>;
|
|
2681
|
+
}, "strip", z.ZodTypeAny, {
|
|
2682
|
+
local?: {
|
|
2683
|
+
model?: string | undefined;
|
|
2684
|
+
selectedGroupId?: string | null | undefined;
|
|
2685
|
+
hfEndpoint?: string | undefined;
|
|
2686
|
+
memoryBudgetPercent?: number | undefined;
|
|
2687
|
+
} | undefined;
|
|
2688
|
+
localCt2?: {
|
|
2689
|
+
model?: string | undefined;
|
|
2690
|
+
selectedGroupId?: string | null | undefined;
|
|
2691
|
+
hfEndpoint?: string | undefined;
|
|
2692
|
+
memoryBudgetPercent?: number | undefined;
|
|
2693
|
+
} | undefined;
|
|
2694
|
+
localLlama?: {
|
|
2534
2695
|
model?: string | undefined;
|
|
2696
|
+
selectedGroupId?: string | null | undefined;
|
|
2535
2697
|
hfEndpoint?: string | undefined;
|
|
2536
2698
|
memoryBudgetPercent?: number | undefined;
|
|
2537
2699
|
} | undefined;
|
|
2538
2700
|
openai?: {
|
|
2701
|
+
model?: string | undefined;
|
|
2539
2702
|
baseUrl?: string | undefined;
|
|
2540
2703
|
token?: string | undefined;
|
|
2704
|
+
} | undefined;
|
|
2705
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2706
|
+
}, {
|
|
2707
|
+
local?: {
|
|
2541
2708
|
model?: string | undefined;
|
|
2709
|
+
selectedGroupId?: string | null | undefined;
|
|
2710
|
+
hfEndpoint?: string | undefined;
|
|
2711
|
+
memoryBudgetPercent?: number | undefined;
|
|
2542
2712
|
} | undefined;
|
|
2543
|
-
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
2544
2713
|
localCt2?: {
|
|
2545
|
-
selectedGroupId?: string | undefined;
|
|
2546
2714
|
model?: string | undefined;
|
|
2715
|
+
selectedGroupId?: string | null | undefined;
|
|
2547
2716
|
hfEndpoint?: string | undefined;
|
|
2548
2717
|
memoryBudgetPercent?: number | undefined;
|
|
2549
2718
|
} | undefined;
|
|
2550
2719
|
localLlama?: {
|
|
2551
|
-
selectedGroupId?: string | undefined;
|
|
2552
2720
|
model?: string | undefined;
|
|
2721
|
+
selectedGroupId?: string | null | undefined;
|
|
2553
2722
|
hfEndpoint?: string | undefined;
|
|
2554
2723
|
memoryBudgetPercent?: number | undefined;
|
|
2555
2724
|
} | undefined;
|
|
2725
|
+
openai?: {
|
|
2726
|
+
model?: string | undefined;
|
|
2727
|
+
baseUrl?: string | undefined;
|
|
2728
|
+
token?: string | undefined;
|
|
2729
|
+
} | undefined;
|
|
2730
|
+
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2556
2731
|
}>;
|
|
2557
2732
|
type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
|
|
2558
2733
|
type TranslationEngineGlobalSettingsUpdate = {
|
|
@@ -2579,22 +2754,22 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
|
|
|
2579
2754
|
context: z.ZodOptional<z.ZodString>;
|
|
2580
2755
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2581
2756
|
}, "strip", z.ZodTypeAny, {
|
|
2582
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2583
|
-
sourceLanguage: string;
|
|
2584
2757
|
targetLanguage: string;
|
|
2758
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2759
|
+
sourceLanguage: string;
|
|
2585
2760
|
inputs: string[];
|
|
2586
2761
|
timeoutMs: number;
|
|
2587
|
-
selectedGroupId?: string | undefined;
|
|
2588
2762
|
model?: string | undefined;
|
|
2763
|
+
selectedGroupId?: string | undefined;
|
|
2589
2764
|
instructions?: string | undefined;
|
|
2590
2765
|
context?: string | undefined;
|
|
2591
2766
|
}, {
|
|
2592
|
-
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2593
|
-
sourceLanguage: string;
|
|
2594
2767
|
targetLanguage: string;
|
|
2768
|
+
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2769
|
+
sourceLanguage: string;
|
|
2595
2770
|
inputs: string[];
|
|
2596
|
-
selectedGroupId?: string | undefined;
|
|
2597
2771
|
model?: string | undefined;
|
|
2772
|
+
selectedGroupId?: string | undefined;
|
|
2598
2773
|
instructions?: string | undefined;
|
|
2599
2774
|
context?: string | undefined;
|
|
2600
2775
|
timeoutMs?: number | undefined;
|
|
@@ -2630,4 +2805,4 @@ declare const BatchTranslateEventSchema: z.ZodObject<{
|
|
|
2630
2805
|
}>;
|
|
2631
2806
|
type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
|
|
2632
2807
|
//#endregion
|
|
2633
|
-
export { TranslationEngineDependencyStatus as $,
|
|
2808
|
+
export { TranslationEngineDependencyStatus as $, createTranslationEngineLifecycleStatus as $t, LocalModelProfileManifestGroupSchema as A, TranslationLocalCt2SettingsUpdateSchema as At, TRANSLATION_ENGINE_IDS as B, TranslationModelSearchInput as Bt, LocalModelLifecycleGroupStateSchema as C, TranslationEngineRuntimeState as Ct, LocalModelProfileManifestFile as D, TranslationEngineSettingsKey as Dt, LocalModelProfileManifest as E, TranslationEngineRuntimeStatusSchema as Et, ManagedLocalCatalogSourceSchema as F, TranslationLocalSettingsSchema as Ft, TranslationDownloadGroupPlan as G, TranslationOpenAISettingsUpdateSchema as Gt, TRANSLATOR_CONTRACT_VERSION as H, TranslationModelSearchResult as Ht, ManagedLocalTranslationEngineId as I, TranslationLocalSettingsUpdateSchema as It, TranslationEngineAssetStateSchema as J, TranslatorFactory as Jt, TranslationDownloadGroupPlanSchema as K, Translator as Kt, SERVICE_TRANSLATION_ENGINE_IDS as L, TranslationModelCandidate as Lt, LocalModelProfileStatus as M, TranslationLocalLlamaSettingsSchema as Mt, LocalModelProfileStatusSchema as N, TranslationLocalLlamaSettingsUpdateSchema as Nt, LocalModelProfileManifestFileSchema as O, TranslationLocalCt2Settings as Ot, ManagedLocalCatalogSource as P, TranslationLocalSettings as Pt, TranslationEngineDependencyStateSchema as Q, TranslatorPrepareMonitor as Qt, ServiceTranslationEngineId as R, TranslationModelDownloadPlan as Rt, LocalModelLifecycleGroupState as S, TranslationEngineRuntime as St, LocalModelProfileLoadStateSchema as T, TranslationEngineRuntimeStatus as Tt, TranslationDownloadFilePlan as U, TranslationOpenAISettings as Ut, TRANSLATION_ENGINE_MANIFESTS as V, TranslationModelSearchPhase as Vt, TranslationDownloadFilePlanSchema as W, TranslationOpenAISettingsSchema as Wt, TranslationEngineAssetStatusSchema as X, TranslatorFactoryPrepareOptions as Xt, TranslationEngineAssetStatus as Y, TranslatorFactoryCreateOptions as Yt, TranslationEngineDependencyState as Z, TranslatorOptions as Zt, LocalModelCatalogSearchEvent as _, TranslationEngineLifecycleLogEvent as _t, BatchTranslationResult as a, isTranslationEngineDependencyReady as an, TranslationEngineId as at, LocalModelLifecycleFileState as b, TranslationEngineLifecycleStatusSchema as bt, LocalModelAssetLog as c, BatchTranslationError as cn, TranslationEngineInstallLogEventSchema as ct, LocalModelAssetPlanSnapshotSchema as d, normalizeBatchTranslationError as dn, TranslationEngineKind as dt, getManagedLocalTranslationEngineManifest as en, TranslationEngineDependencyStatusSchema as et, LocalModelAssetState as f, runControlledTranslationTask as fn, TranslationEngineLifecycleContext as ft, LocalModelCatalogResult as g, TranslationEngineLifecycleExitEvent as gt, LocalModelCatalogLocalResult as h, TranslationEngineLifecycleEventSchema as ht, BatchTranslateInputSchema as i, isManagedLocalTranslationEngineId as in, TranslationEngineGlobalSettingsUpdateSchema as it, LocalModelProfileManifestSchema as j, TranslationLocalLlamaSettings as jt, LocalModelProfileManifestGroup as k, TranslationLocalCt2SettingsSchema as kt, LocalModelAssetLogSchema as l, BatchTranslationErrorKind as ln, TranslationEngineInstallLogStream as lt, LocalModelCatalogItem as m, TranslationEngineLifecycleEvent as mt, BatchTranslateEventSchema as n, getTranslationEngineManifest as nn, TranslationEngineGlobalSettingsSchema as nt, DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS as o, isTranslationEngineRuntimeReady as on, TranslationEngineIdSchema as ot, LocalModelAssetStateSchema as p, TranslationEngineLifecycleController as pt, TranslationEngineAssetState as q, TranslatorCreateMonitor as qt, BatchTranslateInput as r, isDirectionalManagedLocalTranslationEngineId as rn, TranslationEngineGlobalSettingsUpdate as rt, DEFAULT_TRANSLATION_ENGINE_ID as s, shouldShowTranslationEngineInstallGate as sn, TranslationEngineInstallLogEvent as st, BatchTranslateEvent as t, getTranslationEngineLifecycleMessage as tn, TranslationEngineGlobalSettings as tt, LocalModelAssetPlanSnapshot as u, isBatchTranslationAbort as un, TranslationEngineInstallLogStreamSchema as ut, LocalModelDownloadStatus as v, TranslationEngineLifecycleStatus as vt, LocalModelProfileLoadState as w, TranslationEngineRuntimeStateSchema as wt, LocalModelLifecycleFileStateSchema as x, TranslationEngineManifest as xt, LocalModelDownloadStatusSchema as y, TranslationEngineLifecycleStatusEvent as yt, ServiceTranslationEngineIdSchema as z, TranslationModelSearchEvent as zt };
|