yangzhe1991/dsh-web-enhance

DSH Web UI 增强插件:逐轮对话导航与思维链默认展开

Project Overview项目介绍

dsh-web-enhance is a browser-side plugin that extends the official DSH (DeepSeek Harness) Web GUI with four quality-of-life toggles, installed via the dsh plugin --profile web add @yangzhe1991/dsh-web-enhance command and applied after a Web GUI restart. Its current built-ins are: a floating bottom-right lightbulb that auto-expands every "Think" reasoning disclosure (persisted in localStorage and yielding to manual collapse), a CNY session-cost meter rendered on the far left of the built-in token-stats line for sessions running on the official DeepSeek API at real peak/off-peak rates, an "open in system app" handler that hands clicked file paths to the OS default application instead of opening the right sidebar, and the completion chime plus tab-title alert inherited from the now-retired dsh-task-notify, controlled by an on/off switch under Settings → General. The build ships a Node half and a browser half (lib/index.js, lib/client.js), and the bundle subscribes to useSessions (filtering subagent children), useSessionStatus (running, pendingInteraction.key), and watchRows from the jobs client service.

Its primary audience is the DSH Web user who wants to read every reasoning row in real time, monitor spending against monthly budgets, skip the repetitive file-open sidebar, and rely on an audible cue when a long-running job or pending dialog is genuinely idle. The notification subsystem is a pure state machine in notify-monitor.ts without React or DOM dependencies, projecting official snapshots into per-session facts and injecting no jobs requirement, so missing job data simply disables the alert. The plugin also intentionally avoids fragile DOM scraping because the DSH 0.1.7 chat DOM is no longer stable.

Compatibility floor is DSH 0.1.7-rc.2 for the completion alert (introduced in 0.2.0) and 0.1.2-alpha.4 for every other feature, with verified coverage of 0.1.3-alpha.2, 0.1.5-rc.2, and 0.1.7-rc.2, while legacy 0.1.0-rc.x snapshot paths remain supported. Contributors run npm install, npm run build, npx tsc --noEmit, and optionally node probe/notify-probe.mjs against a fake clock; tsconfig paths must reference the host CLI's own node_modules to preserve cross-package declaration merging (notably GlobalStandardProps.useSessions). Note that DSH 0.1.7 renamed IconChevronUpOutline14 to IconChevronUpOutlineMedium, so an icon import that resolves to undefined produces a blank page that looks like a load failure. Uninstall with dsh plugin --profile web remove @yangzhe1991/dsh-web-enhance, and the project is released under the MIT license with three stars on GitHub and a published npm package.

dsh-web-enhance 是面向 DSH(DeepSeek Harness)Web 界面的浏览器插件,通过 dsh plugin --profile web add @yangzhe1991/dsh-web-enhance 安装并随 Web GUI 重启生效。当前内置四项增强:右下角浮窗开关自动展开"思考链"、在统计行最左端显示按官方峰谷定价换算的 CNY 会话成本(仅 DeepSeek API 会话)、用桌面默认程序替代右栏内的点文件路径,以及合并自已停更的 dsh-task-notify 的完成提示音与标签页闪烁。插件以 Node 与 Browser 双 bundle 形式发布,注入客户端订阅 useSessions、useSessionStatus 与 jobs 客户端服务的 watchRows,状态机独立于 React。

典型使用场景:希望实时观察完整推理、控制月度开销、避免在长会话末尾反复点击文件链接的 DSH Web 用户,以及从 dsh-task-notify 平滑迁移而来、依赖提示音提醒的开发者。它面向将 DSH 作为唯一运行平台的本地交互者,不涉及 CLI 渠道或多端协同。

依赖上要求 DSH ≥ 0.1.7-rc.2 以启用完成提示,0.2.0 起作为最低线;其余特性自 DSH 0.1.2-alpha.4 起可用,并经 0.1.5-rc.2、0.1.7-rc.2 逐步验证,同时保留对 0.1.0-rc.x 旧快照路径的回退。卸载使用 dsh plugin --profile web remove,许可证为 MIT。提示音与"用系统应用打开"两项提供 Settings → General 内的独立开关,且插件故意不在 inject 中声明 jobs,以保证该服务缺失时其余功能不受影响,运行时将诊断字段写入 document.documentElement.dataset.dshWebeNotify。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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 @yangzhe1991/dsh-web-enhance

把 yangzhe1991/dsh-web-enhance 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-web-enhance

English | 中文

npm version npm downloads license dsh-plugin

dsh-web-enhance is a browser plugin for the DSH (DeepSeek Harness) web UI that adds small quality-of-life features. It currently ships:

  • Thinking chain default-expand — a floating toggle (the lightbulb button at the bottom-right, on by default) that automatically expands every "Think" reasoning disclosure in the conversation, so the full thinking chain is visible while streaming instead of a one-line summary.
  • Session cost meter — when a session runs on the official DeepSeek API, an estimated session cost (CNY) is shown at the far left of the same line as the built-in input/output token stats, priced per request at the real peak/off-peak hour using the official pricing page rates.
  • Open files in the system app — clicking a file path in the conversation hands it to your desktop default application (VS Code, text editor, …) instead of popping the right sidebar. Can be turned off in Settings → General.
  • Completion alert — a chime when a session really finishes its work (or the moment a dialog waits for your choice), plus a tab-title alert while you are on another tab. On by default; can be turned off in Settings → General. (Merged in from the retired dsh-task-notify plugin.)

Migrating from dsh-task-notify? That plugin is retired — its completion alert now lives here as a built-in feature (same decision rules, plus an on/off switch in Settings → General). Switch over with:

dsh plugin --profile web remove @yangzhe1991/dsh-task-notify
dsh plugin --profile web add @yangzhe1991/dsh-web-enhance

then restart the Web GUI and refresh the tab. This plugin's other features come along for free.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev deepseek-harness-desktop-windows 下一个 Next dsh-file-convert →