fix: complete HoloLake Agent and Forgejo desktop runtime

This commit is contained in:
冰朔 2026-08-08 10:39:18 +08:00
commit 46bdd0ca73
15 changed files with 1217 additions and 638 deletions

View file

@ -452,3 +452,20 @@ xattr -cr ~/Desktop/"HoloLake Era.app"
- **SSH 密钥**:~/.ssh/id_ed25519(对应 SG-001)
- **Grok Build 源码位置**:/Volumes/JZAO/HoloLake/upstream-mirrors/grok-build-upstream.git
- **Forgejo 离线包位置**:~/Desktop/光湖代码频道-Forgejo-16.0.1-完整离线包/
---
## 八、DEV-20260808-003 修复回读(10:36)
本节是对第四节“待修复项”的运行态回读,不改写原始开发思路。
1. `server-bundle.cjs` 已纳入正式构建,生产模式在 Electron 主进程内加载,不再递归启动 Electron。
2. Vite 资源改为相对路径,桌面 `file://` 入口改走 `127.0.0.1:3890`,空白页与 `Failed to fetch` 已消除。
3. Forgejo 已从“预留接口”变成可运行的 Git 远端适配层:状态、连接、fetch、仅快进 pull、确认 push;没有接入上游自动更新。
4. Agent 已登记 8 个工具,其中 `inspect_repository` 只读查看 Forgejo/Git 状态;Agent 不拥有自动推送能力。
5. 模型配置入口已加入桌面 App,密钥由 Electron `safeStorage` 加密保存;未配置时明确显示等待状态,不再返回模拟人格回复。
6. 本地 API 只监听 `127.0.0.1`,仅允许本机 `file://` 或 localhost 界面跨域访问。
7. 窗口顶栏已登记为 macOS 可拖动区域;按钮、搜索框保持可交互。
8. 桌面安装包已通过 Developer ID 深度签名校验和真实 UI/API 启动验收;未做 Apple 公证,因此本次是本机开发交付,不代表公开发行。
完整机器回执:`deployment/receipts/GH-HOLOLAKE-DESKTOP-0.5.0-REPAIR-20260808-001.json`。