keyiadiannao/dsh-power-button ↗★ 1
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` 模型工具。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:keyiadiannao/dsh-power-buttonドキュメント
README 全文を読む ↗Configuration
The plugin is configured through the profile's cordis layer (cordis.patch.yml or the settings UI):
| Key | Default | Meaning |
|---|---|---|
enableModelTool | true | Register the restart_harness model tool. Set false to keep restart exclusively on the GUI button and /restart. |
maxDelayMs | 5000 | Upper bound (ms) for the model tool's delayMs argument. The effective floor is 1000 ms. |
Example:
- id: dsh-power-button
config:
enableModelTool: true