dsh-multipane 1.0.32 → 1.0.34
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.md +53 -1
- package/lib/client.js +823 -333
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npm 上另有一个插件 `dsh-split-view`(作者 luckybilly),也是给 DS
|
|
|
45
45
|
| 本插件(npm / GitHub 装法都一样) | `dsh-multipane` |
|
|
46
46
|
| 另一个作者的插件 | `dsh-split-view` |
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
两者**名字不同、不会互相覆盖**,但都会接管主区,而且 `cordis.patch.yml` 里插的都是 `id: split-view` 这个 loader entry id —— id 撞车,同时启用必然栏结构错乱、设置页串台。**同时只能留一个**,装前先确认:
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
npx @deepseek-ai/dsh plugin list | grep split-view
|
|
@@ -71,6 +71,26 @@ npx @deepseek-ai/dsh plugin --profile desktop remove dsh-split-view
|
|
|
71
71
|
|
|
72
72
|
升级/换装都不会丢布局:栏、标签、栏宽存在 `localStorage`(键名固定为 `dsh-split-view:*`,与包名无关)。
|
|
73
73
|
|
|
74
|
+
### 插件内的「检查更新」(宿主侧自更新路由,仅用户点击时触发)
|
|
75
|
+
|
|
76
|
+
本插件带一条**宿主侧**自更新通道,只有你在设置页点「检查更新」才会走,不点什么都不做。它直接改 profile 里的文件、绕过了 pnpm,所以单独写清楚:
|
|
77
|
+
|
|
78
|
+
| 路由 | 做什么 |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `GET /dsh-multipane/status` | 返回 `{ version: <本机已装版本>, profile: <profile 目录> }` |
|
|
81
|
+
| `POST /dsh-multipane/update`,body `{ "version": "x.y.z" }` | 从 npm 下载该版本 tarball,解压后**直接覆盖** `~/.dsh/profiles/desktop/node_modules/dsh-multipane` |
|
|
82
|
+
|
|
83
|
+
自更新过程(`lib/index.js` 的 `installFromRegistry`):
|
|
84
|
+
|
|
85
|
+
1. `curl` 拉 `https://registry.npmjs.org/dsh-multipane/-/dsh-multipane-<version>.tgz` 到 `~/.dsh/.dsv-update-<pid>/`;
|
|
86
|
+
2. 用 Windows 自带 `C:\Windows\System32\tar.exe` 解压(git-bash 的 GNU tar 会把 `C:/…` 当成远程主机语法,故显式走 System32 那个),核对包内 `package.json` 的 version;
|
|
87
|
+
3. 把现有 `node_modules/dsh-multipane` 复制到 `~/.dsh/.dsv-backup-<pid>/`,删目录、铺新文件;
|
|
88
|
+
4. 任一步失败都会把备份拷回去,半截写入不会把插件弄坏。
|
|
89
|
+
|
|
90
|
+
**绕过了什么**:不经过 pnpm —— 不写 `pnpm-lock.yaml`、不受 profile 的 `minimumReleaseAge`(新版本冷却期)限制、也不触发 market 目录同步。想回到 pnpm 正规管理就 `dsh plugin --profile desktop remove dsh-multipane` 再 `add` 一次,卸载会把这套路由一起带走。
|
|
91
|
+
|
|
92
|
+
**它还改 pnpm 白名单**:插件加载时 `ensureMarketInstallable()` 会在 `~/.dsh/profiles/{desktop,web}/pnpm-workspace.yaml` 里找含 `dsh-multipane@` 的那一行,末尾追加 ` || <当前版本>`(例如 `dsh-multipane@1.0.33 || 1.0.34`),好让 pnpm 放行「刚发布、还在冷却期」的同一个版本。副作用是那一行会变成多版本白名单,属预期行为。
|
|
93
|
+
|
|
74
94
|
## 交互
|
|
75
95
|
|
|
76
96
|
| 动作 | 结果 |
|
|
@@ -246,6 +266,38 @@ C:\Users\weiai\.dsh\plugin-src\_probe\sync-client.ps1 -Push # 台式机 ->
|
|
|
246
266
|
|
|
247
267
|
## 更新记录
|
|
248
268
|
|
|
269
|
+
### 1.0.34(2026-11-10)
|
|
270
|
+
|
|
271
|
+
**中英双语(跟随宿主语言)**
|
|
272
|
+
|
|
273
|
+
- 新增 `locale/zh.json` / `locale/en.json` 的 `meta`:插件列表里中文界面显示「多栏视图 (dsh-multipane)」,英文界面显示「Multi-pane」,描述同步双语。之前只显示英文包名 `dsh-multipane`,是因为包里既没有 locale 元数据,`package.json` 也没导出 `./locale/*.json`。
|
|
274
|
+
- 侧栏入口、设置页全部设置项、按钮 / 提示 / 右键菜单约 300 条文案随宿主语言切换(其中 44 条是带 `{0}` 占位符的模板),订阅宿主 locale,**切换语言即时生效,不用重启**。
|
|
275
|
+
- 设置页标题固定双语「多栏视图 (Multi-pane)」,其余设置项跟语言走。
|
|
276
|
+
|
|
277
|
+
**修复**
|
|
278
|
+
|
|
279
|
+
- 设置页整页零样式:插件停用时侧栏心跳 0.7s 一拍把样式表删了,停在设置页等于一直在删。
|
|
280
|
+
- 设置页在「坏页面」和正常页之间来回闪:热更新后新旧两份插件代码同时活着,两份心跳互相删/装样式表。心跳改全局唯一,样式表加载即装。
|
|
281
|
+
- 关掉总开关后拖文件、加号插文件都失效:附件槽位(`conversation.input.attachments`)与 document 级 capture 监听原本无条件注册、总开关关掉也不退,且 `onDrop` 先 `preventDefault` 再找接收者,没人接就把事件吞掉。现在槽位与监听随 `enabled` 装卸,`onDrop` 先确认有接收者再拦事件。
|
|
282
|
+
|
|
283
|
+
**调整**
|
|
284
|
+
|
|
285
|
+
- 会话列表不再整行压暗。之前对所有会话行内元素套 `opacity`,把置顶标题和悬浮操作按钮一起压暗;现在普通行完全不动,只给 `data-dsv-row=focus/open/open-hidden` 的行做特殊样式,设置页预览同步对齐。
|
|
286
|
+
|
|
287
|
+
### 1.0.33(2026-11-10)
|
|
288
|
+
- 补上 `dshhub` 元数据段(`displayName` / `summary` / `categories`)。DSH 官方插件页的中文名不读这个字段
|
|
289
|
+
(实测无效——那两个有中文名的插件包里也没有中文名),留着是为了生态工具能识别。
|
|
290
|
+
|
|
291
|
+
### 1.0.32 / 1.0.31 / 1.0.30 / 1.0.29(2026-11-10)
|
|
292
|
+
- **更新改为直连 npm**(1.0.27 起,本组修完收尾):host 侧注册 `/dsh-multipane/status` 与 `/dsh-multipane/update`,
|
|
293
|
+
检查版本直接问 npm registry,安装由 host 下载 tarball 解压替换(备份 + 失败回滚)。
|
|
294
|
+
**不经过 pnpm 的版本等待期,不经过第三方插件市场**——和官方插件入口同一个源。
|
|
295
|
+
- 修最后两个坑:Git 自带的 GNU tar 会把 `C:/…` 当成远程主机(改用 Windows 自带的 bsdtar);
|
|
296
|
+
同版本重装会弄坏文件(现在只在目标版本严格更高时才装)。
|
|
297
|
+
- **修「新建会话把当前会话顶掉」**:在别的插件设置页点新建会话时,工作区被卸载、事件被挂起,
|
|
298
|
+
恢复时用了替换语义。现在给挂起项加 `mode`,新建会话固定按「新标签」落地。
|
|
299
|
+
- 弹窗里加「检查时间」,并且不再显示「观察期 / 防供应链投毒」这类给开发者看的说明。
|
|
300
|
+
|
|
249
301
|
### 1.0.26(2026-11-10)
|
|
250
302
|
- 设置页顶部常驻一个「插件市场」按钮:不管有没有新版本,都能一键打开市场自己的面板(已安装列表),
|
|
251
303
|
在里面安装、更新、卸载任何插件。不用记路径,也不依赖我写的那套逻辑。
|