@lousy-agents/agent-shell 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/index.js +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -85,6 +85,7 @@ const OPERATIONAL_CODES = new Set([
|
|
|
85
85
|
"not-found",
|
|
86
86
|
"not-removable",
|
|
87
87
|
"permission-unverified",
|
|
88
|
+
"read-failed",
|
|
88
89
|
"timeout",
|
|
89
90
|
"unsupported-platform",
|
|
90
91
|
]);
|
|
@@ -4452,7 +4453,6 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
4452
4453
|
if (!preOpenStat.isFile() && !preOpenStat.isSymbolicLink()) {
|
|
4453
4454
|
throw new errors_FsSafeError("not-file", "not a file");
|
|
4454
4455
|
}
|
|
4455
|
-
await fsSafeTestHooks?.afterPreOpenLstat?.(filePath);
|
|
4456
4456
|
}
|
|
4457
4457
|
catch (err) {
|
|
4458
4458
|
if (err instanceof errors_FsSafeError) {
|
|
@@ -4460,6 +4460,9 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
4460
4460
|
}
|
|
4461
4461
|
// ENOENT and other lstat errors: fall through and let fs.open handle.
|
|
4462
4462
|
}
|
|
4463
|
+
if (preOpenStat) {
|
|
4464
|
+
await fsSafeTestHooks?.afterPreOpenLstat?.(filePath);
|
|
4465
|
+
}
|
|
4463
4466
|
let handle;
|
|
4464
4467
|
try {
|
|
4465
4468
|
const openFlags = options?.symlinks === "follow-within-root"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lousy-agents/agent-shell",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"description": "A flight recorder for npm script execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@openclaw/fs-safe": "0.5.
|
|
40
|
+
"@openclaw/fs-safe": "0.5.3",
|
|
41
41
|
"zod": "4.4.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|