dsh-power-awake
开发工具 活跃维护

dsh-power-awake

Bole1001/dsh-power-awake

跨平台适配 macOS、Windows 与 Linux 系统,可在关联工具运行时自动阻止设备进入休眠状态,保障远程访问连接稳定不中断,无需手动调整系统电源设置。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
10 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Bole1001/dsh-power-awake
git clone https://github.com/Bole1001/dsh-power-awake.git
git clone git@github.com:Bole1001/dsh-power-awake.git
README.md main

dsh-power-awake

Prevent the computer from sleeping while Harness is running.

On load with enabled: true the plugin spawns a platform keep-awake helper
and holds it until the plugin unloads or the model toggles it off through the
toggle_keep_awake tool.

Install

dsh plugin --profile web add dsh-power-awake

Or from a git host:

dsh plugin --profile web add github:your-org/dsh-power-awake

Usage

Once installed, the computer stays awake while Harness runs. Say
"turn off keep-awake" or "enable keep-awake" in any conversation and the
agent toggles it through the toggle_keep_awake tool.

To disable by default, override in your profile's cordis.patch.yml:

- id: power-awake
  config:
    enabled: false

Platform support

Platform Mechanism Notes
macOS caffeinate -dimsu (system tool) Blocks system sleep, idle sleep, and display sleep
Windows SetThreadExecutionState via PowerShell ES_CONTINUOUS \| ES_SYSTEM_REQUIRED
Linux systemd-inhibit Requires systemd; blocks sleep/idle/shutdown

No native dependencies. On an unsupported platform the plugin loads but
keep-awake is a no-op.

Development

npm install
npm run build

The repo-local symlinks node_modules/@deepseek-ai/cordis and
node_modules/@deepseek-ai/dsh-tools point into a deepseek-harness checkout
for development; remove them before publishing (npm fills published ranges).