YuYangOUC/dsh-power-button0

dsh-power-button

Self-contained power control for DSH: sidebar power button with an upward 重启/关机 menu plus a Windows-shutdown-style overlay. Own restart & shutdown engine (no dependency on other plugins), MIT licensed.

AI 분석

核心用途是提供便捷的系统级电源管理。适合需要直接从 Web 界面重启或关闭 DSH 服务的用户。支持通过设置启用或禁用 `restart_harness` 模型工具。

패키지
dsh-power-button
버전
0.3.0
라이선스
MIT
최근 업데이트
2026. 8. 24.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuYangOUC/dsh-power-button

Configuration

The plugin is configured through the profile's cordis layer (cordis.patch.yml or the settings UI):

KeyDefaultMeaning
enableModelTooltrueRegister the restart_harness model tool. Set false to keep restart exclusively on the GUI button and /restart.
maxDelayMs5000Upper bound (ms) for the model tool's delayMs argument. The effective floor is 1000 ms.

Example:

- id: dsh-power-button
  config:
    enableModelTool: true