@openspecui/core 3.11.3 → 3.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{document-translation-BrlCvnLZ.mjs → document-translation-B6VWf7ll.mjs} +26 -2
  2. package/dist/{document-translation-Cv6BIGL5.d.mts → document-translation-DhFREeHW.d.mts} +254 -52
  3. package/dist/document-translation.d.mts +2 -2
  4. package/dist/document-translation.mjs +3 -3
  5. package/dist/index.d.mts +410 -89
  6. package/dist/index.mjs +226 -89
  7. package/dist/{local-download-profiles-GKs2OOqJ.d.mts → local-download-profiles-DIVr0mFh.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-CJQ_F_Un.d.mts → notifications-BDBbeTRk.d.mts} +16 -16
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-BbuPTbvj.d.mts → openspec-projection-CmxjMsxS.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-BO9G2SCW.d.mts → opsx-entity-CRa2u1j3.d.mts} +1 -1
  14. package/dist/opsx-entity.d.mts +2 -2
  15. package/dist/{opsx-schema-detail-DTajJW4g.d.mts → opsx-schema-detail-aVlqvbro.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DQzd1hgp.d.mts → schemas-Dp8-Wm-X.d.mts} +28 -28
  18. package/dist/sounds.d.mts +1 -1
  19. package/dist/{terminal-audio-UCLlM1qN.d.mts → terminal-audio-DLOmaKqa.d.mts} +1 -1
  20. package/dist/terminal-audio.d.mts +2 -2
  21. package/dist/terminal-control.d.mts +2 -2
  22. package/dist/{terminal-invocation-DCPc8hmm.d.mts → terminal-invocation-B3js0mEF.d.mts} +81 -81
  23. package/dist/terminal-invocation.d.mts +1 -1
  24. package/dist/{translator-prn3W9lf.d.mts → translator-CS7MsNZp.d.mts} +387 -138
  25. package/dist/{translator-Car0_7uk.mjs → translator-Cx9j32Og.mjs} +164 -6
  26. package/dist/translator.d.mts +2 -2
  27. package/dist/translator.mjs +2 -2
  28. package/package.json +1 -1
  29. /package/dist/{sounds-3yEx1YXT.d.mts → sounds-6KwglrL2.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { O as TranslationEngineIdSchema, r as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-Car0_7uk.mjs";
1
+ import { A as TranslationEngineIdSchema, i as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-Cx9j32Og.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/document-translation.ts
@@ -19,6 +19,21 @@ const TranslationEngineProjectSettingsSchema = z.object({
19
19
  }).default({}),
20
20
  openai: z.object({ model: z.string().min(1).optional() }).default({})
21
21
  }).default({});
22
+ const TranslationEngineProjectSettingsUpdateSchema = z.object({
23
+ local: z.object({
24
+ model: z.string().min(1).optional(),
25
+ selectedGroupId: z.string().min(1).nullable().optional()
26
+ }).optional(),
27
+ localCt2: z.object({
28
+ model: z.string().min(1).optional(),
29
+ selectedGroupId: z.string().min(1).nullable().optional()
30
+ }).optional(),
31
+ localLlama: z.object({
32
+ model: z.string().min(1).optional(),
33
+ selectedGroupId: z.string().min(1).nullable().optional()
34
+ }).optional(),
35
+ openai: z.object({ model: z.string().min(1).optional() }).optional()
36
+ });
22
37
  const DocumentTranslationConfigSchema = z.object({
23
38
  enabled: z.boolean().default(false),
24
39
  targetLanguage: z.string().min(1).default("zh"),
@@ -27,11 +42,20 @@ const DocumentTranslationConfigSchema = z.object({
27
42
  engineId: TranslationEngineIdSchema.default(DEFAULT_TRANSLATION_ENGINE_ID),
28
43
  engines: TranslationEngineProjectSettingsSchema
29
44
  });
45
+ const DocumentTranslationConfigUpdateSchema = z.object({
46
+ enabled: z.boolean().optional(),
47
+ targetLanguage: z.string().min(1).optional(),
48
+ displayMode: DocumentTranslationDisplayModeSchema.optional(),
49
+ cacheEnabled: z.boolean().optional(),
50
+ engineId: TranslationEngineIdSchema.optional(),
51
+ engines: TranslationEngineProjectSettingsUpdateSchema.optional()
52
+ });
30
53
  const DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT = 1e4;
31
54
  const MIN_TRANSLATION_CACHE_ENTRY_LIMIT = 100;
32
55
  const MAX_TRANSLATION_CACHE_ENTRY_LIMIT = 2e5;
33
56
  const TRANSLATION_CACHE_POLICY_VERSION = 2;
34
57
  const TranslationCacheSettingsSchema = z.object({ entryLimit: z.number().int().min(MIN_TRANSLATION_CACHE_ENTRY_LIMIT).max(MAX_TRANSLATION_CACHE_ENTRY_LIMIT).default(DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT) });
58
+ const TranslationCacheSettingsUpdateSchema = z.object({ entryLimit: z.number().int().min(MIN_TRANSLATION_CACHE_ENTRY_LIMIT).max(MAX_TRANSLATION_CACHE_ENTRY_LIMIT).optional() });
35
59
  const TranslationCacheEntrySchema = z.object({
36
60
  key: z.string().min(1),
37
61
  keyHash: z.string().min(1),
@@ -63,4 +87,4 @@ const TranslationCacheStatsSchema = z.object({
63
87
  });
64
88
 
65
89
  //#endregion
66
- export { MAX_TRANSLATION_CACHE_ENTRY_LIMIT as a, TranslationCacheEntrySchema as c, TranslationCacheStatsSchema as d, TranslationCacheWriteInputSchema as f, DocumentTranslationDisplayModeSchema as i, TranslationCacheReadInputSchema as l, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as o, TranslationEngineProjectSettingsSchema as p, DocumentTranslationConfigSchema as r, TRANSLATION_CACHE_POLICY_VERSION as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, TranslationCacheSettingsSchema as u };
90
+ export { DocumentTranslationDisplayModeSchema as a, TRANSLATION_CACHE_POLICY_VERSION as c, TranslationCacheSettingsSchema as d, TranslationCacheSettingsUpdateSchema as f, TranslationEngineProjectSettingsUpdateSchema as g, TranslationEngineProjectSettingsSchema as h, DocumentTranslationConfigUpdateSchema as i, TranslationCacheEntrySchema as l, TranslationCacheWriteInputSchema as m, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, MAX_TRANSLATION_CACHE_ENTRY_LIMIT as o, TranslationCacheStatsSchema as p, DocumentTranslationConfigSchema as r, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, TranslationCacheReadInputSchema as u };
@@ -9,31 +9,31 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
9
9
  model: z.ZodOptional<z.ZodString>;
10
10
  selectedGroupId: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- selectedGroupId?: string | undefined;
13
12
  model?: string | undefined;
14
- }, {
15
13
  selectedGroupId?: string | undefined;
14
+ }, {
16
15
  model?: string | undefined;
16
+ selectedGroupId?: string | undefined;
17
17
  }>>;
18
18
  localCt2: z.ZodDefault<z.ZodObject<{
19
19
  model: z.ZodOptional<z.ZodString>;
20
20
  selectedGroupId: z.ZodOptional<z.ZodString>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- selectedGroupId?: string | undefined;
23
22
  model?: string | undefined;
24
- }, {
25
23
  selectedGroupId?: string | undefined;
24
+ }, {
26
25
  model?: string | undefined;
26
+ selectedGroupId?: string | undefined;
27
27
  }>>;
28
28
  localLlama: z.ZodDefault<z.ZodObject<{
29
29
  model: z.ZodOptional<z.ZodString>;
30
30
  selectedGroupId: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- selectedGroupId?: string | undefined;
33
32
  model?: string | undefined;
34
- }, {
35
33
  selectedGroupId?: string | undefined;
34
+ }, {
36
35
  model?: string | undefined;
36
+ selectedGroupId?: string | undefined;
37
37
  }>>;
38
38
  openai: z.ZodDefault<z.ZodObject<{
39
39
  model: z.ZodOptional<z.ZodString>;
@@ -44,37 +44,108 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
44
44
  }>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  local: {
47
- selectedGroupId?: string | undefined;
48
- model?: string | undefined;
49
- };
50
- openai: {
51
47
  model?: string | undefined;
48
+ selectedGroupId?: string | undefined;
52
49
  };
53
50
  localCt2: {
54
- selectedGroupId?: string | undefined;
55
51
  model?: string | undefined;
52
+ selectedGroupId?: string | undefined;
56
53
  };
57
54
  localLlama: {
55
+ model?: string | undefined;
58
56
  selectedGroupId?: string | undefined;
57
+ };
58
+ openai: {
59
59
  model?: string | undefined;
60
60
  };
61
61
  }, {
62
62
  local?: {
63
+ model?: string | undefined;
63
64
  selectedGroupId?: string | undefined;
65
+ } | undefined;
66
+ localCt2?: {
67
+ model?: string | undefined;
68
+ selectedGroupId?: string | undefined;
69
+ } | undefined;
70
+ localLlama?: {
71
+ model?: string | undefined;
72
+ selectedGroupId?: string | undefined;
73
+ } | undefined;
74
+ openai?: {
75
+ model?: string | undefined;
76
+ } | undefined;
77
+ }>>;
78
+ declare const TranslationEngineProjectSettingsUpdateSchema: z.ZodObject<{
79
+ local: z.ZodOptional<z.ZodObject<{
80
+ model: z.ZodOptional<z.ZodString>;
81
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ model?: string | undefined;
84
+ selectedGroupId?: string | null | undefined;
85
+ }, {
86
+ model?: string | undefined;
87
+ selectedGroupId?: string | null | undefined;
88
+ }>>;
89
+ localCt2: z.ZodOptional<z.ZodObject<{
90
+ model: z.ZodOptional<z.ZodString>;
91
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ model?: string | undefined;
94
+ selectedGroupId?: string | null | undefined;
95
+ }, {
96
+ model?: string | undefined;
97
+ selectedGroupId?: string | null | undefined;
98
+ }>>;
99
+ localLlama: z.ZodOptional<z.ZodObject<{
100
+ model: z.ZodOptional<z.ZodString>;
101
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ model?: string | undefined;
104
+ selectedGroupId?: string | null | undefined;
105
+ }, {
106
+ model?: string | undefined;
107
+ selectedGroupId?: string | null | undefined;
108
+ }>>;
109
+ openai: z.ZodOptional<z.ZodObject<{
110
+ model: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ model?: string | undefined;
113
+ }, {
114
+ model?: string | undefined;
115
+ }>>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ local?: {
118
+ model?: string | undefined;
119
+ selectedGroupId?: string | null | undefined;
120
+ } | undefined;
121
+ localCt2?: {
64
122
  model?: string | undefined;
123
+ selectedGroupId?: string | null | undefined;
124
+ } | undefined;
125
+ localLlama?: {
126
+ model?: string | undefined;
127
+ selectedGroupId?: string | null | undefined;
65
128
  } | undefined;
66
129
  openai?: {
67
130
  model?: string | undefined;
68
131
  } | undefined;
132
+ }, {
133
+ local?: {
134
+ model?: string | undefined;
135
+ selectedGroupId?: string | null | undefined;
136
+ } | undefined;
69
137
  localCt2?: {
70
- selectedGroupId?: string | undefined;
71
138
  model?: string | undefined;
139
+ selectedGroupId?: string | null | undefined;
72
140
  } | undefined;
73
141
  localLlama?: {
74
- selectedGroupId?: string | undefined;
75
142
  model?: string | undefined;
143
+ selectedGroupId?: string | null | undefined;
76
144
  } | undefined;
77
- }>>;
145
+ openai?: {
146
+ model?: string | undefined;
147
+ } | undefined;
148
+ }>;
78
149
  declare const DocumentTranslationConfigSchema: z.ZodObject<{
79
150
  enabled: z.ZodDefault<z.ZodBoolean>;
80
151
  targetLanguage: z.ZodDefault<z.ZodString>;
@@ -86,31 +157,31 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
86
157
  model: z.ZodOptional<z.ZodString>;
87
158
  selectedGroupId: z.ZodOptional<z.ZodString>;
88
159
  }, "strip", z.ZodTypeAny, {
89
- selectedGroupId?: string | undefined;
90
160
  model?: string | undefined;
91
- }, {
92
161
  selectedGroupId?: string | undefined;
162
+ }, {
93
163
  model?: string | undefined;
164
+ selectedGroupId?: string | undefined;
94
165
  }>>;
95
166
  localCt2: z.ZodDefault<z.ZodObject<{
96
167
  model: z.ZodOptional<z.ZodString>;
97
168
  selectedGroupId: z.ZodOptional<z.ZodString>;
98
169
  }, "strip", z.ZodTypeAny, {
99
- selectedGroupId?: string | undefined;
100
170
  model?: string | undefined;
101
- }, {
102
171
  selectedGroupId?: string | undefined;
172
+ }, {
103
173
  model?: string | undefined;
174
+ selectedGroupId?: string | undefined;
104
175
  }>>;
105
176
  localLlama: z.ZodDefault<z.ZodObject<{
106
177
  model: z.ZodOptional<z.ZodString>;
107
178
  selectedGroupId: z.ZodOptional<z.ZodString>;
108
179
  }, "strip", z.ZodTypeAny, {
109
- selectedGroupId?: string | undefined;
110
180
  model?: string | undefined;
111
- }, {
112
181
  selectedGroupId?: string | undefined;
182
+ }, {
113
183
  model?: string | undefined;
184
+ selectedGroupId?: string | undefined;
114
185
  }>>;
115
186
  openai: z.ZodDefault<z.ZodObject<{
116
187
  model: z.ZodOptional<z.ZodString>;
@@ -121,80 +192,204 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
121
192
  }>>;
122
193
  }, "strip", z.ZodTypeAny, {
123
194
  local: {
124
- selectedGroupId?: string | undefined;
125
- model?: string | undefined;
126
- };
127
- openai: {
128
195
  model?: string | undefined;
196
+ selectedGroupId?: string | undefined;
129
197
  };
130
198
  localCt2: {
131
- selectedGroupId?: string | undefined;
132
199
  model?: string | undefined;
200
+ selectedGroupId?: string | undefined;
133
201
  };
134
202
  localLlama: {
203
+ model?: string | undefined;
135
204
  selectedGroupId?: string | undefined;
205
+ };
206
+ openai: {
136
207
  model?: string | undefined;
137
208
  };
138
209
  }, {
139
210
  local?: {
140
- selectedGroupId?: string | undefined;
141
- model?: string | undefined;
142
- } | undefined;
143
- openai?: {
144
211
  model?: string | undefined;
212
+ selectedGroupId?: string | undefined;
145
213
  } | undefined;
146
214
  localCt2?: {
147
- selectedGroupId?: string | undefined;
148
215
  model?: string | undefined;
216
+ selectedGroupId?: string | undefined;
149
217
  } | undefined;
150
218
  localLlama?: {
219
+ model?: string | undefined;
151
220
  selectedGroupId?: string | undefined;
221
+ } | undefined;
222
+ openai?: {
152
223
  model?: string | undefined;
153
224
  } | undefined;
154
225
  }>>;
155
226
  }, "strip", z.ZodTypeAny, {
156
- engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
157
- targetLanguage: string;
158
227
  enabled: boolean;
228
+ targetLanguage: string;
159
229
  displayMode: "direct" | "bilingual";
160
230
  cacheEnabled: boolean;
231
+ engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
161
232
  engines: {
162
233
  local: {
163
- selectedGroupId?: string | undefined;
164
- model?: string | undefined;
165
- };
166
- openai: {
167
234
  model?: string | undefined;
235
+ selectedGroupId?: string | undefined;
168
236
  };
169
237
  localCt2: {
170
- selectedGroupId?: string | undefined;
171
238
  model?: string | undefined;
239
+ selectedGroupId?: string | undefined;
172
240
  };
173
241
  localLlama: {
242
+ model?: string | undefined;
174
243
  selectedGroupId?: string | undefined;
244
+ };
245
+ openai: {
175
246
  model?: string | undefined;
176
247
  };
177
248
  };
178
249
  }, {
179
- engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
180
- targetLanguage?: string | undefined;
181
250
  enabled?: boolean | undefined;
251
+ targetLanguage?: string | undefined;
182
252
  displayMode?: "direct" | "bilingual" | undefined;
183
253
  cacheEnabled?: boolean | undefined;
254
+ engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
184
255
  engines?: {
185
256
  local?: {
257
+ model?: string | undefined;
186
258
  selectedGroupId?: string | undefined;
259
+ } | undefined;
260
+ localCt2?: {
187
261
  model?: string | undefined;
262
+ selectedGroupId?: string | undefined;
263
+ } | undefined;
264
+ localLlama?: {
265
+ model?: string | undefined;
266
+ selectedGroupId?: string | undefined;
188
267
  } | undefined;
189
268
  openai?: {
190
269
  model?: string | undefined;
191
270
  } | undefined;
271
+ } | undefined;
272
+ }>;
273
+ declare const DocumentTranslationConfigUpdateSchema: z.ZodObject<{
274
+ enabled: z.ZodOptional<z.ZodBoolean>;
275
+ targetLanguage: z.ZodOptional<z.ZodString>;
276
+ displayMode: z.ZodOptional<z.ZodEnum<["direct", "bilingual"]>>;
277
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
278
+ engineId: z.ZodOptional<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
279
+ engines: z.ZodOptional<z.ZodObject<{
280
+ local: z.ZodOptional<z.ZodObject<{
281
+ model: z.ZodOptional<z.ZodString>;
282
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ model?: string | undefined;
285
+ selectedGroupId?: string | null | undefined;
286
+ }, {
287
+ model?: string | undefined;
288
+ selectedGroupId?: string | null | undefined;
289
+ }>>;
290
+ localCt2: z.ZodOptional<z.ZodObject<{
291
+ model: z.ZodOptional<z.ZodString>;
292
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ model?: string | undefined;
295
+ selectedGroupId?: string | null | undefined;
296
+ }, {
297
+ model?: string | undefined;
298
+ selectedGroupId?: string | null | undefined;
299
+ }>>;
300
+ localLlama: z.ZodOptional<z.ZodObject<{
301
+ model: z.ZodOptional<z.ZodString>;
302
+ selectedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ model?: string | undefined;
305
+ selectedGroupId?: string | null | undefined;
306
+ }, {
307
+ model?: string | undefined;
308
+ selectedGroupId?: string | null | undefined;
309
+ }>>;
310
+ openai: z.ZodOptional<z.ZodObject<{
311
+ model: z.ZodOptional<z.ZodString>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ model?: string | undefined;
314
+ }, {
315
+ model?: string | undefined;
316
+ }>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ local?: {
319
+ model?: string | undefined;
320
+ selectedGroupId?: string | null | undefined;
321
+ } | undefined;
192
322
  localCt2?: {
193
- selectedGroupId?: string | undefined;
194
323
  model?: string | undefined;
324
+ selectedGroupId?: string | null | undefined;
195
325
  } | undefined;
196
326
  localLlama?: {
197
- selectedGroupId?: string | undefined;
327
+ model?: string | undefined;
328
+ selectedGroupId?: string | null | undefined;
329
+ } | undefined;
330
+ openai?: {
331
+ model?: string | undefined;
332
+ } | undefined;
333
+ }, {
334
+ local?: {
335
+ model?: string | undefined;
336
+ selectedGroupId?: string | null | undefined;
337
+ } | undefined;
338
+ localCt2?: {
339
+ model?: string | undefined;
340
+ selectedGroupId?: string | null | undefined;
341
+ } | undefined;
342
+ localLlama?: {
343
+ model?: string | undefined;
344
+ selectedGroupId?: string | null | undefined;
345
+ } | undefined;
346
+ openai?: {
347
+ model?: string | undefined;
348
+ } | undefined;
349
+ }>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ enabled?: boolean | undefined;
352
+ targetLanguage?: string | undefined;
353
+ displayMode?: "direct" | "bilingual" | undefined;
354
+ cacheEnabled?: boolean | undefined;
355
+ engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
356
+ engines?: {
357
+ local?: {
358
+ model?: string | undefined;
359
+ selectedGroupId?: string | null | undefined;
360
+ } | undefined;
361
+ localCt2?: {
362
+ model?: string | undefined;
363
+ selectedGroupId?: string | null | undefined;
364
+ } | undefined;
365
+ localLlama?: {
366
+ model?: string | undefined;
367
+ selectedGroupId?: string | null | undefined;
368
+ } | undefined;
369
+ openai?: {
370
+ model?: string | undefined;
371
+ } | undefined;
372
+ } | undefined;
373
+ }, {
374
+ enabled?: boolean | undefined;
375
+ targetLanguage?: string | undefined;
376
+ displayMode?: "direct" | "bilingual" | undefined;
377
+ cacheEnabled?: boolean | undefined;
378
+ engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
379
+ engines?: {
380
+ local?: {
381
+ model?: string | undefined;
382
+ selectedGroupId?: string | null | undefined;
383
+ } | undefined;
384
+ localCt2?: {
385
+ model?: string | undefined;
386
+ selectedGroupId?: string | null | undefined;
387
+ } | undefined;
388
+ localLlama?: {
389
+ model?: string | undefined;
390
+ selectedGroupId?: string | null | undefined;
391
+ } | undefined;
392
+ openai?: {
198
393
  model?: string | undefined;
199
394
  } | undefined;
200
395
  } | undefined;
@@ -228,6 +423,13 @@ declare const TranslationCacheSettingsSchema: z.ZodObject<{
228
423
  }, {
229
424
  entryLimit?: number | undefined;
230
425
  }>;
426
+ declare const TranslationCacheSettingsUpdateSchema: z.ZodObject<{
427
+ entryLimit: z.ZodOptional<z.ZodNumber>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ entryLimit?: number | undefined;
430
+ }, {
431
+ entryLimit?: number | undefined;
432
+ }>;
231
433
  type TranslationCacheSettings = z.infer<typeof TranslationCacheSettingsSchema>;
232
434
  declare const TranslationCacheEntrySchema: z.ZodObject<{
233
435
  key: z.ZodString;
@@ -247,36 +449,36 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
247
449
  createdAt: z.ZodNumber;
248
450
  lastAccessedAt: z.ZodNumber;
249
451
  }, "strip", z.ZodTypeAny, {
250
- createdAt: number;
251
- engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
252
- sourceLanguage: string;
253
452
  targetLanguage: string;
453
+ engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
254
454
  key: string;
255
455
  keyHash: string;
256
456
  sourceText: string;
257
457
  translatedText: string;
458
+ sourceLanguage: string;
258
459
  placeholderTopologyHash: string;
259
460
  attributeTopologyHash: string;
260
461
  displayPolicyVersion: number;
261
462
  translatorContractVersion: number;
463
+ createdAt: number;
262
464
  lastAccessedAt: number;
263
465
  model?: string | undefined;
264
466
  targetNodesJson?: string | undefined;
265
467
  engineVersion?: string | undefined;
266
468
  }, {
267
- createdAt: number;
268
- sourceLanguage: string;
269
469
  targetLanguage: string;
270
470
  key: string;
271
471
  keyHash: string;
272
472
  sourceText: string;
273
473
  translatedText: string;
474
+ sourceLanguage: string;
274
475
  placeholderTopologyHash: string;
275
476
  attributeTopologyHash: string;
276
477
  displayPolicyVersion: number;
478
+ createdAt: number;
277
479
  lastAccessedAt: number;
278
- engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
279
480
  model?: string | undefined;
481
+ engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
280
482
  targetNodesJson?: string | undefined;
281
483
  engineVersion?: string | undefined;
282
484
  translatorContractVersion?: number | undefined;
@@ -300,13 +502,13 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
300
502
  createdAt: z.ZodNumber;
301
503
  lastAccessedAt: z.ZodNumber;
302
504
  }, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
303
- engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
304
- sourceLanguage: string;
305
505
  targetLanguage: string;
506
+ engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
306
507
  key: string;
307
508
  keyHash: string;
308
509
  sourceText: string;
309
510
  translatedText: string;
511
+ sourceLanguage: string;
310
512
  placeholderTopologyHash: string;
311
513
  attributeTopologyHash: string;
312
514
  displayPolicyVersion: number;
@@ -315,17 +517,17 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
315
517
  targetNodesJson?: string | undefined;
316
518
  engineVersion?: string | undefined;
317
519
  }, {
318
- sourceLanguage: string;
319
520
  targetLanguage: string;
320
521
  key: string;
321
522
  keyHash: string;
322
523
  sourceText: string;
323
524
  translatedText: string;
525
+ sourceLanguage: string;
324
526
  placeholderTopologyHash: string;
325
527
  attributeTopologyHash: string;
326
528
  displayPolicyVersion: number;
327
- engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
328
529
  model?: string | undefined;
530
+ engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
329
531
  targetNodesJson?: string | undefined;
330
532
  engineVersion?: string | undefined;
331
533
  translatorContractVersion?: number | undefined;
@@ -357,4 +559,4 @@ declare const TranslationCacheStatsSchema: z.ZodObject<{
357
559
  }>;
358
560
  type TranslationCacheStats = z.infer<typeof TranslationCacheStatsSchema>;
359
561
  //#endregion
360
- export { TranslationEngineProjectSettingsSchema as C, TranslationEngineProjectSettings as S, TranslationCacheSettingsSchema as _, DocumentTranslationConfigSchema as a, TranslationCacheWriteInput as b, DocumentTranslationDisplayModeSchema as c, TRANSLATION_CACHE_POLICY_VERSION as d, TranslationCacheEntry as f, TranslationCacheSettings as g, TranslationCacheReadInputSchema as h, DocumentTranslationConfigInput as i, MAX_TRANSLATION_CACHE_ENTRY_LIMIT as l, TranslationCacheReadInput as m, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, DocumentTranslationConfigUpdate as o, TranslationCacheEntrySchema as p, DocumentTranslationConfig as r, DocumentTranslationDisplayMode as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as u, TranslationCacheStats as v, TranslationEngineProjectSettingsUpdate as w, TranslationCacheWriteInputSchema as x, TranslationCacheStatsSchema as y };
562
+ export { TranslationCacheWriteInputSchema as C, TranslationEngineProjectSettingsUpdateSchema as D, TranslationEngineProjectSettingsUpdate as E, TranslationCacheWriteInput as S, TranslationEngineProjectSettingsSchema as T, TranslationCacheSettings as _, DocumentTranslationConfigSchema as a, TranslationCacheStats as b, DocumentTranslationDisplayMode as c, MIN_TRANSLATION_CACHE_ENTRY_LIMIT as d, TRANSLATION_CACHE_POLICY_VERSION as f, TranslationCacheReadInputSchema as g, TranslationCacheReadInput as h, DocumentTranslationConfigInput as i, DocumentTranslationDisplayModeSchema as l, TranslationCacheEntrySchema as m, DOCUMENT_TRANSLATION_DISPLAY_MODES as n, DocumentTranslationConfigUpdate as o, TranslationCacheEntry as p, DocumentTranslationConfig as r, DocumentTranslationConfigUpdateSchema as s, DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT as t, MAX_TRANSLATION_CACHE_ENTRY_LIMIT as u, TranslationCacheSettingsSchema as v, TranslationEngineProjectSettings as w, TranslationCacheStatsSchema as x, TranslationCacheSettingsUpdateSchema as y };
@@ -1,2 +1,2 @@
1
- import { C as TranslationEngineProjectSettingsSchema, S as TranslationEngineProjectSettings, _ as TranslationCacheSettingsSchema, a as DocumentTranslationConfigSchema, b as TranslationCacheWriteInput, c as DocumentTranslationDisplayModeSchema, d as TRANSLATION_CACHE_POLICY_VERSION, f as TranslationCacheEntry, g as TranslationCacheSettings, h as TranslationCacheReadInputSchema, i as DocumentTranslationConfigInput, l as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, m as TranslationCacheReadInput, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationConfigUpdate, p as TranslationCacheEntrySchema, r as DocumentTranslationConfig, s as DocumentTranslationDisplayMode, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, v as TranslationCacheStats, w as TranslationEngineProjectSettingsUpdate, x as TranslationCacheWriteInputSchema, y as TranslationCacheStatsSchema } from "./document-translation-Cv6BIGL5.mjs";
2
- export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfig, DocumentTranslationConfigInput, DocumentTranslationConfigSchema, DocumentTranslationConfigUpdate, DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntry, TranslationCacheEntrySchema, TranslationCacheReadInput, TranslationCacheReadInputSchema, TranslationCacheSettings, TranslationCacheSettingsSchema, TranslationCacheStats, TranslationCacheStatsSchema, TranslationCacheWriteInput, TranslationCacheWriteInputSchema, TranslationEngineProjectSettings, TranslationEngineProjectSettingsSchema, TranslationEngineProjectSettingsUpdate };
1
+ import { C as TranslationCacheWriteInputSchema, D as TranslationEngineProjectSettingsUpdateSchema, E as TranslationEngineProjectSettingsUpdate, S as TranslationCacheWriteInput, T as TranslationEngineProjectSettingsSchema, _ as TranslationCacheSettings, a as DocumentTranslationConfigSchema, b as TranslationCacheStats, c as DocumentTranslationDisplayMode, d as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, f as TRANSLATION_CACHE_POLICY_VERSION, g as TranslationCacheReadInputSchema, h as TranslationCacheReadInput, i as DocumentTranslationConfigInput, l as DocumentTranslationDisplayModeSchema, m as TranslationCacheEntrySchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as DocumentTranslationConfigUpdate, p as TranslationCacheEntry, r as DocumentTranslationConfig, s as DocumentTranslationConfigUpdateSchema, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, v as TranslationCacheSettingsSchema, w as TranslationEngineProjectSettings, x as TranslationCacheStatsSchema, y as TranslationCacheSettingsUpdateSchema } from "./document-translation-DhFREeHW.mjs";
2
+ export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfig, DocumentTranslationConfigInput, DocumentTranslationConfigSchema, DocumentTranslationConfigUpdate, DocumentTranslationConfigUpdateSchema, DocumentTranslationDisplayMode, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntry, TranslationCacheEntrySchema, TranslationCacheReadInput, TranslationCacheReadInputSchema, TranslationCacheSettings, TranslationCacheSettingsSchema, TranslationCacheSettingsUpdateSchema, TranslationCacheStats, TranslationCacheStatsSchema, TranslationCacheWriteInput, TranslationCacheWriteInputSchema, TranslationEngineProjectSettings, TranslationEngineProjectSettingsSchema, TranslationEngineProjectSettingsUpdate, TranslationEngineProjectSettingsUpdateSchema };
@@ -1,4 +1,4 @@
1
- import "./translator-Car0_7uk.mjs";
2
- import { a as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, c as TranslationCacheEntrySchema, d as TranslationCacheStatsSchema, f as TranslationCacheWriteInputSchema, i as DocumentTranslationDisplayModeSchema, l as TranslationCacheReadInputSchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, p as TranslationEngineProjectSettingsSchema, r as DocumentTranslationConfigSchema, s as TRANSLATION_CACHE_POLICY_VERSION, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheSettingsSchema } from "./document-translation-BrlCvnLZ.mjs";
1
+ import "./translator-Cx9j32Og.mjs";
2
+ import { a as DocumentTranslationDisplayModeSchema, c as TRANSLATION_CACHE_POLICY_VERSION, d as TranslationCacheSettingsSchema, f as TranslationCacheSettingsUpdateSchema, g as TranslationEngineProjectSettingsUpdateSchema, h as TranslationEngineProjectSettingsSchema, i as DocumentTranslationConfigUpdateSchema, l as TranslationCacheEntrySchema, m as TranslationCacheWriteInputSchema, n as DOCUMENT_TRANSLATION_DISPLAY_MODES, o as MAX_TRANSLATION_CACHE_ENTRY_LIMIT, p as TranslationCacheStatsSchema, r as DocumentTranslationConfigSchema, s as MIN_TRANSLATION_CACHE_ENTRY_LIMIT, t as DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, u as TranslationCacheReadInputSchema } from "./document-translation-B6VWf7ll.mjs";
3
3
 
4
- export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfigSchema, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntrySchema, TranslationCacheReadInputSchema, TranslationCacheSettingsSchema, TranslationCacheStatsSchema, TranslationCacheWriteInputSchema, TranslationEngineProjectSettingsSchema };
4
+ export { DEFAULT_TRANSLATION_CACHE_ENTRY_LIMIT, DOCUMENT_TRANSLATION_DISPLAY_MODES, DocumentTranslationConfigSchema, DocumentTranslationConfigUpdateSchema, DocumentTranslationDisplayModeSchema, MAX_TRANSLATION_CACHE_ENTRY_LIMIT, MIN_TRANSLATION_CACHE_ENTRY_LIMIT, TRANSLATION_CACHE_POLICY_VERSION, TranslationCacheEntrySchema, TranslationCacheReadInputSchema, TranslationCacheSettingsSchema, TranslationCacheSettingsUpdateSchema, TranslationCacheStatsSchema, TranslationCacheWriteInputSchema, TranslationEngineProjectSettingsSchema, TranslationEngineProjectSettingsUpdateSchema };