refactor(home): 将首页改造成opencode服务入口页面

- 移除ChatGPT风格对话界面相关代码
- 添加在首页自动启动/停止opencode serve的IPC调用
- 首页使用webview加载opencode服务器界面
This commit is contained in:
2026-03-10 16:20:32 +08:00
parent de4c101b36
commit 2503d8be64
9 changed files with 123 additions and 286 deletions

View File

@@ -38,6 +38,8 @@ export interface ElectronAPI {
error?: string
canceled?: boolean
}>
opencodeStartServer: () => Promise<{ success: boolean; port?: number; error?: string }>
opencodeStopServer: () => Promise<{ success: boolean; error?: string }>
}
declare global {