dsh-document-view 1.2.1 → 1.2.2
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/CHANGELOG.md +5 -0
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/docs/COMPATIBILITY.md +1 -1
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 1.2.2(2026-11-21)
|
|
4
|
+
|
|
5
|
+
- 宿主要求与验证口径更新到 DSH `0.2.2-rc.5`:README 徽章与「要求与兼容性」、插件描述(中英)、兼容性说明同步;`dsh.engines.dsh` 仍为 `>=0.2.2-rc.3`,不收紧下限。
|
|
6
|
+
- 本版在 `0.2.2-rc.5` 上复核批注、改动高亮与分栏布局。
|
|
7
|
+
|
|
3
8
|
## 1.2.1(2026-11-21)
|
|
4
9
|
|
|
5
10
|
- 文档默认语言改为英文:`README.md` 用英文、中文移到 `README.zh.md`,npm 包页与 GitHub 首页默认显示英文,顶部保留语言切换。
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](https://github.com/Frank-Fan-1058/dsh-document-view/issues)
|
|
14
14
|
[](https://www.npmjs.com/package/dsh-document-view)
|
|
15
15
|
[](LICENSE)
|
|
16
|
-
[](https://github.com/deepseek-ai/DeepSeek-Harness)
|
|
17
17
|
[](SECURITY.md)
|
|
18
18
|
|
|
19
19
|
> ⭐ If this saves you a few round trips, star the repo — it helps other DeepSeek Harness users discover the plugin in marketplaces.
|
|
@@ -140,9 +140,9 @@ See [SECURITY.md](SECURITY.md) and [docs/COMPATIBILITY.md](docs/COMPATIBILITY.md
|
|
|
140
140
|
|
|
141
141
|
## Requirements & compatibility
|
|
142
142
|
|
|
143
|
-
- [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) Desktop / Web, verified on **v0.2.2-rc.
|
|
143
|
+
- [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) Desktop / Web, verified on **v0.2.2-rc.5**.
|
|
144
144
|
- Node.js >= 20 — **only for rebuilding from source**; not needed to install or use.
|
|
145
|
-
- **Host requirement declared**: `dsh.engines.dsh = ">=0.2.2-rc.3"
|
|
145
|
+
- **Host requirement declared**: `dsh.engines.dsh = ">=0.2.2-rc.3"` (verified through rc.5). On older DSH versions the host refuses the install with `incompatible-version` instead of loading a plugin that would blank the page. Granular boundaries are in the [compatibility notes](docs/COMPATIBILITY.md).
|
|
146
146
|
|
|
147
147
|
> The plugin relies on the host DOM structure and slot names. If a DSH upgrade changes them, the plugin **disables itself safely and the page keeps working** (no white screen). Re-verify with the [upgrade checklist](docs/COMPATIBILITY.md).
|
|
148
148
|
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](https://github.com/Frank-Fan-1058/dsh-document-view/issues)
|
|
14
14
|
[](https://www.npmjs.com/package/dsh-document-view)
|
|
15
15
|
[](LICENSE)
|
|
16
|
-
[](https://github.com/deepseek-ai/DeepSeek-Harness)
|
|
17
17
|
[](SECURITY.md)
|
|
18
18
|
|
|
19
19
|
> ⭐ 如果它帮你省下了来回切换,给仓库点个 Star —— 这能让更多 DSH 用户在插件市场里发现它。
|
|
@@ -140,9 +140,9 @@ Markdown、PDF、Word、Excel、PPT 与**本地 HTML 文件**的渲染、编辑
|
|
|
140
140
|
|
|
141
141
|
## 要求与兼容性
|
|
142
142
|
|
|
143
|
-
- [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) 桌面版 / Web 版,已在 **v0.2.2-rc.
|
|
143
|
+
- [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) 桌面版 / Web 版,已在 **v0.2.2-rc.5** 上验证通过。
|
|
144
144
|
- Node.js >= 20 —— **仅从源码重建时需要**;单纯安装使用不需要 Node.js。
|
|
145
|
-
- **已声明宿主要求**:`dsh.engines.dsh = ">=0.2.2-rc.3"
|
|
145
|
+
- **已声明宿主要求**:`dsh.engines.dsh = ">=0.2.2-rc.3"`(已验证到 rc.5)——低于该版本 DSH 会拒绝安装并提示 `incompatible-version`,避免装上去白屏。更细的兼容边界见 [兼容性说明](docs/COMPATIBILITY.md)。
|
|
146
146
|
|
|
147
147
|
> 插件依赖宿主的 DOM 结构与 slot 名称。DSH 升级后若这些内部结构变化,插件会**自动停用并保持页面可用**(不会白屏),随后按 [升级复核清单](docs/COMPATIBILITY.md#升级复核清单) 重验即可。
|
|
148
148
|
|
package/docs/COMPATIBILITY.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
## 宿主要求怎么声明
|
|
42
42
|
|
|
43
|
-
写在 `package.json` 的 `dsh.engines.dsh`,当前为 `>=0.2.2-rc.3
|
|
43
|
+
写在 `package.json` 的 `dsh.engines.dsh`,当前为 `>=0.2.2-rc.3`;上游已到 `0.2.2-rc.5`,本版在该版本上完整复核。
|
|
44
44
|
|
|
45
45
|
- 采用**下界**而非 `^` 或精确值:本插件的失效方式是「自动停用 + 页面照常可用」,不会拖垮宿主,所以新版本 DSH 不该被这个字段挡住。
|
|
46
46
|
- 这条声明的作用是:低于验证基线时由宿主直接拒绝安装并提示 `incompatible-version`,而不是装上去才发现不生效。
|
package/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Document view",
|
|
4
|
-
"description": "Adds a split document view to DeepSeek Harness: the opened document stays in the center while the current conversation remains visible on the right, so you can read a file and ask the AI about it on the same screen. Open a file from the right sidebar, then enable 'Document view' in the conversation header actions or the file tab actions. The arrow next to the toggle opens settings: 'Auto-enter on document view' (off by default, triggered only by your own file clicks), three layout presets (Document-first / Balanced / Chat-first), and an Auto update / Paused control that reuses the host's native file watcher. Drag the divider to resize; Left/Right arrows nudge, Home or double-click resets the ratio. In a narrow window, switch between Document and Chat with unsent input preserved. The toggle and ratio are saved per session. Select text in Word / PDF / PowerPoint to add a strikethrough or a comment; the review panel lists marks by page, supports jump / edit / delete, and sends the whole review to the AI as one structured message. After the agent edits the file, the text that changed is highlighted in green (a deleted passage gets a green caret), so you can see exactly what moved. Annotations are stored per file path under dsh.document-view.annotations.v2/ with one key per mark, so multiple windows do not overwrite each other. The plugin makes no network requests, reads or writes no original files, ships no credentials, and leaves editing, saving and preview to DSH's native document and Office viewers. Disabling the plugin restores the default layout. Verified on DSH Desktop 0.2.2-rc.
|
|
4
|
+
"description": "Adds a split document view to DeepSeek Harness: the opened document stays in the center while the current conversation remains visible on the right, so you can read a file and ask the AI about it on the same screen. Open a file from the right sidebar, then enable 'Document view' in the conversation header actions or the file tab actions. The arrow next to the toggle opens settings: 'Auto-enter on document view' (off by default, triggered only by your own file clicks), three layout presets (Document-first / Balanced / Chat-first), and an Auto update / Paused control that reuses the host's native file watcher. Drag the divider to resize; Left/Right arrows nudge, Home or double-click resets the ratio. In a narrow window, switch between Document and Chat with unsent input preserved. The toggle and ratio are saved per session. Select text in Word / PDF / PowerPoint to add a strikethrough or a comment; the review panel lists marks by page, supports jump / edit / delete, and sends the whole review to the AI as one structured message. After the agent edits the file, the text that changed is highlighted in green (a deleted passage gets a green caret), so you can see exactly what moved. Annotations are stored per file path under dsh.document-view.annotations.v2/ with one key per mark, so multiple windows do not overwrite each other. The plugin makes no network requests, reads or writes no original files, ships no credentials, and leaves editing, saving and preview to DSH's native document and Office viewers. Disabling the plugin restores the default layout. Verified on DSH Desktop 0.2.2-rc.5; because it relies on the host's DOM structure and slot names, a future DSH upgrade may change them — in that case the plugin disables itself safely so the page keeps working.",
|
|
5
5
|
"detail": "docs/DETAIL.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "文档视图",
|
|
4
|
-
"description": "为 DeepSeek Harness 增加分栏文档视图:打开的文档居中显示,当前会话保留在右侧,可以边看文档边让 AI 对照回答,不用再来回切换。在右侧栏打开文件后,从会话头部操作区或文件标签操作区开启「文档视图」。开关旁的箭头打开设置:可启用「查看文档时自动进入」(默认关闭,仅响应你主动点击文件)、选择文档优先 / 均衡 / 对话优先三种布局预设,以及沿用宿主原生文件监听的「自动更新 / 已暂停」。拖动分隔线调整宽度,左右方向键微调、Home 或双击复位;窄窗口下可在「文档 / 对话」间切换且保留未发送的输入。开关与比例按会话保存。文档里选中文字可加「删除线」或「批注意见」,汇总面板支持定位、编辑、删除,并一键整理成结构化清单交给右侧 AI;提交后 AI 按条改原文件,被改动的文字会标绿(整段删除处为绿色竖线),一眼看到改了哪里。批注按文件路径保存在 localStorage 的 dsh.document-view.annotations.v2/ 下,每条一个键,多窗口互不覆盖。本插件只调整布局与批注:不发任何网络请求、不读写原文件、不含任何凭据;编辑、保存与预览继续沿用 DSH 原生文档 / Office 查看器。停用插件即恢复默认布局。已在 DSH Desktop 0.2.2-rc.
|
|
4
|
+
"description": "为 DeepSeek Harness 增加分栏文档视图:打开的文档居中显示,当前会话保留在右侧,可以边看文档边让 AI 对照回答,不用再来回切换。在右侧栏打开文件后,从会话头部操作区或文件标签操作区开启「文档视图」。开关旁的箭头打开设置:可启用「查看文档时自动进入」(默认关闭,仅响应你主动点击文件)、选择文档优先 / 均衡 / 对话优先三种布局预设,以及沿用宿主原生文件监听的「自动更新 / 已暂停」。拖动分隔线调整宽度,左右方向键微调、Home 或双击复位;窄窗口下可在「文档 / 对话」间切换且保留未发送的输入。开关与比例按会话保存。文档里选中文字可加「删除线」或「批注意见」,汇总面板支持定位、编辑、删除,并一键整理成结构化清单交给右侧 AI;提交后 AI 按条改原文件,被改动的文字会标绿(整段删除处为绿色竖线),一眼看到改了哪里。批注按文件路径保存在 localStorage 的 dsh.document-view.annotations.v2/ 下,每条一个键,多窗口互不覆盖。本插件只调整布局与批注:不发任何网络请求、不读写原文件、不含任何凭据;编辑、保存与预览继续沿用 DSH 原生文档 / Office 查看器。停用插件即恢复默认布局。已在 DSH Desktop 0.2.2-rc.5 上验证;因依赖宿主 DOM 结构与 slot 名称,DSH 升级后这些内部结构若变化,插件会安全自动停用、页面照常可用,届时按仓库 docs/COMPATIBILITY.md 的升级复核清单重验。",
|
|
5
5
|
"detail": "docs/DETAIL.zh.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-document-view",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Split document view for DeepSeek Harness: read a document in the center while the conversation stays on the right, mark up the page, and hand the review to the AI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|