perf: optimize app startup and background lifecycles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user