@lousy-agents/mcp 5.22.2 → 5.22.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/mcp-server.js +4 -5
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -42807,7 +42807,7 @@ class AtomicFile {
|
|
|
42807
42807
|
}
|
|
42808
42808
|
*readFile(sizeHint) {
|
|
42809
42809
|
if (typeof this.resource !== "number")
|
|
42810
|
-
return yield* atomic_io_wait(this.resource
|
|
42810
|
+
return yield* atomic_io_wait(readFileHandleBounded(this.resource, Infinity));
|
|
42811
42811
|
if (sizeHint === undefined)
|
|
42812
42812
|
return this.io.syncFs.readFileSync(this.resource);
|
|
42813
42813
|
const fd = this.resource;
|
|
@@ -53203,6 +53203,7 @@ function publishThroughPlaceholder(params, assertCurrent) {
|
|
|
53203
53203
|
|
|
53204
53204
|
|
|
53205
53205
|
|
|
53206
|
+
|
|
53206
53207
|
|
|
53207
53208
|
|
|
53208
53209
|
async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
@@ -53321,7 +53322,7 @@ async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
|
53321
53322
|
const expectedHash = sha256Hex(params.input.data, params.input.encoding);
|
|
53322
53323
|
readHandle = await promises_.open(targetPath, read_open_flags_resolveReadOpenFlags());
|
|
53323
53324
|
const readHandleStat = external_node_fs_.fstatSync(readHandle.fd, { bigint: true });
|
|
53324
|
-
const actualHash = sha256Hex(await readHandle
|
|
53325
|
+
const actualHash = sha256Hex(await readFileHandleBounded(readHandle, Infinity));
|
|
53325
53326
|
if (actualHash !== expectedHash) {
|
|
53326
53327
|
throw new errors_FsSafeError("path-mismatch", "fallback target changed during write");
|
|
53327
53328
|
}
|
|
@@ -54072,9 +54073,7 @@ async function read_opened_file_readOpenedFileSafely(params) {
|
|
|
54072
54073
|
if (maxBytes !== undefined && params.opened.stat.size > maxBytes) {
|
|
54073
54074
|
throw new errors_FsSafeError("too-large", `file exceeds limit of ${maxBytes} bytes (got ${params.opened.stat.size})`);
|
|
54074
54075
|
}
|
|
54075
|
-
const buffer = maxBytes
|
|
54076
|
-
? await params.opened.handle.readFile()
|
|
54077
|
-
: await readFileHandleBoundedWithSize(params.opened.handle, maxBytes, params.opened.stat.size);
|
|
54076
|
+
const buffer = await readFileHandleBoundedWithSize(params.opened.handle, maxBytes ?? Infinity, params.opened.stat.size);
|
|
54078
54077
|
return {
|
|
54079
54078
|
buffer,
|
|
54080
54079
|
containment: params.opened.containment,
|