DeepSeek Harness 插件

aa2246740/dsh-notch#dsh-notch-focus

Star 数 ★ 7 下载量(近 30 天) 1,056 分类 通知与集成 收录于 2026-10-13 npm dsh-notch-focus

DSH Notch 的配套助手,同步 Desktop、Web 与 Notch 之间的会话跳转和已读状态。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-notch-focus

# Release 预构建包

dsh plugin --profile web add -w "https://github.com/aa2246740/dsh-notch/releases/download/v0.3.4/dsh-notch-focus-0.1.2.tgz"

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:aa2246740/dsh-notch#path:/companions/dsh-notch-focus

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

DSH Notch 的客户端同步助手。0.1.6 源码的 @deepseek-ai/dsh-* peer 为 >=0.2.2-rc.1 <0.2.3,对应 DeepSeek Harness dsh-v0.2.2-rc.5 Desktop / Web,与 dsh-notch 0.3.9 同时更新。该范围接受 0.2.2-rc.5 和稳定版 0.2.2,拒绝 0.2.1-rc.5、0.2.1 和 0.2.3。已发布的 0.1.1 包仍在 v0.3.2 Release 里。

  • 从 Notch 点击会话,通过 RC2 的 uiWorkspace.openSession 打开对话。
  • 从 RC2 uiSession.sessionStatus 读取未读完成状态,通过 retainedBy.mainView 识别当前会话。
  • 仅前台页面查看已完成会话时发送带时间的阅读确认;后台页面、仍运行的会话不会清除未读结果。
  • 保留用户 fork,只排除 origin: subagent 的子代理;允许 API 创建的自定义会话 ID。
  • 首次轮询忽略旧跳转请求,避免重新打开页面时意外切换会话。

安装

与 Host 插件装到同一个 profile。Desktop 在添加插件向导里填 dsh-notch-focus;Web 使用:

dsh plugin --profile web add dsh-notch-focus

离线包是 v0.3.9 Release 的 dsh-notch-focus-0.1.6.tgz。已发布的 0.1.1 包仍在 v0.3.2 Release。

包内已有官方 dsh.bundle.patch,不要再手动追加同名条目。按管理器提示完成加载并重新打开页面;已有安装更新原条目。只替换磁盘文件不代表当前页面已加载新代码。

从源码构建

开发者需要 Node.js 24、DSHX 和已备好依赖的 dsh-v0.2.2-rc.5 Harness checkout。在本目录运行:

npm ci --ignore-scripts --legacy-peer-deps
DSHX_HARNESS=/absolute/path/to/deepseek-harness npm run build

编译只写本插件的 lib/。客户端产物为 lib/client.js,使用 DSHX 的外部构建适配器。发布包已经带有该产物,安装者无需源码构建或 DSHX。

English

The 0.1.6 companion source targets DSH dsh-v0.2.2-rc.5 Desktop and Web with Notch 0.3.9. Its @deepseek-ai/dsh-* peer is >=0.2.2-rc.1 <0.2.3: that accepts 0.2.2-rc.5 and stable 0.2.2, and rejects 0.2.1-rc.5, 0.2.1, and 0.2.3. It uses uiWorkspace.openSession, uiSession.sessionStatus, and main-view retention for bidirectional navigation and timestamped reading acknowledgements. Inactive pages and running sessions cannot clear unread results. User forks remain independent; delegated subagents are excluded. The published 0.1.1 tarball remains on the v0.3.2 release. Offline install uses dsh-notch-focus-0.1.6.tgz from the v0.3.9 release.

Install the prebuilt .tgz from the linked release using the Desktop Plugins page or the Web CLI above. Both plugins must use the same profile. The package supplies its Bundle patch; do not mount it again manually. Follow the manager's loading instructions and reopen the page. Client HMR in every Desktop variant is not claimed.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。