@dsh-cc/tool-notebook-edit 0.8.1-rc.1 → 0.8.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.i18n.yaml CHANGED
@@ -3,4 +3,4 @@
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm check:readme --write
5
5
  README.md: 5afa500e9c241c9e404f1a32c62a69377df38629
6
- README.zh.md: f22c471c86e8c226700fbb0a6e1450137e094cb9
6
+ README.zh.md: 46b7f268c4f01f90afcbdfefb78a7e32d3ec7327
package/README.zh.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  ## 写前先读(read-before-write)门
24
24
 
25
- 与 CC 的 `validateInput` 一致,工具拒绝写入模型从未读过的 notebook,也拒绝在文件自读取后被改动时(stale write)进行写入。该门由 harness 观测 seam 驱动:插件在 `apply()` 中维护一张 `readStates` 表,并记录每条 `present` 的 `fs/observed` 观测(即 Read/Write/Edit 工具在提交时发出的事件),按键为解析后的路径。execute 时:无已观测读记录 → 拒绝;当前 `ctx.fs.stat()` 版本与该观测版本不一致 → 拒绝。写完后用写入结果的版本重新建立基线——因此工具自身的写视为“已读”的最新基线。seam 暴露的是不透明 `FsVersion` 新鲜度令牌而非 mtime;比较该令牌是 seam 原生的陈旧性校验,严格强于 CC 的 mtime 比较。
25
+ 与 CC 的 `validateInput` 一致,工具拒绝写入模型从未读过的 notebook,也拒绝在文件自读取后被改动(stale write)时写入。该门由 harness 观测 seam 驱动:插件在 `apply()` 中维护一张 `readStates` 表,并记录每条 `present` 的 `fs/observed` 观测(即 Read/Write/Edit 工具在提交时发出的事件),按键为解析后的路径。execute 时:无已观测读记录 → 拒绝;当前 `ctx.fs.stat()` 版本与该观测版本不一致 → 拒绝。写完后用写入结果的版本重新建立基线——因此工具自身的写视为“已读”的最新基线。seam 暴露的是不透明 `FsVersion` 新鲜度令牌而非 mtime;比较该令牌是 seam 原生的陈旧性校验,严格强于 CC 的 mtime 比较。
26
26
 
27
27
  该工具为 `isConcurrencySafe = () => false`:它会改动共享的单元格状态与读基线,因此绝不可与并行的兄弟 `NotebookEdit` 调用重叠。
28
28
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/tool-notebook-edit",
3
3
  "description": "NotebookEdit model tool that edits Jupyter notebook (.ipynb) cells over the ctx.fs seam, aligned with Claude Code's NotebookEditTool replace/insert/delete, cell addressing, and read-before-write semantics",
4
- "version": "0.8.1-rc.1",
4
+ "version": "0.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dsh-cc/dsh-cc.git",
@@ -34,7 +34,7 @@
34
34
  "@deepseek-ai/dsh-invariants": ">=0.1.5-rc.1",
35
35
  "@deepseek-ai/cordis": ">=0.1.5-rc.1",
36
36
  "@deepseek-ai/schemastery": "^3.18.1",
37
- "@dsh-cc/tools": "^0.8.1-rc.1"
37
+ "@dsh-cc/tools": "^0.8.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@deepseek-ai/dsh-fs": "link:../../../../deepseek-harness/packages/fs/fs",
@@ -44,7 +44,7 @@
44
44
  "@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
45
45
  "@deepseek-ai/schemastery": "link:../../../../deepseek-harness/vendor/schemastery",
46
46
  "@deepseek-ai/dsh-system-prompt": "link:../../../../deepseek-harness/packages/core/system-prompt",
47
- "@dsh-cc/tools": "^0.8.1-rc.1"
47
+ "@dsh-cc/tools": "^0.8.1"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"