dshbase

插件目录 / Developer / zhaoyu-restart

zhaoyu-restart

已验证 · 实测可装 SUJIElearning

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-23最近推送
跨平台平台

功能简介

One-click silent DSH restart button for DeepSeek Harness (dsh-plugin)

✅
我们的评价
可用 — 实测通过,早期项目

One-click silent DSH restart button for DeepSeek Harness (dsh-plugin) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

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

许可证 / License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 zhaoyu-restart」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:SUJIElearning/zhaoyu-restart

Headless(CLI)profile:

dsh plugin --profile headless add github:SUJIElearning/zhaoyu-restart

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →