pi-landstrip 0.19.12 → 0.19.13
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.ts +18 -4
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -5895,10 +5895,24 @@ function shellEnvironment(env, cwd, proxyPort, proxyToken) {
|
|
|
5895
5895
|
const result = { ...process.env, ...env, PWD: resolve4(cwd) };
|
|
5896
5896
|
return createProxyEnvironment(proxyPort, proxyToken, result);
|
|
5897
5897
|
}
|
|
5898
|
+
var WINDOWS_LAUNCHER_ENVIRONMENT = [
|
|
5899
|
+
"ProgramData",
|
|
5900
|
+
"LOCALAPPDATA",
|
|
5901
|
+
"SystemRoot",
|
|
5902
|
+
"windir",
|
|
5903
|
+
"ComSpec",
|
|
5904
|
+
"PATHEXT"
|
|
5905
|
+
];
|
|
5898
5906
|
function createLandstripLauncherEnvironment(providerEnv, hostEnv = process.env, platform = process.platform) {
|
|
5899
|
-
if (platform !== "win32"
|
|
5907
|
+
if (platform !== "win32")
|
|
5900
5908
|
return providerEnv;
|
|
5901
|
-
|
|
5909
|
+
const result = { ...providerEnv };
|
|
5910
|
+
for (const name of WINDOWS_LAUNCHER_ENVIRONMENT) {
|
|
5911
|
+
const value = hostEnv[name];
|
|
5912
|
+
if (value !== undefined)
|
|
5913
|
+
result[name] = value;
|
|
5914
|
+
}
|
|
5915
|
+
return result;
|
|
5902
5916
|
}
|
|
5903
5917
|
function createWindowsDenyRead(denyRead, volumeRoot) {
|
|
5904
5918
|
return [...new Set([...denyRead.filter((path) => !path.startsWith("/")), volumeRoot])];
|
|
@@ -7003,7 +7017,7 @@ ${paths}${note}`, PERMISSION_OPTIONS, promptSignal);
|
|
|
7003
7017
|
const errorText = formatError(error);
|
|
7004
7018
|
const fallbackOutput = `${stderrOutput}
|
|
7005
7019
|
${errorText}`;
|
|
7006
|
-
const blockedWritePath = extractTrapBlockedPath(landstripErrorOutput, ctx.cwd, "write") ?? extractNativeWriteDeniedPath(fallbackOutput, ctx.cwd);
|
|
7020
|
+
const blockedWritePath = extractTrapBlockedPath(landstripErrorOutput, ctx.cwd, "write") ?? extractNativeWriteDeniedPath(fallbackOutput, ctx.cwd, params.command);
|
|
7007
7021
|
if (blockedWritePath) {
|
|
7008
7022
|
const retryResult = await retryWithAccess("write", blockedWritePath);
|
|
7009
7023
|
if (retryResult)
|
|
@@ -7028,7 +7042,7 @@ ${errorText}`;
|
|
|
7028
7042
|
${message}
|
|
7029
7043
|
` });
|
|
7030
7044
|
}
|
|
7031
|
-
const blockedWritePath = extractTrapBlockedPath(landstripErrorOutput, ctx.cwd, "write") ?? extractNativeWriteDeniedPath(stderrOutput, ctx.cwd);
|
|
7045
|
+
const blockedWritePath = extractTrapBlockedPath(landstripErrorOutput, ctx.cwd, "write") ?? extractNativeWriteDeniedPath(stderrOutput, ctx.cwd, params.command);
|
|
7032
7046
|
if (blockedWritePath) {
|
|
7033
7047
|
const retryResult = await retryWithAccess("write", blockedWritePath);
|
|
7034
7048
|
if (retryResult)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-landstrip",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.13",
|
|
4
4
|
"description": "Sandboxed Bash and process-backed agents for Pi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"landstrip",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ci:test": "npm run test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@landstrip/landstrip-api": "^0.19.
|
|
42
|
+
"@landstrip/landstrip-api": "^0.19.13",
|
|
43
43
|
"jsonc-parser": "^3.3.1",
|
|
44
44
|
"minimatch": "^10.2.5",
|
|
45
45
|
"undici": "^8.9.0",
|