@openspecui/server 3.11.4 → 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.
- package/dist/index.mjs +3 -26
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveCt2ModelDownloadPlanFromRepositoryFiles } from "./src-Dh_UAz5C.mjs";
|
|
2
2
|
import { t as resolveGgufModelDownloadPlanFromRepositoryFiles } from "./src-CZfiVL_-.mjs";
|
|
3
|
-
import { BatchTranslateInputSchema, CliExecutor, CodeEditorThemeSchema, ConfigManager, CustomSoundHashSchema, DASHBOARD_METRIC_KEYS, DashboardConfigSchema,
|
|
3
|
+
import { BatchTranslateInputSchema, CliExecutor, CodeEditorThemeSchema, ConfigManager, CustomSoundHashSchema, DASHBOARD_METRIC_KEYS, DashboardConfigSchema, DocumentTranslationConfigUpdateSchema, GitConfigSchema, GlobalSettingsManager, LocalModelAssetStateSchema, LocalModelLifecycleFileStateSchema, LocalModelLifecycleGroupStateSchema, LocalModelProfileManifestSchema, MarkdownParser, NotificationPublishInputSchema, NotificationSettingsSchema, OPENSPECUI_HOOKS_VERSION, OpenSpecAdapter, OpenSpecUIGlobalSettingsUpdateSchema, OpenSpecWatcher, OpsxConfigSchema, OpsxKernel, PtyClientMessageSchema, ReactiveContext, ServiceTranslationEngineIdSchema, TRANSLATION_ENGINE_MANIFESTS, TerminalConfigSchema, TerminalControlParser, TerminalRendererEngineSchema, TranslationCacheReadInputSchema, TranslationCacheWriteInputSchema, TranslationEngineIdSchema, TranslationEngineLifecycleStatusSchema, buildBackendHealthPayload, buildLocalDownloadPlanFromRepositoryFiles, buildRuntimePackageInstallCommand, checkLocalDirectionalModelLanguagePair, clearCache, createCleanCliEnv, createTranslationEngineLifecycleStatus, detectRuntimePackageManager, getAllTools, getAvailableTools, getConfiguredTools, getDefaultCliCommandString, getDetectedProjectTools, getManagedLocalTranslationEngineManifest, getOpsxEntityRootRelativePath, getToolInitStates, getTranslationEngineLifecycleMessage, getWatcherRuntimeStatus, inferFileMime, inferFilePreviewKind, initWatcherPool, isDirectionalManagedLocalTranslationEngineId, isManagedLocalTranslationEngineId, isTranslationEngineDependencyReady, isTranslationEngineRuntimeReady, isWatcherPoolInitialized, normalizeBatchTranslationError, normalizeOpsxEntityPath, parseOpsxEntityMetadata, parseOpsxSchemaDetail, resolveRuntimePackageInstallStrategy, resolveTerminalShellDefaults, selectLocalDownloadGroup, shouldShowTranslationEngineInstallGate, sniffGlobalCli, subscribeWatcherRuntimeStatus, terminalNotificationEventToPublishInput } from "@openspecui/core";
|
|
4
4
|
import { basename, dirname, extname, join, matchesGlob, relative, resolve, sep } from "node:path";
|
|
5
5
|
import { access, copyFile, lstat, mkdir, open, readFile, readlink, realpath, rename, rm, stat, symlink, unlink, writeFile } from "node:fs/promises";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -8653,16 +8653,7 @@ const globalSettingsRouter = router({
|
|
|
8653
8653
|
get: publicProcedure.query(({ ctx }) => {
|
|
8654
8654
|
return ctx.globalSettingsManager.readSettings();
|
|
8655
8655
|
}),
|
|
8656
|
-
update: publicProcedure.input(
|
|
8657
|
-
translationCache: TranslationCacheSettingsSchema.partial().optional(),
|
|
8658
|
-
translationEngines: z.object({
|
|
8659
|
-
engineId: TranslationEngineIdSchema.optional(),
|
|
8660
|
-
openai: TranslationOpenAISettingsSchema.partial().optional(),
|
|
8661
|
-
local: TranslationLocalSettingsSchema.partial().extend({ selectedGroupId: z.string().min(1).nullable().optional() }).optional(),
|
|
8662
|
-
localCt2: TranslationLocalCt2SettingsSchema.partial().extend({ selectedGroupId: z.string().min(1).nullable().optional() }).optional(),
|
|
8663
|
-
localLlama: TranslationLocalLlamaSettingsSchema.partial().extend({ selectedGroupId: z.string().min(1).nullable().optional() }).optional()
|
|
8664
|
-
}).optional()
|
|
8665
|
-
})).mutation(async ({ ctx, input }) => {
|
|
8656
|
+
update: publicProcedure.input(OpenSpecUIGlobalSettingsUpdateSchema).mutation(async ({ ctx, input }) => {
|
|
8666
8657
|
await ctx.globalSettingsManager.writeSettings(input);
|
|
8667
8658
|
return { success: true };
|
|
8668
8659
|
}),
|
|
@@ -9520,21 +9511,7 @@ const configRouter = router({
|
|
|
9520
9511
|
dashboard: DashboardConfigSchema.partial().optional(),
|
|
9521
9512
|
git: GitConfigSchema.partial().optional(),
|
|
9522
9513
|
notifications: NotificationSettingsSchema.partial().optional(),
|
|
9523
|
-
translation:
|
|
9524
|
-
local: z.object({
|
|
9525
|
-
model: z.string().min(1).optional(),
|
|
9526
|
-
selectedGroupId: z.string().min(1).nullable().optional()
|
|
9527
|
-
}).optional(),
|
|
9528
|
-
localCt2: z.object({
|
|
9529
|
-
model: z.string().min(1).optional(),
|
|
9530
|
-
selectedGroupId: z.string().min(1).nullable().optional()
|
|
9531
|
-
}).optional(),
|
|
9532
|
-
localLlama: z.object({
|
|
9533
|
-
model: z.string().min(1).optional(),
|
|
9534
|
-
selectedGroupId: z.string().min(1).nullable().optional()
|
|
9535
|
-
}).optional(),
|
|
9536
|
-
openai: z.object({ model: z.string().min(1).optional() }).optional()
|
|
9537
|
-
}).optional() }).optional()
|
|
9514
|
+
translation: DocumentTranslationConfigUpdateSchema.optional()
|
|
9538
9515
|
})).mutation(async ({ ctx, input }) => {
|
|
9539
9516
|
const hasCliCommand = input.cli !== void 0 && Object.prototype.hasOwnProperty.call(input.cli, "command");
|
|
9540
9517
|
const hasCliArgs = input.cli !== void 0 && Object.prototype.hasOwnProperty.call(input.cli, "args");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openspecui/server",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@hono/node-server": "^1.14.1",
|
|
25
25
|
"@huggingface/hub": "^2.12.0",
|
|
26
26
|
"@lydell/node-pty": "^1.1.0",
|
|
27
|
-
"@openspecui/core": "3.11.
|
|
28
|
-
"@openspecui/search": "3.11.
|
|
27
|
+
"@openspecui/core": "3.11.5",
|
|
28
|
+
"@openspecui/search": "3.11.5",
|
|
29
29
|
"@trpc/server": "^11.0.0",
|
|
30
30
|
"better-sqlite3": "^12.5.0",
|
|
31
31
|
"hono": "^4.7.3",
|