@lousy-agents/agent-shell 5.17.10 → 5.17.11

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3050,7 +3050,15 @@ function isWindowsNetworkPath(filePath, platform = process.platform) {
3050
3050
  return false;
3051
3051
  }
3052
3052
  const normalized = filePath.replace(/\//g, "\\");
3053
- return normalized.startsWith("\\\\?\\UNC\\") || normalized.startsWith("\\\\");
3053
+ const extendedDrive = normalized.length >= 7 &&
3054
+ normalized.startsWith("\\\\?\\") &&
3055
+ /^[a-z]$/i.test(normalized[4] ?? "") &&
3056
+ normalized[5] === ":" &&
3057
+ normalized[6] === "\\";
3058
+ if (extendedDrive) {
3059
+ return false;
3060
+ }
3061
+ return normalized.startsWith("\\\\");
3054
3062
  }
3055
3063
  function isWindowsDriveLetterPath(filePath, platform = process.platform) {
3056
3064
  return platform === "win32" && /^[A-Za-z]:[\\/]/.test(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/agent-shell",
3
- "version": "5.17.10",
3
+ "version": "5.17.11",
4
4
  "description": "A flight recorder for npm script execution",
5
5
  "type": "module",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "build": "rspack build --config rspack.config.ts && chmod +x dist/index.js"
37
37
  },
38
38
  "dependencies": {
39
- "@openclaw/fs-safe": "0.4.5",
39
+ "@openclaw/fs-safe": "0.4.6",
40
40
  "zod": "4.4.3"
41
41
  },
42
42
  "peerDependencies": {