@coderule/mcp 1.6.3 → 1.6.4
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/dist/cli.cjs +12 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-cli.cjs +12 -0
- package/dist/mcp-cli.cjs.map +1 -1
- package/dist/mcp-cli.js +12 -0
- package/dist/mcp-cli.js.map +1 -1
- package/package.json +9 -4
package/dist/mcp-cli.cjs
CHANGED
|
@@ -1061,6 +1061,11 @@ async function walkDirectory(current, opts, stats) {
|
|
|
1061
1061
|
stats.skipped += 1;
|
|
1062
1062
|
continue;
|
|
1063
1063
|
}
|
|
1064
|
+
if (stat.size === 0) {
|
|
1065
|
+
stats.skipped += 1;
|
|
1066
|
+
dirLogger.debug({ relPath }, "Skipping zero-length file");
|
|
1067
|
+
continue;
|
|
1068
|
+
}
|
|
1064
1069
|
const target = dirent.isSymbolicLink() ? await readSymlinkTarget(absPath, dirLogger) : null;
|
|
1065
1070
|
const state = opts.filesRepo.upsertFromStat({
|
|
1066
1071
|
relPath,
|
|
@@ -1579,6 +1584,13 @@ var ServiceRunner = class {
|
|
|
1579
1584
|
this.runtime.logger.debug({ relPath }, "Watcher event ignored by rules");
|
|
1580
1585
|
return;
|
|
1581
1586
|
}
|
|
1587
|
+
if (fileStats.size === 0) {
|
|
1588
|
+
this.runtime.logger.debug(
|
|
1589
|
+
{ relPath },
|
|
1590
|
+
"Watcher skipping zero-length file"
|
|
1591
|
+
);
|
|
1592
|
+
return;
|
|
1593
|
+
}
|
|
1582
1594
|
const isSymlink = fileStats.isSymbolicLink();
|
|
1583
1595
|
const target = isSymlink ? await readSymlinkTarget2(absPath) : null;
|
|
1584
1596
|
const state = this.runtime.filesRepo.upsertFromStat({
|