@windypro-rourou/dsh-code-studio 0.1.4 → 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/lib/index.js +11 -0
- package/package.json +1 -1
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.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|