dsh-harness-ops¶
| Type | workflow | Category | Automation |
| Stars | ⭐9 | Status | ✅ active |
| Capabilities | automation, observability | Updated | 2026-08-14 |
📖 About¶
dsh-harness-ops(本仓库) ├── skills/dsh-snapshot-ab/ AB 轮换:官方快照 A/B 双槽,旧版保底、验收后原子切换 │ └── scripts/ab.sh 主命令(status/discover/notes/prepare/verify/switch/confirm/rollback) ├── skills/dsh-web-guard/ 自愈守护:launchd/systemd 托管,端口空闲 10s 内拉起 web │ └── scripts/install.sh 跨平台安装(macOS launchd / Linux systemd) ├── skills/dsh-session-recovery/ 会话丢失诊断:0 sessions/日志损坏 → 定位 → 无损修复 → 重启 │ └── scripts/ validate-sessions / repair-session-log / check-all-sessions / repair-unknown-events ├── skills/dsh-web-doctor/ out-of
✨ Key Features¶
- 看状态:
$AB status - 每日分析(官方改了啥):
$AB discover/$AB notes(官方 changelog)→ 见「场景 C′」 - 每日升级:
$AB discover → prepare → switch --yes → confirm - 自愈验证:
kill $(lsof -ti :3080)→ 10s 内自动拉起 → 会话自动继续(无需手动)
📦 Install¶
$AB status # 确认 current 指向、slots 为空、phase=idle
$AB init --yes # 新建 slot-a worktree + pnpm install + 完整构建(build:lib+build:web,约几分钟)
# 完成后 current -> slot-a;正在跑的服务不受影响(下次重启才走新槽)
$AB status # slot a* 有内容,current=a,phase=idle
🚀 Quick Start¶
dsh web # 启动生产。永远不需要指定 A/B —— 跑的是 current 指向的槽