Skip to content

Releases: jorinyang/dsh-doctor

v0.3.0 - 可逆修复 + 运行时服务

Choose a tag to compare

@jorinyang jorinyang released this 14 Aug 20:45

🩺 dsh-doctor v0.3.0 — 可逆修复 + 运行时服务

对齐 DeepSeek Harness / Cordis「时空可组合(Spatiotemporal Composability)」范式,本次迭代补齐两大能力:

🔄 回滚(时间可组合)

  • 每次 fix 都生成 journal,记录每个可逆改动的 undo 步骤
  • 新增 dsh_doctor_rollback 工具 + dsh-doctor rollback CLI 命令
  • LIFO 逆序回滚,恢复到修复前状态
  • 系统边界操作(pnpm install、杀进程)标记为「需手动补偿」
dsh-doctor fix                 # 修复(自动 journal)
dsh-doctor rollback            # 回滚最近一次
dsh-doctor rollback --list     # 列出所有修复日志
dsh-doctor rollback --id <id>  # 回滚指定日志

⚡ 运行时服务(空间可组合)

  • ctx.provide('dsh-doctor') — 暴露 diagnose / repair / rollback / journals / failures
  • ctx.on('internal/status') — 响应式监控插件 fiber 生命周期,检测 FAILED 并发出 dsh-doctor/fiber-failed 事件
  • ctx.effect() — 可逆效应:卸载无残留

🐛 修复

  • 关键修复cordis.patch.yml 包名错误(@dsh-external@jorinyang),此前插件无法通过 dsh plugin add 加载
  • 修复 rmdirSync 目录删除 bug(此前空目录回滚静默失败)

📦 安装

# DSH 插件
dsh plugin --profile web add @jorinyang/dsh-doctor

# 全局 CLI
npm install -g @jorinyang/dsh-doctor

仓库: https://github.com/jorinyang/dsh-doctor
无痛折腾 DeepSeek Harness 🎉

v0.2.0 - 独立 CLI + 自动 PATH 注册

Choose a tag to compare

@jorinyang jorinyang released this 14 Aug 03:30

🩺 dsh-doctor v0.2.0

崩溃报错,无法启动?两行命令接住你的情绪,解决你崩溃的源头。

# 安装
dsh plugin --profile web add @jorinyang/dsh-doctor

# 修复
dsh-doctor

✨ 新特性

  • 独立 CLI — 自包含单文件 bundle,即使 DSH 崩溃也能工作
  • 自动 PATH 注册 — 安装后自动注册到系统 PATH,无需手动配置
  • 跨平台支持 — Windows (.cmd/.ps1)、macOS/Linux (shell)、fish shell
  • PATH 检查 — 自动检测并提示如何添加 PATH
  • setup 命令dsh-doctor setup 手动注册 PATH

🔧 改进

  • 导出 runDiagnosticrunRepair 供编程使用
  • 版本号嵌入 CLI bundle(运行时不依赖 package.json)
  • 完善 README 项目介绍

📦 安装

# DSH 插件(推荐)
dsh plugin --profile web add @jorinyang/dsh-doctor

# 或全局 npm
npm install -g @jorinyang/dsh-doctor

🚀 使用

# 只读诊断
dsh-doctor

# 安全修复
dsh-doctor fix

# 完整修复(含 pnpm install + 进程清理)
dsh-doctor fix --scope full

# 手动注册 PATH
dsh-doctor setup

仓库地址: https://github.com/jorinyang/dsh-doctor
无痛折腾 DeepSeek Harness 🎉