perf: optimize app startup and background lifecycles

This commit is contained in:
inman
2026-08-19 00:56:15 +08:00
parent 31332f6d76
commit 927e13349b
121 changed files with 4359 additions and 1400 deletions

View File

@@ -12,6 +12,8 @@ import type {
AgentBrowserSnapshot,
} from '../../shared/agent-browser';
import type { StaticArtifactSnapshot } from '../services/static-release-server';
import type { BackgroundLifecycleController } from '../main/background-lifecycle';
import type { ReleaseJobManager } from '../services/release-job';
export type WorksSubmissionBindingStore = ReturnType<typeof createWorksSubmissionBindingStore>;
@@ -31,6 +33,10 @@ export interface AgentBrowserService {
visible: boolean;
bounds?: AgentBrowserBounds;
}): Promise<AgentBrowserSnapshot>;
setDiagnostics(input: {
projectPath: string;
enabled: boolean;
}): Promise<AgentBrowserSnapshot>;
navigate(input: {
projectPath: string;
action: 'url' | 'back' | 'forward' | 'reload';
@@ -69,4 +75,6 @@ export interface HostApiContext {
agentBrowser?: AgentBrowserService;
worksSubmissionBinding?: WorksSubmissionBindingStore;
imageWorkspace?: DesignWorkspaceModule;
lifecycle?: BackgroundLifecycleController;
releaseJobs?: ReleaseJobManager;
}