← 返回列表
D

dsh-setting-restart

v1.0.0 · 0 天前发布

One-click restart of the DSH service from Settings > General (通用设置 · 一键重启)

dshdsh-plugindeepseek-harnessrestartsettings

README

dsh-setting-restart

设置 → 通用设置 页面一键重启 DSH 服务。「一键重启」这一行固定在通用设置页面的最底部——之后无论通用设置里新增多少功能,它始终显示在页面最下方。重启后页面自动重连,按钮会显示绿色「连接成功」,确认服务已恢复。

![dsh-plugin](https://github.com/topics/dsh-plugin)

功能

  • 通用设置页面最底部新增「一键重启」一行(固定在最下方,不依赖与其他设置项的相对位置)。

  • 使用最大插槽 order 值固定行位置:之后无论通用设置里加了多少东西,它总在页面最下方。

  • 真正的进程级重启:宿主进程先派生出独立的 relaunch 辅助进程,然后自身退出;辅助进程等旧进程完全退出后,用完全相同的命令(可执行文件、参数、工作目录、环境变量)重新拉起 DSH。新实例绑定同一端口后,浏览器页面自动重连。

  • 界面文案中英双语,遵循 DSH 客户端约定。

  • 通过 DSH Typert RPC 注册表提供类型化的宿主调用(settingRestart/restart)。
  • 环境要求

  • DeepSeek Harness dsh ≥ 0.1.0-rc.6(web profile)。

  • Node.js ≥ 20。
  • 安装

    1. 把插件安装到 web profile(该命令会在 profile 目录内执行 pnpm add):

    sh
    dsh plugin --profile web add dsh-setting-restart

    2. 在 profile 的用户 patch 层 `$D

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-setting-restart
    Repo
    git+https://github.com/893413974-bit/dsh-setting-restart.git
    Engines
    {"node":">=20"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-api-remotes","@deepseek-ai/dsh-client-ui-sidebar","@deepseek-ai/dsh-client-ui-settings-general"]}}