DeepSeek Harness Plugin

zi7tian/dsh-keep-awake

Stars ★ 0 Downloads (30d) 1,390 Category Tools & Capabilities Added 2026-10-17 npm @zi7tian/dsh-keep-awake

Keeps the DSH host awake during active tasks using native power assertions and releases them when tasks finish.

Install

# from npm (prebuilt)

dsh plugin --profile web add @zi7tian/dsh-keep-awake

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zi7tian/dsh-keep-awake

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

DeepSeek Harness 主机保活插件:AI 任务运行时自动保持主机亮屏、防止休眠,全部任务结束后释放保活请求。

插件介绍

  • 保活由 DSH 后端控制,支持多个会话和子 Agent;关闭网页或切换到后台不影响运行中的任务。
  • 在侧边栏的设置同一行显示太阳图标,点击可查看状态、运行任务数量,以及开启或关闭保活。
  • 使用普通用户权限的临时电源断言,不需要管理员权限,不修改全局电源设置,不模拟鼠标或键盘。
  • Windows 使用 Power Request,macOS 使用 IOKit,Linux 使用 D-Bus ScreenSaver 和 logind。系统接口不可用时会显示部分生效或失败状态。
  • 主机开关作用于当前 DSH 进程,重启后默认开启。插件停止或宿主退出时释放请求。

保护对象是运行 DSH 后端的设备。手动锁屏、合盖及系统强制策略可能覆盖保活。Linux 已实机验证;Windows 和 macOS 已实现,尚待实机验证。针对 DSH 0.2.0-rc.2 开发。

安装方法

从 npm 安装(推荐)

dsh plugin --profile web add @zi7tian/dsh-keep-awake

从 GitHub 安装

dsh plugin --profile web add github:zi7tian/dsh-keep-awake

本地安装

git clone https://github.com/zi7tian/dsh-keep-awake.git
cd dsh-keep-awake
npm ci
dsh plugin --profile web add link:/absolute/path/to/dsh-keep-awake

将路径替换为实际插件目录,Windows 使用对应本地路径。插件依赖 Koffi,安装时会获取适合当前平台的原生组件;Linux 还需要系统提供 libdbus-1 及相应的会话服务。

安装或升级后,等待当前任务结束,重启 dsh web 并刷新页面。设置旁出现太阳图标即表示控制面板已加载。桌面版请通过其插件管理器安装。

卸载

dsh plugin --profile web remove @zi7tian/dsh-keep-awake

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.