@openspecui/core 3.11.1 → 3.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{document-translation-Dnl1lz2K.mjs → document-translation-BrlCvnLZ.mjs} +9 -1
  2. package/dist/{document-translation-AlZtjOt5.d.mts → document-translation-Cv6BIGL5.d.mts} +117 -23
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/index.d.mts +215 -47
  6. package/dist/index.mjs +254 -6
  7. package/dist/{local-download-profiles-DISrU0mw.d.mts → local-download-profiles-GKs2OOqJ.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-gGjGaYsF.d.mts → notifications-CJQ_F_Un.d.mts} +9 -9
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-BojcJ9zl.d.mts → openspec-projection-BbuPTbvj.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-BdyGTVs_.d.mts → opsx-entity-BO9G2SCW.d.mts} +7 -7
  14. package/dist/opsx-entity.d.mts +2 -2
  15. package/dist/{opsx-schema-detail-Cf8YIflR.d.mts → opsx-schema-detail-DTajJW4g.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DV6yABO9.d.mts → schemas-DQzd1hgp.d.mts} +30 -30
  18. package/dist/{sounds-C906qHTJ.d.mts → sounds-3yEx1YXT.d.mts} +5 -5
  19. package/dist/sounds.d.mts +1 -1
  20. package/dist/{terminal-audio-D6dE8O1_.d.mts → terminal-audio-UCLlM1qN.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-Cz0vfgkw.d.mts → terminal-invocation-DCPc8hmm.d.mts} +42 -42
  24. package/dist/terminal-invocation.d.mts +1 -1
  25. package/dist/{translation-language-pair-D6f5u70K.mjs → translation-language-pair-Cb4a0hG6.mjs} +2 -1
  26. package/dist/translation-language-pair.mjs +1 -1
  27. package/dist/translator-Car0_7uk.mjs +412 -0
  28. package/dist/{translator-tTXEGRdz.d.mts → translator-prn3W9lf.d.mts} +786 -111
  29. package/dist/translator.d.mts +2 -2
  30. package/dist/translator.mjs +2 -2
  31. package/package.json +1 -1
  32. package/dist/translator-B0T5VL9k.mjs +0 -239
@@ -1,4 +1,4 @@
1
- import { C as TranslationEngineIdSchema, r as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-B0T5VL9k.mjs";
1
+ import { O as TranslationEngineIdSchema, r as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-Car0_7uk.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/document-translation.ts
@@ -9,6 +9,14 @@ const TranslationEngineProjectSettingsSchema = z.object({
9
9
  model: z.string().min(1).optional(),
10
10
  selectedGroupId: z.string().min(1).optional()
11
11
  }).default({}),
12
+ localCt2: z.object({
13
+ model: z.string().min(1).optional(),
14
+ selectedGroupId: z.string().min(1).optional()
15
+ }).default({}),
16
+ localLlama: z.object({
17
+ model: z.string().min(1).optional(),
18
+ selectedGroupId: z.string().min(1).optional()
19
+ }).default({}),
12
20
  openai: z.object({ model: z.string().min(1).optional() }).default({})
13
21
  }).default({});
14
22
  const DocumentTranslationConfigSchema = z.object({
@@ -9,11 +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;
12
13
  model?: string | undefined;
14
+ }, {
13
15
  selectedGroupId?: string | undefined;
16
+ model?: string | undefined;
17
+ }>>;
18
+ localCt2: z.ZodDefault<z.ZodObject<{
19
+ model: z.ZodOptional<z.ZodString>;
20
+ selectedGroupId: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ selectedGroupId?: string | undefined;
23
+ model?: string | undefined;
14
24
  }, {
25
+ selectedGroupId?: string | undefined;
26
+ model?: string | undefined;
27
+ }>>;
28
+ localLlama: z.ZodDefault<z.ZodObject<{
29
+ model: z.ZodOptional<z.ZodString>;
30
+ selectedGroupId: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ selectedGroupId?: string | undefined;
15
33
  model?: string | undefined;
34
+ }, {
16
35
  selectedGroupId?: string | undefined;
36
+ model?: string | undefined;
17
37
  }>>;
18
38
  openai: z.ZodDefault<z.ZodObject<{
19
39
  model: z.ZodOptional<z.ZodString>;
@@ -24,37 +44,73 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
24
44
  }>>;
25
45
  }, "strip", z.ZodTypeAny, {
26
46
  local: {
27
- model?: string | undefined;
28
47
  selectedGroupId?: string | undefined;
48
+ model?: string | undefined;
29
49
  };
30
50
  openai: {
31
51
  model?: string | undefined;
32
52
  };
53
+ localCt2: {
54
+ selectedGroupId?: string | undefined;
55
+ model?: string | undefined;
56
+ };
57
+ localLlama: {
58
+ selectedGroupId?: string | undefined;
59
+ model?: string | undefined;
60
+ };
33
61
  }, {
34
62
  local?: {
35
- model?: string | undefined;
36
63
  selectedGroupId?: string | undefined;
64
+ model?: string | undefined;
37
65
  } | undefined;
38
66
  openai?: {
39
67
  model?: string | undefined;
40
68
  } | undefined;
69
+ localCt2?: {
70
+ selectedGroupId?: string | undefined;
71
+ model?: string | undefined;
72
+ } | undefined;
73
+ localLlama?: {
74
+ selectedGroupId?: string | undefined;
75
+ model?: string | undefined;
76
+ } | undefined;
41
77
  }>>;
42
78
  declare const DocumentTranslationConfigSchema: z.ZodObject<{
43
79
  enabled: z.ZodDefault<z.ZodBoolean>;
44
80
  targetLanguage: z.ZodDefault<z.ZodString>;
45
81
  displayMode: z.ZodDefault<z.ZodEnum<["direct", "bilingual"]>>;
46
82
  cacheEnabled: z.ZodDefault<z.ZodBoolean>;
47
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
83
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
48
84
  engines: z.ZodDefault<z.ZodObject<{
49
85
  local: z.ZodDefault<z.ZodObject<{
50
86
  model: z.ZodOptional<z.ZodString>;
51
87
  selectedGroupId: z.ZodOptional<z.ZodString>;
52
88
  }, "strip", z.ZodTypeAny, {
89
+ selectedGroupId?: string | undefined;
53
90
  model?: string | undefined;
91
+ }, {
54
92
  selectedGroupId?: string | undefined;
93
+ model?: string | undefined;
94
+ }>>;
95
+ localCt2: z.ZodDefault<z.ZodObject<{
96
+ model: z.ZodOptional<z.ZodString>;
97
+ selectedGroupId: z.ZodOptional<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ selectedGroupId?: string | undefined;
100
+ model?: string | undefined;
55
101
  }, {
102
+ selectedGroupId?: string | undefined;
103
+ model?: string | undefined;
104
+ }>>;
105
+ localLlama: z.ZodDefault<z.ZodObject<{
106
+ model: z.ZodOptional<z.ZodString>;
107
+ selectedGroupId: z.ZodOptional<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ selectedGroupId?: string | undefined;
56
110
  model?: string | undefined;
111
+ }, {
57
112
  selectedGroupId?: string | undefined;
113
+ model?: string | undefined;
58
114
  }>>;
59
115
  openai: z.ZodDefault<z.ZodObject<{
60
116
  model: z.ZodOptional<z.ZodString>;
@@ -65,50 +121,82 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
65
121
  }>>;
66
122
  }, "strip", z.ZodTypeAny, {
67
123
  local: {
68
- model?: string | undefined;
69
124
  selectedGroupId?: string | undefined;
125
+ model?: string | undefined;
70
126
  };
71
127
  openai: {
72
128
  model?: string | undefined;
73
129
  };
130
+ localCt2: {
131
+ selectedGroupId?: string | undefined;
132
+ model?: string | undefined;
133
+ };
134
+ localLlama: {
135
+ selectedGroupId?: string | undefined;
136
+ model?: string | undefined;
137
+ };
74
138
  }, {
75
139
  local?: {
76
- model?: string | undefined;
77
140
  selectedGroupId?: string | undefined;
141
+ model?: string | undefined;
78
142
  } | undefined;
79
143
  openai?: {
80
144
  model?: string | undefined;
81
145
  } | undefined;
146
+ localCt2?: {
147
+ selectedGroupId?: string | undefined;
148
+ model?: string | undefined;
149
+ } | undefined;
150
+ localLlama?: {
151
+ selectedGroupId?: string | undefined;
152
+ model?: string | undefined;
153
+ } | undefined;
82
154
  }>>;
83
155
  }, "strip", z.ZodTypeAny, {
84
- enabled: boolean;
156
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
85
157
  targetLanguage: string;
158
+ enabled: boolean;
86
159
  displayMode: "direct" | "bilingual";
87
160
  cacheEnabled: boolean;
88
- engineId: "local" | "openai" | "browser";
89
161
  engines: {
90
162
  local: {
91
- model?: string | undefined;
92
163
  selectedGroupId?: string | undefined;
164
+ model?: string | undefined;
93
165
  };
94
166
  openai: {
95
167
  model?: string | undefined;
96
168
  };
169
+ localCt2: {
170
+ selectedGroupId?: string | undefined;
171
+ model?: string | undefined;
172
+ };
173
+ localLlama: {
174
+ selectedGroupId?: string | undefined;
175
+ model?: string | undefined;
176
+ };
97
177
  };
98
178
  }, {
99
- enabled?: boolean | undefined;
179
+ engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
100
180
  targetLanguage?: string | undefined;
181
+ enabled?: boolean | undefined;
101
182
  displayMode?: "direct" | "bilingual" | undefined;
102
183
  cacheEnabled?: boolean | undefined;
103
- engineId?: "local" | "openai" | "browser" | undefined;
104
184
  engines?: {
105
185
  local?: {
106
- model?: string | undefined;
107
186
  selectedGroupId?: string | undefined;
187
+ model?: string | undefined;
108
188
  } | undefined;
109
189
  openai?: {
110
190
  model?: string | undefined;
111
191
  } | undefined;
192
+ localCt2?: {
193
+ selectedGroupId?: string | undefined;
194
+ model?: string | undefined;
195
+ } | undefined;
196
+ localLlama?: {
197
+ selectedGroupId?: string | undefined;
198
+ model?: string | undefined;
199
+ } | undefined;
112
200
  } | undefined;
113
201
  }>;
114
202
  type DocumentTranslationConfig = z.infer<typeof DocumentTranslationConfigSchema>;
@@ -118,6 +206,12 @@ type TranslationEngineProjectSettingsUpdate = {
118
206
  local?: Partial<Omit<TranslationEngineProjectSettings['local'], 'selectedGroupId'>> & {
119
207
  selectedGroupId?: TranslationEngineProjectSettings['local']['selectedGroupId'] | null;
120
208
  };
209
+ localCt2?: Partial<Omit<TranslationEngineProjectSettings['localCt2'], 'selectedGroupId'>> & {
210
+ selectedGroupId?: TranslationEngineProjectSettings['localCt2']['selectedGroupId'] | null;
211
+ };
212
+ localLlama?: Partial<Omit<TranslationEngineProjectSettings['localLlama'], 'selectedGroupId'>> & {
213
+ selectedGroupId?: TranslationEngineProjectSettings['localLlama']['selectedGroupId'] | null;
214
+ };
121
215
  openai?: Partial<TranslationEngineProjectSettings['openai']>;
122
216
  };
123
217
  type DocumentTranslationConfigUpdate = Partial<Omit<DocumentTranslationConfig, 'engines'>> & {
@@ -146,43 +240,43 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
146
240
  placeholderTopologyHash: z.ZodString;
147
241
  attributeTopologyHash: z.ZodString;
148
242
  displayPolicyVersion: z.ZodNumber;
149
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
243
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
150
244
  engineVersion: z.ZodOptional<z.ZodString>;
151
245
  model: z.ZodOptional<z.ZodString>;
152
246
  translatorContractVersion: z.ZodDefault<z.ZodNumber>;
153
247
  createdAt: z.ZodNumber;
154
248
  lastAccessedAt: z.ZodNumber;
155
249
  }, "strip", z.ZodTypeAny, {
250
+ createdAt: number;
251
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
252
+ sourceLanguage: string;
156
253
  targetLanguage: string;
157
- engineId: "local" | "openai" | "browser";
158
254
  key: string;
159
255
  keyHash: string;
160
256
  sourceText: string;
161
257
  translatedText: string;
162
- sourceLanguage: string;
163
258
  placeholderTopologyHash: string;
164
259
  attributeTopologyHash: string;
165
260
  displayPolicyVersion: number;
166
261
  translatorContractVersion: number;
167
- createdAt: number;
168
262
  lastAccessedAt: number;
169
263
  model?: string | undefined;
170
264
  targetNodesJson?: string | undefined;
171
265
  engineVersion?: string | undefined;
172
266
  }, {
267
+ createdAt: number;
268
+ sourceLanguage: string;
173
269
  targetLanguage: string;
174
270
  key: string;
175
271
  keyHash: string;
176
272
  sourceText: string;
177
273
  translatedText: string;
178
- sourceLanguage: string;
179
274
  placeholderTopologyHash: string;
180
275
  attributeTopologyHash: string;
181
276
  displayPolicyVersion: number;
182
- createdAt: number;
183
277
  lastAccessedAt: number;
278
+ engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
184
279
  model?: string | undefined;
185
- engineId?: "local" | "openai" | "browser" | undefined;
186
280
  targetNodesJson?: string | undefined;
187
281
  engineVersion?: string | undefined;
188
282
  translatorContractVersion?: number | undefined;
@@ -199,20 +293,20 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
199
293
  placeholderTopologyHash: z.ZodString;
200
294
  attributeTopologyHash: z.ZodString;
201
295
  displayPolicyVersion: z.ZodNumber;
202
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
296
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
203
297
  engineVersion: z.ZodOptional<z.ZodString>;
204
298
  model: z.ZodOptional<z.ZodString>;
205
299
  translatorContractVersion: z.ZodDefault<z.ZodNumber>;
206
300
  createdAt: z.ZodNumber;
207
301
  lastAccessedAt: z.ZodNumber;
208
302
  }, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
303
+ engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
304
+ sourceLanguage: string;
209
305
  targetLanguage: string;
210
- engineId: "local" | "openai" | "browser";
211
306
  key: string;
212
307
  keyHash: string;
213
308
  sourceText: string;
214
309
  translatedText: string;
215
- sourceLanguage: string;
216
310
  placeholderTopologyHash: string;
217
311
  attributeTopologyHash: string;
218
312
  displayPolicyVersion: number;
@@ -221,17 +315,17 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
221
315
  targetNodesJson?: string | undefined;
222
316
  engineVersion?: string | undefined;
223
317
  }, {
318
+ sourceLanguage: string;
224
319
  targetLanguage: string;
225
320
  key: string;
226
321
  keyHash: string;
227
322
  sourceText: string;
228
323
  translatedText: string;
229
- sourceLanguage: string;
230
324
  placeholderTopologyHash: string;
231
325
  attributeTopologyHash: string;
232
326
  displayPolicyVersion: number;
327
+ engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
233
328
  model?: string | undefined;
234
- engineId?: "local" | "openai" | "browser" | undefined;
235
329
  targetNodesJson?: string | undefined;
236
330
  engineVersion?: string | undefined;
237
331
  translatorContractVersion?: number | undefined;
@@ -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-AlZtjOt5.mjs";
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
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,4 +1,4 @@
1
- import "./translator-B0T5VL9k.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-Dnl1lz2K.mjs";
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";
3
3
 
4
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 };