kgwdonkey/dsh-header-controls ↗★ 0

dsh-header-controls

会话右上角电源控制:Session log 左侧的「重启 / 注销」胶囊按钮,与官方版式一致(静态 web 插件) 核心用途是在会话页右上角添加与官方风格一致的「重启 / 注销」按钮。适合需要快速重启 DSH 服务或安全关闭实例的用户。支持从本地配置文件读取启动参数。

Package
dsh-header-controls
Compatibility
Unverified
Version
0.1.4
License
MIT
Last updated
Aug 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

🚀 使用 / Usage

按钮行为
重启点击即触发:服务退出 → 自动重新拉起 → 页面自动刷新(约 10~30 秒,取决于启动速度)
注销第一次点击进入确认态(按钮变红),再点一次确认关闭 dsh

⚙️ 配置 / Configuration

重启助手从 %LOCALAPPDATA%\DeepSeekHarness\launcher.config.json 读取启动参数:

{
  "node": "node 可执行文件路径",
  "repo": "dsh 仓库目录(含 apps/cli/lib/bin.js)",
  "profile": "web",
  "port": 3080,
  "host": "127.0.0.1"
}

缺失该文件时回退默认值:node=process.execPath、repo=$env:DSH_REPO、profile=web、port=3080、host=127.0.0.1;若 dsh 无预构建产物,则回退系统 dsh 命令垫片启动。