DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Restart Button — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@y2zyyr/dsh-restart-button

Restart Button

在 DSH Desktop 设置 → 通用设置中添加“重启 DSH”按钮。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @y2zyyr/dsh-restart-button@0.1.2
README兼容性版本

兼容性与来源证明

Restart Button 以 @y2zyyr/dsh-restart-button 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.2stable
2026/8/22
0.1.1stable
2026/8/19
0.1.0stable
2026/8/18

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
27.9 kB
文件数
9
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
36
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Pet@linxin666/dsh-pet适用于 dsh Web GUI 的多宠物伴侣插件:由注册表驱动的浮动宠物,可响应模型活动,支持为每只宠物命名、抚摸/喂食互动以及亲密度评分

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 + en
  • No telemetry, no network access, no credential access, no filesystem access

Installation

Local install into a DSH web profile (additive, backed-up edits):

  1. Add to ~/.dsh/profiles/web/package.json dependencies:
    "dsh-restart-button": "link:/path/to/dsh-restart-button"
    
  2. Add dsh-restart-button to dsh.profile.bundles.
  3. Run pnpm install in the profile directory.
  4. Restart DSH Desktop once so the new bundle's loader row activates.

Naming rule (DSH Desktop ≥ 2.0.2): the dependency key must be exactly the plugin's package.json name (dsh-restart-button, unscoped). The desktop validates that every bundle's resolved manifest name matches its reference name and otherwise refuses to load the whole profile with profile package identity is invalid. Do not alias the key to a scoped name.

The plugin's own cordis.patch.yml registers the Loader entry; the host half is loaded by Cordis and the browser half is served as /plugins/dsh-restart-button/client.js.

Compatibility

  • DSH Desktop (Electron shell) running in compatibility or advanced mode — provides the desktopRuntime service, so the button is enabled.
  • Pure dsh web (headless browser, no desktop shell): the button renders but is disabled with a note — the restart capability is not available there.
  • DSH core packages at ^0.1.0-rc.6 (compatible with the DeepSeek Harness Desktop runtime 0.1.0-rc.7; v0.1.1 widened the range so the DSH Desktop market verifier accepts the package).

Restart mechanism

The host half registers a browser-trust-fenced route (/dsh-restart-button/api, loopback / same-origin only) and calls the official ctx.desktopRuntime.requestRestart() when a desktop shell is present. The official implementation disposes the whole Cordis plugin tree (flushing settings / session state, 5 s grace), then app.relaunch() + app.exit(0). This is a graceful restart — never a process kill. If the desktop runtime is absent, the route reports restartable: false and the client disables the button.

Security

  • No shell execution — restart goes through the official desktopRuntime service; the plugin never spawns kill/pkill/osascript/sudo.
  • No network — the only route is a loopback, same-origin-fenced HTTP route.
  • No credential / token access — the plugin reads no .env, API keys, or session content.
  • No telemetry — the only runtime side effect is an optional boot marker under /tmp/dsh-restart-button-test/ used purely for local verification, and it is never shipped as telemetry.
  • Minimal permissions — the host only requires webServer (route) and optionally desktopRuntime; the client only slots/locale.

Development

  • pnpm install
  • pnpm typecheck (tsc, no emit)
  • pnpm test (node --test; real Cordis integration tests)
  • pnpm build (scripts/build.mjs → lib/index.js + lib/client.js)