@anionex/dsh-turn-rewind 0.3.8 → 0.3.9
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/CHANGELOG.md +13 -0
- package/README.md +12 -0
- package/README.zh.md +12 -0
- package/lib/client.js +534 -120
- package/lib/client.js.map +1 -1
- package/lib/index.js +16 -3
- package/lib/rewind-host.js +5 -1
- package/lib/settings.js +22 -13
- package/lib/types/client/index.d.ts +38 -9
- package/lib/types/index.d.ts +2 -0
- package/lib/types/settings.d.ts +2 -2
- package/package.json +13 -5
- package/src/client/index.tsx +741 -188
- package/src/index.ts +17 -3
- package/src/rewind-host.ts +7 -1
- package/src/settings.ts +23 -14
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.9 — 2026-10-01
|
|
4
|
+
|
|
5
|
+
- Add the exact DSH `0.2.0-rc.2` peer and compatibility range while preserving the previously declared release ranges.
|
|
6
|
+
- 增加 DSH `0.2.0-rc.2` 的明确 peer 与兼容范围,保留原有版本范围。
|
|
7
|
+
- Open the restored conversation through the new workspace navigation service when `sessions.open` is absent, then restore the original draft into its retained Session scope.
|
|
8
|
+
- 新版移除 `sessions.open` 后,通过工作区导航服务打开回退后的会话,并把原始输入恢复到该会话的草稿中。
|
|
9
|
+
- Verification includes 143 tests, portable package checks, and an isolated tarball Web installation.
|
|
10
|
+
- 验证包含 143 项测试、可移植包检查和隔离 Web Profile 压缩包安装。
|
|
11
|
+
|
|
12
|
+
- Preserve the source workspace membership when restarting the first turn; verified real Web rewind creates a usable child session and restores its draft on DSH `0.2.0-rc.2`.
|
|
13
|
+
- 首轮回退保留源会话的工作区归属;已在 DSH `0.2.0-rc.2` 实测 Web 回退后子会话可用、原输入草稿恢复。
|
package/README.md
CHANGED
|
@@ -26,6 +26,18 @@ create rescue point → restore → verify
|
|
|
26
26
|
|
|
27
27
|
It never commits, stashes, resets, switches branches, edits the Git index, or decides automatically that a change should be reverted.
|
|
28
28
|
|
|
29
|
+
## What's new
|
|
30
|
+
|
|
31
|
+
Most recent work first:
|
|
32
|
+
|
|
33
|
+
- **File rewind works in ordinary directories (0.3.0)** — when the working directory is not a Git repository it is snapshotted as an ordinary directory (`.git` and `node_modules` excluded by default, plus an optional `.dsh-rewindignore`), so messages-only rewind is no longer the only option.
|
|
34
|
+
- **The fastest path is now the default (0.3.8)** — the new `auto` mode uses Git-native checkpoints in a Git worktree (reusing the repository object database, so committed content is never stored twice) and the plugin's own store for ordinary directories.
|
|
35
|
+
- **Unchanged files are no longer re-read (0.3.5)** — each workspace keeps a persistent path identity cache; a measured 20 000-file / 351 MB workspace dropped from 237 s to about 7 s per capture.
|
|
36
|
+
- **One oversized file no longer discards a whole checkpoint (0.3.3)** — it is skipped and reported while the rest is still captured, and a restore never touches a path its checkpoint did not record, so a file that was too large then and small now is never deleted.
|
|
37
|
+
- **Checkpoint budget 5 s → 60 s, parallel capture (0.3.4)** — a 5-second budget in a large directory could only ever report a skip.
|
|
38
|
+
- **Rewind button and messages-only fixes (0.2.2 / 0.2.3)** — adapted to the DSH 0.1.2-alpha client hooks and restored the messages-only mode that the Host rejected.
|
|
39
|
+
- **Settings card matches the official cards (0.3.6 / 0.3.7)** — one collapsed row that expands, consistent with every other plugin card.
|
|
40
|
+
|
|
29
41
|
## Preview
|
|
30
42
|
|
|
31
43
|
Rewind appears as an icon-only third action under each user message, after its timestamp and native Copy action:
|
package/README.zh.md
CHANGED
|
@@ -26,6 +26,18 @@ Agent / 用户 / 外部程序修改工作树
|
|
|
26
26
|
|
|
27
27
|
插件**不会**自动 commit、stash、reset、切分支、修改 Git index,也不会替用户判断某项改动“应该回滚”。
|
|
28
28
|
|
|
29
|
+
## 最新动态
|
|
30
|
+
|
|
31
|
+
按版本倒序,最近几轮集中解决的几件事:
|
|
32
|
+
|
|
33
|
+
- **普通目录也能回退文件(0.3.0)** —— 工作目录不是 Git 仓库时,插件会把它当成普通目录快照(默认排除 `.git`、`node_modules`,可用 `.dsh-rewindignore` 追加规则),不再只能「只回溯消息」。
|
|
34
|
+
- **默认走最快的路径(0.3.8)** —— 新增「自动(推荐)」模式:Git 工作区用 Git 原生检查点(复用仓库对象库,**首次检查点不再重存已提交内容**),普通目录用插件自己的存储。
|
|
35
|
+
- **未改动的文件不再重读(0.3.5)** —— 每个工作区持久化路径身份缓存,身份没变就直接复用;实测 20 000 文件 / 351 MB 的工作区,每轮捕获从 237 秒降到 7 秒出头。
|
|
36
|
+
- **超限文件不再毁掉整轮检查点(0.3.3)** —— 单个文件超过上限只是被跳过并提示,其余文件照常保存;恢复**绝不改动检查点没记录到的路径**,所以"当时太大、后来变小"的文件不会被误删。
|
|
37
|
+
- **检查点预算从 5 秒提到 60 秒,捕获并发化(0.3.4)** —— 之前 5 秒的预算配上大目录永远只会报「没保存」。
|
|
38
|
+
- **回退按钮与消息回溯修复(0.2.2 / 0.2.3)** —— 适配 DSH 0.1.2-alpha 的客户端钩子改动,恢复被误拒的「只回溯消息」模式。
|
|
39
|
+
- **设置卡片与官方样式对齐(0.3.6 / 0.3.7)** —— 折叠成一行,点击展开,与其它插件卡片的观感一致。
|
|
40
|
+
|
|
29
41
|
## 效果预览
|
|
30
42
|
|
|
31
43
|
每条用户消息下方依次显示时间、DSH 原生“复制”和第三个纯图标“回退”:
|