dsh-rewind-plugin 0.14.0-beta.3 → 0.14.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.
@@ -179,7 +179,7 @@ recorded the state after it — in case 1 nothing was recorded at all.
179
179
  | Msg | In the turn | File content | Backup |
180
180
  | :---: | --- | :---: | --- |
181
181
  | 1 | `write` creates it | `—` → `A` | `null` |
182
- | 2 | `edit` | `A` → `G1` | `A` (a before-write backup) |
182
+ | 2 | the edit grows it past the cap | `A` → `G1` | `A` (differs from the previous backup `null`) |
183
183
  | 3 | a write-class tool or an external edit | `G1` → `G2` | (none: over the cap, not backed up) |
184
184
  | 4 | shrinks back to `B` | `G2` → `B` | (none: still over the cap on arrival, so the re-check skipped it) |
185
185
  | 5 | `edit` | `B` → `X` | `B` (a before-write backup; tracking resumes) |
@@ -111,7 +111,7 @@
111
111
  | 消息 | 回合内发生 | 文件内容 | 备份 |
112
112
  | :---: | --- | :---: | --- |
113
113
  | 1 | `write` 新建 | `—` → `A` | `null` |
114
- | 2 | `edit` | `A` → `G1` | `A`(写前备份) |
114
+ | 2 | 文件扩充 | `A` → `G1` | `A`(与上一份备份 `null` 不一致) |
115
115
  | 3 | 写类工具或外部修改 | `G1` → `G2` | (无:超过上限,不备份) |
116
116
  | 4 | 缩回 `B` | `G2` → `B` | (无:消息到达时仍超限,跳过复查) |
117
117
  | 5 | `edit` | `B` → `X` | `B`(写前备份,重新追踪) |
package/lib/client.js CHANGED
@@ -1271,7 +1271,7 @@ function createRewindBridge(deps) {
1271
1271
  }
1272
1272
 
1273
1273
  // src/client/build-info.ts
1274
- var PLUGIN_VERSION = true ? "0.14.0-beta.3" : "dev";
1274
+ var PLUGIN_VERSION = true ? "0.14.0" : "dev";
1275
1275
  var PLUGIN_PACKAGE = "dsh-rewind-plugin";
1276
1276
  var BUILD_HASH = true ? "09b74c90" : "dev";
1277
1277
 
package/lib/index.js CHANGED
@@ -38,7 +38,8 @@ var en = {
38
38
  "success": "Withdrawn seq {targetSeq} and everything after it (conversation returned to earlier){restore}.",
39
39
  "noUserMessages": "This session has no rewindable user messages yet.",
40
40
  "chooseMode": "Rewind to {target}. Choose a mode:\n /rewind {target} chat conversation only\n /rewind {target} both conversation + file restore",
41
- "command.description": "Rewind the conversation back to an earlier user message (optionally restoring files)",
41
+ "command.description": "Rewind the conversation and/or code to a previous point",
42
+ "command.undoDescription": "Alias of /rewind",
42
43
  "cleanup.description": "Manage automatic cleanup of session snapshot backups",
43
44
  "cleanup.inputHint": "on | off | max-age <days> | run [--apply] [--current]",
44
45
  "cleanup.status": "Auto-cleanup: {state}. Max age: {days} day(s).",
@@ -90,7 +91,8 @@ var zh = {
90
91
  "success": "\u5DF2\u64A4\u56DE seq {targetSeq} \u53CA\u4E4B\u540E\u5185\u5BB9\uFF08\u5BF9\u8BDD\u5DF2\u56DE\u5230\u6B64\u524D\uFF09{restore}\u3002",
91
92
  "noUserMessages": "\u5F53\u524D\u4F1A\u8BDD\u8FD8\u6CA1\u6709\u53EF\u56DE\u9000\u7684\u7528\u6237\u6D88\u606F\u3002",
92
93
  "chooseMode": "\u5C06\u56DE\u9000\u5230 {target}\u3002\u9009\u62E9\u6A21\u5F0F\uFF1A\n /rewind {target} chat \u4EC5\u56DE\u9000\u5BF9\u8BDD\n /rewind {target} both \u56DE\u9000\u5BF9\u8BDD\u5E76\u8FD8\u539F\u6587\u4EF6",
93
- "command.description": "\u5728\u540C\u7A97\u53E3\u5185\u5C06\u5BF9\u8BDD\u56DE\u9000\u5230\u66F4\u65E9\u7684\u7528\u6237\u6D88\u606F\uFF08\u53EF\u540C\u65F6\u8FD8\u539F\u6587\u4EF6\uFF09",
94
+ "command.description": "\u56DE\u9000\u5BF9\u8BDD\u548C/\u6216\u4EE3\u7801\u5230\u4E4B\u524D\u7684\u67D0\u6761\u6D88\u606F",
95
+ "command.undoDescription": "/rewind \u7684\u522B\u540D",
94
96
  "cleanup.description": "\u7BA1\u7406\u4F1A\u8BDD\u5FEB\u7167\u5907\u4EFD\u7684\u81EA\u52A8\u6E05\u7406",
95
97
  "cleanup.inputHint": "on | off | max-age <\u5929\u6570> | run [--apply] [--current]",
96
98
  "cleanup.status": "\u81EA\u52A8\u6E05\u7406\uFF1A{state}\u3002\u6700\u5927\u4FDD\u7559\u5929\u6570\uFF1A{days} \u5929\u3002",
@@ -2887,7 +2889,7 @@ function apply(ctx, config) {
2887
2889
  });
2888
2890
  yield ctx.commands.register({
2889
2891
  name: "undo",
2890
- description: t("command.description"),
2892
+ description: t("command.undoDescription"),
2891
2893
  handler: rewindHandler
2892
2894
  });
2893
2895
  yield ctx.commands.register({
@@ -75,6 +75,7 @@ export declare const en: {
75
75
  noUserMessages: string;
76
76
  chooseMode: string;
77
77
  'command.description': string;
78
+ 'command.undoDescription': string;
78
79
  'cleanup.description': string;
79
80
  'cleanup.inputHint': string;
80
81
  'cleanup.status': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-rewind-plugin",
3
- "version": "0.14.0-beta.3",
3
+ "version": "0.14.0",
4
4
  "description": "In-window conversation rewind with workspace file restore · 同窗口内对话回退并可还原工作区文件",
5
5
  "icon": "./assets/icon.svg",
6
6
  "keywords": [