dshbase

插件目录 / UI & Skins / dsh-admin

dsh-admin

已验证 · 实测可装 xiaokang6

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-18最近推送
跨平台平台

功能简介

DeepSeek Harness Web GUI admin plugin: manual restart + auto version check (header button + settings page)

✅
我们的评价
可用 — 实测通过,早期项目

DeepSeek Harness Web GUI admin plugin: manual restart + auto version check (header button + settings page) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-admin

A DeepSeek Harness Web GUI admin plugin: manual restart + automatic version check for the Harness itself. The UI is embedded directly into the Web GUI (header button + settings page), following the same pattern as dsh-usage-stats.

Features

  • Manual restart — a button in the session header (top-right, beside session log): one click schedules a clean restart of the dsh web service (double-confirm, then systemd-run + dsh-plugin-op restart — the local convention script that stops systemd, clears orphan instances on :3080, starts clean, and health-verifies).
  • Auto version check — compares the installed @deepseek-ai/dsh against the npm latest tag (semver-aware: stable > rc). Checked on load, then every 6 hours on the host; the panel shows current/latest/last-checked and a status dot (green = up to date, yellow = update available, red = check failed).
  • One-click update — when a newer version is available, a blue "Update to latest" button appears: it runs npm install -g @deepseek-ai/dsh@latest (with --allow-scripts for native deps) and then auto-restarts the service so the new version takes effect.
  • Embedded UI — no standalone page:
    • Top-right header button 🟢 0.1.1 (session header utilities slot, beside session log — never overlaps anything) → click to open a floating panel (top layer, z-index 9999): version status, check-now button, update button (when newer available), service info, restart button.
    • Settings → DSH Admin full page (same content, larger layout).

Routes (host half)

Route Description
GET /plugin/dshadmin/status JSON: current/latest version, isNewer, service info (pid, systemd, restart command)
GET /plugin/dshadmin/health {ok:true}
POST /plugin/dshadmin/check Force re-check npm latest
POST /plugin/dshadmin/update Update @deepseek-ai/dsh to npm latest then auto-restart (body must be {"confirm":true})
POST /plugin/dshadmin/restart Schedule restart (body must be {"confirm":true})

Restart priority: ① systemd-run + dsh-plugin-op restart (isolated cgroup — dsh.service is KillMode=control-group, a direct spawn would be killed by its own systemctl stop dsh; the transient unit runs the whole script: stop → clear :3080 orphans → clean start → health check) → ② plain dsh-plugin-op restart → ③ systemctl --no-block restart dsh → ④ socket-pid kill + relaunch.

Install

The package is a profile bundle (its manifest declares dsh.bundle.patch).

# Option A — install via the plugin manager
dsh plugin --profile web add xiaokang6/dsh-admin

# Option B — manual copy (never run npm install in the profile dir)
git clone https://github.com/xiaokang6/dsh-admin /tmp/dsh-admin
cp -r /tmp/dsh-admin ~/.dsh/profiles/web/node_modules/dsh-admin

Then make sure ~/.dsh/profiles/web/cordis.patch.yml contains:

- insert:
    - id: dsh-admin
      name: 'dsh-admin'

Restart dsh web (or use your local restart command) and hard-refresh the browser. Host changes require a service restart; client changes are picked up by client-modules HMR on page refresh.

Requirements

  • DeepSeek Harness (@deepseek-ai/dsh) installed via npm (global install; the restart chain uses dsh-plugin-op when present)
  • Linux + systemd (restart path; the check/UI parts work anywhere)

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-admin」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:xiaokang6/dsh-admin

Headless(CLI)profile:

dsh plugin --profile headless add github:xiaokang6/dsh-admin

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →