Saltar al contenido principal
M

dsh-ops-workbench

moldkey/dsh-ops-workbench

AI 宝塔 + AI 建站运维:一句话建站(nginx+证书自动配置)、站点体检(SEO/GEO/安全/真实流量)、部署前影响分析、出问题一键回滚;另含数据库备份与远程部署。含 BAOVOO 托管发布(ops_publish_hosted)。

Instalar

dsh plugin --profile web add github:moldkey/dsh-ops-workbench

README

DSHIO/T 10 deepseekbase

DSH Ops Workbench(AI 宝塔)— @liangjiehappy/dsh-ops

中文说明

A dev/ops workbench for DSH-managed sites. It checks health, SEO, GEO, code and security, and does snapshot / deploy / rollback with automatic recovery.

21 tools + 1 skill. Includes BAOVOO hosting publish (ops_publish_hosted) and migration acceptance checks.

Why this one is different: most DSH plugins only read. This one changes your server — snapshot, deploy, rollback — and it refuses to deploy when the impact analysis shows a file would be deleted unexpectedly.

# 1. install
dsh plugin --profile web add @liangjiehappy/dsh-ops
# 2. point it at your OPS workbench
dsh plugin config dsh-ops --set base=https://your-ops-host --set api_key=<key>
# 3. ask: "检查一下 example.com" / "部署 example.com"

If this saves you an outage, ⭐ star the repo — it is the only signal that tells us to keep maintaining it: https://github.com/moldkey/dsh-ops-workbench

Install

dsh plugin --profile web add @liangjiehappy/dsh-ops

Then set your API key (get one at https://dshio.org/me/):

dsh plugin config dsh-ops --set api_key=<your-key>

Or set the environment variable DSH_OPS_KEY.

Tools

ToolWhat it doesMutates
ops_statusSummary of all sites: score, per-category score, last deploy, open issuesno
ops_checkRun 15 checkers on one site, return detailed pass/warn/failno
ops_issuesOpen issues, sorted by severity, with first-seen and countno
ops_snapshotIncremental snapshot (sha256 diff + hard links)yes (add only)
ops_deployDeploy with impact analysis, auto-snapshot, auto-rollbackyes
ops_rollbackRestore to a snapshotyes
ops_restartRestart a systemd serviceyes
ops_trafficReal traffic: today vs yesterday, humans vs bots vs service worker, top pages and landing pagesno
ops_httpProbe page status, size, title and latency from the serverno
ops_migrate_checkMigration acceptance: hit the same paths on old and new host, diff status codes, surface "exists on old, missing on new" regressionsno
ops_readRead a server text file (code/config/log) with line numbers and secret redactionno
ops_serviceService status / restart / reload / nginx -t (authorised units only)yes (restart/reload)
ops_execRead-only diagnostics: df du ps uptime wc grep nginx_testno
ops_diskDisk status / cleanup (journal, nginx cache, old snapshots, old rotated logs); dry-run by defaultyes (on clean)

Publish to BAOVOO hosting (ops_publish_hosted)

Ship a finished static site to <name>.baovoo.com with SSL and a subdomain:

ops_publish_hosted(
  name: "alice",              // subdomain prefix → alice.baovoo.com
  src: "/var/www/mysite"      // directory to publish
)

Requires the project to be linked to BAOVOO hosting. No site yet? Start at https://baovoo.com/; plugins and verdicts live at https://deepseekbase.com/plugins/.

Changelog

See CHANGELOG.md. 0.5.0 adds ops_backup and ops_migrate_check, and keeps ops_publish_hosted (BAOVOO hosting publish).

Migration acceptance (ops_migrate_check)

After moving a site to a new host, changing domains or switching CDN: hit the same paths on old and new host and diff the status codes. No API key needed — it probes over plain HTTP, so any user can run it right after install.

ops_migrate_check(
  source: "https://1.2.3.4",         // old host (IP works with source_host)
  source_host: "example.com",        // Host header for the old host
  target: "https://new.example.com",
  // paths: omitted => discovered from the new host's sitemap.xml
  insecure: true                      // cert not ready / accessing by IP
)

Verdicts: REGRESSION exists on old, missing on new (must fix); NEW; OK; BOTH_MISSING. GET only — no login, no form posts, no writes.

Checkers (15)

CategoryCheckers
deploydeploy_smoke deploy_assets deploy_sitemap
seoseo_title seo_desc seo_canonical seo_hreflang seo_structured
geogeo_ai_crawler geo_citable
codecode_language_mix code_package_clean code_secret
securitysec_fail2ban sec_backup

Skill

ops-guide — loaded when the user asks about site status, deployment or rollback. It explains which tool to use, what to check before a risky operation, and how to read the deploy impact analysis.

Deploy safety — three layers

The ops_deploy tool was built in response to a real incident: an rsync --delete removed 3 static JS files and broke mobile layout, the feedback button and the PWA prompt for 4 days.

  1. Source completeness — if the build directory is missing expected subdirectories, deploy aborts (source is older than target).
  2. Impact analysis — the tool lists every file that would be deleted. Files not in the source and not on the delete whitelist abort the deploy.
  3. Verify + rollback — a snapshot is taken before deploy; smoke checks run after; any failure triggers automatic rollback.

Always run ops_deploy with dry_run: true first.

Data source

API: https://deepseekbase.com/work/api/

Third-party project. Not affiliated with DeepSeek.

装完之后先看什么

  1. 跑一次体检:ops_status 看你管的所有站点
  2. 有问题的站:ops_issues 看清单,ops_check 复查
  3. 要改站点:先 ops_snapshot,再 ops_deploy(dry-run 看影响)
  4. 工具集合(2,268 个工具,一条命令):https://deepseekbase.com/bundles/
  5. 标准引用:DSHIO/T 10 插件标准 · DSHIO/T 21 测试条件 · DSHIO/T 32 认证规则

Side panels

Installing this plugin adds two tabs to the DSH right sidebar:

TabWhat it does
DSH-OPSSite overview and actions: site count, healthy / needs attention, open issues, last check; after sign-in shows account, role and your sites; per-site actions: open, check, snapshot, deploy
DSH-DEVPlugin development: scaffold, static checks, four-stage sandbox results

DSH-OPS opens automatically about 1.5 s after install.

Panel missing?

  1. Make sure the plugin is 0.5.9 or newer (0.5.8 and earlier do not render on rc.5)
  2. Open the right-sidebar tab list and pick DSH-OPS
  3. Still missing: restart DSH (a page refresh is not enough)

Permissions: owner / admin can check, snapshot and deploy; operator can only check.

1. ops_status            scores and open issues for every site
2. ops_issues            issue list for one site
3. ops_check             re-check to confirm
4. ops_snapshot          snapshot before deploying
5. ops_deploy(dry_run=1) review impact first
6. ops_deploy            deploy
7. ops_check             verify after deploy

Use ops_rollback with the snapshot from step 4 if a deploy fails. Every action is written to the audit log.

Feedback

Three ways to report a problem or request a feature; all land in the same feedback store:

  1. In the panel: the "问题反馈" box at the bottom of the DSH-OPS panel (at least 10 characters)
  2. On the website: the "问题反馈" button at the bottom-right of any page on deepseekbase.com
  3. On the plugin page: the feedback entry on plugin detail pages at https://deepseekbase.com/plugins/

Feedback is stored in the deepseekbase feedback store and visible to the workbench at /work/feedback/.

FAQ

Why is my site not indexed by Bing? Check sitemap and robots first, then whether Bingbot ever fetched the page. Ops reports the share of never-crawled URLs and supports IndexNow for new pages.

How do I roll back a bad deploy? Every deploy takes a snapshot and shows an impact analysis first; ops_rollback restores the chosen snapshot.

Is this a Baota panel alternative? Baota is a server panel; Ops is site operations — checks, deploy, rollback and traffic in one, runnable from DSH chat.

What is free? Site status, health checks, issue list, 8 basic checkers, snapshots and the traffic dashboard.

Plugins relacionados