refactor: archive GUI clients; keep minimal TUI with hooks/API
ci / tcc-check (push) Successful in 1m8s
ci / linux (aarch64, 0) (push) Failing after 1h0m3s
ci / linux (x86, 1) (push) Failing after 1h0m3s
ci / linux (x86_64, 1) (push) Failing after 1h0m2s
ci / windows (push) Failing after 50s

Move Qt/Tauri/full Web SPA under archive/, ship hermit as CLI/TUI plus
libcstcore and cst-webui/1 HTTP+SSE (turn lifecycle hooks, capabilities).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WHC
2026-10-30 22:49:23 +08:00
co-authored by Cursor
parent ea38247161
commit 5538ed3412
184 changed files with 14098 additions and 1858 deletions
+13 -10
View File
@@ -1,20 +1,23 @@
# Hermit Desktop (Tauri)
# Hermit Desktop(归档)
Canonical GUI: [`apps/desktop`](../apps/desktop/). Qt under [`app/`](../app/) is frozen ([DEPRECATED](../app/DEPRECATED.md)).
桌面 GUI **不在本仓默认交付物中**。参考实现已冻结于:
## Shape
| 树 | 说明 |
|----|------|
| [`archive/desktop-tauri/`](../archive/desktop-tauri/) | Tauri 2 + React(原 `apps/desktop`) |
| [`archive/qt-app/`](../archive/qt-app/) | Qt6/QML(原 `app/`,已 DEPRECATED) |
- **Shell**: Tauri 2 (Linux / Windows / macOS)
- **UI**: React 19 — session rail, chat, tool cards, composer (DeepSeek Harness–like IA)
- **Engine**: in-process `libcstcore` via Rust FFI (feature `engine`); without it the host uses a mock / echo path so the UI is developable
正式远程客户端请实现 [webui.md](webui.md) / [webui-schema.md](webui-schema.md)
(`hermit --web`)。进程内嵌入请用 `libcstcore` + `cst_agent_hooks_t`;归档 FFI
见 `archive/desktop-tauri/src-tauri/src/ffi_bridge.*`。
## Dev
## 归档 Tauri 开发(不保证可编)
```bash
nix-shell -p rustc cargo nodejs_22 pkg-config webkitgtk_4_1 gtk3 librsvg openssl curl
cd apps/desktop && npm install && npm run tauri dev
cd archive/desktop-tauri && npm install && npm run tauri dev
```
## Product env
## 产品环境变量
`HERMIT_*` preferred, `CST_*` accepted (see `hermit_getenv`). Config dir `~/.config/hermit`.
`HERMIT_*` 优先,`CST_*` 仍接受(见 `hermit_getenv`)。配置目录 `~/.config/hermit`。