@lousy-agents/mcp 5.19.7 → 5.20.0
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/mcp-server.js +4 -1
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -26557,6 +26557,7 @@ const OPERATIONAL_CODES = new Set([
|
|
|
26557
26557
|
"not-found",
|
|
26558
26558
|
"not-removable",
|
|
26559
26559
|
"permission-unverified",
|
|
26560
|
+
"read-failed",
|
|
26560
26561
|
"timeout",
|
|
26561
26562
|
"unsupported-platform",
|
|
26562
26563
|
]);
|
|
@@ -30926,7 +30927,6 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
30926
30927
|
if (!preOpenStat.isFile() && !preOpenStat.isSymbolicLink()) {
|
|
30927
30928
|
throw new errors_FsSafeError("not-file", "not a file");
|
|
30928
30929
|
}
|
|
30929
|
-
await fsSafeTestHooks?.afterPreOpenLstat?.(filePath);
|
|
30930
30930
|
}
|
|
30931
30931
|
catch (err) {
|
|
30932
30932
|
if (err instanceof errors_FsSafeError) {
|
|
@@ -30934,6 +30934,9 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
30934
30934
|
}
|
|
30935
30935
|
// ENOENT and other lstat errors: fall through and let fs.open handle.
|
|
30936
30936
|
}
|
|
30937
|
+
if (preOpenStat) {
|
|
30938
|
+
await fsSafeTestHooks?.afterPreOpenLstat?.(filePath);
|
|
30939
|
+
}
|
|
30937
30940
|
let handle;
|
|
30938
30941
|
try {
|
|
30939
30942
|
const openFlags = options?.symlinks === "follow-within-root"
|