dsh-vscode-workbench 0.1.11 → 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 +21 -2
- package/README.md +21 -2
- 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 +1 -1
- 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,7 +64,7 @@ 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
70
|
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
@@ -74,6 +74,22 @@ npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
|
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,12 +138,13 @@ The plugin marketplace files this under the generic `plugin-side install failure
|
|
|
122
138
|
|
|
123
139
|
| Plugin version | Required Harness |
|
|
124
140
|
| --- | --- |
|
|
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) |
|
|
125
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) |
|
|
126
143
|
| 0.1.10 | `0.2.1-rc.4` (Cordis `4.0.5`, previous validation baseline) |
|
|
127
144
|
| 0.1.9 | `0.2.1-alpha.3` (Cordis `4.0.5-alpha.2`, previous validation baseline) |
|
|
128
145
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
129
146
|
|
|
130
|
-
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.
|
|
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:
|
|
131
148
|
|
|
132
149
|
```bash
|
|
133
150
|
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
@@ -141,6 +158,8 @@ Version 0.1.11 updates DSH development dependencies and peers to `0.2.1-rc.5`, k
|
|
|
141
158
|
|
|
142
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.
|
|
143
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.
|
|
162
|
+
|
|
144
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`.
|
|
145
164
|
- Files, search, Git and new terminals use `workingDirectory.get(session)`. Workspace selection follows the working-directory projection; missing sessions return 404.
|
|
146
165
|
- 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,7 @@
|
|
|
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
70
|
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
@@ -74,6 +74,22 @@ npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
|
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,12 +138,13 @@ dsh: nothing was installed.
|
|
|
122
138
|
|
|
123
139
|
| 插件版本 | 需要的 Harness |
|
|
124
140
|
| --- | --- |
|
|
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) |
|
|
125
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) |
|
|
126
143
|
| 0.1.10 | `0.2.1-rc.4`(Cordis `4.0.5`,旧版验证基线) |
|
|
127
144
|
| 0.1.9 | `0.2.1-alpha.3`(Cordis `4.0.5-alpha.2`,旧版验证基线) |
|
|
128
145
|
| 0.1.8 | `0.1.1-rc.2` |
|
|
129
146
|
|
|
130
|
-
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.
|
|
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 全局安装时:
|
|
131
148
|
|
|
132
149
|
```bash
|
|
133
150
|
npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
@@ -141,6 +158,8 @@ npm i -g @deepseek-ai/dsh@0.2.1-rc.5
|
|
|
141
158
|
|
|
142
159
|
两套依赖环境均通过类型检查、52 项测试及构建,覆盖官方版本闸门、真实 Harness cookie 认证与会话目录切换回归;尚未完成完整 DSH 页面端到端验证。next 渠道需 Node.js ≥24.9。
|
|
143
160
|
|
|
161
|
+
0.1.12 在此基础上集中修复可靠性与 macOS 使用问题:保留并恢复工作区草稿,加强并发保存和文件操作;补齐可拖动标题栏与窗口留白,修正活动工作台的 DSH 原生侧栏遮挡;WebSocket 地址跟随 DSH transport,终端启动时自动修复 `spawn-helper` 执行位。PDF、DOCX、图片和 Markdown 预览已在 DSH Desktop 中实际验证。
|
|
162
|
+
|
|
144
163
|
- 客户端通过 `ui-renderer` 提供的槽位服务注册界面,使用 `ui-session` 的 `mainView` 引用选择当前会话;不再依赖已移除的 `dsh-client-runtime`。
|
|
145
164
|
- 文件、搜索、Git 和新建终端通过 `workingDirectory.get(session)` 使用会话当前目录,跟随工作目录投影切换;失效会话返回 404。
|
|
146
165
|
- HTTP 与 WebSocket 接口使用 `connection.requestRejection()`,共享 Harness 登录认证及 Host/Origin 校验;终端额外保留 loopback 限制。
|