← 返回列表
D

@y2zyyr/dsh-restart-button

v0.1.0 · 0 天前发布

Adds a Restart DSH button to DSH Desktop Settings → General (通用设置).

dshdsh-plugindeepseek-harnessdesktopsettingsrestart

README

Restart DSH

Adds a Restart DSH button to DSH Desktop → Settings → General (通用设置). It sits
directly below「繁忙时 Enter 键行为」and lets you restart the DSH Desktop application
with one click, using DSH's official graceful restart facility.

Features

  • Restart DSH Desktop from Settings → General (官方 slot:settings.general.item)

  • Uses the official DSH Desktop restart API

  • (ctx.desktopRuntime.requestRestart() → graceful Cordis teardown +
    app.relaunch() + app.exit(0)) — no shell, no kill, no sudo
  • Native confirmation dialog (native Modal + Button primitives) before restarting

  • Single-flight protection: while a restart is pending the button shows

  • 「正在重启…」and is disabled
  • Light / Dark theme via DSH design tokens (--dsw-alias-*) — no hardcoded colors

  • i18n: zh-CN
  • 查看完整 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
    @y2zyyr/dsh-restart-button
    Repo
    git+https://github.com/y2zyyr/dsh-restart-button.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-primitives"],"platform":"web"}}