@openspecui/core 3.11.2 → 3.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{document-translation-BTEG-uW_.mjs → document-translation-B3QRXIXx.mjs} +5 -1
  2. package/dist/{document-translation-EMIQf5dw.d.mts → document-translation-QMSrWNT-.d.mts} +56 -9
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/index.d.mts +197 -39
  6. package/dist/index.mjs +140 -5
  7. package/dist/{local-download-profiles-CSXKbamv.d.mts → local-download-profiles-DHF9dW4e.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-Ct6rtBwb.d.mts → notifications-D9yMeQqN.d.mts} +4 -4
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-DrTZ0P31.d.mts → openspec-projection-e-sOj4vr.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-CIB-Wi0n.d.mts → opsx-entity-C89YFQNB.d.mts} +9 -9
  14. package/dist/opsx-entity.d.mts +2 -2
  15. package/dist/{opsx-schema-detail-Cjoesix_.d.mts → opsx-schema-detail-DIscOp9f.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DeEkRkAH.d.mts → schemas-B6ZBedD4.d.mts} +112 -112
  18. package/dist/{sounds-BaxOUgWE.d.mts → sounds-BjSZxrQO.d.mts} +1 -1
  19. package/dist/sounds.d.mts +1 -1
  20. package/dist/{terminal-audio-v3YSYJKq.d.mts → terminal-audio-6x0ceNBw.d.mts} +2 -2
  21. package/dist/terminal-audio.d.mts +2 -2
  22. package/dist/terminal-control.d.mts +2 -2
  23. package/dist/{terminal-invocation-C5gqne5H.d.mts → terminal-invocation-C2e1WSWM.d.mts} +24 -24
  24. package/dist/terminal-invocation.d.mts +1 -1
  25. package/dist/{translator-yHmEiuRX.mjs → translator-B98pejVa.mjs} +172 -7
  26. package/dist/{translator-BtbU7rjR.d.mts → translator-jn94xmWZ.d.mts} +247 -112
  27. package/dist/translator.d.mts +2 -2
  28. package/dist/translator.mjs +2 -2
  29. package/package.json +1 -1
@@ -1,24 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
+ //#region src/translation-task-control.d.ts
4
+ declare const BATCH_TRANSLATION_ERROR_KINDS: readonly ["timeout", "memory-limit", "runtime", "abort"];
5
+ type BatchTranslationErrorKind = (typeof BATCH_TRANSLATION_ERROR_KINDS)[number];
6
+ interface BatchTranslationError {
7
+ kind: BatchTranslationErrorKind;
8
+ message: string;
9
+ }
10
+ interface ControlledTranslationTaskOptions {
11
+ signal?: AbortSignal;
12
+ timeoutMs?: number;
13
+ }
14
+ type ControlledTranslationTaskResult<T> = {
15
+ ok: true;
16
+ value: T;
17
+ } | {
18
+ ok: false;
19
+ error: BatchTranslationError;
20
+ };
21
+ declare function runControlledTranslationTask<T>(task: (signal: AbortSignal) => Promise<T>, options?: ControlledTranslationTaskOptions): Promise<ControlledTranslationTaskResult<T>>;
22
+ declare function normalizeBatchTranslationError(error: unknown, parentSignal?: AbortSignal): BatchTranslationError;
23
+ declare function isBatchTranslationAbort(error: BatchTranslationError, signal: AbortSignal | undefined): boolean;
24
+ //#endregion
3
25
  //#region src/translator.d.ts
4
26
  declare const TRANSLATOR_CONTRACT_VERSION = 3;
5
- declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "openai"];
6
- declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
27
+ declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "local-llama", "openai"];
28
+ declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>;
7
29
  type TranslationEngineId = z.infer<typeof TranslationEngineIdSchema>;
8
30
  declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId;
9
- declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2'>;
10
- type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'local-ct2'>;
11
- declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "openai"];
12
- declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "openai"]>;
31
+ declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2' | 'local-llama'>;
32
+ declare function isDirectionalManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2'>;
33
+ type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'local-ct2' | 'local-llama'>;
34
+ declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "local-llama", "openai"];
35
+ declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "local-llama", "openai"]>;
13
36
  type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
37
+ declare const DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS = 15000;
14
38
  interface TranslatorOptions {
15
39
  instructions?: string;
16
40
  context?: string;
17
41
  signal?: AbortSignal;
42
+ timeoutMs?: number;
18
43
  }
19
44
  interface BatchTranslationResult {
20
45
  index: number;
21
- output: string;
46
+ output?: string;
47
+ error?: BatchTranslationError;
22
48
  }
23
49
  interface Translator {
24
50
  batchTranslate(inputs: string[], options?: TranslatorOptions): AsyncGenerator<BatchTranslationResult>;
@@ -205,8 +231,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
205
231
  sourceUrl?: string | undefined;
206
232
  raw?: unknown;
207
233
  }[];
208
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
209
234
  error?: string | undefined;
235
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
210
236
  description?: string | undefined;
211
237
  profile?: string | undefined;
212
238
  dtype?: string | undefined;
@@ -233,8 +259,8 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
233
259
  sourceUrl?: string | undefined;
234
260
  raw?: unknown;
235
261
  }[];
236
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
237
262
  error?: string | undefined;
263
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
238
264
  description?: string | undefined;
239
265
  profile?: string | undefined;
240
266
  dtype?: string | undefined;
@@ -533,19 +559,19 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
533
559
  updatedAt: z.ZodOptional<z.ZodNumber>;
534
560
  error: z.ZodOptional<z.ZodString>;
535
561
  }, "strip", z.ZodTypeAny, {
536
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
537
562
  path: string;
538
563
  required: boolean;
564
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
539
565
  error?: string | undefined;
540
566
  sizeBytes?: number | undefined;
541
567
  updatedAt?: number | undefined;
542
568
  downloadedBytes?: number | undefined;
543
569
  }, {
544
570
  path: string;
545
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
546
571
  error?: string | undefined;
547
572
  sizeBytes?: number | undefined;
548
573
  required?: boolean | undefined;
574
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
549
575
  updatedAt?: number | undefined;
550
576
  downloadedBytes?: number | undefined;
551
577
  }>;
@@ -571,19 +597,19 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
571
597
  updatedAt: z.ZodOptional<z.ZodNumber>;
572
598
  error: z.ZodOptional<z.ZodString>;
573
599
  }, "strip", z.ZodTypeAny, {
574
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
575
600
  path: string;
576
601
  required: boolean;
602
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
577
603
  error?: string | undefined;
578
604
  sizeBytes?: number | undefined;
579
605
  updatedAt?: number | undefined;
580
606
  downloadedBytes?: number | undefined;
581
607
  }, {
582
608
  path: string;
583
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
584
609
  error?: string | undefined;
585
610
  sizeBytes?: number | undefined;
586
611
  required?: boolean | undefined;
612
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
587
613
  updatedAt?: number | undefined;
588
614
  downloadedBytes?: number | undefined;
589
615
  }>, "many">>;
@@ -591,9 +617,9 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
591
617
  status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
592
618
  resumable: boolean;
593
619
  files: {
594
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
595
620
  path: string;
596
621
  required: boolean;
622
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
597
623
  error?: string | undefined;
598
624
  sizeBytes?: number | undefined;
599
625
  updatedAt?: number | undefined;
@@ -610,8 +636,8 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
610
636
  installedAt?: number | undefined;
611
637
  }, {
612
638
  groupId: string;
613
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
614
639
  error?: string | undefined;
640
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
615
641
  baseGroupId?: string | undefined;
616
642
  rootDir?: string | undefined;
617
643
  progress?: number | undefined;
@@ -620,10 +646,10 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
620
646
  resumable?: boolean | undefined;
621
647
  files?: {
622
648
  path: string;
623
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
624
649
  error?: string | undefined;
625
650
  sizeBytes?: number | undefined;
626
651
  required?: boolean | undefined;
652
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
627
653
  updatedAt?: number | undefined;
628
654
  downloadedBytes?: number | undefined;
629
655
  }[] | undefined;
@@ -638,18 +664,18 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
638
664
  updatedAt: z.ZodOptional<z.ZodNumber>;
639
665
  }, "strip", z.ZodTypeAny, {
640
666
  status: "error" | "idle" | "loading" | "ready";
641
- message?: string | undefined;
642
667
  error?: string | undefined;
668
+ message?: string | undefined;
643
669
  updatedAt?: number | undefined;
644
670
  }, {
645
- status?: "error" | "idle" | "loading" | "ready" | undefined;
646
- message?: string | undefined;
647
671
  error?: string | undefined;
672
+ message?: string | undefined;
673
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
648
674
  updatedAt?: number | undefined;
649
675
  }>;
650
676
  type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
651
677
  declare const LocalModelAssetLogSchema: z.ZodObject<{
652
- engineId: z.ZodEnum<["local", "local-ct2"]>;
678
+ engineId: z.ZodEnum<["local", "local-ct2", "local-llama"]>;
653
679
  modelId: z.ZodString;
654
680
  selectedGroupId: z.ZodOptional<z.ZodString>;
655
681
  groupId: z.ZodOptional<z.ZodString>;
@@ -675,11 +701,11 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
675
701
  }>, "many">>;
676
702
  updatedAt: z.ZodNumber;
677
703
  }, "strip", z.ZodTypeAny, {
678
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
679
704
  message: string;
705
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
680
706
  modelId: string;
681
707
  updatedAt: number;
682
- engineId: "local" | "local-ct2";
708
+ engineId: "local" | "local-ct2" | "local-llama";
683
709
  progress?: number | undefined;
684
710
  bytesDownloaded?: number | undefined;
685
711
  totalBytes?: number | undefined;
@@ -693,11 +719,11 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
693
719
  selectedGroupId?: string | undefined;
694
720
  sessionId?: string | undefined;
695
721
  }, {
696
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
697
722
  message: string;
723
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
698
724
  modelId: string;
699
725
  updatedAt: number;
700
- engineId: "local" | "local-ct2";
726
+ engineId: "local" | "local-ct2" | "local-llama";
701
727
  progress?: number | undefined;
702
728
  bytesDownloaded?: number | undefined;
703
729
  totalBytes?: number | undefined;
@@ -800,8 +826,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
800
826
  sourceUrl?: string | undefined;
801
827
  raw?: unknown;
802
828
  }[];
803
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
804
829
  error?: string | undefined;
830
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
805
831
  description?: string | undefined;
806
832
  profile?: string | undefined;
807
833
  dtype?: string | undefined;
@@ -828,8 +854,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
828
854
  sourceUrl?: string | undefined;
829
855
  raw?: unknown;
830
856
  }[];
831
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
832
857
  error?: string | undefined;
858
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
833
859
  description?: string | undefined;
834
860
  profile?: string | undefined;
835
861
  dtype?: string | undefined;
@@ -870,8 +896,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
870
896
  sourceUrl?: string | undefined;
871
897
  raw?: unknown;
872
898
  }[];
873
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
874
899
  error?: string | undefined;
900
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
875
901
  description?: string | undefined;
876
902
  profile?: string | undefined;
877
903
  dtype?: string | undefined;
@@ -913,8 +939,8 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
913
939
  sourceUrl?: string | undefined;
914
940
  raw?: unknown;
915
941
  }[];
916
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
917
942
  error?: string | undefined;
943
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
918
944
  description?: string | undefined;
919
945
  profile?: string | undefined;
920
946
  dtype?: string | undefined;
@@ -951,13 +977,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
951
977
  updatedAt: z.ZodOptional<z.ZodNumber>;
952
978
  }, "strip", z.ZodTypeAny, {
953
979
  status: "error" | "idle" | "loading" | "ready";
954
- message?: string | undefined;
955
980
  error?: string | undefined;
981
+ message?: string | undefined;
956
982
  updatedAt?: number | undefined;
957
983
  }, {
958
- status?: "error" | "idle" | "loading" | "ready" | undefined;
959
- message?: string | undefined;
960
984
  error?: string | undefined;
985
+ message?: string | undefined;
986
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
961
987
  updatedAt?: number | undefined;
962
988
  }>>;
963
989
  profileManifest: z.ZodOptional<z.ZodObject<{
@@ -1144,19 +1170,19 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1144
1170
  updatedAt: z.ZodOptional<z.ZodNumber>;
1145
1171
  error: z.ZodOptional<z.ZodString>;
1146
1172
  }, "strip", z.ZodTypeAny, {
1147
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1148
1173
  path: string;
1149
1174
  required: boolean;
1175
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1150
1176
  error?: string | undefined;
1151
1177
  sizeBytes?: number | undefined;
1152
1178
  updatedAt?: number | undefined;
1153
1179
  downloadedBytes?: number | undefined;
1154
1180
  }, {
1155
1181
  path: string;
1156
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1157
1182
  error?: string | undefined;
1158
1183
  sizeBytes?: number | undefined;
1159
1184
  required?: boolean | undefined;
1185
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1160
1186
  updatedAt?: number | undefined;
1161
1187
  downloadedBytes?: number | undefined;
1162
1188
  }>, "many">>;
@@ -1164,9 +1190,9 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1164
1190
  status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1165
1191
  resumable: boolean;
1166
1192
  files: {
1167
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1168
1193
  path: string;
1169
1194
  required: boolean;
1195
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1170
1196
  error?: string | undefined;
1171
1197
  sizeBytes?: number | undefined;
1172
1198
  updatedAt?: number | undefined;
@@ -1183,8 +1209,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1183
1209
  installedAt?: number | undefined;
1184
1210
  }, {
1185
1211
  groupId: string;
1186
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1187
1212
  error?: string | undefined;
1213
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1188
1214
  baseGroupId?: string | undefined;
1189
1215
  rootDir?: string | undefined;
1190
1216
  progress?: number | undefined;
@@ -1193,10 +1219,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1193
1219
  resumable?: boolean | undefined;
1194
1220
  files?: {
1195
1221
  path: string;
1196
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1197
1222
  error?: string | undefined;
1198
1223
  sizeBytes?: number | undefined;
1199
1224
  required?: boolean | undefined;
1225
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1200
1226
  updatedAt?: number | undefined;
1201
1227
  downloadedBytes?: number | undefined;
1202
1228
  }[] | undefined;
@@ -1291,8 +1317,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1291
1317
  sourceUrl?: string | undefined;
1292
1318
  raw?: unknown;
1293
1319
  }[];
1294
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1295
1320
  error?: string | undefined;
1321
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1296
1322
  description?: string | undefined;
1297
1323
  profile?: string | undefined;
1298
1324
  dtype?: string | undefined;
@@ -1319,8 +1345,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1319
1345
  sourceUrl?: string | undefined;
1320
1346
  raw?: unknown;
1321
1347
  }[];
1322
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1323
1348
  error?: string | undefined;
1349
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1324
1350
  description?: string | undefined;
1325
1351
  profile?: string | undefined;
1326
1352
  dtype?: string | undefined;
@@ -1361,8 +1387,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1361
1387
  sourceUrl?: string | undefined;
1362
1388
  raw?: unknown;
1363
1389
  }[];
1364
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1365
1390
  error?: string | undefined;
1391
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1366
1392
  description?: string | undefined;
1367
1393
  profile?: string | undefined;
1368
1394
  dtype?: string | undefined;
@@ -1404,8 +1430,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1404
1430
  sourceUrl?: string | undefined;
1405
1431
  raw?: unknown;
1406
1432
  }[];
1407
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1408
1433
  error?: string | undefined;
1434
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1409
1435
  description?: string | undefined;
1410
1436
  profile?: string | undefined;
1411
1437
  dtype?: string | undefined;
@@ -1447,17 +1473,17 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1447
1473
  version: 2;
1448
1474
  profileLoad: {
1449
1475
  status: "error" | "idle" | "loading" | "ready";
1450
- message?: string | undefined;
1451
1476
  error?: string | undefined;
1477
+ message?: string | undefined;
1452
1478
  updatedAt?: number | undefined;
1453
1479
  };
1454
1480
  groupsState: Record<string, {
1455
1481
  status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1456
1482
  resumable: boolean;
1457
1483
  files: {
1458
- status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1459
1484
  path: string;
1460
1485
  required: boolean;
1486
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1461
1487
  error?: string | undefined;
1462
1488
  sizeBytes?: number | undefined;
1463
1489
  updatedAt?: number | undefined;
@@ -1542,8 +1568,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1542
1568
  sourceUrl?: string | undefined;
1543
1569
  raw?: unknown;
1544
1570
  }[];
1545
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1546
1571
  error?: string | undefined;
1572
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1547
1573
  description?: string | undefined;
1548
1574
  profile?: string | undefined;
1549
1575
  dtype?: string | undefined;
@@ -1561,8 +1587,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1561
1587
  } | undefined;
1562
1588
  }, {
1563
1589
  modelId: string;
1564
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1565
1590
  error?: string | undefined;
1591
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1566
1592
  progress?: number | undefined;
1567
1593
  bytesDownloaded?: number | undefined;
1568
1594
  totalBytes?: number | undefined;
@@ -1578,9 +1604,9 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1578
1604
  selectedGroupId?: string | undefined;
1579
1605
  version?: 2 | undefined;
1580
1606
  profileLoad?: {
1581
- status?: "error" | "idle" | "loading" | "ready" | undefined;
1582
- message?: string | undefined;
1583
1607
  error?: string | undefined;
1608
+ message?: string | undefined;
1609
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
1584
1610
  updatedAt?: number | undefined;
1585
1611
  } | undefined;
1586
1612
  profileManifest?: {
@@ -1620,8 +1646,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1620
1646
  } | undefined;
1621
1647
  groupsState?: Record<string, {
1622
1648
  groupId: string;
1623
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1624
1649
  error?: string | undefined;
1650
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1625
1651
  baseGroupId?: string | undefined;
1626
1652
  rootDir?: string | undefined;
1627
1653
  progress?: number | undefined;
@@ -1630,10 +1656,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1630
1656
  resumable?: boolean | undefined;
1631
1657
  files?: {
1632
1658
  path: string;
1633
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1634
1659
  error?: string | undefined;
1635
1660
  sizeBytes?: number | undefined;
1636
1661
  required?: boolean | undefined;
1662
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1637
1663
  updatedAt?: number | undefined;
1638
1664
  downloadedBytes?: number | undefined;
1639
1665
  }[] | undefined;
@@ -1667,8 +1693,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1667
1693
  sourceUrl?: string | undefined;
1668
1694
  raw?: unknown;
1669
1695
  }[];
1670
- status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1671
1696
  error?: string | undefined;
1697
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1672
1698
  description?: string | undefined;
1673
1699
  profile?: string | undefined;
1674
1700
  dtype?: string | undefined;
@@ -1686,10 +1712,14 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
1686
1712
  } | undefined;
1687
1713
  }>;
1688
1714
  type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
1715
+ declare const ManagedLocalCatalogSourceSchema: z.ZodEnum<["local", "network", "recommended"]>;
1716
+ type ManagedLocalCatalogSource = z.infer<typeof ManagedLocalCatalogSourceSchema>;
1689
1717
  interface LocalModelCatalogItem extends TranslationModelCandidate {
1690
1718
  asset: LocalModelAssetState;
1691
1719
  selectable: boolean;
1692
1720
  local: boolean;
1721
+ primarySource: ManagedLocalCatalogSource;
1722
+ sources: ManagedLocalCatalogSource[];
1693
1723
  }
1694
1724
  interface LocalModelCatalogResult {
1695
1725
  items: LocalModelCatalogItem[];
@@ -1741,13 +1771,13 @@ declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
1741
1771
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1742
1772
  }, "strip", z.ZodTypeAny, {
1743
1773
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1744
- message?: string | undefined;
1745
1774
  error?: string | undefined;
1775
+ message?: string | undefined;
1746
1776
  progress?: number | undefined;
1747
1777
  }, {
1748
1778
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1749
- message?: string | undefined;
1750
1779
  error?: string | undefined;
1780
+ message?: string | undefined;
1751
1781
  progress?: number | undefined;
1752
1782
  }>;
1753
1783
  interface TranslationEngineRuntimeStatus {
@@ -1764,13 +1794,13 @@ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
1764
1794
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1765
1795
  }, "strip", z.ZodTypeAny, {
1766
1796
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1767
- message?: string | undefined;
1768
1797
  error?: string | undefined;
1798
+ message?: string | undefined;
1769
1799
  progress?: number | undefined;
1770
1800
  }, {
1771
1801
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1772
- message?: string | undefined;
1773
1802
  error?: string | undefined;
1803
+ message?: string | undefined;
1774
1804
  progress?: number | undefined;
1775
1805
  }>;
1776
1806
  interface TranslationEngineAssetStatus {
@@ -1787,13 +1817,13 @@ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
1787
1817
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1788
1818
  }, "strip", z.ZodTypeAny, {
1789
1819
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1790
- message?: string | undefined;
1791
1820
  error?: string | undefined;
1821
+ message?: string | undefined;
1792
1822
  progress?: number | undefined;
1793
1823
  }, {
1794
1824
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1795
- message?: string | undefined;
1796
1825
  error?: string | undefined;
1826
+ message?: string | undefined;
1797
1827
  progress?: number | undefined;
1798
1828
  }>;
1799
1829
  interface TranslationEngineLifecycleStatus {
@@ -1811,13 +1841,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1811
1841
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1812
1842
  }, "strip", z.ZodTypeAny, {
1813
1843
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1814
- message?: string | undefined;
1815
1844
  error?: string | undefined;
1845
+ message?: string | undefined;
1816
1846
  progress?: number | undefined;
1817
1847
  }, {
1818
1848
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1819
- message?: string | undefined;
1820
1849
  error?: string | undefined;
1850
+ message?: string | undefined;
1821
1851
  progress?: number | undefined;
1822
1852
  }>;
1823
1853
  runtime: z.ZodObject<{
@@ -1828,13 +1858,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1828
1858
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1829
1859
  }, "strip", z.ZodTypeAny, {
1830
1860
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1831
- message?: string | undefined;
1832
1861
  error?: string | undefined;
1862
+ message?: string | undefined;
1833
1863
  progress?: number | undefined;
1834
1864
  }, {
1835
1865
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1836
- message?: string | undefined;
1837
1866
  error?: string | undefined;
1867
+ message?: string | undefined;
1838
1868
  progress?: number | undefined;
1839
1869
  }>;
1840
1870
  assets: z.ZodObject<{
@@ -1845,53 +1875,53 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1845
1875
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1846
1876
  }, "strip", z.ZodTypeAny, {
1847
1877
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1848
- message?: string | undefined;
1849
1878
  error?: string | undefined;
1879
+ message?: string | undefined;
1850
1880
  progress?: number | undefined;
1851
1881
  }, {
1852
1882
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1853
- message?: string | undefined;
1854
1883
  error?: string | undefined;
1884
+ message?: string | undefined;
1855
1885
  progress?: number | undefined;
1856
1886
  }>;
1857
1887
  summary: z.ZodOptional<z.ZodString>;
1858
1888
  }, "strip", z.ZodTypeAny, {
1859
1889
  dependency: {
1860
1890
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1861
- message?: string | undefined;
1862
1891
  error?: string | undefined;
1892
+ message?: string | undefined;
1863
1893
  progress?: number | undefined;
1864
1894
  };
1865
1895
  runtime: {
1866
1896
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1867
- message?: string | undefined;
1868
1897
  error?: string | undefined;
1898
+ message?: string | undefined;
1869
1899
  progress?: number | undefined;
1870
1900
  };
1871
1901
  assets: {
1872
1902
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1873
- message?: string | undefined;
1874
1903
  error?: string | undefined;
1904
+ message?: string | undefined;
1875
1905
  progress?: number | undefined;
1876
1906
  };
1877
1907
  summary?: string | undefined;
1878
1908
  }, {
1879
1909
  dependency: {
1880
1910
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1881
- message?: string | undefined;
1882
1911
  error?: string | undefined;
1912
+ message?: string | undefined;
1883
1913
  progress?: number | undefined;
1884
1914
  };
1885
1915
  runtime: {
1886
1916
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1887
- message?: string | undefined;
1888
1917
  error?: string | undefined;
1918
+ message?: string | undefined;
1889
1919
  progress?: number | undefined;
1890
1920
  };
1891
1921
  assets: {
1892
1922
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1893
- message?: string | undefined;
1894
1923
  error?: string | undefined;
1924
+ message?: string | undefined;
1895
1925
  progress?: number | undefined;
1896
1926
  };
1897
1927
  summary?: string | undefined;
@@ -1946,13 +1976,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1946
1976
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1947
1977
  }, "strip", z.ZodTypeAny, {
1948
1978
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1949
- message?: string | undefined;
1950
1979
  error?: string | undefined;
1980
+ message?: string | undefined;
1951
1981
  progress?: number | undefined;
1952
1982
  }, {
1953
1983
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1954
- message?: string | undefined;
1955
1984
  error?: string | undefined;
1985
+ message?: string | undefined;
1956
1986
  progress?: number | undefined;
1957
1987
  }>;
1958
1988
  runtime: z.ZodObject<{
@@ -1963,13 +1993,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1963
1993
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1964
1994
  }, "strip", z.ZodTypeAny, {
1965
1995
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1966
- message?: string | undefined;
1967
1996
  error?: string | undefined;
1997
+ message?: string | undefined;
1968
1998
  progress?: number | undefined;
1969
1999
  }, {
1970
2000
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1971
- message?: string | undefined;
1972
2001
  error?: string | undefined;
2002
+ message?: string | undefined;
1973
2003
  progress?: number | undefined;
1974
2004
  }>;
1975
2005
  assets: z.ZodObject<{
@@ -1980,53 +2010,53 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
1980
2010
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1981
2011
  }, "strip", z.ZodTypeAny, {
1982
2012
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1983
- message?: string | undefined;
1984
2013
  error?: string | undefined;
2014
+ message?: string | undefined;
1985
2015
  progress?: number | undefined;
1986
2016
  }, {
1987
2017
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1988
- message?: string | undefined;
1989
2018
  error?: string | undefined;
2019
+ message?: string | undefined;
1990
2020
  progress?: number | undefined;
1991
2021
  }>;
1992
2022
  summary: z.ZodOptional<z.ZodString>;
1993
2023
  }, "strip", z.ZodTypeAny, {
1994
2024
  dependency: {
1995
2025
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1996
- message?: string | undefined;
1997
2026
  error?: string | undefined;
2027
+ message?: string | undefined;
1998
2028
  progress?: number | undefined;
1999
2029
  };
2000
2030
  runtime: {
2001
2031
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2002
- message?: string | undefined;
2003
2032
  error?: string | undefined;
2033
+ message?: string | undefined;
2004
2034
  progress?: number | undefined;
2005
2035
  };
2006
2036
  assets: {
2007
2037
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2008
- message?: string | undefined;
2009
2038
  error?: string | undefined;
2039
+ message?: string | undefined;
2010
2040
  progress?: number | undefined;
2011
2041
  };
2012
2042
  summary?: string | undefined;
2013
2043
  }, {
2014
2044
  dependency: {
2015
2045
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2016
- message?: string | undefined;
2017
2046
  error?: string | undefined;
2047
+ message?: string | undefined;
2018
2048
  progress?: number | undefined;
2019
2049
  };
2020
2050
  runtime: {
2021
2051
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2022
- message?: string | undefined;
2023
2052
  error?: string | undefined;
2053
+ message?: string | undefined;
2024
2054
  progress?: number | undefined;
2025
2055
  };
2026
2056
  assets: {
2027
2057
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2028
- message?: string | undefined;
2029
2058
  error?: string | undefined;
2059
+ message?: string | undefined;
2030
2060
  progress?: number | undefined;
2031
2061
  };
2032
2062
  summary?: string | undefined;
@@ -2036,20 +2066,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2036
2066
  lifecycle: {
2037
2067
  dependency: {
2038
2068
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2039
- message?: string | undefined;
2040
2069
  error?: string | undefined;
2070
+ message?: string | undefined;
2041
2071
  progress?: number | undefined;
2042
2072
  };
2043
2073
  runtime: {
2044
2074
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2045
- message?: string | undefined;
2046
2075
  error?: string | undefined;
2076
+ message?: string | undefined;
2047
2077
  progress?: number | undefined;
2048
2078
  };
2049
2079
  assets: {
2050
2080
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2051
- message?: string | undefined;
2052
2081
  error?: string | undefined;
2082
+ message?: string | undefined;
2053
2083
  progress?: number | undefined;
2054
2084
  };
2055
2085
  summary?: string | undefined;
@@ -2059,20 +2089,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2059
2089
  lifecycle: {
2060
2090
  dependency: {
2061
2091
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2062
- message?: string | undefined;
2063
2092
  error?: string | undefined;
2093
+ message?: string | undefined;
2064
2094
  progress?: number | undefined;
2065
2095
  };
2066
2096
  runtime: {
2067
2097
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2068
- message?: string | undefined;
2069
2098
  error?: string | undefined;
2099
+ message?: string | undefined;
2070
2100
  progress?: number | undefined;
2071
2101
  };
2072
2102
  assets: {
2073
2103
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2074
- message?: string | undefined;
2075
2104
  error?: string | undefined;
2105
+ message?: string | undefined;
2076
2106
  progress?: number | undefined;
2077
2107
  };
2078
2108
  summary?: string | undefined;
@@ -2100,13 +2130,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2100
2130
  state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
2101
2131
  }, "strip", z.ZodTypeAny, {
2102
2132
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2103
- message?: string | undefined;
2104
2133
  error?: string | undefined;
2134
+ message?: string | undefined;
2105
2135
  progress?: number | undefined;
2106
2136
  }, {
2107
2137
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2108
- message?: string | undefined;
2109
2138
  error?: string | undefined;
2139
+ message?: string | undefined;
2110
2140
  progress?: number | undefined;
2111
2141
  }>;
2112
2142
  runtime: z.ZodObject<{
@@ -2117,13 +2147,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2117
2147
  state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
2118
2148
  }, "strip", z.ZodTypeAny, {
2119
2149
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2120
- message?: string | undefined;
2121
2150
  error?: string | undefined;
2151
+ message?: string | undefined;
2122
2152
  progress?: number | undefined;
2123
2153
  }, {
2124
2154
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2125
- message?: string | undefined;
2126
2155
  error?: string | undefined;
2156
+ message?: string | undefined;
2127
2157
  progress?: number | undefined;
2128
2158
  }>;
2129
2159
  assets: z.ZodObject<{
@@ -2134,53 +2164,53 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2134
2164
  state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
2135
2165
  }, "strip", z.ZodTypeAny, {
2136
2166
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2137
- message?: string | undefined;
2138
2167
  error?: string | undefined;
2168
+ message?: string | undefined;
2139
2169
  progress?: number | undefined;
2140
2170
  }, {
2141
2171
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2142
- message?: string | undefined;
2143
2172
  error?: string | undefined;
2173
+ message?: string | undefined;
2144
2174
  progress?: number | undefined;
2145
2175
  }>;
2146
2176
  summary: z.ZodOptional<z.ZodString>;
2147
2177
  }, "strip", z.ZodTypeAny, {
2148
2178
  dependency: {
2149
2179
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2150
- message?: string | undefined;
2151
2180
  error?: string | undefined;
2181
+ message?: string | undefined;
2152
2182
  progress?: number | undefined;
2153
2183
  };
2154
2184
  runtime: {
2155
2185
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2156
- message?: string | undefined;
2157
2186
  error?: string | undefined;
2187
+ message?: string | undefined;
2158
2188
  progress?: number | undefined;
2159
2189
  };
2160
2190
  assets: {
2161
2191
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2162
- message?: string | undefined;
2163
2192
  error?: string | undefined;
2193
+ message?: string | undefined;
2164
2194
  progress?: number | undefined;
2165
2195
  };
2166
2196
  summary?: string | undefined;
2167
2197
  }, {
2168
2198
  dependency: {
2169
2199
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2170
- message?: string | undefined;
2171
2200
  error?: string | undefined;
2201
+ message?: string | undefined;
2172
2202
  progress?: number | undefined;
2173
2203
  };
2174
2204
  runtime: {
2175
2205
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2176
- message?: string | undefined;
2177
2206
  error?: string | undefined;
2207
+ message?: string | undefined;
2178
2208
  progress?: number | undefined;
2179
2209
  };
2180
2210
  assets: {
2181
2211
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2182
- message?: string | undefined;
2183
2212
  error?: string | undefined;
2213
+ message?: string | undefined;
2184
2214
  progress?: number | undefined;
2185
2215
  };
2186
2216
  summary?: string | undefined;
@@ -2190,20 +2220,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2190
2220
  lifecycle: {
2191
2221
  dependency: {
2192
2222
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2193
- message?: string | undefined;
2194
2223
  error?: string | undefined;
2224
+ message?: string | undefined;
2195
2225
  progress?: number | undefined;
2196
2226
  };
2197
2227
  runtime: {
2198
2228
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2199
- message?: string | undefined;
2200
2229
  error?: string | undefined;
2230
+ message?: string | undefined;
2201
2231
  progress?: number | undefined;
2202
2232
  };
2203
2233
  assets: {
2204
2234
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2205
- message?: string | undefined;
2206
2235
  error?: string | undefined;
2236
+ message?: string | undefined;
2207
2237
  progress?: number | undefined;
2208
2238
  };
2209
2239
  summary?: string | undefined;
@@ -2213,20 +2243,20 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
2213
2243
  lifecycle: {
2214
2244
  dependency: {
2215
2245
  state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2216
- message?: string | undefined;
2217
2246
  error?: string | undefined;
2247
+ message?: string | undefined;
2218
2248
  progress?: number | undefined;
2219
2249
  };
2220
2250
  runtime: {
2221
2251
  state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2222
- message?: string | undefined;
2223
2252
  error?: string | undefined;
2253
+ message?: string | undefined;
2224
2254
  progress?: number | undefined;
2225
2255
  };
2226
2256
  assets: {
2227
2257
  state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2228
- message?: string | undefined;
2229
2258
  error?: string | undefined;
2259
+ message?: string | undefined;
2230
2260
  progress?: number | undefined;
2231
2261
  };
2232
2262
  summary?: string | undefined;
@@ -2245,7 +2275,7 @@ interface TranslationEngineLifecycleController {
2245
2275
  }
2246
2276
  type TranslationEngineRuntime = 'browser' | 'server';
2247
2277
  type TranslationEngineKind = 'browser' | 'managed-local' | 'remote-provider';
2248
- type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'openai';
2278
+ type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'localLlama' | 'openai';
2249
2279
  interface TranslationEngineManifest {
2250
2280
  id: TranslationEngineId;
2251
2281
  label: string;
@@ -2305,6 +2335,22 @@ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
2305
2335
  readonly refreshTooltip: "Refresh local model artifacts";
2306
2336
  readonly moduleName: "@openspecui/local-ct2-translator";
2307
2337
  readonly factoryExport: "createLocalCt2TranslatorFactory";
2338
+ }, {
2339
+ readonly id: "local-llama";
2340
+ readonly label: "Local-Llama";
2341
+ readonly description: "Runs a local GGUF translation-capable LLM through node-llama-cpp with managed GGUF model files.";
2342
+ 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.";
2343
+ readonly runtime: "server";
2344
+ readonly kind: "managed-local";
2345
+ readonly settingsKey: "localLlama";
2346
+ readonly defaultModel: "bartowski/Qwen2.5-0.5B-Instruct-GGUF";
2347
+ readonly runtimePackageName: "node-llama-cpp";
2348
+ readonly installDescription: "Install the Local-Llama runtime package to enable server-side GGUF translation.";
2349
+ readonly modelLabel: "Llama Model";
2350
+ readonly downloadGroupsLabel: "Local GGUF files";
2351
+ readonly refreshTooltip: "Refresh local GGUF artifacts";
2352
+ readonly moduleName: "@openspecui/local-llama-translator";
2353
+ readonly factoryExport: "createLocalLlamaTranslatorFactory";
2308
2354
  }, {
2309
2355
  readonly id: "openai";
2310
2356
  readonly label: "OpenAI-Completion";
@@ -2321,7 +2367,7 @@ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
2321
2367
  declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest;
2322
2368
  declare function getManagedLocalTranslationEngineManifest(engineId: ManagedLocalTranslationEngineId): TranslationEngineManifest & {
2323
2369
  kind: 'managed-local';
2324
- settingsKey: Extract<TranslationEngineSettingsKey, 'local' | 'localCt2'>;
2370
+ settingsKey: Extract<TranslationEngineSettingsKey, 'local' | 'localCt2' | 'localLlama'>;
2325
2371
  defaultModel: string;
2326
2372
  runtimePackageName: string;
2327
2373
  installDescription: string;
@@ -2347,31 +2393,55 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
2347
2393
  model: z.ZodDefault<z.ZodString>;
2348
2394
  selectedGroupId: z.ZodOptional<z.ZodString>;
2349
2395
  hfEndpoint: z.ZodDefault<z.ZodString>;
2396
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2350
2397
  }, "strip", z.ZodTypeAny, {
2351
2398
  model: string;
2352
2399
  hfEndpoint: string;
2400
+ memoryBudgetPercent: number;
2353
2401
  selectedGroupId?: string | undefined;
2354
2402
  }, {
2355
2403
  selectedGroupId?: string | undefined;
2356
2404
  model?: string | undefined;
2357
2405
  hfEndpoint?: string | undefined;
2406
+ memoryBudgetPercent?: number | undefined;
2358
2407
  }>;
2359
2408
  type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
2360
2409
  declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
2361
2410
  model: z.ZodDefault<z.ZodString>;
2362
2411
  selectedGroupId: z.ZodOptional<z.ZodString>;
2363
2412
  hfEndpoint: z.ZodDefault<z.ZodString>;
2413
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2364
2414
  }, "strip", z.ZodTypeAny, {
2365
2415
  model: string;
2366
2416
  hfEndpoint: string;
2417
+ memoryBudgetPercent: number;
2367
2418
  selectedGroupId?: string | undefined;
2368
2419
  }, {
2369
2420
  selectedGroupId?: string | undefined;
2370
2421
  model?: string | undefined;
2371
2422
  hfEndpoint?: string | undefined;
2423
+ memoryBudgetPercent?: number | undefined;
2372
2424
  }>;
2373
2425
  type TranslationLocalCt2Settings = z.infer<typeof TranslationLocalCt2SettingsSchema>;
2426
+ declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{
2427
+ model: z.ZodDefault<z.ZodString>;
2428
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2429
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2430
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2431
+ }, "strip", z.ZodTypeAny, {
2432
+ model: string;
2433
+ hfEndpoint: string;
2434
+ memoryBudgetPercent: number;
2435
+ selectedGroupId?: string | undefined;
2436
+ }, {
2437
+ selectedGroupId?: string | undefined;
2438
+ model?: string | undefined;
2439
+ hfEndpoint?: string | undefined;
2440
+ memoryBudgetPercent?: number | undefined;
2441
+ }>;
2442
+ type TranslationLocalLlamaSettings = z.infer<typeof TranslationLocalLlamaSettingsSchema>;
2374
2443
  declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2444
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
2375
2445
  openai: z.ZodDefault<z.ZodObject<{
2376
2446
  baseUrl: z.ZodDefault<z.ZodString>;
2377
2447
  token: z.ZodDefault<z.ZodString>;
@@ -2389,32 +2459,55 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2389
2459
  model: z.ZodDefault<z.ZodString>;
2390
2460
  selectedGroupId: z.ZodOptional<z.ZodString>;
2391
2461
  hfEndpoint: z.ZodDefault<z.ZodString>;
2462
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2392
2463
  }, "strip", z.ZodTypeAny, {
2393
2464
  model: string;
2394
2465
  hfEndpoint: string;
2466
+ memoryBudgetPercent: number;
2395
2467
  selectedGroupId?: string | undefined;
2396
2468
  }, {
2397
2469
  selectedGroupId?: string | undefined;
2398
2470
  model?: string | undefined;
2399
2471
  hfEndpoint?: string | undefined;
2472
+ memoryBudgetPercent?: number | undefined;
2400
2473
  }>>;
2401
2474
  localCt2: z.ZodDefault<z.ZodObject<{
2402
2475
  model: z.ZodDefault<z.ZodString>;
2403
2476
  selectedGroupId: z.ZodOptional<z.ZodString>;
2404
2477
  hfEndpoint: z.ZodDefault<z.ZodString>;
2478
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2405
2479
  }, "strip", z.ZodTypeAny, {
2406
2480
  model: string;
2407
2481
  hfEndpoint: string;
2482
+ memoryBudgetPercent: number;
2408
2483
  selectedGroupId?: string | undefined;
2409
2484
  }, {
2410
2485
  selectedGroupId?: string | undefined;
2411
2486
  model?: string | undefined;
2412
2487
  hfEndpoint?: string | undefined;
2488
+ memoryBudgetPercent?: number | undefined;
2489
+ }>>;
2490
+ localLlama: z.ZodDefault<z.ZodObject<{
2491
+ model: z.ZodDefault<z.ZodString>;
2492
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2493
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2494
+ memoryBudgetPercent: z.ZodDefault<z.ZodNumber>;
2495
+ }, "strip", z.ZodTypeAny, {
2496
+ model: string;
2497
+ hfEndpoint: string;
2498
+ memoryBudgetPercent: number;
2499
+ selectedGroupId?: string | undefined;
2500
+ }, {
2501
+ selectedGroupId?: string | undefined;
2502
+ model?: string | undefined;
2503
+ hfEndpoint?: string | undefined;
2504
+ memoryBudgetPercent?: number | undefined;
2413
2505
  }>>;
2414
2506
  }, "strip", z.ZodTypeAny, {
2415
2507
  local: {
2416
2508
  model: string;
2417
2509
  hfEndpoint: string;
2510
+ memoryBudgetPercent: number;
2418
2511
  selectedGroupId?: string | undefined;
2419
2512
  };
2420
2513
  openai: {
@@ -2422,9 +2515,17 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2422
2515
  token: string;
2423
2516
  model: string;
2424
2517
  };
2518
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
2425
2519
  localCt2: {
2426
2520
  model: string;
2427
2521
  hfEndpoint: string;
2522
+ memoryBudgetPercent: number;
2523
+ selectedGroupId?: string | undefined;
2524
+ };
2525
+ localLlama: {
2526
+ model: string;
2527
+ hfEndpoint: string;
2528
+ memoryBudgetPercent: number;
2428
2529
  selectedGroupId?: string | undefined;
2429
2530
  };
2430
2531
  }, {
@@ -2432,20 +2533,30 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2432
2533
  selectedGroupId?: string | undefined;
2433
2534
  model?: string | undefined;
2434
2535
  hfEndpoint?: string | undefined;
2536
+ memoryBudgetPercent?: number | undefined;
2435
2537
  } | undefined;
2436
2538
  openai?: {
2437
2539
  baseUrl?: string | undefined;
2438
2540
  token?: string | undefined;
2439
2541
  model?: string | undefined;
2440
2542
  } | undefined;
2543
+ engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
2441
2544
  localCt2?: {
2442
2545
  selectedGroupId?: string | undefined;
2443
2546
  model?: string | undefined;
2444
2547
  hfEndpoint?: string | undefined;
2548
+ memoryBudgetPercent?: number | undefined;
2549
+ } | undefined;
2550
+ localLlama?: {
2551
+ selectedGroupId?: string | undefined;
2552
+ model?: string | undefined;
2553
+ hfEndpoint?: string | undefined;
2554
+ memoryBudgetPercent?: number | undefined;
2445
2555
  } | undefined;
2446
2556
  }>;
2447
2557
  type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
2448
2558
  type TranslationEngineGlobalSettingsUpdate = {
2559
+ engineId?: TranslationEngineId;
2449
2560
  openai?: Partial<TranslationOpenAISettings>;
2450
2561
  local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
2451
2562
  selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
@@ -2453,9 +2564,12 @@ type TranslationEngineGlobalSettingsUpdate = {
2453
2564
  localCt2?: Partial<Omit<TranslationLocalCt2Settings, 'selectedGroupId'>> & {
2454
2565
  selectedGroupId?: TranslationLocalCt2Settings['selectedGroupId'] | null;
2455
2566
  };
2567
+ localLlama?: Partial<Omit<TranslationLocalLlamaSettings, 'selectedGroupId'>> & {
2568
+ selectedGroupId?: TranslationLocalLlamaSettings['selectedGroupId'] | null;
2569
+ };
2456
2570
  };
2457
2571
  declare const BatchTranslateInputSchema: z.ZodObject<{
2458
- engineId: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
2572
+ engineId: z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>;
2459
2573
  sourceLanguage: z.ZodString;
2460
2574
  targetLanguage: z.ZodString;
2461
2575
  model: z.ZodOptional<z.ZodString>;
@@ -2463,17 +2577,19 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
2463
2577
  inputs: z.ZodArray<z.ZodString, "many">;
2464
2578
  instructions: z.ZodOptional<z.ZodString>;
2465
2579
  context: z.ZodOptional<z.ZodString>;
2580
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2466
2581
  }, "strip", z.ZodTypeAny, {
2467
- engineId: "browser" | "local" | "local-ct2" | "openai";
2582
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
2468
2583
  sourceLanguage: string;
2469
2584
  targetLanguage: string;
2470
2585
  inputs: string[];
2586
+ timeoutMs: number;
2471
2587
  selectedGroupId?: string | undefined;
2472
2588
  model?: string | undefined;
2473
2589
  instructions?: string | undefined;
2474
2590
  context?: string | undefined;
2475
2591
  }, {
2476
- engineId: "browser" | "local" | "local-ct2" | "openai";
2592
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
2477
2593
  sourceLanguage: string;
2478
2594
  targetLanguage: string;
2479
2595
  inputs: string[];
@@ -2481,18 +2597,37 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
2481
2597
  model?: string | undefined;
2482
2598
  instructions?: string | undefined;
2483
2599
  context?: string | undefined;
2600
+ timeoutMs?: number | undefined;
2484
2601
  }>;
2485
2602
  type BatchTranslateInput = z.infer<typeof BatchTranslateInputSchema>;
2486
2603
  declare const BatchTranslateEventSchema: z.ZodObject<{
2487
2604
  index: z.ZodNumber;
2488
- output: z.ZodString;
2605
+ output: z.ZodOptional<z.ZodString>;
2606
+ error: z.ZodOptional<z.ZodObject<{
2607
+ kind: z.ZodEnum<["timeout", "memory-limit", "runtime", "abort"]>;
2608
+ message: z.ZodString;
2609
+ }, "strip", z.ZodTypeAny, {
2610
+ message: string;
2611
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2612
+ }, {
2613
+ message: string;
2614
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2615
+ }>>;
2489
2616
  }, "strip", z.ZodTypeAny, {
2490
2617
  index: number;
2491
- output: string;
2618
+ error?: {
2619
+ message: string;
2620
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2621
+ } | undefined;
2622
+ output?: string | undefined;
2492
2623
  }, {
2493
2624
  index: number;
2494
- output: string;
2625
+ error?: {
2626
+ message: string;
2627
+ kind: "runtime" | "timeout" | "memory-limit" | "abort";
2628
+ } | undefined;
2629
+ output?: string | undefined;
2495
2630
  }>;
2496
2631
  type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
2497
2632
  //#endregion
2498
- export { TranslationEngineGlobalSettingsSchema as $, LocalModelProfileManifestSchema as A, TranslationModelSearchEvent as At, TranslationDownloadFilePlan as B, TranslatorFactoryPrepareOptions as Bt, LocalModelProfileLoadState as C, TranslationEngineSettingsKey as Ct, LocalModelProfileManifestFileSchema as D, TranslationLocalSettingsSchema as Dt, LocalModelProfileManifestFile as E, TranslationLocalSettings as Et, ServiceTranslationEngineId as F, TranslationOpenAISettingsSchema as Ft, TranslationEngineAssetStateSchema as G, getTranslationEngineLifecycleMessage as Gt, TranslationDownloadGroupPlan as H, TranslatorPrepareMonitor as Ht, ServiceTranslationEngineIdSchema as I, Translator as It, TranslationEngineDependencyState as J, isTranslationEngineDependencyReady as Jt, TranslationEngineAssetStatus as K, getTranslationEngineManifest as Kt, TRANSLATION_ENGINE_IDS as L, TranslatorCreateMonitor as Lt, LocalModelProfileStatusSchema as M, TranslationModelSearchPhase as Mt, ManagedLocalTranslationEngineId as N, TranslationModelSearchResult as Nt, LocalModelProfileManifestGroup as O, TranslationModelCandidate as Ot, SERVICE_TRANSLATION_ENGINE_IDS as P, TranslationOpenAISettings as Pt, TranslationEngineGlobalSettings as Q, TRANSLATION_ENGINE_MANIFESTS as R, TranslatorFactory as Rt, LocalModelLifecycleGroupStateSchema as S, TranslationEngineRuntimeStatusSchema as St, LocalModelProfileManifest as T, TranslationLocalCt2SettingsSchema as Tt, TranslationDownloadGroupPlanSchema as U, createTranslationEngineLifecycleStatus as Ut, TranslationDownloadFilePlanSchema as V, TranslatorOptions as Vt, TranslationEngineAssetState as W, getManagedLocalTranslationEngineManifest as Wt, TranslationEngineDependencyStatus as X, shouldShowTranslationEngineInstallGate as Xt, TranslationEngineDependencyStateSchema as Y, isTranslationEngineRuntimeReady as Yt, TranslationEngineDependencyStatusSchema as Z, LocalModelDownloadStatus as _, TranslationEngineManifest as _t, BatchTranslationResult as a, TranslationEngineInstallLogStream as at, LocalModelLifecycleFileStateSchema as b, TranslationEngineRuntimeStateSchema as bt, LocalModelAssetLogSchema as c, TranslationEngineLifecycleContext as ct, LocalModelAssetState as d, TranslationEngineLifecycleEventSchema as dt, TranslationEngineGlobalSettingsUpdate as et, LocalModelAssetStateSchema as f, TranslationEngineLifecycleExitEvent as ft, LocalModelCatalogSearchEvent as g, TranslationEngineLifecycleStatusSchema as gt, LocalModelCatalogResult as h, TranslationEngineLifecycleStatusEvent as ht, BatchTranslateInputSchema as i, TranslationEngineInstallLogEventSchema as it, LocalModelProfileStatus as j, TranslationModelSearchInput as jt, LocalModelProfileManifestGroupSchema as k, TranslationModelDownloadPlan as kt, LocalModelAssetPlanSnapshot as l, TranslationEngineLifecycleController as lt, LocalModelCatalogLocalResult as m, TranslationEngineLifecycleStatus as mt, BatchTranslateEventSchema as n, TranslationEngineIdSchema as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, TranslationEngineInstallLogStreamSchema as ot, LocalModelCatalogItem as p, TranslationEngineLifecycleLogEvent as pt, TranslationEngineAssetStatusSchema as q, isManagedLocalTranslationEngineId as qt, BatchTranslateInput as r, TranslationEngineInstallLogEvent as rt, LocalModelAssetLog as s, TranslationEngineKind as st, BatchTranslateEvent as t, TranslationEngineId as tt, LocalModelAssetPlanSnapshotSchema as u, TranslationEngineLifecycleEvent as ut, LocalModelDownloadStatusSchema as v, TranslationEngineRuntime as vt, LocalModelProfileLoadStateSchema as w, TranslationLocalCt2Settings as wt, LocalModelLifecycleGroupState as x, TranslationEngineRuntimeStatus as xt, LocalModelLifecycleFileState as y, TranslationEngineRuntimeState as yt, TRANSLATOR_CONTRACT_VERSION as z, TranslatorFactoryCreateOptions as zt };
2633
+ export { TranslationEngineDependencyStatus as $, isManagedLocalTranslationEngineId as $t, LocalModelProfileManifestGroupSchema as A, TranslationLocalLlamaSettingsSchema as At, TRANSLATION_ENGINE_IDS as B, TranslationOpenAISettingsSchema as Bt, LocalModelLifecycleGroupStateSchema as C, TranslationEngineRuntimeStateSchema as Ct, LocalModelProfileManifestFile as D, TranslationLocalCt2Settings as Dt, LocalModelProfileManifest as E, TranslationEngineSettingsKey as Et, ManagedLocalCatalogSourceSchema as F, TranslationModelSearchEvent as Ft, TranslationDownloadGroupPlan as G, TranslatorFactoryPrepareOptions as Gt, TRANSLATOR_CONTRACT_VERSION as H, TranslatorCreateMonitor as Ht, ManagedLocalTranslationEngineId as I, TranslationModelSearchInput as It, TranslationEngineAssetStateSchema as J, createTranslationEngineLifecycleStatus as Jt, TranslationDownloadGroupPlanSchema as K, TranslatorOptions as Kt, SERVICE_TRANSLATION_ENGINE_IDS as L, TranslationModelSearchPhase as Lt, LocalModelProfileStatus as M, TranslationLocalSettingsSchema as Mt, LocalModelProfileStatusSchema as N, TranslationModelCandidate as Nt, LocalModelProfileManifestFileSchema as O, TranslationLocalCt2SettingsSchema as Ot, ManagedLocalCatalogSource as P, TranslationModelDownloadPlan as Pt, TranslationEngineDependencyStateSchema as Q, isDirectionalManagedLocalTranslationEngineId as Qt, ServiceTranslationEngineId as R, TranslationModelSearchResult as Rt, LocalModelLifecycleGroupState as S, TranslationEngineRuntimeState as St, LocalModelProfileLoadStateSchema as T, TranslationEngineRuntimeStatusSchema as Tt, TranslationDownloadFilePlan as U, TranslatorFactory as Ut, TRANSLATION_ENGINE_MANIFESTS as V, Translator as Vt, TranslationDownloadFilePlanSchema as W, TranslatorFactoryCreateOptions as Wt, TranslationEngineAssetStatusSchema as X, getTranslationEngineLifecycleMessage as Xt, TranslationEngineAssetStatus as Y, getManagedLocalTranslationEngineManifest as Yt, TranslationEngineDependencyState as Z, getTranslationEngineManifest as Zt, LocalModelCatalogSearchEvent as _, TranslationEngineLifecycleStatus as _t, BatchTranslationResult as a, isBatchTranslationAbort as an, TranslationEngineIdSchema as at, LocalModelLifecycleFileState as b, TranslationEngineManifest as bt, LocalModelAssetLog as c, TranslationEngineInstallLogStream as ct, LocalModelAssetPlanSnapshotSchema as d, TranslationEngineLifecycleContext as dt, isTranslationEngineDependencyReady as en, TranslationEngineDependencyStatusSchema as et, LocalModelAssetState as f, TranslationEngineLifecycleController as ft, LocalModelCatalogResult as g, TranslationEngineLifecycleLogEvent as gt, LocalModelCatalogLocalResult as h, TranslationEngineLifecycleExitEvent as ht, BatchTranslateInputSchema as i, BatchTranslationErrorKind as in, TranslationEngineId as it, LocalModelProfileManifestSchema as j, TranslationLocalSettings as jt, LocalModelProfileManifestGroup as k, TranslationLocalLlamaSettings as kt, LocalModelAssetLogSchema as l, TranslationEngineInstallLogStreamSchema as lt, LocalModelCatalogItem as m, TranslationEngineLifecycleEventSchema as mt, BatchTranslateEventSchema as n, shouldShowTranslationEngineInstallGate as nn, TranslationEngineGlobalSettingsSchema as nt, DEFAULT_BATCH_TRANSLATION_TIMEOUT_MS as o, normalizeBatchTranslationError as on, TranslationEngineInstallLogEvent as ot, LocalModelAssetStateSchema as p, TranslationEngineLifecycleEvent as pt, TranslationEngineAssetState as q, TranslatorPrepareMonitor as qt, BatchTranslateInput as r, BatchTranslationError as rn, TranslationEngineGlobalSettingsUpdate as rt, DEFAULT_TRANSLATION_ENGINE_ID as s, runControlledTranslationTask as sn, TranslationEngineInstallLogEventSchema as st, BatchTranslateEvent as t, isTranslationEngineRuntimeReady as tn, TranslationEngineGlobalSettings as tt, LocalModelAssetPlanSnapshot as u, TranslationEngineKind as ut, LocalModelDownloadStatus as v, TranslationEngineLifecycleStatusEvent as vt, LocalModelProfileLoadState as w, TranslationEngineRuntimeStatus as wt, LocalModelLifecycleFileStateSchema as x, TranslationEngineRuntime as xt, LocalModelDownloadStatusSchema as y, TranslationEngineLifecycleStatusSchema as yt, ServiceTranslationEngineIdSchema as z, TranslationOpenAISettings as zt };