dsh-wei-sitecontrol
在终端中运行以下命令:
dsh plugin install TodayWei/dsh-wei-sitecontrol
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中运行 dsh plugin install TodayWei/dsh-wei-sitecontrol 即可安装,源码地址 https://github.com/TodayWei/dsh-wei-sitecontrol 。
插件介绍
Websites and HTTP services produced by DSH Agents tend to end up scattered across work directories with no shared registry, no version history, and no reliable way to know which one is holding a port. dsh-wei-sitecontrol collects them into a single dependency-aware registry and layers real operations tooling on top: start/stop/restart with logging, built-in isomorphic-git commit and push (no system git required), ssh2-based scheduled deployment with a rollback-capable release mode, and a live monitor showing CPU, memory, disk, per-site process usage, and running task names.
On the deployment side, the description-driven provisioning flow stands out. Hand the plugin a natural-language environment note plus a PEM directory and it parses the IP, SSH port, and service type, connects to the server to read the actual Tomcat or nginx configuration, back-fills uploadDir, configFile, appHome, and every other publishing field, then stores a timestamped verified snapshot. From there, manual publishes, scheduled runs, and release rollbacks all share the same code path, each step recorded, pending schedules re-bound after a DSH restart. The key vault exposes only fingerprints; private key material never crosses an API boundary or log line.
The plugin fits developers who use DSH Agents to produce batches of lightweight sites or internal HTTP services and want multi-site version control plus one-click rollback without maintaining a fleet of systemd units or hand-rolled deploy scripts. Once installed, a sidebar panel appears and the Agent gains a set of site_* tools; the rest is schedule-driven.
使用场景
- 用 DSH Agent 批量生成内部站点后,在统一面板集中启停、提交、发布并回滚
- 服务器环境说明是一段中文备注,插件自动解析、探测配置并回填全部发布字段
- 按排期定时发布,DSH 重启后自动续订 pending 任务,出问题一键切回上一版
适合人员
- 用 DSH Agent 产出多个轻量站点或 HTTP 服务、需要统一版本记录的开发
- 不想为每个内部服务手写 systemd 单元或部署脚本的独立开发者
- 需要定时发布、Release 回滚与资源占用一览的轻量运维场景