@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.
- package/dist/{document-translation-BTEG-uW_.mjs → document-translation-B3QRXIXx.mjs} +5 -1
- package/dist/{document-translation-EMIQf5dw.d.mts → document-translation-QMSrWNT-.d.mts} +56 -9
- package/dist/document-translation.d.mts +1 -1
- package/dist/document-translation.mjs +2 -2
- package/dist/index.d.mts +197 -39
- package/dist/index.mjs +140 -5
- package/dist/{local-download-profiles-CSXKbamv.d.mts → local-download-profiles-DHF9dW4e.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-Ct6rtBwb.d.mts → notifications-D9yMeQqN.d.mts} +4 -4
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-projection-DrTZ0P31.d.mts → openspec-projection-e-sOj4vr.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-CIB-Wi0n.d.mts → opsx-entity-C89YFQNB.d.mts} +9 -9
- package/dist/opsx-entity.d.mts +2 -2
- package/dist/{opsx-schema-detail-Cjoesix_.d.mts → opsx-schema-detail-DIscOp9f.d.mts} +1 -1
- package/dist/opsx-schema-detail.d.mts +3 -3
- package/dist/{schemas-DeEkRkAH.d.mts → schemas-B6ZBedD4.d.mts} +112 -112
- package/dist/{sounds-BaxOUgWE.d.mts → sounds-BjSZxrQO.d.mts} +1 -1
- package/dist/sounds.d.mts +1 -1
- package/dist/{terminal-audio-v3YSYJKq.d.mts → terminal-audio-6x0ceNBw.d.mts} +2 -2
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-C5gqne5H.d.mts → terminal-invocation-C2e1WSWM.d.mts} +24 -24
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translator-yHmEiuRX.mjs → translator-B98pejVa.mjs} +172 -7
- package/dist/{translator-BtbU7rjR.d.mts → translator-jn94xmWZ.d.mts} +247 -112
- package/dist/translator.d.mts +2 -2
- package/dist/translator.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as DEFAULT_TRANSLATION_ENGINE_ID, k as TranslationEngineIdSchema } from "./translator-B98pejVa.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/document-translation.ts
|
|
@@ -13,6 +13,10 @@ const TranslationEngineProjectSettingsSchema = z.object({
|
|
|
13
13
|
model: z.string().min(1).optional(),
|
|
14
14
|
selectedGroupId: z.string().min(1).optional()
|
|
15
15
|
}).default({}),
|
|
16
|
+
localLlama: z.object({
|
|
17
|
+
model: z.string().min(1).optional(),
|
|
18
|
+
selectedGroupId: z.string().min(1).optional()
|
|
19
|
+
}).default({}),
|
|
16
20
|
openai: z.object({ model: z.string().min(1).optional() }).default({})
|
|
17
21
|
}).default({});
|
|
18
22
|
const DocumentTranslationConfigSchema = z.object({
|
|
@@ -25,6 +25,16 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
25
25
|
selectedGroupId?: string | undefined;
|
|
26
26
|
model?: string | undefined;
|
|
27
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;
|
|
33
|
+
model?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
selectedGroupId?: string | undefined;
|
|
36
|
+
model?: string | undefined;
|
|
37
|
+
}>>;
|
|
28
38
|
openai: z.ZodDefault<z.ZodObject<{
|
|
29
39
|
model: z.ZodOptional<z.ZodString>;
|
|
30
40
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -44,6 +54,10 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
44
54
|
selectedGroupId?: string | undefined;
|
|
45
55
|
model?: string | undefined;
|
|
46
56
|
};
|
|
57
|
+
localLlama: {
|
|
58
|
+
selectedGroupId?: string | undefined;
|
|
59
|
+
model?: string | undefined;
|
|
60
|
+
};
|
|
47
61
|
}, {
|
|
48
62
|
local?: {
|
|
49
63
|
selectedGroupId?: string | undefined;
|
|
@@ -56,13 +70,17 @@ declare const TranslationEngineProjectSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
56
70
|
selectedGroupId?: string | undefined;
|
|
57
71
|
model?: string | undefined;
|
|
58
72
|
} | undefined;
|
|
73
|
+
localLlama?: {
|
|
74
|
+
selectedGroupId?: string | undefined;
|
|
75
|
+
model?: string | undefined;
|
|
76
|
+
} | undefined;
|
|
59
77
|
}>>;
|
|
60
78
|
declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
61
79
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
62
80
|
targetLanguage: z.ZodDefault<z.ZodString>;
|
|
63
81
|
displayMode: z.ZodDefault<z.ZodEnum<["direct", "bilingual"]>>;
|
|
64
82
|
cacheEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
-
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
|
|
83
|
+
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
|
|
66
84
|
engines: z.ZodDefault<z.ZodObject<{
|
|
67
85
|
local: z.ZodDefault<z.ZodObject<{
|
|
68
86
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -84,6 +102,16 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
84
102
|
selectedGroupId?: string | undefined;
|
|
85
103
|
model?: string | undefined;
|
|
86
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;
|
|
110
|
+
model?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
selectedGroupId?: string | undefined;
|
|
113
|
+
model?: string | undefined;
|
|
114
|
+
}>>;
|
|
87
115
|
openai: z.ZodDefault<z.ZodObject<{
|
|
88
116
|
model: z.ZodOptional<z.ZodString>;
|
|
89
117
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -103,6 +131,10 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
103
131
|
selectedGroupId?: string | undefined;
|
|
104
132
|
model?: string | undefined;
|
|
105
133
|
};
|
|
134
|
+
localLlama: {
|
|
135
|
+
selectedGroupId?: string | undefined;
|
|
136
|
+
model?: string | undefined;
|
|
137
|
+
};
|
|
106
138
|
}, {
|
|
107
139
|
local?: {
|
|
108
140
|
selectedGroupId?: string | undefined;
|
|
@@ -115,9 +147,13 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
115
147
|
selectedGroupId?: string | undefined;
|
|
116
148
|
model?: string | undefined;
|
|
117
149
|
} | undefined;
|
|
150
|
+
localLlama?: {
|
|
151
|
+
selectedGroupId?: string | undefined;
|
|
152
|
+
model?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
118
154
|
}>>;
|
|
119
155
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
engineId: "browser" | "local" | "local-ct2" | "openai";
|
|
156
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
121
157
|
targetLanguage: string;
|
|
122
158
|
enabled: boolean;
|
|
123
159
|
displayMode: "direct" | "bilingual";
|
|
@@ -134,9 +170,13 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
134
170
|
selectedGroupId?: string | undefined;
|
|
135
171
|
model?: string | undefined;
|
|
136
172
|
};
|
|
173
|
+
localLlama: {
|
|
174
|
+
selectedGroupId?: string | undefined;
|
|
175
|
+
model?: string | undefined;
|
|
176
|
+
};
|
|
137
177
|
};
|
|
138
178
|
}, {
|
|
139
|
-
engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
|
|
179
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
140
180
|
targetLanguage?: string | undefined;
|
|
141
181
|
enabled?: boolean | undefined;
|
|
142
182
|
displayMode?: "direct" | "bilingual" | undefined;
|
|
@@ -153,6 +193,10 @@ declare const DocumentTranslationConfigSchema: z.ZodObject<{
|
|
|
153
193
|
selectedGroupId?: string | undefined;
|
|
154
194
|
model?: string | undefined;
|
|
155
195
|
} | undefined;
|
|
196
|
+
localLlama?: {
|
|
197
|
+
selectedGroupId?: string | undefined;
|
|
198
|
+
model?: string | undefined;
|
|
199
|
+
} | undefined;
|
|
156
200
|
} | undefined;
|
|
157
201
|
}>;
|
|
158
202
|
type DocumentTranslationConfig = z.infer<typeof DocumentTranslationConfigSchema>;
|
|
@@ -165,6 +209,9 @@ type TranslationEngineProjectSettingsUpdate = {
|
|
|
165
209
|
localCt2?: Partial<Omit<TranslationEngineProjectSettings['localCt2'], 'selectedGroupId'>> & {
|
|
166
210
|
selectedGroupId?: TranslationEngineProjectSettings['localCt2']['selectedGroupId'] | null;
|
|
167
211
|
};
|
|
212
|
+
localLlama?: Partial<Omit<TranslationEngineProjectSettings['localLlama'], 'selectedGroupId'>> & {
|
|
213
|
+
selectedGroupId?: TranslationEngineProjectSettings['localLlama']['selectedGroupId'] | null;
|
|
214
|
+
};
|
|
168
215
|
openai?: Partial<TranslationEngineProjectSettings['openai']>;
|
|
169
216
|
};
|
|
170
217
|
type DocumentTranslationConfigUpdate = Partial<Omit<DocumentTranslationConfig, 'engines'>> & {
|
|
@@ -193,14 +240,14 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
|
|
|
193
240
|
placeholderTopologyHash: z.ZodString;
|
|
194
241
|
attributeTopologyHash: z.ZodString;
|
|
195
242
|
displayPolicyVersion: z.ZodNumber;
|
|
196
|
-
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
|
|
243
|
+
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
|
|
197
244
|
engineVersion: z.ZodOptional<z.ZodString>;
|
|
198
245
|
model: z.ZodOptional<z.ZodString>;
|
|
199
246
|
translatorContractVersion: z.ZodDefault<z.ZodNumber>;
|
|
200
247
|
createdAt: z.ZodNumber;
|
|
201
248
|
lastAccessedAt: z.ZodNumber;
|
|
202
249
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
engineId: "browser" | "local" | "local-ct2" | "openai";
|
|
250
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
204
251
|
sourceLanguage: string;
|
|
205
252
|
targetLanguage: string;
|
|
206
253
|
createdAt: number;
|
|
@@ -228,7 +275,7 @@ declare const TranslationCacheEntrySchema: z.ZodObject<{
|
|
|
228
275
|
attributeTopologyHash: string;
|
|
229
276
|
displayPolicyVersion: number;
|
|
230
277
|
lastAccessedAt: number;
|
|
231
|
-
engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
|
|
278
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
232
279
|
model?: string | undefined;
|
|
233
280
|
targetNodesJson?: string | undefined;
|
|
234
281
|
engineVersion?: string | undefined;
|
|
@@ -246,14 +293,14 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
|
|
|
246
293
|
placeholderTopologyHash: z.ZodString;
|
|
247
294
|
attributeTopologyHash: z.ZodString;
|
|
248
295
|
displayPolicyVersion: z.ZodNumber;
|
|
249
|
-
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "openai"]>>;
|
|
296
|
+
engineId: z.ZodDefault<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
|
|
250
297
|
engineVersion: z.ZodOptional<z.ZodString>;
|
|
251
298
|
model: z.ZodOptional<z.ZodString>;
|
|
252
299
|
translatorContractVersion: z.ZodDefault<z.ZodNumber>;
|
|
253
300
|
createdAt: z.ZodNumber;
|
|
254
301
|
lastAccessedAt: z.ZodNumber;
|
|
255
302
|
}, "createdAt" | "lastAccessedAt">, "strip", z.ZodTypeAny, {
|
|
256
|
-
engineId: "browser" | "local" | "local-ct2" | "openai";
|
|
303
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
257
304
|
sourceLanguage: string;
|
|
258
305
|
targetLanguage: string;
|
|
259
306
|
key: string;
|
|
@@ -277,7 +324,7 @@ declare const TranslationCacheWriteInputSchema: z.ZodObject<Omit<{
|
|
|
277
324
|
placeholderTopologyHash: string;
|
|
278
325
|
attributeTopologyHash: string;
|
|
279
326
|
displayPolicyVersion: number;
|
|
280
|
-
engineId?: "browser" | "local" | "local-ct2" | "openai" | undefined;
|
|
327
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
281
328
|
model?: string | undefined;
|
|
282
329
|
targetNodesJson?: string | undefined;
|
|
283
330
|
engineVersion?: string | 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-
|
|
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-QMSrWNT-.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-
|
|
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-
|
|
1
|
+
import "./translator-B98pejVa.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-B3QRXIXx.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 };
|