feat(settings): split driver store paths

This commit is contained in:
t8y2 committed 2026-06-13 17:27:58 +08:00
1 parent 3bd0f50ff7
commit 0b9aef1ca8
15 files changed
+403 -157

No files matched your search

+13 -1
View File
@@ -851,7 +851,7 @@ export async function loadAiConfig(): Promise<AiConfig | null> {
}
export async function loadDesktopSettings(): Promise<DesktopSettings> {
return { show_tray_icon: true, icon_theme: "default", debug_logging_enabled: false, saved_sql_sync_dir: null, driver_store_dir: null };
return { show_tray_icon: true, icon_theme: "default", debug_logging_enabled: false, saved_sql_sync_dir: null, driver_store_dir: null, plugin_store_dir: null, agent_store_dir: null };
}
export async function saveDesktopSettings(_settings: DesktopSettings): Promise<void> {
@@ -860,6 +860,8 @@ export async function saveDesktopSettings(_settings: DesktopSettings): Promise<v
export interface DriverStoreMigrationResult {
driver_store_dir: string | null;
plugin_store_dir: string | null;
agent_store_dir: string | null;
migrated_plugins: boolean;
migrated_agents: boolean;
}
@@ -868,8 +870,18 @@ export async function setDriverStoreDir(_newDir: string | null): Promise<DriverS
throw new Error("Not available in web mode");
}
export async function setPluginStoreDir(_newDir: string | null): Promise<DriverStoreMigrationResult> {
throw new Error("Not available in web mode");
}
export async function setAgentStoreDir(_newDir: string | null): Promise<DriverStoreMigrationResult> {
throw new Error("Not available in web mode");
}
export interface DriverStorePathInfo {
driver_store_dir: string | null;
plugin_store_dir: string | null;
agent_store_dir: string | null;
plugins_dir: string;
agents_dir: string;
}