@kangyishuai/dsh-session-rewind 0.5.0 → 0.5.1

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.md CHANGED
@@ -35,6 +35,16 @@ The plugin also registers one **read-only** tool, `session_rewind_candidates`, s
35
35
 
36
36
  The tool never rewinds, never edits files and never appends to the session log — the rewind itself stays a user action (that is the point of the ADR 0006 design). Set `readOnlyTool: false` to unregister it; **Settings → Diagnostics** reports whether it registered.
37
37
 
38
+ ## What it looks like
39
+
40
+ ![The rewind confirmation dialog: target message, how many messages and tokens will be withdrawn, conversation-only vs conversation-and-files, and the resend option](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-rewind/assets/session-rewind-confirm.png)
41
+
42
+ ![The rewind panel: withdrawn messages, history timeline, rescue points and settings](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-rewind/assets/session-rewind-panel.png)
43
+
44
+ Both screenshots come from a throwaway DSH home containing only a synthetic workspace and session (`pnpm shots:session-rewind` regenerates them), cropped to the dialog and the panel.
45
+
46
+ > Image links are absolute (`raw.githubusercontent.com`) on purpose: npm does not ship `assets/` in the tarball, so a relative path would render as a broken image on npmjs.com.
47
+
38
48
  ## Install
39
49
 
40
50
  ```bash
package/README.zh-CN.md CHANGED
@@ -35,6 +35,16 @@
35
35
 
36
36
  这个工具不回溯、不碰文件、不写会话日志——真正的回退始终由用户在界面确认(这是 ADR 0006 的设计前提)。设 `readOnlyTool: false` 可关闭;**设置 → 诊断**里能看到它是否注册成功。
37
37
 
38
+ ## 长什么样
39
+
40
+ ![回溯确认框:目标消息、将撤回多少条消息与 token、仅对话 vs 对话+文件、以及重发选项](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-rewind/assets/session-rewind-confirm.png)
41
+
42
+ ![回溯面板:已撤回、回溯记录、救援点、设置](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-rewind/assets/session-rewind-panel.png)
43
+
44
+ 两张图都来自一个只含**合成工作区与合成会话**的临时 DSH 目录(`pnpm shots:session-rewind` 可重新生成),并且按 DOM 矩形裁剪到对话框/面板本身。
45
+
46
+ > 图片用绝对地址(`raw.githubusercontent.com`)而不是相对路径:npm 的 tarball 不含 `assets/`,相对路径在 npmjs.com 上会是破图。
47
+
38
48
  ## 安装
39
49
 
40
50
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kangyishuai/dsh-session-rewind",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "In-place conversation rewind for DSH: withdraw a user message and everything after it, then refill the composer",
5
5
  "keywords": [
6
6
  "dsh",