asukasec/dsh-message-preview
DeepSeek Harness Web UI 的右侧用户消息导航器。
Project Overview项目介绍
This is a navigation plugin built exclusively for the DeepSeek Harness Web UI that adds a right-side navigation bar for user messages in active chat sessions. It requires DeepSeek Harness 0.1.0-rc.6 or newer and Node.js 22 or higher to work properly. You can install it directly via the DSH CLI with the command dsh plugin --profile web add "github:asukasec/dsh-message-preview#main", or clone the repository first and install from the local directory. After cloning, you can run the local install command dsh plugin --profile web add . from the cloned directory. Windows users can also run the provided install.cmd script to complete installation automatically.
After installation, you must fully restart the DSH Web UI for the plugin to load, as just refreshing the browser page is not enough to activate new plugins. To use the plugin, open any chat session that contains at least two user messages, since the navigation bar automatically hides when there are fewer than two messages. A small indicator of your current reading position will appear by default on the right edge of the session. Move your mouse toward the right edge to expand the full navigation bar, where you can hover over blocks to see previews or click to jump directly to the target message.
The plugin is released under the open source MIT license, and it does not send any user data to third-party services, nor does it modify the content of your existing chat sessions. All message previews are stored locally only, and each preview is truncated to a maximum of 80 characters to keep performance smooth. To uninstall the plugin, you can use the DSH CLI command dsh plugin --profile web remove dsh-message-preview if you installed it via CLI. If you installed it via the local script, you will need to manually delete the plugin files and the related configuration entry from your DSH profile.
这是一个专为 DeepSeek Harness Web UI 开发的原生插件,会在会话界面右侧添加一个用户消息导航条。它仅索引用户直接发送的消息,排除工具通知、后台任务和注入上下文,支持追踪当前阅读位置、悬停预览消息内容、点击跳转至目标消息,支持中英文界面随 DSH 区域设置自动切换。安装要求 DSH 版本不低于 0.1.0-rc.6,且 Node.js 版本不低于 22。
安装完成后需要完整重启 DSH Web UI 才能加载插件。打开至少包含两条用户消息的聊天会话后,会话右边缘会默认显示一个当前阅读位置指示符,将鼠标移至右边缘即可展开完整导航条。悬停导航块可查看消息序号、发送时间和文本预览,点击即可跳转至对应消息,滚动会话时高亮会自动跟随当前位置更新,也支持键盘导航操作。
该插件遵循 MIT 开源协议,不会向任何第三方服务发送请求,也不会修改原会话内容,消息预览仅在本地 DSH 进程和浏览器间传递,且最多保留 80 个字符。可通过 DSH 插件 CLI 命令一键卸载,若通过本地脚本安装则需手动删除插件文件和配置条目。安装后无需额外配置即可直接使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-message-preview(asukasec/dsh-message-preview)
仓库:https://github.com/asukasec/dsh-message-preview
本站详情页:https://www.yhbd.top/plugins/asukasec-dsh-message-preview/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 9 · 最近提交 2026-08-14 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 9 stars - very few users, little community feedback星标只有 9,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add "github:asukasec/dsh-message-preview#main"
把 asukasec/dsh-message-preview 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-message-preview
DeepSeek Harness Web UI 的右侧消息导航条。它为当前会话中的每条用户消息生成一个导航块,可悬停预览、显示当前阅读位置,并点击跳转到对应消息。
Right-side user-message navigator for the DeepSeek Harness Web UI, with hover previews, reading-position tracking, and click-to-jump navigation.
功能
- 只索引用户直接发送的消息,排除工具通知、后台任务和注入上下文。
- 当前阅读位置随会话滚动自动高亮。
- 悬停显示消息序号、相对时间和文本预览。
- 点击后自动加载较早的会话历史,平滑滚动并高亮目标消息。
- 导航块会根据消息数量和文本长度自适应排布;少于两条用户消息时自动隐藏。
- 默认仅显示当前位置指示,鼠标靠近会话右侧时展开完整导航条。
- 中英文界面文案随 DSH locale 自动切换。
安装
要求:
- DeepSeek Harness
0.1.0-rc.6或更高版本 - Node.js 22 或更高版本
从 GitHub 安装:
dsh plugin --profile web add "github:asukasec/dsh-message-preview#main"
安装完成后完整重启 Web UI:
dsh web
也可以克隆仓库后从本地目录安装:
git clone https://github.com/asukasec/dsh-message-preview.git
cd dsh-message-preview
dsh plugin --profile web add .
Windows 用户还可以在克隆后的目录中双击 install.cmd。该脚本会定位 DSH_HOME、复制插件,并以幂等方式更新指定 profile 的 cordis.patch.yml:
.\install.ps1 -Profile web -DshHome "D:\path\to\dsh-data"
使用
打开至少包含两条用户消息的会话。会话右侧会显示一枚当前位置指示;将鼠标移到右缘即可展开导航条。
- 悬停导航块:查看消息序号、发送时间和文本预览。
- 点击导航块:跳转到该条用户消息。
- 滚动会话:高亮块会跟随当前阅读位置。
- 键盘导航:按
Tab聚焦当前位置,使用↑/↓、Home/End选取消息,按Enter跳转。
插件没有设置项,安装后即可使用。
工作原理
插件由宿主端和浏览器端两部分组成:
| 部分 | 文件 | 作用 |
|---|---|---|
| 宿主端 | lib/index.js |
注册 dshMessagePreview 会话投影,维护用户消息的序号、时间、短预览和持久 ID。 |
| 浏览器端 | lib/client.js |
挂载到 conversation.input.dock,通过 React Portal 渲染导航条,并负责预览、滚动定位和历史补载。 |
| Bundle | cordis.patch.yml |
让 dsh plugin add 自动把插件加载到 Web profile。 |
数据按以下优先级获取:
- 宿主端
dshMessagePreview投影,提供完整且轻量的消息索引。 - 当前已加载的会话节点,用于首屏回退。
- 投影尚未就绪时,通过
loadOlder()补载更早的历史。
插件不会向第三方服务发送请求,也不会修改会话内容。消息预览只在本地 DSH 进程和浏览器之间传递,宿主端预览最多保留 80 个字符。
卸载
如果使用 dsh plugin 安装:
dsh plugin --profile web remove dsh-message-preview
如果使用 install.cmd / install.ps1 安装,请删除:
$DSH_HOME/profiles/node_modules/dsh-message-preview$DSH_HOME/profiles/web/cordis.patch.yml中id: message-preview对应的插入项
然后重启 dsh web。
故障排查
导航条没有出现
- 确认当前会话至少有两条用户消息。
- 确认正在 Chat 会话视图中;其他页签不会挂载聊天 DOM。
- 完整停止并重新启动
dsh web,仅刷新浏览器不足以加载宿主端插件。 - 检查目标 profile 的
cordis.patch.yml是否包含dsh-message-preview。
点击后没有跳转
目标消息可能尚未加载。插件会自动请求较早历史;超长会话可能需要稍等片刻。如果目标已被宿主永久移除或对应 DOM 锚点不可用,则不会执行跳转。
开发与检查
仓库提交的是可直接加载的构建产物,不需要安装开发依赖即可做语法检查:
npm run check
npm pack --dry-run
发布前还应在 DSH Web UI 中验证:导航条展开、鼠标与键盘预览、滚动高亮、较早消息补载和点击跳转。
aa2246740/dsh-watcher
fredalxin/dsh-solo-thinking
better-er/dsh-pause
SakalioLabs/dsh-code-ide
lilwhich/dsh-plugin-gather
czm15053/dsh-peer-link