feat: 统一 AI 设计 Workspace 与生成任务链路

需求:以设计项目组织固定设计 Agent 对话、方向确认和图片视频任务。

实现:新增 Works Square 云端适配与开发态本地适配,统一 Host API、Quote 确认、任务轮询及私有媒体 Range 代理。
This commit is contained in:
2026-07-31 13:56:55 +08:00
parent 80e8386fa6
commit 3d9dd14918
22 changed files with 2506 additions and 1707 deletions

View File

@@ -3,7 +3,7 @@ import type { OpencodeManager } from '../opencode/manager';
import type { OpencodeProjectStore } from '../opencode/project-store';
import type { HostEventBus } from './event-bus';
import type { createWorksCloudDeployment } from '../services/works-cloud-deployment';
import type { LocalImageWorkspace } from '../image-workspace/local-workspace';
import type { DesignWorkspaceModule } from '../image-workspace/module';
export type WorksCloudDeploymentCoordinator = ReturnType<typeof createWorksCloudDeployment>;
@@ -13,5 +13,5 @@ export interface HostApiContext {
eventBus: HostEventBus;
mainWindow: BrowserWindow | null;
worksCloudDeployment?: WorksCloudDeploymentCoordinator;
imageWorkspace?: LocalImageWorkspace;
imageWorkspace?: DesignWorkspaceModule;
}