Skip to content

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

feat(bundle): ship dsh-tauri-turnrewind in the desktop build out of the box

yingtianlan7cdd9bb6f5d8
diff --git a/packages/dsh-tauri-bundle/package.json b/packages/dsh-tauri-bundle/package.json
index 756cdbc0..3d553020 100644
--- a/packages/dsh-tauri-bundle/package.json
+++ b/packages/dsh-tauri-bundle/package.json
@@ -10,6 +10,7 @@
"dsh-tauri-panel-scheduler": "workspace:*",
"dsh-tauri-rightclick": "workspace:*",
"dsh-tauri-session": "workspace:*",
+ "dsh-tauri-turnrewind": "workspace:*",
"dsh-tauri-ui": "workspace:*",
"dsh-tauri-worktree": "workspace:*"
}
diff --git a/packages/dsh-tauri-turnrewind-ts/README.md b/packages/dsh-tauri-turnrewind-ts/README.md
index e5e2b37a..658dc90d 100644
--- a/packages/dsh-tauri-turnrewind-ts/README.md
+++ b/packages/dsh-tauri-turnrewind-ts/README.md
@@ -2,7 +2,7 @@
本地开发中的 DSH turn 回滚插件(**TypeScript 重写版**,位于 `packages/`,遵循 workspace 插件规范;旧 JS 版已移除)。
-> 当前 `cordis.patch.yml` 已为本地 debug profile 的实验启用而挂载插件。它仍是原型:恢复路径直接使用 Node/Git,尚未接入受控的宿主 sandbox/Tauri bridge;仅可在可丢弃的测试工作区中启用,不能作为生产功能使用。
+> **分发(2026-09-06 起)**:插件已随桌面构建打包——列入 `dsh-tauri-bundle` 依赖(构建期部署进 `src-tauri/resources/node_modules/`)与 `src-tauri/resources/internal-plugins.json` 预装清单,**下载桌面版即装即用,无需任何手动配置**。定位仍是实验功能:恢复路径直接使用 Node/Git,尚未接入受控的宿主 sandbox/Tauri bridge,请在可丢弃的工作区先行试用。
>
> **Git 目录模式(当前形态)**:工作区**必须**位于 Git worktree(OpenCode 风格)。非 Git 目录显式禁用——turn 记为 `skipped`(`TURNREWIND_GIT_REQUIRED`),`/undo` 说明原因,不再为普通目录建快照。ignore 规则(`.gitignore` / `.git/info/exclude` / global excludes / `.gitattributes`)委托给源仓库;私有 snapshot repo 通过 alternates 借用源对象。设计与进度见 `docs/TURN_REWIND_GIT_DIR_PROGRESS.md`。
@@ -346,6 +346,8 @@ pnpm --filter dsh-tauri-turnrewind test
插件通过 `pnpm add` / `dsh plugin add` 安装(debug 桌面端启动时会自动以 `link:` 方式安装全部内部插件)。修改 Host 代码后需要重新 `pnpm --filter dsh-tauri-turnrewind build` 并重启 DSH debug Host 进程;修改 Client 代码后同理(client bundle 在 Host 启动时发现)。
+**发布分发**:仓库根的 `pnpm build`(prebuild → `build:plugins`)会把本插件的 `dist/` 部署进 `src-tauri/resources/node_modules/`,安装包启动时按 `internal-plugins.json` 自动预装并激活——终端用户无需 `pnpm`/构建/任何配置。
+
## 测试
运行插件 lint 与测试:
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 97a3fc5e..8f64b43d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -523,6 +523,9 @@ importers:
dsh-tauri-session:
specifier: workspace:*
version: link:../dsh-tauri-session
+ dsh-tauri-turnrewind:
+ specifier: workspace:*
+ version: link:../dsh-tauri-turnrewind-ts
dsh-tauri-ui:
specifier: workspace:*
version: link:../dsh-tauri-ui
diff --git a/src-tauri/resources/internal-plugins.json b/src-tauri/resources/internal-plugins.json
index 21f79d1c..98b9f4c7 100644
--- a/src-tauri/resources/internal-plugins.json
+++ b/src-tauri/resources/internal-plugins.json
@@ -6,6 +6,13 @@
"description": "Message bridge for the DeepSeek Harness desktop shell",
"repoUrl": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri"
},
+ {
+ "id": "dsh-tauri-turnrewind",
+ "spec": "dsh-tauri-turnrewind",
+ "name": "DSH Turn Rewind",
+ "description": "Turn-level workspace undo for the desktop shell: private Git snapshots per turn, two-stage /undo with conflict protection, in-app recovery panel — the desktop build bundles and activates it out of the box.",
+ "repoUrl": "https://github.com/yingtianlan/deepseek-harness-desktop-undo/tree/dsh/turnrewind-ts/packages/dsh-tauri-turnrewind-ts"
+ },
{
"id": "dsh-tauri-ui",
"spec": "dsh-tauri-ui",