@openspecui/core 3.11.1 → 3.11.2

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 (31) hide show
  1. package/dist/{document-translation-Dnl1lz2K.mjs → document-translation-BTEG-uW_.mjs} +5 -1
  2. package/dist/{document-translation-AlZtjOt5.d.mts → document-translation-EMIQf5dw.d.mts} +72 -25
  3. package/dist/document-translation.d.mts +1 -1
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/index.d.mts +155 -55
  6. package/dist/index.mjs +229 -6
  7. package/dist/{local-download-profiles-DISrU0mw.d.mts → local-download-profiles-CSXKbamv.d.mts} +1 -1
  8. package/dist/local-download-profiles.d.mts +2 -2
  9. package/dist/{notifications-gGjGaYsF.d.mts → notifications-Ct6rtBwb.d.mts} +16 -16
  10. package/dist/notifications.d.mts +2 -2
  11. package/dist/{openspec-projection-BojcJ9zl.d.mts → openspec-projection-DrTZ0P31.d.mts} +1 -1
  12. package/dist/openspec-projection.d.mts +2 -2
  13. package/dist/{opsx-entity-BdyGTVs_.d.mts → opsx-entity-CIB-Wi0n.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-Cjoesix_.d.mts} +1 -1
  16. package/dist/opsx-schema-detail.d.mts +3 -3
  17. package/dist/{schemas-DV6yABO9.d.mts → schemas-DeEkRkAH.d.mts} +124 -124
  18. package/dist/{sounds-C906qHTJ.d.mts → sounds-BaxOUgWE.d.mts} +9 -9
  19. package/dist/sounds.d.mts +1 -1
  20. package/dist/{terminal-audio-D6dE8O1_.d.mts → terminal-audio-v3YSYJKq.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-C5gqne5H.d.mts} +51 -51
  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-tTXEGRdz.d.mts → translator-BtbU7rjR.d.mts} +740 -126
  28. package/dist/{translator-B0T5VL9k.mjs → translator-yHmEiuRX.mjs} +143 -7
  29. package/dist/translator.d.mts +2 -2
  30. package/dist/translator.mjs +2 -2
  31. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { C as TranslationEngineIdSchema, r as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-B0T5VL9k.mjs";
1
+ import { D as TranslationEngineIdSchema, r as DEFAULT_TRANSLATION_ENGINE_ID } from "./translator-yHmEiuRX.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/document-translation.ts
@@ -9,6 +9,10 @@ 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({}),
12
16
  openai: z.object({ model: z.string().min(1).optional() }).default({})
13
17
  }).default({});
14
18
  const DocumentTranslationConfigSchema = z.object({
@@ -9,11 +9,21 @@ 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
- model?: string | undefined;
13
12
  selectedGroupId?: string | undefined;
13
+ model?: string | undefined;
14
14
  }, {
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;
15
23
  model?: string | undefined;
24
+ }, {
16
25
  selectedGroupId?: string | undefined;
26
+ model?: string | undefined;
17
27
  }>>;
18
28
  openai: z.ZodDefault<z.ZodObject<{
19
29
  model: z.ZodOptional<z.ZodString>;
@@ -24,37 +34,55 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
24
34
  }>>;
25
35
  }, "strip", z.ZodTypeAny, {
26
36
  local: {
27
- model?: string | undefined;
28
37
  selectedGroupId?: string | undefined;
38
+ model?: string | undefined;
29
39
  };
30
40
  openai: {
31
41
  model?: string | undefined;
32
42
  };
43
+ localCt2: {
44
+ selectedGroupId?: string | undefined;
45
+ model?: string | undefined;
46
+ };
33
47
  }, {
34
48
  local?: {
35
- model?: string | undefined;
36
49
  selectedGroupId?: string | undefined;
50
+ model?: string | undefined;
37
51
  } | undefined;
38
52
  openai?: {
39
53
  model?: string | undefined;
40
54
  } | undefined;
55
+ localCt2?: {
56
+ selectedGroupId?: string | undefined;
57
+ model?: string | undefined;
58
+ } | undefined;
41
59
  }>>;
42
60
  declare const DocumentTranslationConfigSchema: z.ZodObject<{
43
61
  enabled: z.ZodDefault<z.ZodBoolean>;
44
62
  targetLanguage: z.ZodDefault<z.ZodString>;
45
63
  displayMode: z.ZodDefault<z.ZodEnum<["direct", "bilingual"]>>;
46
64
  cacheEnabled: z.ZodDefault<z.ZodBoolean>;
47
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
65
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
48
66
  engines: z.ZodDefault<z.ZodObject<{
49
67
  local: z.ZodDefault<z.ZodObject<{
50
68
  model: z.ZodOptional<z.ZodString>;
51
69
  selectedGroupId: z.ZodOptional<z.ZodString>;
52
70
  }, "strip", z.ZodTypeAny, {
53
- model?: string | undefined;
54
71
  selectedGroupId?: string | undefined;
72
+ model?: string | undefined;
55
73
  }, {
74
+ selectedGroupId?: string | undefined;
56
75
  model?: string | undefined;
76
+ }>>;
77
+ localCt2: z.ZodDefault<z.ZodObject<{
78
+ model: z.ZodOptional<z.ZodString>;
79
+ selectedGroupId: z.ZodOptional<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ selectedGroupId?: string | undefined;
82
+ model?: string | undefined;
83
+ }, {
57
84
  selectedGroupId?: string | undefined;
85
+ model?: string | undefined;
58
86
  }>>;
59
87
  openai: z.ZodDefault<z.ZodObject<{
60
88
  model: z.ZodOptional<z.ZodString>;
@@ -65,50 +93,66 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
65
93
  }>>;
66
94
  }, "strip", z.ZodTypeAny, {
67
95
  local: {
68
- model?: string | undefined;
69
96
  selectedGroupId?: string | undefined;
97
+ model?: string | undefined;
70
98
  };
71
99
  openai: {
72
100
  model?: string | undefined;
73
101
  };
102
+ localCt2: {
103
+ selectedGroupId?: string | undefined;
104
+ model?: string | undefined;
105
+ };
74
106
  }, {
75
107
  local?: {
76
- model?: string | undefined;
77
108
  selectedGroupId?: string | undefined;
109
+ model?: string | undefined;
78
110
  } | undefined;
79
111
  openai?: {
80
112
  model?: string | undefined;
81
113
  } | undefined;
114
+ localCt2?: {
115
+ selectedGroupId?: string | undefined;
116
+ model?: string | undefined;
117
+ } | undefined;
82
118
  }>>;
83
119
  }, "strip", z.ZodTypeAny, {
84
- enabled: boolean;
120
+ engineId: "browser" | "local" | "local-ct2" | "openai";
85
121
  targetLanguage: string;
122
+ enabled: boolean;
86
123
  displayMode: "direct" | "bilingual";
87
124
  cacheEnabled: boolean;
88
- engineId: "local" | "openai" | "browser";
89
125
  engines: {
90
126
  local: {
91
- model?: string | undefined;
92
127
  selectedGroupId?: string | undefined;
128
+ model?: string | undefined;
93
129
  };
94
130
  openai: {
95
131
  model?: string | undefined;
96
132
  };
133
+ localCt2: {
134
+ selectedGroupId?: string | undefined;
135
+ model?: string | undefined;
136
+ };
97
137
  };
98
138
  }, {
99
- enabled?: boolean | undefined;
139
+ engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
100
140
  targetLanguage?: string | undefined;
141
+ enabled?: boolean | undefined;
101
142
  displayMode?: "direct" | "bilingual" | undefined;
102
143
  cacheEnabled?: boolean | undefined;
103
- engineId?: "local" | "openai" | "browser" | undefined;
104
144
  engines?: {
105
145
  local?: {
106
- model?: string | undefined;
107
146
  selectedGroupId?: string | undefined;
147
+ model?: string | undefined;
108
148
  } | undefined;
109
149
  openai?: {
110
150
  model?: string | undefined;
111
151
  } | undefined;
152
+ localCt2?: {
153
+ selectedGroupId?: string | undefined;
154
+ model?: string | undefined;
155
+ } | undefined;
112
156
  } | undefined;
113
157
  }>;
114
158
  type DocumentTranslationConfig = z.infer<typeof DocumentTranslationConfigSchema>;
@@ -118,6 +162,9 @@ type TranslationEngineProjectSettingsUpdate = {
118
162
  local?: Partial<Omit<TranslationEngineProjectSettings['local'], 'selectedGroupId'>> & {
119
163
  selectedGroupId?: TranslationEngineProjectSettings['local']['selectedGroupId'] | null;
120
164
  };
165
+ localCt2?: Partial<Omit<TranslationEngineProjectSettings['localCt2'], 'selectedGroupId'>> & {
166
+ selectedGroupId?: TranslationEngineProjectSettings['localCt2']['selectedGroupId'] | null;
167
+ };
121
168
  openai?: Partial<TranslationEngineProjectSettings['openai']>;
122
169
  };
123
170
  type DocumentTranslationConfigUpdate = Partial<Omit<DocumentTranslationConfig, 'engines'>> & {
@@ -146,43 +193,43 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
146
193
  placeholderTopologyHash: z.ZodString;
147
194
  attributeTopologyHash: z.ZodString;
148
195
  displayPolicyVersion: z.ZodNumber;
149
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
196
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
150
197
  engineVersion: z.ZodOptional<z.ZodString>;
151
198
  model: z.ZodOptional<z.ZodString>;
152
199
  translatorContractVersion: z.ZodDefault<z.ZodNumber>;
153
200
  createdAt: z.ZodNumber;
154
201
  lastAccessedAt: z.ZodNumber;
155
202
  }, "strip", z.ZodTypeAny, {
203
+ engineId: "browser" | "local" | "local-ct2" | "openai";
204
+ sourceLanguage: string;
156
205
  targetLanguage: string;
157
- engineId: "local" | "openai" | "browser";
206
+ createdAt: number;
158
207
  key: string;
159
208
  keyHash: string;
160
209
  sourceText: string;
161
210
  translatedText: string;
162
- sourceLanguage: string;
163
211
  placeholderTopologyHash: string;
164
212
  attributeTopologyHash: string;
165
213
  displayPolicyVersion: number;
166
214
  translatorContractVersion: number;
167
- createdAt: number;
168
215
  lastAccessedAt: number;
169
216
  model?: string | undefined;
170
217
  targetNodesJson?: string | undefined;
171
218
  engineVersion?: string | undefined;
172
219
  }, {
220
+ sourceLanguage: string;
173
221
  targetLanguage: string;
222
+ createdAt: number;
174
223
  key: string;
175
224
  keyHash: string;
176
225
  sourceText: string;
177
226
  translatedText: string;
178
- sourceLanguage: string;
179
227
  placeholderTopologyHash: string;
180
228
  attributeTopologyHash: string;
181
229
  displayPolicyVersion: number;
182
- createdAt: number;
183
230
  lastAccessedAt: number;
231
+ engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
184
232
  model?: string | undefined;
185
- engineId?: "local" | "openai" | "browser" | undefined;
186
233
  targetNodesJson?: string | undefined;
187
234
  engineVersion?: string | undefined;
188
235
  translatorContractVersion?: number | undefined;
@@ -199,20 +246,20 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
199
246
  placeholderTopologyHash: z.ZodString;
200
247
  attributeTopologyHash: z.ZodString;
201
248
  displayPolicyVersion: z.ZodNumber;
202
- engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "openai"]>>;
249
+ engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
203
250
  engineVersion: z.ZodOptional<z.ZodString>;
204
251
  model: z.ZodOptional<z.ZodString>;
205
252
  translatorContractVersion: z.ZodDefault<z.ZodNumber>;
206
253
  createdAt: z.ZodNumber;
207
254
  lastAccessedAt: z.ZodNumber;
208
255
  }, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
256
+ engineId: "browser" | "local" | "local-ct2" | "openai";
257
+ sourceLanguage: string;
209
258
  targetLanguage: string;
210
- engineId: "local" | "openai" | "browser";
211
259
  key: string;
212
260
  keyHash: string;
213
261
  sourceText: string;
214
262
  translatedText: string;
215
- sourceLanguage: string;
216
263
  placeholderTopologyHash: string;
217
264
  attributeTopologyHash: string;
218
265
  displayPolicyVersion: number;
@@ -221,17 +268,17 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
221
268
  targetNodesJson?: string | undefined;
222
269
  engineVersion?: string | undefined;
223
270
  }, {
271
+ sourceLanguage: string;
224
272
  targetLanguage: string;
225
273
  key: string;
226
274
  keyHash: string;
227
275
  sourceText: string;
228
276
  translatedText: string;
229
- sourceLanguage: string;
230
277
  placeholderTopologyHash: string;
231
278
  attributeTopologyHash: string;
232
279
  displayPolicyVersion: number;
280
+ engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
233
281
  model?: string | undefined;
234
- engineId?: "local" | "openai" | "browser" | undefined;
235
282
  targetNodesJson?: string | undefined;
236
283
  engineVersion?: string | undefined;
237
284
  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-EMIQf5dw.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-yHmEiuRX.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-BTEG-uW_.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 };