dsh-vscode-workbench 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +12 -5
- package/README.md +12 -5
- package/package.json +28 -26
package/README.en.md
CHANGED
|
@@ -64,7 +64,11 @@ The workbench mounts through the official `sidebar.footer.action` and `shell.ove
|
|
|
64
64
|
|
|
65
65
|
## Installation
|
|
66
66
|
|
|
67
|
-
Plugin 0.1.
|
|
67
|
+
Plugin 0.1.10 targets DeepSeek Harness `0.2.1-rc.4` (Cordis `4.0.5`). Update Harness before installing; see the table below for older plugin versions.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.4
|
|
71
|
+
```
|
|
68
72
|
|
|
69
73
|
```bash
|
|
70
74
|
dsh plugin --profile web add dsh-vscode-workbench
|
|
@@ -107,7 +111,7 @@ If the install ends with only this line, Harness refused the plugin before insta
|
|
|
107
111
|
dsh: plugin command failed; diagnostics: ~/.dsh/profiles/<profile>/.plugin-manager/logs/operation-*/pnpm.log
|
|
108
112
|
```
|
|
109
113
|
|
|
110
|
-
Harness runs a compatibility preflight first:
|
|
114
|
+
Harness runs a compatibility preflight first: `engines.dsh` takes precedence; when absent, every `@deepseek-ai/dsh*` peerDependency must match the running Harness version. Prereleases participate in matching. A mismatch aborts installation. The diagnostic log holds the actual verdict:
|
|
111
115
|
|
|
112
116
|
```
|
|
113
117
|
dsh: installation rejected: Plugin dsh-vscode-workbench@<plugin version> is incompatible with dsh <Harness version>: peerDependencies {...}
|
|
@@ -118,19 +122,22 @@ The plugin marketplace files this under the generic `plugin-side install failure
|
|
|
118
122
|
|
|
119
123
|
| Plugin version | Required Harness |
|
|
120
124
|
| --- | --- |
|
|
121
|
-
| 0.1.
|
|
125
|
+
| 0.1.10 | `0.2.1-rc.4` (Cordis `4.0.5`, current validation baseline) |
|
|
126
|
+
| 0.1.9 | `0.2.1-alpha.3` (Cordis `4.0.5-alpha.2`, previous validation baseline) |
|
|
122
127
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
123
128
|
|
|
124
|
-
No plugin version runs on Harness `0.2.0-rc.2`: 0.1.9 needs the `workingDirectory` service that first shipped in Harness `0.2.1-alpha.2`, while 0.1.8 only targets `0.1.1-rc.2`. Update Harness to `0.2.1-
|
|
129
|
+
No plugin version runs on Harness `0.2.0-rc.2`: 0.1.9 needs the `workingDirectory` service that first shipped in Harness `0.2.1-alpha.2`, while 0.1.8 only targets `0.1.1-rc.2`. Update Harness to `0.2.1-rc.4` before installing plugin 0.1.10, for example with a global npm install:
|
|
125
130
|
|
|
126
131
|
```bash
|
|
127
|
-
npm i -g @deepseek-ai/dsh@0.2.1-
|
|
132
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.4
|
|
128
133
|
```
|
|
129
134
|
|
|
130
135
|
`dsh plugin allow-version` only bypasses the version gate; it does not supply the missing host services, so the plugin still fails to load on `0.2.0-rc.2`. Update Harness instead.
|
|
131
136
|
|
|
132
137
|
### Harness architecture integration
|
|
133
138
|
|
|
139
|
+
Version 0.1.10 updates DSH development dependencies and peers to `0.2.1-rc.4`, updates Cordis to `4.0.5`, and declares `engines.dsh` explicitly. The official `evaluatePluginCompatibility()` validates the installation gate without version exemptions.
|
|
140
|
+
|
|
134
141
|
- Client contributions use `ui-renderer` slots and select the current session through `ui-session`'s `mainView` retain count, replacing the removed `dsh-client-runtime`.
|
|
135
142
|
- Files, search, Git and new terminals use `workingDirectory.get(session)`. Workspace selection follows the working-directory projection; missing sessions return 404.
|
|
136
143
|
- HTTP and WebSocket routes share Harness authentication and Host/Origin checks through `connection.requestRejection()`. Terminals also require loopback access.
|
package/README.md
CHANGED
|
@@ -64,7 +64,11 @@
|
|
|
64
64
|
|
|
65
65
|
## 安装
|
|
66
66
|
|
|
67
|
-
插件 0.1.
|
|
67
|
+
插件 0.1.10 适配 DeepSeek Harness `0.2.1-rc.4`(Cordis `4.0.5`)。请先更新 Harness,再安装插件;旧版对应关系见下表。
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.4
|
|
71
|
+
```
|
|
68
72
|
|
|
69
73
|
```bash
|
|
70
74
|
dsh plugin --profile web add dsh-vscode-workbench
|
|
@@ -107,7 +111,7 @@ dsh plugin --profile web add dsh-vscode-workbench
|
|
|
107
111
|
dsh: plugin command failed; diagnostics: ~/.dsh/profiles/<profile>/.plugin-manager/logs/operation-*/pnpm.log
|
|
108
112
|
```
|
|
109
113
|
|
|
110
|
-
原因是 Harness
|
|
114
|
+
原因是 Harness 的兼容性预检:优先用插件的 `engines.dsh` 比对当前 Harness 版本;未声明时,检查所有 `@deepseek-ai/dsh*` peerDependencies。预发布版本也参与匹配,不满足就中止安装。诊断日志里能看到真正的结论:
|
|
111
115
|
|
|
112
116
|
```
|
|
113
117
|
dsh: installation rejected: Plugin dsh-vscode-workbench@<插件版本> is incompatible with dsh <Harness 版本>: peerDependencies {...}
|
|
@@ -118,19 +122,22 @@ dsh: nothing was installed.
|
|
|
118
122
|
|
|
119
123
|
| 插件版本 | 需要的 Harness |
|
|
120
124
|
| --- | --- |
|
|
121
|
-
| 0.1.
|
|
125
|
+
| 0.1.10 | `0.2.1-rc.4`(Cordis `4.0.5`,本次验证基线) |
|
|
126
|
+
| 0.1.9 | `0.2.1-alpha.3`(Cordis `4.0.5-alpha.2`,旧版验证基线) |
|
|
122
127
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
123
128
|
|
|
124
|
-
Harness `0.2.0-rc.2` 上没有可用的插件版本:0.1.9 依赖 Harness `0.2.1-alpha.2` 才引入的 `workingDirectory` 服务,0.1.8 又只适配 `0.1.1-rc.2`。请先把 Harness 升级到 `0.2.1-
|
|
129
|
+
Harness `0.2.0-rc.2` 上没有可用的插件版本:0.1.9 依赖 Harness `0.2.1-alpha.2` 才引入的 `workingDirectory` 服务,0.1.8 又只适配 `0.1.1-rc.2`。请先把 Harness 升级到 `0.2.1-rc.4` 再安装 0.1.10,例如 npm 全局安装时:
|
|
125
130
|
|
|
126
131
|
```bash
|
|
127
|
-
npm i -g @deepseek-ai/dsh@0.2.1-
|
|
132
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.4
|
|
128
133
|
```
|
|
129
134
|
|
|
130
135
|
`dsh plugin allow-version` 只跳过版本闸门,不会补上缺失的宿主服务,在 `0.2.0-rc.2` 上插件仍然加载不起来;请优先升级 Harness。
|
|
131
136
|
|
|
132
137
|
### 新版架构适配
|
|
133
138
|
|
|
139
|
+
0.1.10 将 DSH 开发依赖与 peerDependencies 同步至 `0.2.1-rc.4`,Cordis 升级至 `4.0.5`,并显式声明 `engines.dsh`。安装版本闸门使用官方 `evaluatePluginCompatibility()` 验证,无需版本豁免。
|
|
140
|
+
|
|
134
141
|
- 客户端通过 `ui-renderer` 提供的槽位服务注册界面,使用 `ui-session` 的 `mainView` 引用选择当前会话;不再依赖已移除的 `dsh-client-runtime`。
|
|
135
142
|
- 文件、搜索、Git 和新建终端通过 `workingDirectory.get(session)` 使用会话当前目录,跟随工作目录投影切换;失效会话返回 404。
|
|
136
143
|
- HTTP 与 WebSocket 接口使用 `connection.requestRejection()`,共享 Harness 登录认证及 Host/Origin 校验;终端额外保留 loopback 限制。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-vscode-workbench",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Explorer, Monaco editor, search and local Git overlay for DSH",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "^22.19.0 || >=24.0.0"
|
|
20
|
+
"node": "^22.19.0 || >=24.0.0",
|
|
21
|
+
"dsh": "^0.2.1-rc.4"
|
|
21
22
|
},
|
|
22
23
|
"main": "lib/index.js",
|
|
23
24
|
"types": "lib/types/index.d.ts",
|
|
@@ -69,33 +70,33 @@
|
|
|
69
70
|
"ws": "^8.18.0"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-
|
|
73
|
-
"@deepseek-ai/cordis": "^4.0.5
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-session": "^0.2.1-
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-layout": "^0.2.1-
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.1-
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-
|
|
79
|
-
"@deepseek-ai/dsh-client-connection": "^0.2.1-
|
|
80
|
-
"@deepseek-ai/dsh-host-webserver": "^0.2.1-
|
|
81
|
-
"@deepseek-ai/dsh-working-directory": "^0.2.1-
|
|
82
|
-
"@deepseek-ai/dsh-session": "^0.2.1-
|
|
73
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.4",
|
|
74
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-rc.4",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.2.1-rc.4",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-layout": "^0.2.1-rc.4",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.1-rc.4",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.4",
|
|
80
|
+
"@deepseek-ai/dsh-client-connection": "^0.2.1-rc.4",
|
|
81
|
+
"@deepseek-ai/dsh-host-webserver": "^0.2.1-rc.4",
|
|
82
|
+
"@deepseek-ai/dsh-working-directory": "^0.2.1-rc.4",
|
|
83
|
+
"@deepseek-ai/dsh-session": "^0.2.1-rc.4",
|
|
83
84
|
"react": "^18.2.0",
|
|
84
85
|
"react-dom": "^18.2.0"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.1-
|
|
88
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-
|
|
89
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.1-
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-
|
|
95
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
96
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-
|
|
97
|
-
"@deepseek-ai/dsh-working-directory": "0.2.1-
|
|
98
|
-
"@deepseek-ai/dsh-session": "0.2.1-
|
|
88
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.4",
|
|
89
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.4",
|
|
90
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.4",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.4",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.4",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.4",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.4",
|
|
96
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.4",
|
|
97
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.4",
|
|
98
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-rc.4",
|
|
99
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.4",
|
|
99
100
|
"@types/node": "^24.0.0",
|
|
100
101
|
"@types/jsdom": "^28.0.3",
|
|
101
102
|
"@types/react": "^18.3.0",
|
|
@@ -106,7 +107,8 @@
|
|
|
106
107
|
"jsdom": "29.1.1",
|
|
107
108
|
"tsdown": "^0.22.2",
|
|
108
109
|
"typescript": "^5.9.0",
|
|
109
|
-
"vitest": "^4.0.0"
|
|
110
|
+
"vitest": "^4.0.0",
|
|
111
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-rc.4"
|
|
110
112
|
},
|
|
111
113
|
"scripts": {
|
|
112
114
|
"clean": "node scripts/clean.mjs lib dist",
|