dsh-rewind-plugin 0.9.0-alpha.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/docs/rewind-fix.md +5 -5
- package/docs/rewind-fix.zh.md +6 -6
- package/lib/client.js +1 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-rewind
|
|
2
2
|
|
|
3
3
|
> [!WARNING]
|
|
4
|
-
> **Planning to use DSH `0.1.3`? Upgrade to the latest plugin (`>= 0.9.0
|
|
4
|
+
> **Planning to use DSH `0.1.3`? Upgrade to the latest plugin (`>= 0.9.0`) as soon as possible and run `/dsh-rewind-fix` to update old rewind markers** ([update guide](docs/rewind-fix.md)).
|
|
5
5
|
|
|
6
6
|
Conversation rewind for DeepSeek Harness: **rewind the conversation to any earlier user message in one click, in the same window** — no new branch, no window switch, with optional workspace-file restore (full Claude Code `/rewind` semantics).
|
|
7
7
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-rewind
|
|
2
2
|
|
|
3
3
|
> [!WARNING]
|
|
4
|
-
> **计划使用 DSH `0.1.3` 的用户:请尽早升级到最新插件(`>= 0.9.0
|
|
4
|
+
> **计划使用 DSH `0.1.3` 的用户:请尽早升级到最新插件(`>= 0.9.0`),并运行 `/dsh-rewind-fix` 更新旧回退标记**([更新指南](docs/rewind-fix.zh.md))。
|
|
5
5
|
|
|
6
6
|
DeepSeek Harness 插件:**一键就地回退对话到任意更早的用户消息**——同窗口内完成,不新建分支、不换窗口,可一并还原工作区文件(完整 Claude Code `/rewind` 语义)。
|
|
7
7
|
|
package/docs/rewind-fix.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
## Applies to
|
|
6
6
|
|
|
7
7
|
- **DSH**: `0.1.2-rc.1`
|
|
8
|
-
- **dsh-rewind**: `0.9.0-alpha.1`
|
|
8
|
+
- **dsh-rewind**: `0.9.0-alpha.1`, `0.9.0-alpha.2`, `0.9.0`
|
|
9
9
|
|
|
10
10
|
## Background
|
|
11
11
|
|
|
@@ -40,7 +40,7 @@ The command rewrites session files and clears some snapshots, so a backup is a g
|
|
|
40
40
|
cp -r ~/.dsh/sessions ~/.dsh/sessions.backup
|
|
41
41
|
cp -r ~/.dsh/rewind-snapshots ~/.dsh/rewind-snapshots.backup
|
|
42
42
|
```
|
|
43
|
-
Or copy them anywhere convenient.
|
|
43
|
+
Or copy them anywhere convenient. You can also let the AI run the backup for you.
|
|
44
44
|
|
|
45
45
|
### Step 3 · Start a new session, or pick one that was never rewound
|
|
46
46
|
|
|
@@ -50,11 +50,11 @@ The command only handles **closed** sessions, and it can't run on itself. So:
|
|
|
50
50
|
|
|
51
51
|
Then run the command **in this new session**, and it will update the old sessions that need it.
|
|
52
52
|
|
|
53
|
-
>
|
|
53
|
+
> Don't run it in a session that itself needs updating and is currently open — the command skips this session, and any other currently-open/in-use session.
|
|
54
54
|
|
|
55
55
|
### Step 4 · Preview the update scope
|
|
56
56
|
|
|
57
|
-
Type `/dsh-rewind-fix` in the composer and send it. It only scans, doesn't write
|
|
57
|
+
Type `/dsh-rewind-fix` in the composer and send it. It only scans, doesn't write. The editor locks while it runs, which is normal. **Don't switch session windows midway.** When it finishes, it reports how many sessions were scanned, how many will be updated, how many skipped, and how many failed. Confirm those are what you expect before moving on.
|
|
58
58
|
```
|
|
59
59
|
/dsh-rewind-fix
|
|
60
60
|
```
|
|
@@ -67,7 +67,7 @@ Once you're sure, re-enter the command with `--apply` to actually run it:
|
|
|
67
67
|
```
|
|
68
68
|
This really rewrites the session logs and updates the old markers, and **may take a few minutes**. Please let it finish — **don't switch to another session window or close DSH** while it runs: a session you switch to is **safely skipped** (no corruption, but it won't be updated this pass and you'll need to re-run). A session that fails stays as it was, unharmed, and can be updated again later. Sessions that are updated also get their matching **snapshot backups cleared**, so file restore to earlier messages is no longer available for them.
|
|
69
69
|
|
|
70
|
-
### Step 6 · Restart DSH and preview again
|
|
70
|
+
### Step 6 · Restart DSH and preview again
|
|
71
71
|
|
|
72
72
|
After the run, restart DSH, then **preview once more**:
|
|
73
73
|
```
|
package/docs/rewind-fix.zh.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## 适配
|
|
6
6
|
|
|
7
|
-
- **DSH
|
|
8
|
-
- **dsh-rewind
|
|
7
|
+
- **DSH**: `0.1.2-rc.1`
|
|
8
|
+
- **dsh-rewind**: `0.9.0-alpha.1`, `0.9.0-alpha.2`, `0.9.0`
|
|
9
9
|
|
|
10
10
|
## 背景
|
|
11
11
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
cp -r ~/.dsh/sessions ~/.dsh/sessions.backup
|
|
41
41
|
cp -r ~/.dsh/rewind-snapshots ~/.dsh/rewind-snapshots.backup
|
|
42
42
|
```
|
|
43
|
-
|
|
43
|
+
或者复制到任意合适的位置。你也可以直接让 AI 帮你完成数据的备份。
|
|
44
44
|
|
|
45
45
|
### 第三步 · 新建会话,或选一个从未回退过的会话
|
|
46
46
|
|
|
@@ -50,11 +50,11 @@ cp -r ~/.dsh/rewind-snapshots ~/.dsh/rewind-snapshots.backup
|
|
|
50
50
|
|
|
51
51
|
然后在**这个新会话窗口里**运行命令,去更新那些需要处理的旧会话。
|
|
52
52
|
|
|
53
|
-
>
|
|
53
|
+
> 别在「本身就需要更新、且正开着」的会话里运行——命令会跳过本会话,以及任何正被打开/使用的会话。
|
|
54
54
|
|
|
55
55
|
### 第四步 · 预览更新范围
|
|
56
56
|
|
|
57
|
-
在编辑区域输入 `/dsh-rewind-fix`
|
|
57
|
+
在编辑区域输入 `/dsh-rewind-fix` 并发送。它只扫描、不写盘。执行时编辑区会正常锁定。**不要中途切换会话窗口。**完成后会告诉你:扫描了几个会话、其中几个将被更新、几个跳过、几个失败。确认是你预期的那几项,再进下一步。
|
|
58
58
|
```
|
|
59
59
|
/dsh-rewind-fix
|
|
60
60
|
```
|
|
@@ -67,7 +67,7 @@ cp -r ~/.dsh/rewind-snapshots ~/.dsh/rewind-snapshots.backup
|
|
|
67
67
|
```
|
|
68
68
|
这一步会真的改动会话日志、把旧标记更新成新格式,**可能需要几分钟**。请耐心等它跑完,**不要中途切换会话窗口**或关闭 DSH——被切到的会话会被**安全地跳过**(不损坏,但这次不会更新,需重新执行)。更新失败的会话保持原状态不变、无破坏,可重新进行更新。被更新的会话会同时**清掉对应的文件快照备份**,更早消息回退时文件还原不可用。
|
|
69
69
|
|
|
70
|
-
### 第六步 · 重启 DSH
|
|
70
|
+
### 第六步 · 重启 DSH,再预览确认
|
|
71
71
|
|
|
72
72
|
执行完后重启一下 DSH,然后**再跑一次预览**:
|
|
73
73
|
```
|
package/lib/client.js
CHANGED
|
@@ -1333,7 +1333,7 @@ function createRewindBridge(deps) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
|
|
1335
1335
|
// src/client/build-info.ts
|
|
1336
|
-
var PLUGIN_VERSION = true ? "0.9.0
|
|
1336
|
+
var PLUGIN_VERSION = true ? "0.9.0" : "dev";
|
|
1337
1337
|
var BUILD_HASH = true ? "ca24fc4e" : "dev";
|
|
1338
1338
|
|
|
1339
1339
|
// src/client/locales.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-rewind-plugin",
|
|
3
|
-
"version": "0.9.0
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "DSH 插件:真正便捷无感的同窗口内对话回退,从不新建分支;自带轻量工作区备份,可一并还原文件(完整 Claude Code /rewind 语义)。 · DSH plugin: genuinely effortless in-window conversation rewind — never forking a new session; ships a lightweight workspace backup that restores files together with the rewind (full Claude Code /rewind semantics).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|