dsh-message-rewind 1.4.0 → 1.4.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.en.md CHANGED
@@ -45,12 +45,18 @@ Your own messages get **edit / rollback / copy** buttons under the bubble:
45
45
 
46
46
  <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/message-actions-v1.3.0.png" alt="Edit, rollback and copy buttons under a user message" width="760">
47
47
 
48
- The popover opens right under the button you clicked and points at it with a small arrow; click outside or press Esc to dismiss it. The editor reads the file changes recorded after that message as soon as it opens — collapsed into one **N file changes recorded** line unless you expand it — and a two-way switch decides whether files are restored too — blue for **messages only**, red for **messages + files**. When the record is incomplete the switch is not offered, so only a messages-only rollback is possible:
48
+ The popover opens right under the button you clicked and points at it with a small arrow; click outside or press Esc to dismiss it. The editor reads the file changes recorded after that message as soon as it opens — collapsed into one **N file changes recorded** line unless you expand it — and a two-way switch decides whether files are restored too. When the record is incomplete the switch is not offered, so only a messages-only rollback is possible:
49
49
 
50
50
  | Edit popover | Rollback confirmation |
51
51
  | :---: | :---: |
52
52
  | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/edit-dialog-v1.3.0.png" alt="Edit popover: file changes collapse to one line, rollback scope is a two-way switch" width="360"> | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-dialog-v1.3.0.png" alt="Rollback confirmation: a one-line confirm when no files changed" width="360"> |
53
53
 
54
+ The rollback scope is colour-coded: blue for **messages only**, red for **messages + files**. The chosen option turns solid, while the other keeps a light wash of its colour:
55
+
56
+ | Messages only (blue, default) | Messages + files (red) |
57
+ | :---: | :---: |
58
+ | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-scope-messages-v1.4.0.png" alt="Messages only: the blue solid button is selected" width="360"> | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-scope-files-v1.4.0.png" alt="Messages + files: the red solid button is selected, with the restore hint below" width="360"> |
59
+
54
60
  The popover follows its button: it flips above when there is no room below, narrows to the screen width on small viewports, and keeps the same layering in the light theme:
55
61
 
56
62
  | Flips above near the bottom | Narrow screen (390px) | Light theme |
@@ -82,7 +88,7 @@ If you prefer editing the profile yourself, the manual route is the same three s
82
88
  ```json
83
89
  {
84
90
  "dependencies": {
85
- "dsh-message-rewind": "^1.3.0"
91
+ "dsh-message-rewind": "^1.4.0"
86
92
  }
87
93
  }
88
94
  ```
package/README.md CHANGED
@@ -47,12 +47,18 @@
47
47
 
48
48
  <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/message-actions-v1.3.0.png" alt="消息气泡下方的编辑、回滚、复制按钮" width="760">
49
49
 
50
- 点铅笔或回滚按钮之后,小窗直接出现在那个按钮正下方,并用一个小箭头指向它;点窗外或按 Esc 就收起。编辑窗一打开就会读出这条消息之后记录到的文件改动,默认只显示一行「已记录 N 处文件改动」,展开才看具体路径;要不要连文件一起还原,用一个二选一的开关决定——蓝色是「只回滚消息」,红色是「连文件一起回滚」(记录不完整时开关不出现,只能回滚消息):
50
+ 点铅笔或回滚按钮之后,小窗直接出现在那个按钮正下方,并用一个小箭头指向它;点窗外或按 Esc 就收起。编辑窗一打开就会读出这条消息之后记录到的文件改动,默认只显示一行「已记录 N 处文件改动」,展开才看具体路径;要不要连文件一起还原,用一个二选一的开关决定(记录不完整时开关不出现,只能回滚消息):
51
51
 
52
52
  | 编辑小窗 | 回滚确认 |
53
53
  | :---: | :---: |
54
54
  | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/edit-dialog-v1.3.0.png" alt="编辑小窗:文件改动收起成一行,回滚范围二选一" width="360"> | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-dialog-v1.3.0.png" alt="回滚确认:没有文件改动时只剩一行确认" width="360"> |
55
55
 
56
+ 回滚范围用颜色区分:蓝色是「只回滚消息」,红色是「连文件一起回滚」。选中的一项会变成整块实色,未选中的保留一层同色淡底:
57
+
58
+ | 只回滚消息(蓝色,默认) | 连文件一起回滚(红色) |
59
+ | :---: | :---: |
60
+ | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-scope-messages-v1.4.0.png" alt="只回滚消息:蓝色实心按钮,默认选中" width="360"> | <img src="https://raw.githubusercontent.com/xCube007/dsh-message-rewind/main/img/rollback-scope-files-v1.4.0.png" alt="连文件一起回滚:红色实心按钮,下方提示文件会还原" width="360"> |
61
+
56
62
  小窗跟着按钮走:窗口底部放不下时自动翻到按钮上方,窄屏下收窄到屏幕宽度,亮色主题也保持同一套层级:
57
63
 
58
64
  | 靠近底部时翻到上方 | 窄屏(390px) | 亮色主题 |
@@ -84,7 +90,7 @@ dsh plugin --profile web add dsh-message-rewind
84
90
  ```json
85
91
  {
86
92
  "dependencies": {
87
- "dsh-message-rewind": "^1.3.0"
93
+ "dsh-message-rewind": "^1.4.0"
88
94
  }
89
95
  }
90
96
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-message-rewind",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "DeepSeek Harness plugin: edit sent messages and roll back following turns, optionally restoring recorded file changes.",
5
5
  "license": "MIT",
6
6
  "author": "xCube007",