feat: add server settings (toggle on/off, port selection, start on system start) to Settings UI and backend

This commit is contained in:
Schwitzz
2026-10-30 13:56:23 -05:00
parent 42733b4799
commit fa22a755ee
5 changed files with 454 additions and 4 deletions
+8
View File
@@ -263,6 +263,10 @@ export interface AppSettings {
activeModel: string;
aiAgents: AIAgentConfig[];
activeAgentId: string;
// Local / Self-Hosted Server & Startup Settings
serverEnabled: boolean;
serverPort: number;
serverStartOnBoot: boolean;
}
export const DEFAULT_SETTINGS: AppSettings = {
@@ -292,6 +296,10 @@ export const DEFAULT_SETTINGS: AppSettings = {
activeModel: DEFAULT_AI_PROVIDERS[0]!.defaultModel,
aiAgents: DEFAULT_AI_AGENTS,
activeAgentId: DEFAULT_AI_AGENTS[0]!.id,
// Local / Self-Hosted Server & Startup Settings
serverEnabled: true,
serverPort: 8081,
serverStartOnBoot: false,
};
const STORAGE_KEY = "pubscript.settings.v1";