Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

docs: readme

hairyf0a33c1a667b2
diff --git a/README.md b/README.md
index 672ef3d5..066261fa 100644
--- a/README.md
+++ b/README.md
@@ -29,12 +29,12 @@
## Features
-- **Zero setup** — First launch bootstraps the bundled Node runtime and Harness core automatically; a compatible local Node / Pnpm setup is reused as-is when present.
-- **Self-healing core** — Every launch syncs with the latest upstream Harness release, so upstream fixes reach you without reinstalling.
-- **Local & private by default** — Runs on `127.0.0.1:3080`. Profiles, sessions and settings stay on your machine; telemetry is off by default.
-- **Native & lightweight** — A Tauri 2 shell (not Electron): smaller installers, lower memory, native windows. Windows / macOS / Linux, bilingual UI.
-- **CLI ready** — Registers `dsh` commands (`*/bin`) after install, ready in a new terminal.
-- **First-run wizard** — On first launch, pick the recommended plugins (e.g. the dsh-market plugin store) and watch the install stream in real time; skip anytime and reopen later from the sidebar.
+- ⚡️ **Zero setup** — First launch bootstraps the bundled Node runtime and Harness core automatically; a compatible local Node / Pnpm setup is reused as-is when present.
+- 🔄 **Self-healing core** — Every launch syncs with the latest upstream Harness release, so upstream fixes reach you without reinstalling.
+- 🔒 **Local & private by default** — Runs on `127.0.0.1:3080`. Profiles, sessions and settings stay on your machine; telemetry is off by default.
+- 🪶 **Native & lightweight** — A Tauri 2 shell (not Electron): smaller installers, lower memory, native windows. Windows / macOS / Linux, bilingual UI.
+- ⌨️ **CLI ready** — Registers `dsh` commands (`*/bin`) after install, ready in a new terminal.
+- 🧭 **First-run wizard** — On first launch, pick the recommended plugins (e.g. the dsh-market plugin store) and watch the install stream in real time; skip anytime and reopen later from the sidebar.
## Quick Start
@@ -44,15 +44,9 @@ The first run downloads the Node runtime and Harness core (~a few hundred MB) an
**Requirements:** Windows 10+ (64-bit) · macOS 10.15+ · Linux (AppImage) · network on first launch
-## Development
+## Dev
-```bash
-pnpm install # install dependencies
-pnpm tauri dev # run in dev mode
-pnpm tauri build # build installers
-```
-
-Requires Node.js 20+, Rust 1.77+, pnpm 9+, and the platform toolchain (MSVC + WebView2 / Xcode CLT / WebKit2GTK).
+Want to get involved in the development? See [docs/DEVELOPMENT.md](./docs/DEVELOPMENT.md).
## How It Works
@@ -79,13 +73,18 @@ Requires Node.js 20+, Rust 1.77+, pnpm 9+, and the platform toolchain (MSVC + We
http://127.0.0.1:3080/ ← embedded UI
```
-The prebuilt Harness bundle is published by [deepseek-harness-pkg](https://github.com/hairyf/deepseek-harness-pkg) (release contract: [docs/PKG-CONTRACT.md](docs/PKG-CONTRACT.md)). Every launch diffs the installed bundle against the latest release and re-downloads when outdated — keeping the local install when GitHub is unreachable. Full architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
+The prebuilt Harness bundle is published by [deepseek-harness-pkg](https://github.com/hairyf/deepseek-harness-pkg). Every launch diffs the installed bundle against the latest release and re-downloads when outdated — keeping the local install when GitHub is unreachable.
## Notes
-- **Developer preview** — upstream `dsh` is evolving fast with breaking changes; this project tracks it closely.
-- **macOS Gatekeeper** — the app is not notarized; allow it once via System Settings → Privacy & Security → Open Anyway.
-- **Security** — `dsh` can execute code locally. For learning / research / testing only; run it in a trusted, isolated environment.
+> [!WARNING]
+> **Developer preview** — upstream `dsh` is evolving fast with breaking changes; this project tracks it closely.
+
+> [!IMPORTANT]
+> **macOS Gatekeeper** — the app is not notarized; allow it once via System Settings → Privacy & Security → Open Anyway.
+
+> [!NOTE]
+> **Security** — `dsh` can execute code locally. For learning / research / testing only; run it in a trusted, isolated environment.
## Related
diff --git a/README.zh.md b/README.zh.md
index 4837c3b7..7dfb6605 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -29,12 +29,12 @@
## 功能
-- **零环境** — 首次启动自动装配内置 Node 运行时与 Harness 内核;本机已有兼容 Node / Pnpm 时直接复用,不碰你的系统环境。
-- **内核自愈** — 每次启动自动同步上游最新 Harness 版本,上游修复无需重新安装,打开即跟上。
-- **纯本地 · 隐私默认** — 运行在 `127.0.0.1:3080`,profile / 会话 / 设置全部留在本机,默认关闭遥测。
-- **原生轻量** — Tauri 2 外壳(非 Electron):更小的安装包、更低的内存占用、原生窗口。Windows / macOS / Linux,中英双语界面。
-- **命令行集成** — 安装后自动注册 `dsh` 命令(`*/bin`),新开终端即用。
-- **首次启动引导** — 首次启动可选装推荐插件(如 dsh-market 插件市场)并实时查看安装日志;可随时跳过,之后也能从侧边栏重新打开。
+- ⚡️ **零环境** — 首次启动自动装配内置 Node 运行时与 Harness 内核;本机已有兼容 Node / Pnpm 时直接复用,不碰你的系统环境。
+- 🔄 **内核自愈** — 每次启动自动同步上游最新 Harness 版本,上游修复无需重新安装,打开即跟上。
+- 🔒 **纯本地 · 隐私默认** — 运行在 `127.0.0.1:3080`,profile / 会话 / 设置全部留在本机,默认关闭遥测。
+- 🪶 **原生轻量** — Tauri 2 外壳(非 Electron):更小的安装包、更低的内存占用、原生窗口。Windows / macOS / Linux,中英双语界面。
+- ⌨️ **命令行集成** — 安装后自动注册 `dsh` 命令(`*/bin`),新开终端即用。
+- 🧭 **首次启动引导** — 首次启动可选装推荐插件(如 dsh-market 插件市场)并实时查看安装日志;可随时跳过,之后也能从侧边栏重新打开。
## 快速开始
@@ -44,15 +44,9 @@
**系统要求:** Windows 10+(64 位)· macOS 10.15+ · Linux(AppImage)· 首次运行需要网络
-## 开发与构建
+## 开发
-```bash
-pnpm install # 安装依赖
-pnpm tauri dev # 本地开发
-pnpm tauri build # 构建安装包
-```
-
-需要 Node.js 20+、Rust 1.77+、pnpm 9+,以及平台编译工具链(MSVC + WebView2 / Xcode CLT / WebKit2GTK)。
+想参与开发?参见 [docs/DEVELOPMENT.zh.md](./docs/DEVELOPMENT.zh.md)。
## 工作原理
@@ -79,13 +73,18 @@ pnpm tauri build # 构建安装包
http://127.0.0.1:3080/ ← 内嵌界面
```
-Harness 发行版由 [deepseek-harness-pkg](https://github.com/hairyf/deepseek-harness-pkg) 构建发布(发布契约见 [docs/PKG-CONTRACT.md](docs/PKG-CONTRACT.md))。每次启动都会对比最新发行版,本地过期时自动重新下载;GitHub 不可达时保留本地安装。完整架构见 [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)。
+Harness 发行版由 [deepseek-harness-pkg](https://github.com/hairyf/deepseek-harness-pkg) 构建发布。每次启动都会对比最新发行版,本地过期时自动重新下载;GitHub 不可达时保留本地安装。
## 说明
-- **开发预览** — 上游 `dsh` 仍在快速迭代,存在破坏性变更;本项目同步跟随。
-- **macOS Gatekeeper** — 应用未公证,首次启动需在系统设置 → 隐私与安全性 → 仍要打开 放行一次。
-- **安全声明** — `dsh` 具备本地代码执行能力。仅供学习 / 研究 / 测试,请在可信、隔离的环境中使用。
+> [!WARNING]
+> **开发预览** — 上游 `dsh` 仍在快速迭代,存在破坏性变更;本项目同步跟随。
+
+> [!IMPORTANT]
+> **macOS Gatekeeper** — 应用未公证,首次启动需在系统设置 → 隐私与安全性 → 仍要打开 放行一次。
+
+> [!NOTE]
+> **安全声明** — `dsh` 具备本地代码执行能力。仅供学习 / 研究 / 测试,请在可信、隔离的环境中使用。
## 相关项目
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
new file mode 100644
index 00000000..a5b52e2c
--- /dev/null
+++ b/docs/DEVELOPMENT.md
@@ -0,0 +1,38 @@
+# Development
+
+DeepSeek Harness Desktop is a **Tauri 2 + React 18** app: the UI lives in `src/`, the Rust backend in `src-tauri/`.
+
+## Requirements
+
+| Tool | Version |
+| --- | --- |
+| Node.js | 20+ |
+| Rust | 1.77+ |
+| pnpm | 9+ |
+
+Plus the platform toolchain:
+
+- **Windows** — MSVC build tools + WebView2
+- **macOS** — Xcode Command Line Tools
+- **Linux** — WebKit2GTK
+
+## Commands
+
+```bash
+pnpm install # install dependencies
+pnpm dev # frontend dev server (Vite)
+pnpm typecheck # frontend TypeScript check
+pnpm tauri dev # run the desktop app in debug mode
+pnpm tauri build # build installers
+```
+
+Backend checks (from `src-tauri/`):
+
+```bash
+cargo check
+cargo test
+```
+
+## Tips
+
+- Debug mode serves on port **3081**, release builds on **3080** — the two never clash, so you can run an installed copy and a dev build side by side.
\ No newline at end of file
diff --git a/docs/DEVELOPMENT.zh.md b/docs/DEVELOPMENT.zh.md
new file mode 100644
index 00000000..d6dcae4b
--- /dev/null
+++ b/docs/DEVELOPMENT.zh.md
@@ -0,0 +1,38 @@
+# 开发
+
+DeepSeek Harness Desktop 是 **Tauri 2 + React 18** 应用:前端位于 `src/`,Rust 后端位于 `src-tauri/`。
+
+## 环境要求
+
+| 工具 | 版本 |
+| --- | --- |
+| Node.js | 20+ |
+| Rust | 1.77+ |
+| pnpm | 9+ |
+
+以及平台编译工具链:
+
+- **Windows** — MSVC 构建工具 + WebView2
+- **macOS** — Xcode Command Line Tools
+- **Linux** — WebKit2GTK
+
+## 常用命令
+
+```bash
+pnpm install # 安装依赖
+pnpm dev # 前端开发服务器(Vite)
+pnpm typecheck # 前端 TypeScript 检查
+pnpm tauri dev # 调试模式运行桌面端
+pnpm tauri build # 构建安装包
+```
+
+后端检查(在 `src-tauri/` 下执行):
+
+```bash
+cargo check
+cargo test
+```
+
+## 小贴士
+
+- 调试模式使用 **3081** 端口,正式版使用 **3080** —— 两者互不冲突,可以同时运行已安装版本与开发构建。
\ No newline at end of file
diff --git a/src/components/harness-webview.tsx b/src/components/harness-webview.tsx
index 8dfc896b..607d8141 100644
--- a/src/components/harness-webview.tsx
+++ b/src/components/harness-webview.tsx
@@ -56,7 +56,7 @@ export default function HarnessWebview() {
key={iframeKey}
className="block h-full w-full border-none bg-load-bg"
src={iframeSrc}
- allow="clipboard-read; clipboard-write; camera; microphone; geolocation; display-capture; autoplay; encrypted-media; fullscreen"
+ allow="clipboard-read; clipboard-write; camera; microphone; geolocation; display-capture; autoplay; encrypted-media; fullscreen; notifications"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-downloads allow-storage-access-by-user-activation"
onLoad={harness.markIframeLoaded}
onError={harness.markIframeError}