GeoSyntax/dsh-plugin-time-machine ↗★ 0

dsh-plugin-time-machine

提供会话与工作区快照、回滚及分支管理 适合需要安全回滚、多分支尝试及工作区状态保护的复杂任务。

包名
dsh-plugin-time-machine
兼容性
待验证
Cordis 依赖范围
^4.0.1
版本
0.2.0
许可证
MIT
最近更新
2026年9月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GeoSyntax/dsh-plugin-time-machine

Configuration

最小配置如下:

config:
  autoSnapshot: true
  restoreMode: safe # safe | merge | force
  enableWebUI: true
  workspaceLockTimeoutMs: 30000
  restorePlanTtlMs: 900000

常用增强项包括:

  • autoPreCommandSnapshot: true:在 DSH 高风险工具前创建 pre-command checkpoint。
  • enableAgentWriteLedger: true:登记原生 write、edit、str_replace_editor 结果。
  • preserveVerifiedHandEditsByDefault: true:默认保留有账本证据的人工修改。
  • shadowStore: true:把插件 Git objects 放入独立 shadow store。
  • stateEncryptionKeyEnv、shadowStoreEncryptionKeyEnv、quarantineEncryptionKeyEnv:分别保护 DAG/session、shadow objects 和 quarantine。
  • maxSnapshots、maxStorageBytes、retentionMaxAgeMs:限制快照数量、空间和自动保留年龄。

完整配置、错误码和迁移说明见 docs/PROBLEM.md、DESIGN.md 和 docs/TEST_PLAN.md。