G57651/dsh-one-click-restart ↗★ 0

@dsh-restart/one-click-restart

提供一键重启 DSH 应用的工具和侧边栏按钮 适合频繁安装或调试插件,需要快速重启 DSH 宿主进程的用户。

包名
@dsh-restart/one-click-restart
兼容性
待验证
Harness 依赖范围
^0.1.7-rc.1
Cordis 依赖范围
^4.0.4
版本
0.1.0
许可证
MIT
最近更新
2026年9月27日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:G57651/dsh-one-click-restart

配置

在 profile 的 cordis.patch.yml 里按 id 覆盖:

- id: one-click-restart
  name: "@dsh-restart/one-click-restart"
  config:
    appName: "DeepSeek Harness"   # open -a 用的应用名
    relaunchDelayMs: 1500          # 退出后到拉起之间的延迟
    maxRelaunchAttempts: 10        # 拉起重试次数
    requestGracefulExit: true      # web 路径是否走 appExit
    enableHttpRoute: true          # 是否暴露按钮用的 HTTP 路由
    # restartToken: 固定令牌(默认每次启动随机生成)
    # appBundlePath: /Applications/DeepSeek Harness.app