Files
Reims-Go/AGENTS.md
T
千川白浪andClaude Opus 5.5 4bea654736 feat: add Wails desktop GUI and stage-0 UI redesign
Wails shell over the existing Go core (app.go, main.go, wails.json,
build/), with a React frontend for the VM list, VM detail, host page,
create wizard and settings, plus process helpers for the driver and
runtime packages.

UI redesign stage 0 (docs/ui-redesign.md):
- VM actions live in the page header: one primary action per state,
  icon-only secondary actions with tooltips, the rest in a "..." menu
- install guide is a single card with the only "eject installer" button
- summary is an icon + value row; paths, ICD, CPU model and runtime hash
  moved to a collapsed "technical details" section
- logs no longer auto-open; a status bar shows merged download progress
  and an error count; the log view sticks to the bottom
- busy states on actions, toasts for results, custom delete dialog with
  "keep disk files"
- design tokens, Windows font stack, integer type scale, no inline styles
- keyboard: sidebar listbox navigation, focus rings, Ctrl+N / Ctrl+, / Ctrl+L
- copy rewritten per the restraint rules in §4.5
- Radix primitives and lucide icons replace hand-rolled widgets

Backend: OpenVMFolder binding to show a VM's directory in Explorer.
Docs: shell-design.md revised for decisions D1 and D4.
Vite dev server pinned to 127.0.0.1 so `wails dev` can reach it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:09:39 -07:00

4.7 KiB
Raw Blame History

AGENTS.md(reims-go)

面向在本仓库工作的 AI Agent 与协作者。遵循上级 D:\Build\AGENTS.md 与 D:\Build\DISK-LAYOUT.md。

仓库定位

reims-go 是面向 Windows x86-64 的 免编译、一站式 reims-vgpu macOS 虚拟机桌面启动器与工程工作台(Go + Wails,GUI 与 CLI 共用内核)。

它与上游 steelbrain/reims-vgpu 及研究仓 D:\Build\macos-vm-lab 的分工:

  • reims-vgpu:上游底层引擎(QEMU 分支、reims-graphics-pci、metal2vulkan、reims-ctl、reims-util)。
  • macos-vm-lab:内核/图形深度研究、M0–M5 实验记录与基准数据。
  • reims-go(本仓库):产品化一站式桌面应用与便携运行时打包/分发流水线,让用户在无需安装 MSYS2、Rust、Git 或本地编译的前提下,开箱运行带 GPU 加速的 macOS 虚拟机(时间目标见 docs/roadmap.md 的 M2 DoD),并提供 CoW 派生、快照、P-Core 绑核、QMP/SSH 自动化等工程能力。

存储与路径硬约束

  1. 代码与文档放仓库:Go 后端、Wails 前端、打包脚本、CI workflow 与文档位于 D:\Build\reims-go\。
  2. 大体积文件严禁入库:预编译 QEMU 运行时包(~900 MB 解压 / ~250 MB 压缩)、macOS 镜像、.qcow2 磁盘、快照统一放 D:\Data\reims-go\(开发联调时可复用 D:\Data\macos-vm-lab\reims\),严禁写入 C: 或 F:。
  3. 临时文件放 D:\Build\Temp\:打包草稿、一次性测试目录用完即清。
  4. Go 缓存:本机已配置 GOPATH=D:\DevCache\go、GOBIN=D:\DevTools\go-bin,直接沿用即可。

事实核验与安全规则

  1. 上游行为以一手源码为准:引用 reims-ctl / reims-vgpu 行为时附上游 commit 与 文件:行号;未实测项显式标「待验证」。
  2. 不绕过系统安全与人工确认:UAC 提权启用 WHPX、重启 Windows、macOS GUI 安装向导、发布 Release 等操作由人确认触发。
  3. 敏感与专有内容零入库:严禁提交 SMC OSK、SMBIOS 真实序列号、MAC 地址、任何 Apple IPSW / BaseSystem / 解密固件或闭源二进制。
  4. 对上游的修改只走补丁队列:不长期维护 fork。改动以补丁形式放在 patches/,在 docs/portable-runtime-spec.md 第 5 节登记,目标是清零。补丁打不上就停下报告,不要自动改补丁。向上游提 PR 由人来做。
  5. 运行时包必须如实声明来源:manifest.json 写清上游 commit、vendor/qemu commit 和全部补丁。带补丁的包不能写成「纯上游」。
  6. 用户只拿 stable 通道:CI 产物只进 candidate,经真实宿主冒烟测试并由人确认后才升级(portable-runtime-spec.md 第 6 节)。
  7. 配置只通过 reims-ctl set 写入:不直接改 vm.toml,让上游的校验和 OpenCore 重建逻辑生效(docs/shell-design.md)。

开源合规边界

  • reims-go 自身代码(Go 后端 + 前端外壳)采用 MIT 协议(规划)。
  • 运行时组件(qemu-system-x86_64.exe 为 GPLv2,reims-ctl / reims-vgpu / metal2vulkan 为 GPL-2.0-or-later OR LGPL-3.0-or-later,以及 CLANG64/libva 动态库)以独立子进程与独立运行时压缩包形态集成。发布二进制时必须同时提供对应源码包(含本地补丁,只给上游链接不够)和完整许可证文本(NOTICE.md / licenses/),见 docs/portable-runtime-spec.md 第 7 节。
  • 不打包、不托管任何 Apple 系统文件;macOS 恢复镜像一律由用户端运行 reims-util 直连 Apple 服务器拉取或本地导入。
  • macOS 的软件许可只允许在 Apple 硬件上虚拟化。上游也处在同样的位置,但一键工具公开发布会放大风险。是否公开发布由人决定,在此之前 Release 保持私有。

文档导航

  • README.md — 项目总览、核心特性与差异化定位
  • docs/portable-runtime-spec.md — 便携运行时剥离实测结论、目录规范与 CI 打包设计
  • docs/architecture.md — Go + Wails 分层架构、环境隔离、WHPX/GPU/P-Core 自动调优与控制面设计
  • docs/shell-design.md — 外壳设计原语:配置模型与交互对齐 macOS(Virtualization.framework 与 macOS 人机界面规范)
  • docs/ui-redesign.md — 前端改版方案:VM 主面板信息架构、视觉令牌、进度与日志、分阶段计划
  • patches/ — 对上游的补丁队列(当前只有 Win10 WHPX 兼容补丁)
  • docs/roadmap.md — M0–M4 里程碑与验收标准