refactor(webui): split settings frontend by domain

This commit is contained in:
chengyongru authored and chengyongru committed 2026-08-11 13:27:19 +08:00
1 parent 52e0a6a1e3
commit eab017766b
35 files changed
+16931 -15386

No files matched your search

@@ -0,0 +1,32 @@
import type { SettingsPayload } from "@/lib/types";
export type SettingsSectionKey =
| "overview"
| "appearance"
| "models"
| "image"
| "voice"
| "browser"
| "channels"
| "apps"
| "automations"
| "skills"
| "runtime"
| "advanced";
export type PendingRestartSection = "runtime" | "browser" | "image";
export type PendingRestartSections = Record<PendingRestartSection, boolean>;
export type RestartAwarePayload = {
requires_restart?: boolean;
surface?: SettingsPayload["surface"];
runtime_surface?: SettingsPayload["runtime_surface"];
runtime_capabilities?: SettingsPayload["runtime_capabilities"];
};
export type ApplySettingsPayload = (
payload: SettingsPayload,
options?: { preserveAgentForm?: boolean },
) => void;
export type MaybeRestartHostEngine = (payload: RestartAwarePayload) => Promise<void>;