dsh-fast-mode 1.5.20 → 1.5.21

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 CHANGED
@@ -1,9 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 1.5.20(补丁类编辑重新拥有复用证据:从 diff 头读目标文件)
3
+ ## 1.5.21(更正 1.5.20 的说法,并把「补丁路径是否存在」变成可复算的证据)
4
+
5
+ - 1.5.20 的 CHANGELOG 读起来像「补丁编辑恢复复用证据能提速」。实测不是:本机 2 485 个会话里补丁类调用 0 次,这条修复在本机零收益。代码保留(对其他宿主有防御价值、有测试覆盖),说法改成它实际是防御性修复。
6
+ - `bench/patchshare.py` 新增:从保留的会话转录里统计补丁类调用占比、以及「首次补丁之后还剩多少工具调用」——下次再有类似「某条路径影响面多大」的猜测,用这个先量,而不是先上结论。
7
+
8
+ ## 1.5.20(补丁类编辑从 diff 头读目标文件;本机实测 0 命中,属防御性修复)
4
9
 
5
10
  - **补丁编辑不再拖垮整个会话的复用提示。** `apply_patch` / `patch` 的写入目标在补丁正文里,参数里没有 `path` 字段;1.5.19 把「定位不到目标的写入」如实标成不确定,代价是**会话里只要用过一次补丁,后续所有检查复用建议都关掉**——而补丁正是最常见的改文件方式,等于最常见的路径拿到了最少的那部分提速。现在从 `*** Update File:` / `*** Add File:` / `*** Move to:` / `+++ b/<path>` 头里读出目标文件并照常打指纹;只有补丁头里一个路径都读不出来时才保持不确定(保守方向不变)。`*** Delete File:` 不计入(文件已消失,打不了指纹)。
6
11
  - 只对补丁形状的工具(`apply_patch` / `patch` / `apply_diff` / `edit_patch`)扫正文:整文件写入的 `content` 里可能恰好含 diff 文本,那种情况仍以它自己的 `path` 字段为准。
12
+ - **本机证据:这条路径在本机不存在。** `python3 bench/patchshare.py --limit 0`(2 485 个本地会话、25 508 次工具调用)显示补丁类调用 **0 次**:DSH 宿主暴露的改文件工具是 `write` / `edit`,`apply_patch` 这类名字来自别的宿主。所以 1.5.20 不给本机带来任何提速,它只是把「目标读不出来就永久关掉复用」这个过宽的惩罚收窄到补丁形状的工具上;万一宿主换成带补丁工具的实现,会话不再因为用一次补丁就丢掉全部复用提示。
7
13
  - 附:`bench/block_score.py` 随包发布(74 行,纯标准库),按 `hasSessionIds`/`green`/`valid`/`leak` 过滤后可复算每个块的几何、中位、胜场与符号检验。
8
14
 
9
15
  ## 1.5.19(稳定性发布:面板三项真正可读写、检查复用证据不透支、取消三态、实验臂与判据对齐)
package/index.js CHANGED
@@ -97,7 +97,7 @@ const TAG = '[fast-mode]'
97
97
  * Shipped identity of this build. Traced into the debug log so a stale install is
98
98
  * visible at a glance, and pinned by a test against `package.json`.
99
99
  */
100
- export const VERSION = '1.5.20'
100
+ export const VERSION = '1.5.21'
101
101
  const GLOBAL_AGENT = '__global__'
102
102
 
103
103
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-fast-mode",
3
- "version": "1.5.20",
3
+ "version": "1.5.21",
4
4
  "description": "DeepSeek Harness fast mode: same thinking effort, fewer round trips. An adaptive parallel tool fan-out, output discipline that never trims the answer, and a cancellable stall guard. Never changes reasoning effort, the model, or the request body. Provider-agnostic, one dependency (@deepseek-ai/schemastery).",
5
5
  "repository": {
6
6
  "type": "git",