Skip to content

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

feat(内置插件): 描述改由插件 package.json 提供并补齐中文描述 (#792)

Mao Mr438837dd0098
diff --git a/packages/dsh-tauri-archive/package.json b/packages/dsh-tauri-archive/package.json
index 9123abec..038960ac 100644
--- a/packages/dsh-tauri-archive/package.json
+++ b/packages/dsh-tauri-archive/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-archive",
"type": "module",
"version": "1.0.0",
+ "description": "桌面端会话归档插件:把工作区浏览器的「删除工作区」改写为「归档工作区」,并新增带搜索、排序、分组、项目筛选与取消归档的「已归档会话」设置页。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-experimental/package.json b/packages/dsh-tauri-experimental/package.json
index ac01fc6d..b6921e34 100644
--- a/packages/dsh-tauri-experimental/package.json
+++ b/packages/dsh-tauri-experimental/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-experimental",
"type": "module",
"version": "0.3.1",
- "description": "Turn-level change tracking for DeepSeek Harness: per-turn Git snapshots plus an input-dock chip reporting the changed files and +N -M of the turn that is currently running. File restore is delegated to the recommended dsh-rewind plugin.",
+ "description": "DeepSeek Harness 的轮次级变更追踪:每轮自动生成 Git 快照,并在输入坞芯片里展示当前轮次改动的文件与 +N -M;文件恢复交由推荐的 dsh-rewind 插件完成。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-extension/package.json b/packages/dsh-tauri-extension/package.json
index 083e40ff..5f1f4233 100644
--- a/packages/dsh-tauri-extension/package.json
+++ b/packages/dsh-tauri-extension/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-extension",
"type": "module",
"version": "1.0.0",
- "description": "Skills, MCP, and the plugin market in the DSH Tauri extension panel.",
+ "description": "DSH Tauri 扩展面板:技能、MCP 与插件市场。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-model/package.json b/packages/dsh-tauri-model/package.json
index 478f9ae2..6c662a7f 100644
--- a/packages/dsh-tauri-model/package.json
+++ b/packages/dsh-tauri-model/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-model",
"type": "module",
"version": "1.0.0",
+ "description": "DeepSeek Harness 桌面壳的模型选择与参数配置。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-notification/package.json b/packages/dsh-tauri-notification/package.json
index 123d558f..5f6a460b 100644
--- a/packages/dsh-tauri-notification/package.json
+++ b/packages/dsh-tauri-notification/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-notification",
"type": "module",
"version": "1.0.0",
+ "description": "DeepSeek Harness 桌面壳的原生通知:轮次完成、权限审批与提问提醒,带「批准」操作,点击可聚焦到发起会话,并提供通知设置页。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-pet/package.json b/packages/dsh-tauri-pet/package.json
index 01f3a049..29f8659b 100644
--- a/packages/dsh-tauri-pet/package.json
+++ b/packages/dsh-tauri-pet/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-pet",
"type": "module",
"version": "0.1.0",
- "description": "Desktop pet for DeepSeek Harness — toggle, pet selection and a transparent always-on-top window bridged through Tauri invoke.",
+ "description": "DeepSeek Harness 桌面宠:常驻动画宠物按会话活动切换状态并显示气泡,内置 Chat/Codex 宠物库,经 Tauri invoke 桥接透明置顶窗口。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-rightclick/package.json b/packages/dsh-tauri-rightclick/package.json
index f790c75a..3380257c 100644
--- a/packages/dsh-tauri-rightclick/package.json
+++ b/packages/dsh-tauri-rightclick/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-rightclick",
"type": "module",
"version": "1.0.0",
- "description": "Native-style right-click context menus for DeepSeek Harness desktop wrappers (sessions, workspaces, conversation text, links, inputs).",
+ "description": "面向 DeepSeek Harness 桌面外壳的原生风格右键菜单(会话、工作区、会话文本、链接、输入框);已弃用 dsh-session-context-menu 的自研后继。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-scheduler/package.json b/packages/dsh-tauri-scheduler/package.json
index a9935ff2..d195ecc6 100644
--- a/packages/dsh-tauri-scheduler/package.json
+++ b/packages/dsh-tauri-scheduler/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-scheduler",
"type": "module",
"version": "1.0.0",
+ "description": "DeepSeek Harness 桌面面板的定时任务:创建每日/间隔/工作日/每周自动化,按计划在全新会话中运行,并可查看运行历史。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-ssh/package.json b/packages/dsh-tauri-ssh/package.json
index 54e40bb7..21d479c8 100644
--- a/packages/dsh-tauri-ssh/package.json
+++ b/packages/dsh-tauri-ssh/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-ssh",
"type": "module",
"version": "0.6.7",
- "description": "DSH remote-machine host plugin: SSH connection management, TOFU host keys, remote dsh web auto-start, loopback tunnels, and the same-origin /api-ssh route",
+ "description": "DSH 远程主机宿主插件:SSH 连接管理(TOFU 主机密钥、~/.ssh/config 自动发现)、远程 dsh web 自动启动、回环隧道、同源 /api-ssh 路由,以及机器增删改、连接/测试/断开与一键远程安装的设置页。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh",
diff --git a/packages/dsh-tauri-ui-playground/package.json b/packages/dsh-tauri-ui-playground/package.json
index 5d566d68..a0c3e93a 100644
--- a/packages/dsh-tauri-ui-playground/package.json
+++ b/packages/dsh-tauri-ui-playground/package.json
@@ -2,7 +2,7 @@
"name": "dsh-tauri-ui-playground",
"type": "module",
"version": "0.1.0",
- "description": "Dev-only UI component playground panel for the DSH Tauri desktop shell.",
+ "description": "仅供开发使用的 DSH Tauri 桌面壳 UI 组件演练面板。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-ui/package.json b/packages/dsh-tauri-ui/package.json
index bc67624b..8226e7df 100644
--- a/packages/dsh-tauri-ui/package.json
+++ b/packages/dsh-tauri-ui/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-ui",
"type": "module",
"version": "1.0.0",
+ "description": "DeepSeek Harness 桌面壳的 Tauri UI 定制插件:提供设置侧边栏、设置分区与共享 UI 集成点。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri-worktree/package.json b/packages/dsh-tauri-worktree/package.json
index 0f3f304d..09a797aa 100644
--- a/packages/dsh-tauri-worktree/package.json
+++ b/packages/dsh-tauri-worktree/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri-worktree",
"type": "module",
"version": "1.0.0",
+ "description": "桌面壳的按会话隔离 Git Worktree:把会话切换到独立工作树,再把改动收回本地 dsh/ 分支或直接丢弃。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/packages/dsh-tauri/package.json b/packages/dsh-tauri/package.json
index c2bbd248..7f1c0db6 100644
--- a/packages/dsh-tauri/package.json
+++ b/packages/dsh-tauri/package.json
@@ -2,6 +2,7 @@
"name": "dsh-tauri",
"type": "module",
"version": "1.0.0",
+ "description": "DeepSeek Harness 桌面壳的消息桥接插件;同时承载桌面端认证适配:内嵌沙箱 WebView 属跨源环境,无法完成 SameSite=Strict 的浏览器会话 Cookie 交换。",
"author": "Hairyf <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
diff --git a/src-tauri/resources/README.md b/src-tauri/resources/README.md
index d8f623a9..05f0ac20 100644
--- a/src-tauri/resources/README.md
+++ b/src-tauri/resources/README.md
@@ -242,4 +242,11 @@ first-run checklist. On startup the app removes the legacy
`resources/preset-plugins/` directory left by upgrades. In debug builds the
workspace packages under `packages/*` are discovered directly, so a new built-in
plugin only needs its `dsh` field and a `plugins.built-in` entry for release
-builds.
\ No newline at end of file
+builds.
+
+Unlike `plugins.preset`, a built-in entry declares **no `description`**: the text
+shown in the desktop plugin dialog is read from the plugin's own
+`package.json` (`resources/node_modules/<name>/package.json` in release builds,
+the workspace package in debug builds), so it stays in sync with what the package
+publishes instead of being maintained twice. Every built-in plugin package must
+declare a `description`.
\ No newline at end of file
diff --git a/src-tauri/resources/manifest.jsonc b/src-tauri/resources/manifest.jsonc
index 90c164b8..f295705d 100644
--- a/src-tauri/resources/manifest.jsonc
+++ b/src-tauri/resources/manifest.jsonc
@@ -80,77 +80,66 @@
"id": "dsh-tauri",
"spec": "dsh-tauri",
"name": "DSH Tauri",
- "description": "Message bridge for the DeepSeek Harness desktop shell. Also carries the desktop authentication adaptation: the embedded sandboxed WebView is cross-origin, so it cannot complete the SameSite=Strict browser-session cookie exchange.",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri"
},
{
"id": "dsh-tauri-ui",
"spec": "dsh-tauri-ui",
"name": "DSH Tauri UI",
- "description": "Customized Tauri UI plugin for the DeepSeek Harness desktop shell: provides the settings sidebar, settings sections, and shared UI integration points",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-ui"
},
{
"id": "dsh-tauri-worktree",
"spec": "dsh-tauri-worktree",
"name": "DSH Tauri Worktree",
- "description": "Per-session isolated Git Worktree for the desktop shell: switch a conversation to its own isolated worktree, then check changes back into a local dsh/ branch or discard them.",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-worktree"
},
{
"id": "dsh-tauri-extension",
"spec": "dsh-tauri-extension",
"name": "DSH Tauri Extension",
- "description": "Skills, MCP, and the plugin market in the DeepSeek Harness desktop extension panel.",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-extension"
},
{
"id": "dsh-tauri-scheduler",
"spec": "dsh-tauri-scheduler",
"name": "DSH Tauri Scheduler",
- "description": "Scheduled tasks for the DeepSeek Harness desktop panel: create daily/interval/workday/weekly automations, run them in fresh sessions on schedule, and review run history.",
"repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler"
},
{
"id": "dsh-tauri-archive",
"spec": "dsh-tauri-archive",
"name": "DSH Tauri Archive",
- "description": "Session archive for the desktop: rewrites the workspace browser's 'delete workspace' action into 'archive workspace', and adds an 'Archived chats' settings page with search, sort, grouping, project filter and unarchive.",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-archive"
},
{
"id": "dsh-tauri-pet",
"spec": "dsh-tauri-pet",
"name": "DSH Tauri Pet",
- "description": "Persistent animated desktop pets with conversation activity states, bubbles, and Chat/Codex pet libraries.",
"repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet"
},
{
"id": "dsh-tauri-rightclick",
"spec": "dsh-tauri-rightclick",
"name": "DSH Tauri Rightclick Menu",
- "description": "Native-style right-click context menu for the desktop shell: quick actions for sessions, workspaces, conversation text, links, and inputs — in-house successor to the deprecated dsh-session-context-menu.",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-rightclick"
},
{
"id": "dsh-tauri-model",
"spec": "dsh-tauri-model",
"name": "DSH Tauri Model",
- "description": "Model selection and parameter configuration for the DeepSeek Harness desktop shell",
"repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-model"
},
{
"id": "dsh-tauri-ssh",
"spec": "dsh-tauri-ssh",
"name": "DSH Tauri SSH",
- "description": "Remote-machine plugin for the desktop: SSH connection management with TOFU host keys, ~/.ssh/config discovery, remote dsh web auto-start, loopback tunnels, the same-origin /api-ssh route, and the settings page for machine CRUD, connect/test/disconnect and one-click remote install.",
"repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh"
},
{
"id": "dsh-tauri-notification",
"spec": "dsh-tauri-notification",
"name": "DSH Tauri Notification",
- "description": "Native desktop notifications for the DeepSeek Harness desktop shell: turn-completion, permission-approval and question alerts with an Approve action, click-to-focus the originating session, and a notification settings page.",
"repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-notification"
}
],
diff --git a/src-tauri/src/service/plugin/preset.rs b/src-tauri/src/service/plugin/preset.rs
index 90d78d67..c184e8e3 100644
--- a/src-tauri/src/service/plugin/preset.rs
+++ b/src-tauri/src/service/plugin/preset.rs
@@ -347,6 +347,33 @@ pub(crate) fn bundled_plugin_dir(app_handle: &AppHandle, id: &str) -> Option<Pat
legacy.join("package.json").exists().then_some(legacy)
}
+/// 内置插件 `package.json` 中本模块使用的字段。
+#[derive(Deserialize)]
+struct PluginPackageJson {
+ #[serde(default)]
+ description: String,
+}
+
+/// 内置插件描述的唯一真值:插件捆绑目录下 `package.json` 的 `description`。
+///
+/// 描述属于插件自身元数据,与发布到 npm 的那份 `package.json` 同源;清单
+/// `plugins.built-in` 只登记「随包分发哪些插件」,不再重复登记描述,避免同一句话
+/// 在两处各存一份、升级时互相漂移。debug 的 dev 发现与 release 的随包清单最终都落到
+/// 同一个 `package.json`,两种构建因此得到同值。读取失败(目录缺失、JSON 损坏、
+/// 描述为空)返回 `None`,调用方沿用清单登记的空描述——不阻断启动。
+fn bundled_plugin_description(app_handle: &AppHandle, id: &str) -> Option<String> {
+ let dir = bundled_plugin_dir(app_handle, id)?;
+ let raw = std::fs::read_to_string(dir.join("package.json")).ok()?;
+ package_json_description(&raw)
+}
+
+/// [`bundled_plugin_description`] 的纯函数部分:从 `package.json` 原文取描述。
+fn package_json_description(raw: &str) -> Option<String> {
+ let manifest = serde_json::from_str::<PluginPackageJson>(raw).ok()?;
+ let description = manifest.description.trim();
+ (!description.is_empty()).then(|| description.to_string())
+}
+
/// 删除旧版随包资源目录 `resources/preset-plugins` 与 `resources/internal-plugins`,
/// 避免升级安装保留不再使用/已迁至 `resources/node_modules/<name>` 的内置插件副本。
/// 仅处理 Tauri 运行时资源根下的目录,绝不删除源码 checkout;逐个尝试所有布局后
@@ -444,6 +471,15 @@ pub(crate) fn load_presets(app_handle: &AppHandle) -> Vec<PreinstallPluginInfo>
.collect();
#[cfg(debug_assertions)]
let internal = merge_dev_internal_plugins(internal);
+ let internal: Vec<PreinstallPluginInfo> = internal
+ .into_iter()
+ .map(|mut plugin| {
+ if let Some(description) = bundled_plugin_description(app_handle, &plugin.id) {
+ plugin.description = description;
+ }
+ plugin
+ })
+ .collect();
plugins.extend(internal);
plugins
}
@@ -1216,4 +1252,49 @@ mod tests {
assert!(renamed.internal);
std::fs::remove_dir_all(&root).ok();
}
+
+ #[test]
+ fn package_json_description_is_the_description_source() {
+ assert_eq!(
+ package_json_description(r#"{"description":" hello "}"#).as_deref(),
+ Some("hello")
+ );
+ assert_eq!(package_json_description(r#"{"description":" "}"#), None);
+ assert_eq!(package_json_description(r#"{"name":"x"}"#), None);
+ assert_eq!(package_json_description("not json"), None);
+ }
+
+ /// 清单只登记「随包分发哪些插件」:描述回归插件自身的 `package.json`。
+ #[test]
+ fn internal_manifest_entries_carry_no_description() {
+ let declared: Vec<String> = load_internal_for_test()
+ .into_iter()
+ .filter(|plugin| !plugin.description.is_empty())
+ .map(|plugin| plugin.id)
+ .collect();
+ assert!(
+ declared.is_empty(),
+ "内置插件描述的唯一真值是 package.json,清单不该再登记:{declared:?}"
+ );
+ }
+
+ /// release 从捆绑目录读描述,因此每个内置插件的 `package.json` 都必须声明它。
+ #[cfg(debug_assertions)]
+ #[test]
+ fn every_builtin_plugin_package_declares_a_description() {
+ let missing: Vec<String> = load_internal_for_test()
+ .into_iter()
+ .filter(|plugin| {
+ dev_plugin_dir(&plugin.id)
+ .and_then(|dir| std::fs::read_to_string(dir.join("package.json")).ok())
+ .and_then(|raw| package_json_description(&raw))
+ .is_none()
+ })
+ .map(|plugin| plugin.id)
+ .collect();
+ assert!(
+ missing.is_empty(),
+ "内置插件必须在 package.json 声明 description:{missing:?}"
+ );
+ }
}