dsh-tray-restart

DSH PLUGIN通知与集成

仓库 Joshua1ya/dsh-tray-restart

通知与集成 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-tray-restart 是 Joshua1ya 维护的 通知与集成 类 DSH 可安装插件, 仓库为 Joshua1ya/dsh-tray-restart,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-tray-restart 是通知与集成类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类通知与集成 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 1 复刻 0 · 未关闭 issue 0
最近更新 2026-10-26 创建于 2026-10-24
README 3.2 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:Joshua1ya/dsh-tray-restart
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

通知

上游标签

dsh-plugin

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在通知与集成场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-tray-restart当前 L5 · 运行验证通过 低风险 1 未标注 有
treg L3 · 安装规范通过 低风险 4,976 未标注 无
dsh-purge 未做沙盒验证 未标注 3,412 未标注 有
dsh-im L5 · 运行验证通过 低风险 1,837 0.1.7-rc.2 等 10 个 有
dsh-dafeiyu L5 · 运行验证通过 低风险 425 0.1.7-rc.2 等 10 个 有
dsh-trading L3 · 安装规范通过 低风险 235 未标注 无

仓库档案

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方Joshua1ya仓库 dsh-tray-restart · 默认分支 main
分类通知与集成notify
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue1 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-24 · 2026-10-26最后推送 2026-10-26
本站收录2026-10-30首次进入本站目录的时间

README 全文

3.2 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-tray-restart

Restart the DeepSeek Harness desktop app — the Electron shell and the Host process it runs — without quitting by hand.

A restart button in the session header, plus a Windows tray icon with the same action. Other plugins, skins, and settings are reloaded on the way up.

> Windows only. The plugin lives on WinForms and taskkill; on any other platform it does nothing and logs why.

What you get

  • Header button — a small restart icon in the top-right utilities row of every session.
  • Tray icon — right-click for Restart DSH (app + host) / Open DeepSeek Harness / Quit tray icon. Left-click opens the app.
  • One action — both paths kill the whole process tree (taskkill /T /F), wait for it to exit, clear a stale profile lock if the previous run left one, and start the app again.

Requirements

  • DeepSeek Harness desktop app, Windows 10 or 11.
  • Nothing else. No build step, no dependencies.

Install

# from npm — prebuilt, no build step
dsh plugin add dsh-tray-restart

# or straight from this repository
dsh plugin add https://github.com/Joshua1ya/dsh-tray-restart

Then quit the app completely and reopen it once — client bundles and the host rows are collected at startup, so a page refresh is not enough.

After that first restart the plugin maintains itself: the header button is there, and the tray icon appears on every launch.

Uninstall

dsh plugin remove dsh-tray-restart

The tray icon disappears with the next app restart (or quit it from its own menu).

How it works

Piece What it does
index.js (Host) Registers GET /dsh-tray-restart/status and POST /dsh-tray-restart/restart on the web server, and starts the tray helper.
client.js (Web UI) Renders the header button into conversation.session.header.utilities.
assets/tray.ps1 WinForms NotifyIcon, polls the shell process so it disappears when the app does.
assets/launch-*.ps1 Start the tray or the restart helper through WMI (Win32_Process.Create) — see below.
assets/restart.ps1 Kill the shell (and its process tree), wait, clear ~/.dsh/profiles//lock, relaunch the executable.

Two implementation details worth knowing if you fork this:

  1. The helper must be started outside the app's process tree. The Host runs inside a Job object that restricts USER handles, so a child process created with a normal spawn/Start-Process builds its NotifyIcon without error but never appears in the notification area. Processes created through Win32_Process.Create are parented to WmiPrvSE instead and register fine. The restart helper goes through the same path for the same reason — and it must, because it kills the app's process tree and would otherwise kill itself first.
  2. ctx.get('webServer') is undefined during a plugin's apply. The web server starts after plugin rows load. Route registration therefore waits with ctx.inject(['webServer'], …); the tray start is independent and must not return early.

Restarting from here is equivalent to quitting the app from its menu and launching it again — nothing is kept in memory across the restart.

License

MIT

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-tray-restart 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:Joshua1ya/dsh-tray-restart` 即可。

dsh-tray-restart 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-tray-restart 安全吗?

低风险。

dsh-tray-restart 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-tray-restart 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

3 条
不同作者的仓库分开列,请确认你要装的是哪一个
通知与集成
按星标排序,可作替代方案

treg

treg

Treg 是面向 Agent 工具的 OpenRouter,聚合 60 个提供商的 2896 个端点,按调用计费,统一令牌访问,无需注册各供

L3 · 安装规范通过 4,976 星

dsh-purge

dsh-purge

dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚

未标注验证等级 3,412 星

dsh-im

dsh-im

将IM机器人接入DeepSeek Harness,支持飞书、微信、钉钉等九种渠道,通过扫码或凭据配置,统一管理多机器人连接。

L5 · 运行验证通过 1,837 星

dsh-dafeiyu

dsh-dafeiyu

DSH 大肥鱼是一款由 DeepSeek Harness 真实工作状态驱动的桌面伴侣插件,以始终置顶的透明窗口实时展示 Agent 的思考、

L5 · 运行验证通过 425 星

dsh-trading

dsh-trading

L3 · 安装规范通过 235 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。