chore: commit workspace updates

This commit is contained in:
ddCat
2026-09-14 01:11:56 +08:00
parent 01a2d171f5
commit 9727656b2b
491 changed files with 12826 additions and 72249 deletions

View File

@@ -4,8 +4,6 @@ import { App } from "antd";
import { createModelChannel, useConfigStore } from "@/stores/use-config-store";
import { navigateToSettings } from "@/lib/settings-navigation";
import { useLocalDreaminaModelBootstrap } from "@/stores/use-local-dreamina-model-store";
import { useLocalRuntimeBootstrap } from "@/stores/use-local-runtime-store";
import { initializeClientDiagnostics, setDiagnosticUserScope } from "@/services/diagnostics/client-diagnostics";
import { fetchPluginRuntimeState, setUserPluginEnabled } from "@/services/api/plugins";
import { usePluginStore } from "@/stores/use-plugin-store";
@@ -15,9 +13,6 @@ import { appQueryClient } from "@/lib/query-client";
export function ClientRootInit({ children }: { children: ReactNode }) {
const config = useConfigStore((state) => state.config);
const userId = useUserStore((state) => state.user?.id || "");
const localRuntimeConfigured = config.channels.some((channel) => channel.transport === "local-runtime" && channel.enabled !== false);
useLocalRuntimeBootstrap(localRuntimeConfigured);
useLocalDreaminaModelBootstrap();
const { message } = App.useApp();
const handledConfigParams = useRef(false);
const updateConfig = useConfigStore((state) => state.updateConfig);

View File

@@ -30,7 +30,6 @@ type WorkspaceNavGroup = {
/** 设置页分区子项,沿用 /settings?section=<key> 路由合同。 */
const SETTINGS_SECTIONS: Array<{ key: string; label: string }> = [
{ key: "local-cli", label: "本机工具" },
{ key: "channels", label: "自定义渠道" },
{ key: "models", label: "模型选择" },
{ key: "preferences", label: "生成偏好" },