@windypro-rourou/dsh-code-studio 0.1.3 → 0.1.5

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
@@ -26,6 +26,11 @@ dsh plugin --profile web add github:WindyPro-rourou/dsh-code-studio
26
26
 
27
27
  重启 `dsh web` 后,左侧边栏出现 **Code Studio** 入口。
28
28
 
29
+ ## 兼容性
30
+
31
+ - 验证版本:**DSH ≥ 0.1.1-rc.2**(`@deepseek-ai/dsh`、`dsh-web-app`、`dsh-base`、`dsh-client-runtime`)。
32
+ - 依赖的 API:`webServer.register`、`session/event`(`tool/call` / `tool/result`)、`sessions.list()`、客户端 `slots` 服务 —— 在 0.1.1-rc.2 中均保持兼容。
33
+
29
34
  ## 使用
30
35
 
31
36
  1. 打开 Code Studio(右侧面板,可拖左缘调宽)。
package/lib/index.js CHANGED
@@ -137,9 +137,20 @@ class FileLedger {
137
137
  return false;
138
138
  }
139
139
 
140
+ /**
141
+ * Only files the agent has actually touched (claimed via write/edit tool
142
+ * events) are interesting. Everything else - the user editing in another
143
+ * editor, IDE/build writes, background processes - is silently ignored so
144
+ * the panel shows exactly "which file the agent changed".
145
+ */
146
+ static isInteresting(path) {
147
+ return this.owners.has(path);
148
+ }
149
+
140
150
  /** Called when a file may have changed on disk. */
141
151
  async handleChange(path) {
142
152
  if (FileLedger.isNoise(path)) return;
153
+ if (!FileLedger.isInteresting(path)) return;
143
154
  let current;
144
155
  try {
145
156
  current = await this.readCurrent(path);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@windypro-rourou/dsh-code-studio",
3
3
  "description": "File-change monitor \u0026 code editor for the DSH Web UI: watch agent edits land as line-by-line diffs in real time, right beside your conversation, then view and edit any workspace file without leaving the browser.",
4
- "version": "0.1.3",
4
+ "version": "0.1.5",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/types/index.d.ts",
@@ -43,7 +43,9 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@deepseek-ai/cordis": "^4.0.1",
46
- "react": "^18.2.0"
46
+ "react": "^18.2.0",
47
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.8",
48
+ "@deepseek-ai/dsh-client-connection": "^0.1.0-rc.8"
47
49
  },
48
50
  "files": [
49
51
  "lib/**/*.js",