YuYangOUC/dsh-power-button0

dsh-power-button

为 DSH 提供的自包含电源控制插件,在侧边栏添加重启/关机菜单,并支持 Windows 关机风格的遮罩层。

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