dsh-auto-shutdown

DSH PLUGIN通知与集成

仓库 873360545/dsh-auto-shutdown

通知与集成 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

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

一句话选型结论

按资料字段整理

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

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

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:873360545/dsh-auto-shutdown
  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 查看包信息

能做什么

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

适用场景

通知

上游标签

automationdeepseek-harnessdshdsh-pluginshutdownwindows

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

选择建议

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

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-auto-shutdown当前 L4 · 沙盒安装通过 低风险 0 未标注 有
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 未标注 无

仓库档案

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

README 全文

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

dsh-auto-shutdown

中文说明 · Windows only · works with DeepSeek Harness ≥ 0.2.1

A DeepSeek Harness plugin that adds one switch in Settings → General: turn it on, and
the computer shuts itself down when the next conversation finishes — with a native
Windows dialog that can cancel the pending shutdown with a single click.

Install

dsh plugin add github:873360545/dsh-auto-shutdown

Or install a prebuilt tarball from a GitHub Release:

dsh plugin add https://github.com/873360545/dsh-auto-shutdown/releases/latest/download/dsh-auto-shutdown.tgz

Then restart the Harness (Host restart is enough) and look for the plugin entry
auto-shutdown in the profile.

Use

  1. Open Settings → General and find “Power off after the conversation finishes”.
  2. Turn it on.
  3. Finish a conversation: when that turn ends, the plugin
    - resets the switch to off (it is a one-shot trigger, never re-armed by a reboot),
    - schedules shutdown.exe /s /t,
    - opens a desktop countdown dialog.

The dialog offers:

Button Result
Cancel shutdown runs shutdown /a; the machine stays up
Keep shutdown / close / countdown reaching zero the planned shutdown happens

You can also cancel from any terminal with shutdown /a.

Configuration

All three fields are editable live from the Settings page and the Plugins page — no restart.

Field Default Meaning
enabled false The switch. It is set back to false right before a shutdown is scheduled, so the trigger fires exactly once.
delaySeconds 60 Shutdown delay in seconds (5–86400). The dialog countdown mirrors it.
popup true Whether to show the cancel dialog at all.

Safety notes

  • No administrator rights are required; shutdown /s /t is available to the logged-in user.
  • Only a root conversation can trigger it: turns of subagents/teammates are ignored, and
    if another agent is still running the trigger waits for the next turn boundary.
  • DSH_AUTO_SHUTDOWN_DRYRUN=1 in the Host environment logs the two commands instead of
    running them — useful for testing the wiring.
  • DSH_AUTO_SHUTDOWN_POPUP_LOG= makes the dialog append its user actions to a file.
  • The dialog only ever runs shutdown /a; it never schedules anything.

How it works

  • Host half (lib/index.js): listens to the agent/turn-stopping event, filters to root
    agents, latches once, writes enabled = false through the Settings service, then spawns
    shutdown.exe. It is a validated Cordis plugin (Config with volatile fields), so the
    switch is a real Settings document write.
  • Cancel dialog (lib/popup.js + assets/notify.ps1): a detached Windows PowerShell 5.1
    WinForms window with a countdown (always-on-top when ≤ 120 s). Its copy is passed as argv and
    the script itself stays ASCII-only, so a non-UTF-8 code page cannot mangle Chinese text.
  • Client half (lib/client.js): registers one settings.general.item row that renders the
    switch from ctx.configForms, i.e. from the Host's own configuration form.

Development

# schemastery is only resolvable through a junction when testing outside the profile
New-Item -ItemType Junction -Path node_modules\@deepseek-ai\schemastery `
-Target "C:\Users\\AppData\Roaming\DSH\data\versions\\node_modules\@deepseek-ai\schemastery"

$env:DSH_AUTO_SHUTDOWN_DRYRUN = '1'
node test-dry-run.mjs        # host logic: filtering, disarm, argv, one-shot
node tests/popup-test.mjs    # real window: self-close, cancel path, failure path, shutdown /a
Remove-Item -Recurse -Force node_modules

tests/popup-test.mjs uses -SimulateCancel -TestCancelCommand 'cmd /c exit 0' style test
switches, so it never touches a real pending shutdown.

Layout

File Role
lib/index.js Host plugin: event trigger, disarm, spawn shutdown.exe
lib/popup.js Cancel-dialog argv builder + launch (shared with the tests)
lib/client.js Settings row with the switch
assets/notify.ps1 Windows PowerShell/WinForms countdown dialog
cordis.patch.yml Inserts the Host entry auto-shutdown
locale/*.json Plugin list title/description

License

MIT


中文说明

Windows 专用。为 DeepSeek Harness 增加一个设置开关:打开后,下一次对话完成时自动关机,
并在关机前弹出一个原生 Windows 对话框,点一下即可取消本次关机。

安装

dsh plugin add github:873360545/dsh-auto-shutdown

安装后重启 Harness(重启 Host 即可),插件条目为 auto-shutdown。

使用

  1. 设置 → 通用 → 找到「对话完成后自动关机」,打开开关。
  2. 正常结束一次对话,此时插件会:
    - 把开关自动复位为关闭(只触发一次,重启后不会突然关机);
    - 执行 shutdown.exe /s /t <延迟>;
    - 弹出倒计时对话框。
  3. 对话框里点「取消关机」→ 执行 shutdown /a,电脑保持开机;点「继续关机」/ 直接关窗 /
    倒计时归零 → 按计划关机。也可以在终端随时执行 shutdown /a 取消。

配置项(均可在设置里实时修改,无需重启)

字段 默认值 说明
enabled false 开关。排定关机前会自动写回 false,保证只触发一次。
delaySeconds 60 关机延迟秒数(5–86400),也是弹窗倒计时时长。
popup true 是否弹出取消窗口。

注意事项

  • 不需要管理员权限。
  • 只有根会话能触发:子 Agent / 团队成员回合会被忽略;若还有其它 Agent 在运行,会推迟到下一次回合边界。
  • 设 DSH_AUTO_SHUTDOWN_DRYRUN=1 可只打日志、不真的关机;设 DSH_AUTO_SHUTDOWN_POPUP_LOG=<文件>
    可记录弹窗里的用户操作,便于排障。
  • 弹窗只会执行 shutdown /a,不会自己排定任何关机。

许可

MIT

常见问题

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

在 DSH 里执行 `dsh plugin --profile web add github:873360545/dsh-auto-shutdown` 即可。

dsh-auto-shutdown 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-auto-shutdown 安全吗?

低风险。

dsh-auto-shutdown 装之前要先确认什么?

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

dsh-auto-shutdown 用的是什么许可证?

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

这条记录的数据可靠吗?

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

同名或近似条目

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

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 星

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