dsh-vscode-workbench 0.1.10 → 0.1.12
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 +28 -6
- package/README.md +28 -6
- package/lib/client.js +293 -104
- package/lib/client.js.map +1 -1
- package/lib/index.js +93 -41
- package/lib/index.js.map +1 -1
- package/lib/types/client/Workbench.d.ts +3 -0
- package/lib/types/client/terminal.d.ts +1 -0
- package/lib/types/client/websocket.d.ts +15 -0
- package/lib/types/terminal.d.ts +5 -0
- package/package.json +29 -27
- package/src/client/DshConversationPanel.tsx +2 -0
- package/src/client/TerminalPanel.tsx +12 -5
- package/src/client/Workbench.tsx +140 -15
- package/src/client/styles.ts +9 -4
- package/src/client/terminal.ts +15 -4
- package/src/client/websocket.ts +50 -0
- package/src/host.ts +47 -14
- package/src/terminal.ts +27 -2
package/README.en.md
CHANGED
|
@@ -64,16 +64,32 @@ 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.12 targets DeepSeek Harness `0.2.1-rc.5` (Cordis `4.0.5`). Update Harness before installing; see the table below for older plugin versions.
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
npm i -g @deepseek-ai/dsh@0.2.1-rc.
|
|
70
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
74
|
dsh plugin --profile web add dsh-vscode-workbench
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
Installing from the DSH Plugins page or a marketplace also adds the package to `dsh.profile.bundles` and enables it. The CLI command above only writes `dependencies`, so add `dsh-vscode-workbench` to `dsh.profile.bundles` in `~/.dsh/profiles/web/package.json` and restart `dsh web`:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"dsh": {
|
|
82
|
+
"profile": {
|
|
83
|
+
"bundles": [
|
|
84
|
+
"@deepseek-ai/dsh-base",
|
|
85
|
+
"@deepseek-ai/dsh-web-app",
|
|
86
|
+
"dsh-vscode-workbench"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
77
93
|
### First terminal installation
|
|
78
94
|
|
|
79
95
|
The terminal uses `node-pty`. If installation reports a blocked build script, merge the following into `~/.dsh/profiles/web/pnpm-workspace.yaml` on the DSH host, preserving existing settings:
|
|
@@ -122,21 +138,27 @@ The plugin marketplace files this under the generic `plugin-side install failure
|
|
|
122
138
|
|
|
123
139
|
| Plugin version | Required Harness |
|
|
124
140
|
| --- | --- |
|
|
125
|
-
| 0.1.
|
|
141
|
+
| 0.1.12 | `0.2.1-rc.5` (Cordis `4.0.5`, default baseline); also checked with `0.2.2-rc.1` (Cordis `4.1.0`, Node.js ≥24.9) |
|
|
142
|
+
| 0.1.11 | `0.2.1-rc.5` (Cordis `4.0.5`, default baseline); also checked with `0.2.2-rc.1` (Cordis `4.1.0`, Node.js ≥24.9) |
|
|
143
|
+
| 0.1.10 | `0.2.1-rc.4` (Cordis `4.0.5`, previous validation baseline) |
|
|
126
144
|
| 0.1.9 | `0.2.1-alpha.3` (Cordis `4.0.5-alpha.2`, previous validation baseline) |
|
|
127
145
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
128
146
|
|
|
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.
|
|
147
|
+
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.5` before installing plugin 0.1.12, for example with a global npm install:
|
|
130
148
|
|
|
131
149
|
```bash
|
|
132
|
-
npm i -g @deepseek-ai/dsh@0.2.1-rc.
|
|
150
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
133
151
|
```
|
|
134
152
|
|
|
135
153
|
`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.
|
|
136
154
|
|
|
137
155
|
### Harness architecture integration
|
|
138
156
|
|
|
139
|
-
Version 0.1.
|
|
157
|
+
Version 0.1.11 updates DSH development dependencies and peers to `0.2.1-rc.5`, keeps Cordis at `4.0.5`, and declares `engines.dsh` explicitly. It also explicitly declares prerelease dependency ranges for `0.2.2-rc.1`. The official `evaluatePluginCompatibility()` validates the installation gate without version exemptions.
|
|
158
|
+
|
|
159
|
+
Both dependency environments pass type checking, 52 tests and the build, covering the official version gate, real Harness cookie authentication and session-directory switching regressions. Full DSH browser end-to-end validation has not been run. The next channel requires Node.js ≥24.9.
|
|
160
|
+
|
|
161
|
+
Version 0.1.12 focuses on reliability and macOS usability. It preserves and restores unsaved workspace drafts, hardens concurrent saves and file operations, adds a draggable title bar with correct window clearance, and hides the native DSH sidebar chrome while the workbench is active. WebSocket URLs now follow the DSH transport, and terminal startup repairs the `spawn-helper` execute bits. PDF, DOCX, image and Markdown previews were verified in DSH Desktop.
|
|
140
162
|
|
|
141
163
|
- Client contributions use `ui-renderer` slots and select the current session through `ui-session`'s `mainView` retain count, replacing the removed `dsh-client-runtime`.
|
|
142
164
|
- Files, search, Git and new terminals use `workingDirectory.get(session)`. Workspace selection follows the working-directory projection; missing sessions return 404.
|
package/README.md
CHANGED
|
@@ -64,16 +64,32 @@
|
|
|
64
64
|
|
|
65
65
|
## 安装
|
|
66
66
|
|
|
67
|
-
插件 0.1.
|
|
67
|
+
插件 0.1.12 适配 DeepSeek Harness `0.2.1-rc.5`(Cordis `4.0.5`)。请先更新 Harness,再安装插件;旧版对应关系见下表。
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
npm i -g @deepseek-ai/dsh@0.2.1-rc.
|
|
70
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
74
|
dsh plugin --profile web add dsh-vscode-workbench
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
通过 DSH 插件页或插件市场安装时,界面会把它加入 `dsh.profile.bundles` 并启用。用上面的 CLI 命令安装时只写入 `dependencies`,还需要在 `~/.dsh/profiles/web/package.json` 的 `dsh.profile.bundles` 中加入 `dsh-vscode-workbench`,然后重启 `dsh web`:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"dsh": {
|
|
82
|
+
"profile": {
|
|
83
|
+
"bundles": [
|
|
84
|
+
"@deepseek-ai/dsh-base",
|
|
85
|
+
"@deepseek-ai/dsh-web-app",
|
|
86
|
+
"dsh-vscode-workbench"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
77
93
|
### 首次安装终端支持
|
|
78
94
|
|
|
79
95
|
终端使用 `node-pty`。如果安装日志提示其构建脚本被阻止,在 DSH 所在机器的 `~/.dsh/profiles/web/pnpm-workspace.yaml` 中合并以下配置,保留已有设置:
|
|
@@ -122,21 +138,27 @@ dsh: nothing was installed.
|
|
|
122
138
|
|
|
123
139
|
| 插件版本 | 需要的 Harness |
|
|
124
140
|
| --- | --- |
|
|
125
|
-
| 0.1.
|
|
141
|
+
| 0.1.12 | `0.2.1-rc.5`(Cordis `4.0.5`,默认基线);另验证 `0.2.2-rc.1`(Cordis `4.1.0`,Node.js ≥24.9) |
|
|
142
|
+
| 0.1.11 | `0.2.1-rc.5`(Cordis `4.0.5`,默认基线);另验证 `0.2.2-rc.1`(Cordis `4.1.0`,Node.js ≥24.9) |
|
|
143
|
+
| 0.1.10 | `0.2.1-rc.4`(Cordis `4.0.5`,旧版验证基线) |
|
|
126
144
|
| 0.1.9 | `0.2.1-alpha.3`(Cordis `4.0.5-alpha.2`,旧版验证基线) |
|
|
127
145
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
128
146
|
|
|
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.
|
|
147
|
+
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.5` 再安装 0.1.12,例如 npm 全局安装时:
|
|
130
148
|
|
|
131
149
|
```bash
|
|
132
|
-
npm i -g @deepseek-ai/dsh@0.2.1-rc.
|
|
150
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
133
151
|
```
|
|
134
152
|
|
|
135
153
|
`dsh plugin allow-version` 只跳过版本闸门,不会补上缺失的宿主服务,在 `0.2.0-rc.2` 上插件仍然加载不起来;请优先升级 Harness。
|
|
136
154
|
|
|
137
155
|
### 新版架构适配
|
|
138
156
|
|
|
139
|
-
0.1.
|
|
157
|
+
0.1.11 将 DSH 开发依赖与 peerDependencies 同步至 `0.2.1-rc.5`,Cordis 保持 `4.0.5`,并显式声明 `engines.dsh`。同时显式声明 `0.2.2-rc.1` 的预发布依赖范围。安装版本闸门使用官方 `evaluatePluginCompatibility()` 验证,无需版本豁免。
|
|
158
|
+
|
|
159
|
+
两套依赖环境均通过类型检查、52 项测试及构建,覆盖官方版本闸门、真实 Harness cookie 认证与会话目录切换回归;尚未完成完整 DSH 页面端到端验证。next 渠道需 Node.js ≥24.9。
|
|
160
|
+
|
|
161
|
+
0.1.12 在此基础上集中修复可靠性与 macOS 使用问题:保留并恢复工作区草稿,加强并发保存和文件操作;补齐可拖动标题栏与窗口留白,修正活动工作台的 DSH 原生侧栏遮挡;WebSocket 地址跟随 DSH transport,终端启动时自动修复 `spawn-helper` 执行位。PDF、DOCX、图片和 Markdown 预览已在 DSH Desktop 中实际验证。
|
|
140
162
|
|
|
141
163
|
- 客户端通过 `ui-renderer` 提供的槽位服务注册界面,使用 `ui-session` 的 `mainView` 引用选择当前会话;不再依赖已移除的 `dsh-client-runtime`。
|
|
142
164
|
- 文件、搜索、Git 和新建终端通过 `workingDirectory.get(session)` 使用会话当前目录,跟随工作目录投影切换;失效会话返回 404。
|