> ## Documentation Index
> Fetch the complete documentation index at: https://dshtauri.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 项目结构

> 浏览前端、Rust 后端、服务、任务、测试与发布自动化。

仓库把 React 前端和 Rust 后端放在同一个 Tauri 应用中，并按职责拆分平台服务。

```text theme={null}
deepseek-harness-desktop/
├── src/                    # React 前端
├── src-tauri/
│   ├── src/
│   │   ├── bridge/         # Tauri command 边界
│   │   ├── config/         # 路径、常量与设置
│   │   ├── desktop/        # 原生窗口与 WebView
│   │   ├── service/        # 运行时与桌面服务
│   │   └── task/           # 长任务编排
│   ├── resources/          # 随包分发的运行资源
│   └── tauri.conf.json
├── scripts/                # 构建和维护脚本
├── test/                   # 前端测试与 fixture
├── docs/                   # 仓库内工程说明
└── .github/workflows/      # CI 与发布流水线
```

## 前端

`src/` 包含组件、配置、hooks、国际化、布局、store、样式和工具，负责安装与加载状态、桌面设置以及嵌入客户端周边 UI。

## Rust 后端

`src-tauri/src/service/` 按下载、内核、Profile、插件、CLI、更新、工作流和调度等能力组织。
`bridge/` 暴露选定能力为 Tauri command，UI 代码不应绕过该边界。

## 修改入口

| 修改内容                  | 从这里开始                                            |
| --------------------- | ------------------------------------------------ |
| React 视图或状态           | `src/`                                           |
| 原生命令契约                | `src-tauri/src/bridge/`                          |
| 路径或持久化设置              | `src-tauri/src/config/`                          |
| 窗口或 WebView           | `src-tauri/src/desktop/`                         |
| 内核、Profile、插件、CLI 或更新 | `src-tauri/src/service/`                         |
| 长任务编排                 | `src-tauri/src/task/`                            |
| CI 或打包                | `.github/workflows/`、`src-tauri/tauri.conf.json` |

把平台差异封装在职责明确的 Rust service 中；新增路径、端口或 store 时保持正式版与 Debug 隔离。
