SponsorLobeHubLobeHubLearn more
dshfind
Back to plugins

dsh-turn-rewindA75

@Anionex
View Repo

Message-anchored project-file recovery for DSH: open Rewind under any user message, preview path-level drift, review a full or selective restore plan, then choose between restoring the files alone or restoring and restarting from before that message. Underneath sits the Change Ledger durable restore engine.

Star
53+14
7-day growth
Contributors
1
Language
JavaScript
Updated
2026-08-14
Install
Derived from package metadata
dsh plugin --profile web add @anionex/dsh-turn-rewind

The name after --profile is a profile name you choose yourself — swap in whichever one you use.

Editor's notes

Turn Rewind is the user-facing feature and repository name; Change Ledger is the durable restore engine beneath it — the `ctx.changeLedger` service, the on-disk format and the storage path all keep that name, because it describes the reusable snapshot and recovery layer rather than the web action alone. It gives a DSH session an explicit safety boundary around workspace mutations, and the flow runs: create a restore point → agent, user or external tools modify the worktree → preview exact path-level drift → review a full or selective restore plan → press the final restore button in the rewind dialog → create a rescue point → restore → verify. What it deliberately does not do matters just as much: it never commits, stashes, resets, switches branches, edits the Git index, or decides on its own that a change should be reverted. Why an engine rather than a diff button? A diff button can show current changes, but it does not own a durable restore lifecycle. Change Ledger owns content-addressed restore-point manifests, fences around the Git worktree, HEAD, branch and any in-progress operation, and stale-plan detection between the moment you review and the moment anything mutates. In the UI, Rewind appears as an icon-only third action under each user message, after its timestamp and the native Copy action; opening it shows the affected files and offers two choices — restore the files and restart from before that message, or restore only the files.

  • Anchored to user messages: every message gains a Rewind icon action that opens to the affected files and exact path-level drift
  • Two choices on restore: files only, or restore the files and restart from before that message
  • The Change Ledger engine owns content-addressed restore-point manifests, Git worktree/HEAD/branch/in-progress fences, and stale-plan detection
  • Clear boundaries: never commits, stashes, resets, switches branches or edits the Git index, and never auto-decides what to revert — a rescue point is created before restoring
Score breakdown
Scored 2026-08-14
Activity
21.7
Star heat
19.3
Engineering
20
Maintainer
14

消息锚定的工作区回退(Change Ledger),恢复流程与安全边界文档严谨

Share card

Drop it into your README — it links back to this page.

Badge (inline)
Badge (inline)
[![dshfind](https://dshfind.com/api/badge/Anionex/dsh-turn-rewind)](https://dshfind.com/en/plugins/Anionex/dsh-turn-rewind?ref=badge)
Card (440×200)
Card (440×200)
[![dshfind](https://dshfind.com/api/card/Anionex/dsh-turn-rewind)](https://dshfind.com/en/plugins/Anionex/dsh-turn-rewind?ref=badge)