dsh-vscode-workbench 0.1.11 → 0.1.14

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 CHANGED
@@ -39,8 +39,8 @@
39
39
  - **Preview**: Markdown source, outline, relative links, and images; built-in PDF paging and zoom plus DOCX rendering, with DOC/ODT download support.
40
40
  - **Search and Git**: `@vscode/ripgrep` supports case, whole-word, regex, and path filters; Git covers stage, unstage, discard, commit, branches, diffs, commit files, and the graph.
41
41
  - **Terminal**: `node-pty` and xterm with up to eight sessions, rename, a right-side switcher, splits, ANSI output, and Ctrl+C.
42
- - **Layout and DSH**: the primary view, terminal panel, and DSH conversation sidebar can be shown and resized independently; settings manage theme and widths.
43
- - **Sync and restore**: workspace file changes stream to the UI, while reload restores views, tabs, expanded directories, panels, and layout.
42
+ - **Layout and DSH**: the primary view, terminal panel, and DSH conversation sidebar can be shown and resized independently; settings manage theme, widths, and watcher exclusions.
43
+ - **Sync and restore**: workspace file changes stream to the UI after skipping large trees such as `node_modules`, `vendor`, `third_party`, `build`, and `dist`, with extra exclusions configurable in settings; reload restores views, tabs, expanded directories, panels, and layout.
44
44
 
45
45
  The workbench mounts through the official `sidebar.footer.action` and `shell.overlay` extension points. It does not replace or disable `ui-layout`.
46
46
 
@@ -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.11 targets DeepSeek Harness `0.2.1-rc.5` (Cordis `4.0.5`). Update Harness before installing; see the table below for older plugin versions.
67
+ Plugin 0.1.14 targets DeepSeek Harness `0.2.2-rc.1` (Cordis `4.1.0`). 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.5
70
+ npm i -g @deepseek-ai/dsh@0.2.2-rc.1
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,15 +138,17 @@ 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.14 | `0.2.2-rc.1` (Cordis `4.1.0`, default baseline); also checked with `0.2.1-rc.5` (Cordis `4.0.5`) |
142
+ | 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
143
  | 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
144
  | 0.1.10 | `0.2.1-rc.4` (Cordis `4.0.5`, previous validation baseline) |
127
145
  | 0.1.9 | `0.2.1-alpha.3` (Cordis `4.0.5-alpha.2`, previous validation baseline) |
128
146
  | 0.1.8 | `0.1.1-rc.2` |
129
147
 
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.11, for example with a global npm install:
148
+ 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.2-rc.1` before installing plugin 0.1.14, for example with a global npm install:
131
149
 
132
150
  ```bash
133
- npm i -g @deepseek-ai/dsh@0.2.1-rc.5
151
+ npm i -g @deepseek-ai/dsh@0.2.2-rc.1
134
152
  ```
135
153
 
136
154
  `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.
@@ -141,6 +159,12 @@ Version 0.1.11 updates DSH development dependencies and peers to `0.2.1-rc.5`, k
141
159
 
142
160
  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
161
 
162
+ 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.
163
+
164
+ Version 0.1.14 fixes the overlapping header on Windows Desktop: DSH 0.2 reserves a 40px custom title bar at the top of the window and draws its App and Edit menus there. The workbench now honors `data-windows-titlebar`, starts below that bar, and no longer overlaps sidebar titles such as Source Control, while the title bar drag area remains usable. The development and test baseline moves to Harness `0.2.2-rc.1` / Cordis `4.1.0` while keeping the compatibility range for `0.2.1-rc.5` / Cordis `4.0.5`.
165
+
166
+ Version 0.1.14 also targets large repositories and crowded tab strips. The file watcher skips large trees such as `vendor`, `third_party`/`third_part`, `build`, `dist`, `out`, `target`, `.venv`, and `__pycache__` by default, with extra exclusions configurable in workbench settings; running out of watches now disables auto-refresh instead of crashing DSH at the inotify limit. Tabs stay on one line with ellipsis and no native scrollbar, the close-all action stays pinned to the right, and the active tab scrolls into view. The bottom status bar is hidden by default and can be re-enabled in settings.
167
+
144
168
  - 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
169
  - Files, search, Git and new terminals use `workingDirectory.get(session)`. Workspace selection follows the working-directory projection; missing sessions return 404.
146
170
  - HTTP and WebSocket routes share Harness authentication and Host/Origin checks through `connection.requestRejection()`. Terminals also require loopback access.
package/README.md CHANGED
@@ -39,8 +39,8 @@
39
39
  - **预览**:Markdown 支持源码、大纲、相对链接和图片;内置 PDF 翻页缩放与 DOCX 渲染,DOC/ODT 可直接下载打开。
40
40
  - **搜索与 Git**:`@vscode/ripgrep` 支持大小写、全词、正则和路径筛选;Git 提供暂存、撤销、丢弃、提交、分支、差异、提交文件和提交图表。
41
41
  - **终端**:基于 `node-pty` 与 xterm,支持最多 8 个会话、会话重命名、右侧切换、分屏、ANSI 输出和 Ctrl+C。
42
- - **布局与 DSH**:左侧视图、终端面板和右侧 DSH 对话栏可独立显示和调整;设置面板管理主题与各栏宽度。
43
- - **同步与恢复**:工作区文件变化实时推送;刷新后恢复活动视图、标签、目录展开、面板和布局。
42
+ - **布局与 DSH**:左侧视图、终端面板和右侧 DSH 对话栏可独立显示和调整;设置面板管理主题、各栏宽度和文件监听排除项。
43
+ - **同步与恢复**:工作区文件变化实时推送,默认跳过 `node_modules`、`vendor`、`third_party`、`build`、`dist` 等大目录,可在设置里追加排除项;刷新后恢复活动视图、标签、目录展开、面板和布局。
44
44
 
45
45
  工作台通过官方 `sidebar.footer.action` 与 `shell.overlay` 扩展点挂载,不替换或卸载 `ui-layout`。
46
46
 
@@ -64,16 +64,32 @@
64
64
 
65
65
  ## 安装
66
66
 
67
- 插件 0.1.11 适配 DeepSeek Harness `0.2.1-rc.5`(Cordis `4.0.5`)。请先更新 Harness,再安装插件;旧版对应关系见下表。
67
+ 插件 0.1.14 适配 DeepSeek Harness `0.2.2-rc.1`(Cordis `4.1.0`)。请先更新 Harness,再安装插件;旧版对应关系见下表。
68
68
 
69
69
  ```bash
70
- npm i -g @deepseek-ai/dsh@0.2.1-rc.5
70
+ npm i -g @deepseek-ai/dsh@0.2.2-rc.1
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,15 +138,17 @@ dsh: nothing was installed.
122
138
 
123
139
  | 插件版本 | 需要的 Harness |
124
140
  | --- | --- |
141
+ | 0.1.14 | `0.2.2-rc.1`(Cordis `4.1.0`,默认基线);另验证 `0.2.1-rc.5`(Cordis `4.0.5`) |
142
+ | 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
143
  | 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
144
  | 0.1.10 | `0.2.1-rc.4`(Cordis `4.0.5`,旧版验证基线) |
127
145
  | 0.1.9 | `0.2.1-alpha.3`(Cordis `4.0.5-alpha.2`,旧版验证基线) |
128
146
  | 0.1.8 | `0.1.1-rc.2` |
129
147
 
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.11,例如 npm 全局安装时:
148
+ 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.2-rc.1` 再安装 0.1.14,例如 npm 全局安装时:
131
149
 
132
150
  ```bash
133
- npm i -g @deepseek-ai/dsh@0.2.1-rc.5
151
+ npm i -g @deepseek-ai/dsh@0.2.2-rc.1
134
152
  ```
135
153
 
136
154
  `dsh plugin allow-version` 只跳过版本闸门,不会补上缺失的宿主服务,在 `0.2.0-rc.2` 上插件仍然加载不起来;请优先升级 Harness。
@@ -141,6 +159,12 @@ npm i -g @deepseek-ai/dsh@0.2.1-rc.5
141
159
 
142
160
  两套依赖环境均通过类型检查、52 项测试及构建,覆盖官方版本闸门、真实 Harness cookie 认证与会话目录切换回归;尚未完成完整 DSH 页面端到端验证。next 渠道需 Node.js ≥24.9。
143
161
 
162
+ 0.1.12 在此基础上集中修复可靠性与 macOS 使用问题:保留并恢复工作区草稿,加强并发保存和文件操作;补齐可拖动标题栏与窗口留白,修正活动工作台的 DSH 原生侧栏遮挡;WebSocket 地址跟随 DSH transport,终端启动时自动修复 `spawn-helper` 执行位。PDF、DOCX、图片和 Markdown 预览已在 DSH Desktop 中实际验证。
163
+
164
+ 0.1.14 修复 Windows Desktop 的顶部叠字:DSH 0.2 的 Windows 自定义标题栏会在窗口顶部预留 40px,并绘制「应用」「编辑」菜单;工作台现在识别 `data-windows-titlebar`,从标题栏下沿开始布局,不再与「源代码管理」等侧栏标题重叠,同时保留标题栏的拖动区域。开发与测试基线同步升级到 Harness `0.2.2-rc.1` / Cordis `4.1.0`,并在 `0.2.1-rc.5` / Cordis `4.0.5` 上保留兼容范围。
165
+
166
+ 0.1.14 同时处理大仓库与多标签场景:文件监听默认跳过 `vendor`、`third_party`/`third_part`、`build`、`dist`、`out`、`target`、`.venv`、`__pycache__` 等大目录,并允许在工作台设置里追加排除项;监听资源耗尽时只停用自动刷新,不再让 DSH 因 inotify 上限崩溃。标签栏改为单行省略并隐藏原生滚动条,关闭全部按钮固定右侧,切换标签时自动滚入可视区域。底部状态栏默认隐藏,可在设置中重新开启。
167
+
144
168
  - 客户端通过 `ui-renderer` 提供的槽位服务注册界面,使用 `ui-session` 的 `mainView` 引用选择当前会话;不再依赖已移除的 `dsh-client-runtime`。
145
169
  - 文件、搜索、Git 和新建终端通过 `workingDirectory.get(session)` 使用会话当前目录,跟随工作目录投影切换;失效会话返回 404。
146
170
  - HTTP 与 WebSocket 接口使用 `connection.requestRejection()`,共享 Harness 登录认证及 Host/Origin 校验;终端额外保留 loopback 限制。