@lousy-agents/agent-shell 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/index.js +4 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5437,7 +5437,7 @@ class AtomicFile {
|
|
|
5437
5437
|
}
|
|
5438
5438
|
*readFile(sizeHint) {
|
|
5439
5439
|
if (typeof this.resource !== "number")
|
|
5440
|
-
return yield* atomic_io_wait(this.resource
|
|
5440
|
+
return yield* atomic_io_wait(readFileHandleBounded(this.resource, Infinity));
|
|
5441
5441
|
if (sizeHint === undefined)
|
|
5442
5442
|
return this.io.syncFs.readFileSync(this.resource);
|
|
5443
5443
|
const fd = this.resource;
|
|
@@ -15833,6 +15833,7 @@ function publishThroughPlaceholder(params, assertCurrent) {
|
|
|
15833
15833
|
|
|
15834
15834
|
|
|
15835
15835
|
|
|
15836
|
+
|
|
15836
15837
|
|
|
15837
15838
|
|
|
15838
15839
|
async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
@@ -15951,7 +15952,7 @@ async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
|
15951
15952
|
const expectedHash = sha256Hex(params.input.data, params.input.encoding);
|
|
15952
15953
|
readHandle = await promises_namespaceObject.open(targetPath, read_open_flags_resolveReadOpenFlags());
|
|
15953
15954
|
const readHandleStat = external_node_fs_namespaceObject.fstatSync(readHandle.fd, { bigint: true });
|
|
15954
|
-
const actualHash = sha256Hex(await readHandle
|
|
15955
|
+
const actualHash = sha256Hex(await readFileHandleBounded(readHandle, Infinity));
|
|
15955
15956
|
if (actualHash !== expectedHash) {
|
|
15956
15957
|
throw new errors_FsSafeError("path-mismatch", "fallback target changed during write");
|
|
15957
15958
|
}
|
|
@@ -16702,9 +16703,7 @@ async function read_opened_file_readOpenedFileSafely(params) {
|
|
|
16702
16703
|
if (maxBytes !== undefined && params.opened.stat.size > maxBytes) {
|
|
16703
16704
|
throw new errors_FsSafeError("too-large", `file exceeds limit of ${maxBytes} bytes (got ${params.opened.stat.size})`);
|
|
16704
16705
|
}
|
|
16705
|
-
const buffer = maxBytes
|
|
16706
|
-
? await params.opened.handle.readFile()
|
|
16707
|
-
: await readFileHandleBoundedWithSize(params.opened.handle, maxBytes, params.opened.stat.size);
|
|
16706
|
+
const buffer = await readFileHandleBoundedWithSize(params.opened.handle, maxBytes ?? Infinity, params.opened.stat.size);
|
|
16708
16707
|
return {
|
|
16709
16708
|
buffer,
|
|
16710
16709
|
containment: params.opened.containment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lousy-agents/agent-shell",
|
|
3
|
-
"version": "5.22.
|
|
3
|
+
"version": "5.22.4",
|
|
4
4
|
"description": "A flight recorder for npm script execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@openclaw/fs-safe": "0.26.
|
|
40
|
+
"@openclaw/fs-safe": "0.26.5",
|
|
41
41
|
"zod": "4.5.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@github/copilot-sdk": "1.0.
|
|
44
|
+
"@github/copilot-sdk": "1.0.22"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"@github/copilot-sdk": {
|