feat: add first-run runtime initialization

This commit is contained in:
inman
2026-04-29 17:24:37 +08:00
parent 3b252250cd
commit cddaf37016
14 changed files with 432 additions and 80 deletions

View File

@@ -52,6 +52,10 @@ export interface AppSettings {
sidebarCollapsed: boolean;
devModeUnlocked: boolean;
// First-run initialization
setupComplete: boolean;
openclawInitializedAt?: number;
// Presets
selectedBundles: string[];
enabledSkills: string[];
@@ -95,7 +99,7 @@ function createDefaultSettings(): AppSettings {
// Update
updateChannel: 'stable',
autoCheckUpdate: true,
autoCheckUpdate: false,
autoDownloadUpdate: false,
skippedVersions: [],
@@ -103,6 +107,10 @@ function createDefaultSettings(): AppSettings {
sidebarCollapsed: false,
devModeUnlocked: false,
// First-run initialization
setupComplete: false,
openclawInitializedAt: undefined,
// Presets
selectedBundles: ['productivity', 'developer'],
enabledSkills: [],