DeepSeek Harness Hub
← 返回列表

SUJIElearning/zhaoyu-restart

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

@huangzhaoyu/zhaoyu-restart

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/23 · 已提供中文文档

DeepSeek Harness 的一键静默 DSH 重启按钮(dsh-plugin)

综合分
28.1
GitHub 分
28.1
用户评分
★ Stars
1
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add SUJIElearning/zhaoyu-restart
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/18(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/dsh-settings@deepseek-ai/schemastery
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

@huangzhaoyu/zhaoyu-restart

一键重启 DeepSeek Harness 的插件。在输入框左下角加一个"重启"按钮,点击后静默重启 DSH,无窗口弹出,旧标签页自动断线重连。

One-click silent restart button for DeepSeek Harness. Adds a "重启" button to the composer input bar. Click it to restart DSH silently — no window popup, the old tab auto-reconnects via WebSocket.

安装 / Installation

从 npm 安装
dsh plugin --profile web add @huangzhaoyu/zhaoyu-restart

配置 / Configuration

默认重启脚本路径是 restart-dsh.bat(位于 DSH 部署目录)。你可以通过 DSH 设置来修改:

settings.yaml
zhaoyu-restart:
scriptPath: "C:\\你的路径\\restart-dsh.bat"

或者在 DSH 设置界面中修改(如果设置了 UI 入口)。

使用 / Usage

安装后,在聊天输入框左下角会出现一个 🔄 重启按钮。点击后:
1. 按钮显示"重启中…"
2. Host 用 powershell.exe -WindowStyle Hidden 静默启动重启脚本
3. DSH 进程被重启,浏览器自动断线重连
4. 全程无窗口弹出,无感重启

工作原理 / How it works

- Host 端:lib/index.js — 用 ctx.inject(['webServer']) 注册 POST /zhaoyu-restart 路由
- Client 端:lib/client.js — 在 conversation.input.left 槽位注册重启按钮
- 重启:通过 subprocess.spawn 启动 powershell.exe -WindowStyle Hidden 执行重启脚本
- 配置:settings 命名空间 zhaoyu-restart.scriptPath 可自定义重启脚本路径

发布 / Release

- GitHub: SUJIElearning/zhaoyu-restart
- npm: @huangzhaoyu/zhaoyu-restart

许可证 / License

MIT

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

同作者(SUJIElearning)的其他插件

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群