Files
cdp_hub/docs/current-state.md
T

44 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 当前实现状态
## 快照
- 日期:2026-07-22
- 阶段:Phase 2 产品外壳(T-201 至 T-205 已完成)
- 代码:已建立 Go module `chub`、`cmd/chub` 入口、logging 测试基座、浏览器 domain/application 合约、Chrome/Edge 参数/发现模块、启动 registry、Windows 身份/占用检查、优雅关闭、Job Object、真实 Chrome/Edge smoke、JSON 配置存储、启动恢复、CLI JSON 合约、应用内事件总线、UI 状态测试和 Windows smoke 脚本,T-001 至 T-003、T-101 至 T-104、T-201 至 T-205 已完成
- UI:已接入 Gio v0.10.1 双页桌面壳;设置页四个路径字段均有 Label、输入框、选择按钮和搜索按钮,并提供操作反馈;CLI `list/events` 已可用,`start/stop/restart` 等待 BrowserManager adapter
- 浏览器核心:设计参考来自 `D:\OPC\shop_helm\internal\platform\chrome`,尚未复制或接入本项目
- blocker:无;下一个任务为 T-206(左侧导航、可取消路径搜索与新建实例表单语义)。
## 当前目录
| 路径 | 状态 | 说明 |
| --- | --- | --- |
| `docs/` | 已建立 | Harness Coding 项目文档 |
| `docs/ui/` | 已建立 | Chub HTML 交互原型 |
| `docs/tasks/` | 已建立 | 一任务一文件目录 |
| `cmd/` | 已建立 | Go 命令入口 |
| `cmd/chub/` | 已建立 | Gio 窗口入口和版本常量 |
| `internal/ui/` | 已建立 | Gio 实例/设置双页 Shell |
| `internal/platform/logging/` | 已建立 | 可注入的结构化 JSON 日志 |
| `internal/` | 部分建立 | 后续扩展 application/domain/platform 实现 |
## 基线命令
当前已具备最小可运行入口:
```text
go test ./...
go vet ./...
go build -o build/chub.exe ./cmd/chub
```
真实浏览器 smoke:
```powershell
.\scripts\smoke-browser.ps1
```
本机 Chrome 和 Edge 均已通过 headless 双实例 smoke;headless 不提供可见 message window,因此外部 profile lock/window 证据仍是后续补充验证项。
`shop_helm` 仅是参考项目,不是本项目代码目录。当前基线已通过 T-201 的测试、vet 和 Windows 构建验证。