Skip to content

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

refactor(dsh-tauri): absorb the connection package into the core plugin

hairyfead928658512
diff --git a/README.en.md b/README.en.md
index 47046a1c..6256285e 100644
--- a/README.en.md
+++ b/README.en.md
@@ -65,8 +65,7 @@ Plugins offered in the first-run wizard; select what you need and install on dem
First-party plugins bundled with the installer:
-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provides a communication channel with the Tauri 2 shell
-- [DSH Tauri Connection](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-connection) — lets the cross-origin sandboxed WebView reach the loopback Host by overriding the desktop carrier's two authentication gates on the `connection` service
+- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provides a communication channel with the Tauri 2 shell, and lets the cross-origin sandboxed WebView reach the loopback Host by overriding the desktop carrier's two authentication gates on the `connection` service
- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — provides a custom settings sidebar for the Tauri 2 shell
- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — creates an isolated Git worktree per session, with checkout to a local branch or archive-and-abandon flows
- [DSH Tauri Panel Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-panel-extension) — Skills and MCP management with skill repository import, plus an embedded plugin market panel
diff --git a/README.es.md b/README.es.md
index bd728295..38a94578 100644
--- a/README.es.md
+++ b/README.es.md
@@ -64,8 +64,7 @@ Plugins ofrecidos en el asistente del primer arranque; marcá los que necesites
Plugins propios incluidos con el instalador:
-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provee el canal de comunicación con el shell Tauri 2
-- [DSH Tauri Connection](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-connection) — permite que el WebView integrado en un sandbox de origen cruzado alcance el Host de loopback sobrescribiendo las dos puertas de autenticación del carrier de escritorio en el servicio `connection`
+- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provee el canal de comunicación con el shell Tauri 2, y permite que el WebView integrado en un sandbox de origen cruzado alcance el Host de loopback sobrescribiendo las dos puertas de autenticación del carrier de escritorio en el servicio `connection`
- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — provee una barra lateral de ajustes personalizada para el shell Tauri 2
- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — crea un Git worktree aislado por sesión, con checkout a rama local o flujos de archivar-y-abandonar
- [DSH Tauri Panel Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-panel-extension) — gestión de Skills y MCP con importación de repositorios de skills, más un panel del mercado de plugins integrado
diff --git a/README.md b/README.md
index 9fd7c317..ae6550e1 100644
--- a/README.md
+++ b/README.md
@@ -60,8 +60,7 @@
随安装包资源内置的第一方插件:
-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — 提供与 Tauri 2 外壳的通信通道
-- [DSH Tauri Connection](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-connection) — 让跨源沙箱内嵌 WebView 用上回环宿主:在 `connection` 服务上覆写桌面载体的两道鉴权闸门
+- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — 提供与 Tauri 2 外壳的通信通道,并让跨源沙箱内嵌 WebView 用上回环宿主(在 `connection` 服务上覆写桌面载体的两道鉴权闸门)
- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — 为 Tauri 2 外壳提供自定义设置侧边栏
- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — 为每个会话创建隔离的 Git Worktree,并支持检出到本地分支或归档放弃
- [DSH Tauri Panel Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-panel-extension) — Skills/MCP 管理与导入技能仓库,内嵌插件市场面板
diff --git a/docs/specs/upstram.sync.md b/docs/specs/upstram.sync.md
index 093b5a50..07588f0e 100644
--- a/docs/specs/upstram.sync.md
+++ b/docs/specs/upstram.sync.md
@@ -165,7 +165,7 @@ git diff --check
### 5.2 已知配置与异常记录
* **子模块绑定**:`source/*` 下 8 个参考仓库均已引入 `.gitmodules`。其中 `source/dsh-market` 是 2026-09 新增的**临时**参考仓库:上游 `render()` API 只存在于 main 分支,尚未发版,故先以源码子模块承载供 GitHub 源安装测试;上游发版后应改为 npm 依赖并移除该子模块。当前 gitlink 配置已暂存,待提交。
-* **内核参考仓库**:`source/deepseek-harness`(`deepseek-ai/deepseek-harness`,基线 `ddefc45fbc` = `dsh 0.1.6-alpha.2`)是 2026-09 新增的**只读对照基线**,为 Issue #496(非 Electron 壳可复用的无端口嵌入式宿主)提供契约比对依据。按 §1.2,DSH 内核**排除在本同步流程之外**:此子模块不参与择优采纳,只用于核对宿主契约与登记核心版本基线。桌面端载体鉴权适配的实现见 `packages/dsh-tauri-connection/src/host/service/gate.ts`(`DSH_TAURI_EMBEDDED=1` 时覆写两道鉴权闸门)。
+* **内核参考仓库**:`source/deepseek-harness`(`deepseek-ai/deepseek-harness`,基线 `ddefc45fbc` = `dsh 0.1.6-alpha.2`)是 2026-09 新增的**只读对照基线**,为 Issue #496(非 Electron 壳可复用的无端口嵌入式宿主)提供契约比对依据。按 §1.2,DSH 内核**排除在本同步流程之外**:此子模块不参与择优采纳,只用于核对宿主契约与登记核心版本基线。桌面端载体鉴权适配的实现见 `packages/dsh-tauri/src/host/service/gate.ts`(`DSH_TAURI_EMBEDDED=1` 时覆写两道鉴权闸门)。
* **路径纠偏记录**:
* `source/dsh-automation` 已纠正 gitlink 配置,子模块 HEAD 指向 `f1bc91a`。
* `source/dsh-automation` gitlink 为 `f1bc91a`,但工作区 checkout 停在 `e75499e`(`git submodule status` 前缀 `+`,
diff --git a/packages/dsh-tauri-bundle/package.json b/packages/dsh-tauri-bundle/package.json
index a5cb167a..537194c1 100644
--- a/packages/dsh-tauri-bundle/package.json
+++ b/packages/dsh-tauri-bundle/package.json
@@ -4,7 +4,6 @@
"private": true,
"dependencies": {
"dsh-tauri": "workspace:*",
- "dsh-tauri-connection": "workspace:*",
"dsh-tauri-model-config": "workspace:*",
"dsh-tauri-panel-extension": "workspace:*",
"dsh-tauri-panel-scheduler": "workspace:*",
diff --git a/packages/dsh-tauri-connection/cordis.patch.yml b/packages/dsh-tauri-connection/cordis.patch.yml
deleted file mode 100644
index 0bf26a74..00000000
--- a/packages/dsh-tauri-connection/cordis.patch.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-- insert:
- - id: dsh-tauri-connection
- name: dsh-tauri-connection
diff --git a/packages/dsh-tauri-connection/package.json b/packages/dsh-tauri-connection/package.json
deleted file mode 100644
index e59e5317..00000000
--- a/packages/dsh-tauri-connection/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "name": "dsh-tauri-connection",
- "type": "module",
- "version": "1.0.0",
- "author": "Hairyf <[email protected]>",
- "license": "MIT",
- "homepage": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/dsh-tauri-desk/dsh-tauri-plugins.git"
- },
- "bugs": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/issues",
- "keywords": [
- "dsh",
- "plugin",
- "dsh-plugin",
- "tauri",
- "deepseek-harness"
- ],
- "sideEffects": false,
- "exports": {
- ".": "./dist/index.js",
- "./package.json": "./package.json"
- },
- "main": "./dist/index.js",
- "module": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "files": [
- "cordis.patch.yml",
- "dist"
- ],
- "dsh": {
- "bundle": {
- "patch": "./cordis.patch.yml"
- }
- },
- "scripts": {
- "build": "tsdown",
- "dev": "tsdown --watch",
- "prepublishOnly": "nr build",
- "start": "tsx src/index.ts",
- "typecheck": "tsc"
- },
- "dependencies": {
- "dsh-tauri": "workspace:*"
- },
- "devDependencies": {
- "dsh-tauri-tsdown": "workspace:*",
- "tsdown": "catalog:cli"
- }
-}
diff --git a/packages/dsh-tauri-connection/src/host/config/runtime.ts b/packages/dsh-tauri-connection/src/host/config/runtime.ts
deleted file mode 100644
index 225d7361..00000000
--- a/packages/dsh-tauri-connection/src/host/config/runtime.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { ConnectionHost } from '../types'
-import { defineHostRuntime } from 'dsh-tauri'
-
-export const { setCurrentHostInstance, getCurrentHostInstance } = defineHostRuntime<ConnectionHost>()
-
-export function clearHostRuntime(): void {
- setCurrentHostInstance(undefined)
-}
diff --git a/packages/dsh-tauri-connection/src/host/types/index.ts b/packages/dsh-tauri-connection/src/host/types/index.ts
deleted file mode 100644
index 80daa7eb..00000000
--- a/packages/dsh-tauri-connection/src/host/types/index.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import type { ConnectionGate } from 'dsh-tauri'
-import type { IncomingMessage, ServerResponse } from 'node:http'
-
-/** 宿主日志出口(与 dsh-tauri 其它插件一致的可选注入面)。 */
-export interface ConnectionLogger {
- warn?: (message: string, error?: unknown) => void
-}
-
-/**
- * 桌面载体鉴权适配要覆写的两道闸门。
- *
- * `requestRejection` 取自 dsh-tauri 的 `ConnectionGate`;`authorizeIndex` 只被
- * frontend-static 以 `() => ctx.connection.authorizeIndex(req, res)` 调用,返回值即
- * 「index 是否继续由调用方写出」,因此按调用点在这里补齐。
- */
-export interface ConnectionHost {
- connection: ConnectionGate & {
- authorizeIndex: (request: IncomingMessage, response: ServerResponse) => boolean
- }
- logger?: ConnectionLogger
-}
diff --git a/packages/dsh-tauri-connection/src/index.ts b/packages/dsh-tauri-connection/src/index.ts
deleted file mode 100644
index 87de3ca0..00000000
--- a/packages/dsh-tauri-connection/src/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { PLUGIN_ID } from './shared/constants'
-
-export const name = PLUGIN_ID
-
-export const inject = ['connection']
-
-export { apply } from './host/apply'
diff --git a/packages/dsh-tauri-connection/src/shared/constants.ts b/packages/dsh-tauri-connection/src/shared/constants.ts
deleted file mode 100644
index a36783c3..00000000
--- a/packages/dsh-tauri-connection/src/shared/constants.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/** shared/constants.ts — 跨 host/client 的稳定协议常量(桌面载体鉴权适配)。 */
-
-/** 插件名(诊断元数据 / registrant)。 */
-export const PLUGIN_ID = 'dsh-tauri-connection'
diff --git a/packages/dsh-tauri-connection/tsdown.config.ts b/packages/dsh-tauri-connection/tsdown.config.ts
deleted file mode 100644
index fdf2b993..00000000
--- a/packages/dsh-tauri-connection/tsdown.config.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { defineDshConfig } from '../dsh-tauri-tsdown/src/index.ts'
-
-export default defineDshConfig({ client: false })
diff --git a/packages/dsh-tauri/src/client/constants/index.ts b/packages/dsh-tauri/src/client/constants/index.ts
index 63dfddf8..90dc8eae 100644
--- a/packages/dsh-tauri/src/client/constants/index.ts
+++ b/packages/dsh-tauri/src/client/constants/index.ts
@@ -1,13 +1,4 @@
-/**
- * client/constants/index.ts — 客户端常量模块(同侧多消费方共享的字面量)。
- *
- * 归属规则见 `docs/specs/plugin.baisc.md` 的《通用协议:常量归属》:只被一个文件使用的
- * 常量定义在消费方文件里(模块级 const、不导出)——协议字面量、effect 标签、样式 id
- * 都不因“位置特殊”豁免。本文件只放**同侧两个及以上**文件消费的常量。
- */
-
-/** 插件 id(npm 包名):客户端入口的自报名 + 插件错误上报的注册表主键。 */
-export const PLUGIN_ID = 'dsh-tauri'
+export { PLUGIN_ID } from '../../shared/constants'
/**
* 官方「新建会话」按钮:适配层的 DOM 退级目标,同时是侧边栏 UI 微调的居中目标。
diff --git a/packages/dsh-tauri-connection/src/host/apply.ts b/packages/dsh-tauri/src/host/apply.ts
similarity index 50%
rename from packages/dsh-tauri-connection/src/host/apply.ts
rename to packages/dsh-tauri/src/host/apply.ts
index e69129dc..e5706141 100644
--- a/packages/dsh-tauri-connection/src/host/apply.ts
+++ b/packages/dsh-tauri/src/host/apply.ts
@@ -1,12 +1,15 @@
-import type { HostContext } from 'dsh-tauri'
-import type { ConnectionHost } from './types'
+import type { ConnectionHost, HostContext } from './types'
import { PLUGIN_ID } from '../shared/constants'
import { clearHostRuntime, setCurrentHostInstance } from './config/runtime'
import { gate } from './service/gate'
+const GATE_EFFECT = `${PLUGIN_ID}: gate`
+
+const HOST_RUNTIME_EFFECT = `${PLUGIN_ID}: host runtime`
+
export function apply(ctx: HostContext): void {
setCurrentHostInstance(ctx as unknown as ConnectionHost)
- ctx.effect(() => gate.attach(), `${PLUGIN_ID}: gate`)
- ctx.effect(() => () => clearHostRuntime(), `${PLUGIN_ID}: host runtime`)
+ ctx.effect(() => gate.attach(), GATE_EFFECT)
+ ctx.effect(() => () => clearHostRuntime(), HOST_RUNTIME_EFFECT)
}
diff --git a/packages/dsh-tauri/src/host/config/runtime.ts b/packages/dsh-tauri/src/host/config/runtime.ts
index c72d3b43..9b24503a 100644
--- a/packages/dsh-tauri/src/host/config/runtime.ts
+++ b/packages/dsh-tauri/src/host/config/runtime.ts
@@ -1,4 +1,4 @@
-import type { HostContext } from '../types'
+import type { ConnectionHost, HostContext } from '../types'
export interface HostRuntime<C = HostContext> {
setCurrentHostInstance: (ctx: C | undefined) => void
@@ -20,3 +20,10 @@ export function defineHostRuntime<C = HostContext>(): HostRuntime<C> {
},
}
}
+
+/** dsh-tauri 自身的宿主绑定槽位(载体鉴权适配读 `connection`)。 */
+export const { setCurrentHostInstance, getCurrentHostInstance } = defineHostRuntime<ConnectionHost>()
+
+export function clearHostRuntime(): void {
+ setCurrentHostInstance(undefined)
+}
diff --git a/packages/dsh-tauri-connection/src/host/service/gate.test.ts b/packages/dsh-tauri/src/host/service/gate.test.ts
similarity index 100%
rename from packages/dsh-tauri-connection/src/host/service/gate.test.ts
rename to packages/dsh-tauri/src/host/service/gate.test.ts
diff --git a/packages/dsh-tauri-connection/src/host/service/gate.ts b/packages/dsh-tauri/src/host/service/gate.ts
similarity index 97%
rename from packages/dsh-tauri-connection/src/host/service/gate.ts
rename to packages/dsh-tauri/src/host/service/gate.ts
index c27d7999..2057bc16 100644
--- a/packages/dsh-tauri-connection/src/host/service/gate.ts
+++ b/packages/dsh-tauri/src/host/service/gate.ts
@@ -1,8 +1,8 @@
import type { IncomingMessage } from 'node:http'
import process from 'node:process'
-import { defineService } from 'dsh-tauri'
import { PLUGIN_ID } from '../../shared/constants'
import { getCurrentHostInstance } from '../config/runtime'
+import { defineService } from './index'
/**
* 桌面壳在 spawn 时注入的载体标记;与 `src-tauri/src/service/workflow/launch.rs` 的
diff --git a/packages/dsh-tauri/src/host/types/index.ts b/packages/dsh-tauri/src/host/types/index.ts
index a6e65e53..f168c9bf 100644
--- a/packages/dsh-tauri/src/host/types/index.ts
+++ b/packages/dsh-tauri/src/host/types/index.ts
@@ -1 +1,20 @@
+import type { IncomingMessage, ServerResponse } from 'node:http'
+import type { ConnectionGate } from '../routes/index.type'
+
export * from './harness'
+
+/**
+ * 桌面载体鉴权适配要覆写的两道闸门。
+ *
+ * `requestRejection` 取自 dsh-tauri 的 `ConnectionGate`;`authorizeIndex` 只被
+ * frontend-static 以 `() => ctx.connection.authorizeIndex(req, res)` 调用,返回值即
+ * 「index 是否继续由调用方写出」,因此按调用点在这里补齐。
+ */
+export interface ConnectionHost {
+ connection: ConnectionGate & {
+ authorizeIndex: (request: IncomingMessage, response: ServerResponse) => boolean
+ }
+ logger?: {
+ warn?: (message: string, error?: unknown) => void
+ }
+}
diff --git a/packages/dsh-tauri/src/index.ts b/packages/dsh-tauri/src/index.ts
index fa2f8e8c..06def1aa 100644
--- a/packages/dsh-tauri/src/index.ts
+++ b/packages/dsh-tauri/src/index.ts
@@ -1,8 +1,18 @@
+import { PLUGIN_ID } from './shared/constants'
+
+export const name = PLUGIN_ID
+
+/** 宿主服务依赖:`connection`(注入载体标记时覆写它的两道桌面鉴权闸门)。 */
+export const inject = ['connection']
+
+export { apply } from './host/apply'
export * from './host/config/constants'
-export * from './host/config/runtime'
+export { defineHostRuntime } from './host/config/runtime'
+export type { HostRuntime } from './host/config/runtime'
export * from './host/modules/h3'
export * from './host/routes'
+
export type {
HttpMethod,
RouteDefinition,
@@ -14,7 +24,6 @@ export type {
RoutesRegistration,
RoutesSetup,
} from './host/routes/index.type'
-
export * from './host/service'
export * from './host/types/harness'
export * from './host/utils/atomic'
@@ -22,5 +31,3 @@ export * from './host/utils/driver'
export * from './host/utils/open'
export * from './host/utils/spawn'
export * from './host/utils/url'
-
-export function apply(): void {}
diff --git a/packages/dsh-tauri/src/shared/constants.ts b/packages/dsh-tauri/src/shared/constants.ts
new file mode 100644
index 00000000..3d8d6cb1
--- /dev/null
+++ b/packages/dsh-tauri/src/shared/constants.ts
@@ -0,0 +1 @@
+export const PLUGIN_ID = 'dsh-tauri'
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5f66f231..8843fa92 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -622,9 +622,6 @@ importers:
dsh-tauri:
specifier: workspace:*
version: link:../dsh-tauri
- dsh-tauri-connection:
- specifier: workspace:*
- version: link:../dsh-tauri-connection
dsh-tauri-model-config:
specifier: workspace:*
version: link:../dsh-tauri-model-config
@@ -653,19 +650,6 @@ importers:
specifier: workspace:*
version: link:../dsh-tauri-worktree
- packages/dsh-tauri-connection:
- dependencies:
- dsh-tauri:
- specifier: workspace:*
- version: link:../dsh-tauri
- devDependencies:
- dsh-tauri-tsdown:
- specifier: workspace:*
- version: link:../dsh-tauri-tsdown
- tsdown:
- specifier: catalog:cli
-
packages/dsh-tauri-model-config:
dependencies:
dsh-tauri:
diff --git a/src-tauri/resources/deprecated-plugins.json b/src-tauri/resources/deprecated-plugins.json
index 0d815d08..67bcd15b 100644
--- a/src-tauri/resources/deprecated-plugins.json
+++ b/src-tauri/resources/deprecated-plugins.json
@@ -2,5 +2,6 @@
"dsh-win-terminal-inspector",
"dsh-session-context-menu",
"dsh-notification",
- "dsh-tauri-panel"
+ "dsh-tauri-panel",
+ "dsh-tauri-connection"
]
diff --git a/src-tauri/resources/internal-plugins.json b/src-tauri/resources/internal-plugins.json
index 8e7cd21f..e2603b0e 100644
--- a/src-tauri/resources/internal-plugins.json
+++ b/src-tauri/resources/internal-plugins.json
@@ -3,16 +3,9 @@
"id": "dsh-tauri",
"spec": "dsh-tauri",
"name": "DSH Tauri",
- "description": "Message bridge for the DeepSeek Harness desktop shell",
+ "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.",
"repoUrl": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri"
},
- {
- "id": "dsh-tauri-connection",
- "spec": "dsh-tauri-connection",
- "name": "DSH Tauri Connection",
- "description": "Desktop carrier authentication adaptation for the DeepSeek Harness shell: the embedded sandboxed WebView is cross-origin, so it cannot complete the SameSite=Strict browser-session cookie exchange.",
- "repoUrl": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-connection"
- },
{
"id": "dsh-tauri-turnrewind",
"spec": "dsh-tauri-turnrewind",
diff --git a/src-tauri/src/service/plugin/install/spec.rs b/src-tauri/src/service/plugin/install/spec.rs
index e60b28dd..22f0fd2a 100644
--- a/src-tauri/src/service/plugin/install/spec.rs
+++ b/src-tauri/src/service/plugin/install/spec.rs
@@ -334,7 +334,7 @@ mod tests {
fn spec_argument_keeps_space_spec_bare_for_argv_cores() {
// issue #647:0.1.6-alpha.2 起 spec 作为单个 argv 直达 pnpm,Windows 上的
// cmd 转义由 CLI 自己完成,预加引号会让 pnpm 收到带字面引号的 spec
- let spec = "link:D:/Deepseek Harness Desktop/resources/node_modules/dsh-tauri-connection";
+ let spec = "link:D:/Deepseek Harness Desktop/resources/node_modules/dsh-tauri";
assert_eq!(spec_argument(spec, Some("0.1.6-alpha.2")), spec);
assert_eq!(spec_argument(spec, None), spec);
assert_eq!(spec_argument(spec, Some("not-a-version")), spec);
diff --git a/src-tauri/src/service/plugin/preset.rs b/src-tauri/src/service/plugin/preset.rs
index e86262cd..0ab8e079 100644
--- a/src-tauri/src/service/plugin/preset.rs
+++ b/src-tauri/src/service/plugin/preset.rs
@@ -681,6 +681,19 @@ mod tests {
assert!(ids.contains("dsh-tauri-panel"));
}
+ #[test]
+ fn deprecated_manifest_lists_absorbed_connection() {
+ // dsh-tauri-connection 的载体鉴权适配已并入 dsh-tauri 核心插件,并从
+ // internal-plugins.json 移除了条目:升级用户的 link: 依赖与 bundle 引用
+ // 只能靠弃用清单兜底卸载(残留 bundle 会导致无法进入软件页面)。
+ let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+ .join("resources")
+ .join(DEPRECATED_PLUGINS_FILE);
+ let raw = std::fs::read_to_string(path).expect("deprecated manifest should exist");
+ let ids = parse_deprecated_ids(&raw).expect("deprecated manifest should be valid JSON");
+ assert!(ids.contains("dsh-tauri-connection"));
+ }
+
#[test]
fn manifest_source_overrides_internal_field() {
let raw =
diff --git a/src-tauri/src/service/workflow/launch.rs b/src-tauri/src/service/workflow/launch.rs
index 5ef20c76..b5c0d81a 100644
--- a/src-tauri/src/service/workflow/launch.rs
+++ b/src-tauri/src/service/workflow/launch.rs
@@ -589,7 +589,7 @@ pub async fn launch(app_handle: tauri::AppHandle) -> Result<(), String> {
}
// 内嵌 WebView 是 `tauri.localhost` 下的跨源沙箱 iframe,`SameSite=Strict` 的
- // browser-session Cookie 不会被携带。载体标记交给 dsh-tauri-connection 插件:
+ // browser-session Cookie 不会被携带。载体标记交给 dsh-tauri 插件(载体鉴权适配):
// 只有该标记在场时它才覆写 connection 的鉴权闸门,因此同一 profile 下独立运行
// 的 `dsh web` 不受影响(取代原先对核心 JS 打的 `--skip-auth` 磁盘补丁)。
envs.insert("DSH_TAURI_EMBEDDED".to_string(), "1".to_string());
diff --git a/src-tauri/src/service/workflow/win_spawn.rs b/src-tauri/src/service/workflow/win_spawn.rs
index ab53f1e4..f39fa529 100644
--- a/src-tauri/src/service/workflow/win_spawn.rs
+++ b/src-tauri/src/service/workflow/win_spawn.rs
@@ -405,7 +405,7 @@ mod tests {
#[test]
fn spaced_argument_round_trips_to_child_argv() {
let node = find_node_on_path().expect("node.exe not found for the test");
- let spec = "link:D:/Deepseek Harness Desktop/resources/node_modules/dsh-tauri-connection";
+ let spec = "link:D:/Deepseek Harness Desktop/resources/node_modules/dsh-tauri";
let args = vec![
OsString::from("-e"),
OsString::from("process.stdout.write(JSON.stringify(process.argv.slice(1)))"),
diff --git a/test/e2e/plugins/dsh-tauri-connection.e2e.ts b/test/e2e/plugins/dsh-tauri.e2e.ts
similarity index 96%
rename from test/e2e/plugins/dsh-tauri-connection.e2e.ts
rename to test/e2e/plugins/dsh-tauri.e2e.ts
index 4b24bdd6..13d4481e 100644
--- a/test/e2e/plugins/dsh-tauri-connection.e2e.ts
+++ b/test/e2e/plugins/dsh-tauri.e2e.ts
@@ -1,7 +1,7 @@
/**
- * 批次 11 · `dsh-tauri-connection` 的桌面载体鉴权适配(契约见 `docs/specs/plugin.test.md`)。
+ * 批次 11 · `dsh-tauri` 的桌面载体鉴权适配(契约见 `docs/specs/plugin.test.md`)。
*
- * 本插件是全仓唯一的网络安全边界型插件:当且仅当子进程带 `DSH_TAURI_EMBEDDED=1` 时,它在
+ * 该适配是全仓唯一的网络安全边界:当且仅当子进程带 `DSH_TAURI_EMBEDDED=1` 时,它在
* `connection` 服务上把 401 降级为放行、把索引放行;其余取值下 `attach()` 返回 noop,鉴权完全不变。
*
* 三条用例都必须控制该环境变量,因此各自自带 scratch 宿主。这里不用 `support/dsh.ts` 的
@@ -94,8 +94,8 @@ async function waitForReady(child: ChildProcess, logPath: string): Promise<strin
async function startGateHost(): Promise<GateHost> {
const profile = await scaffoldDshProfile({
- plugin: 'dsh-tauri-connection',
- also: ['dsh-tauri', 'dsh-tauri-pet'],
+ plugin: 'dsh-tauri',
+ also: ['dsh-tauri-pet'],
})
const logPath = join(profile.home, 'dsh-web.log')
const logStream: WriteStream = createWriteStream(logPath, { flags: 'a' })