feat: 将发布预检移入内置浏览器

This commit is contained in:
2026-08-12 16:33:50 +08:00
parent be9bc84474
commit 926056a59b
16 changed files with 840 additions and 9 deletions

View File

@@ -32,6 +32,7 @@ export interface AgentBrowserWebContentsPort {
isDestroyed(): boolean;
isDevToolsOpened(): boolean;
reload(): void;
executeJavaScript(code: string): Promise<unknown>;
denyWindowOpen(): void;
on(event: string, listener: PortListener): void;
removeListener(event: string, listener: PortListener): void;
@@ -49,4 +50,5 @@ export interface AgentBrowserAdapter {
unmount(view: AgentBrowserViewPort): void;
destroy(view: AgentBrowserViewPort): void;
resetPartition(partition: string): Promise<void>;
restrictPartitionToOrigin(partition: string, origin: string): () => void;
}