dsh-edit-turn 0.2.7 → 0.2.8

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
@@ -218,6 +218,11 @@ ln -s /path/to/dsh-install/node_modules ./node_modules
218
218
 
219
219
  ### 更新日志
220
220
 
221
+ **0.2.8** —— 安装元数据:peer 接受 DSH `0.2.0`。
222
+
223
+ - **修复:在 DSH 0.2.0 上会被 peer 检查拒装**。此前 peer 范围只列到 `^0.1.5-alpha.1`,`0.2.0` 不在其中;现在两个 peer(`@deepseek-ai/dsh-settings`、`@deepseek-ai/dsh-tools`)都追加 `|| ^0.2.0-rc.1`(`^0.2.0-rc.1` 同时覆盖 `0.2.0` 与后续 `0.2.x`)。**纯安装元数据,运行时代码零变化**;`npm run verify:profile`(真实 profile 安装 + 启动 + 路由)全绿。
224
+ - 说明:`dsh.compatibility.dshReleases` 经核对**不被运行时代码消费**(app-boot / plugin-manager / linxin 包都不读),未改动。
225
+
221
226
  **0.2.7** —— 修「同一条消息改写第二次后,气泡和笔一起消失」。
222
227
 
223
228
  - **修复:替代链只解析了一跳**。同一条消息改写两次会落两条替换(`8 → 19`,再 `19 → 23`);转录行始终代表 `8`,客户端只取 `revisions.get(8) = 19` 就去可编辑集合里找条目——而 19 已被第二次改写折叠、条目已删,于是气泡和笔一起消失(`保存一次笔就没了`)。现在 `headRevision()` 沿链取到头(23)再取条目,气泡文本、笔的目标、编辑器锚定三处都按链头解析。新增用例「同一条消息改写两次,气泡与笔仍在(且编辑的是链头)」+ 1 条静态检查;真机复现(现场链 `8 → 19 → 87`):重载后气泡仍显示「回复2」、点笔打开的编辑器预填「回复2」。
package/lib/client.js CHANGED
@@ -30,7 +30,7 @@ window.__ModuleLoader__.load({
30
30
  const ROUTE_PREFIX = '/dsh-edit-turn'
31
31
 
32
32
  /** Keep in sync with package.json and lib/index.js. */
33
- const PLUGIN_VERSION = '0.2.7'
33
+ const PLUGIN_VERSION = '0.2.8'
34
34
 
35
35
  // --- copy -----------------------------------------------------------------
36
36
 
package/lib/index.js CHANGED
@@ -22,7 +22,7 @@
22
22
  // admission path. It resumes the Session when cold and starts exactly one
23
23
  // new turn from the revised text.
24
24
  //
25
- // The silent replacement carrier is an EMPTY `developer/message` (0.2.7;
25
+ // The silent replacement carrier is an EMPTY `developer/message` (0.2.8;
26
26
  // before that an empty `system/message`, which no reader accepts - see the
27
27
  // README). Empty content projects to no model message, so the rollback adds
28
28
  // nothing the model can see and the derived context after an edit is exactly
@@ -60,7 +60,7 @@ export const PLUGIN_ID = 'dsh-edit-turn'
60
60
  export const name = PLUGIN_ID
61
61
 
62
62
  /** Keep in sync with package.json and lib/client.js. */
63
- export const PLUGIN_VERSION = '0.2.7'
63
+ export const PLUGIN_VERSION = '0.2.8'
64
64
 
65
65
  // A ring of the last few requests, answering "did the browser half even ask, and
66
66
  // what did it get?" without needing its console. Read-only diagnostics: the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-edit-turn",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Edit any user turn in DeepSeek Harness and re-run it: an inline editor on the message row rolls the conversation back to just before that turn through the official surface-replace contract, then re-prompts the agent with the revised text. The append-only session log is never rewritten.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -50,8 +50,8 @@
50
50
  "@deepseek-ai/dsh-session": "^0.1.7-rc.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@deepseek-ai/dsh-settings": "^0.1.0-rc.7 || ^0.1.1-rc.2 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1",
54
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.7 || ^0.1.1-rc.2 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1"
53
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.7 || ^0.1.1-rc.2 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.2.0-rc.1",
54
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.7 || ^0.1.1-rc.2 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.2.0-rc.1"
55
55
  },
56
56
  "dsh": {
57
57
  "bundle": {