@agenshield/sandbox 0.6.0 → 0.6.1
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/detect.d.ts.map +1 -1
- package/index.js +10 -2
- package/package.json +2 -2
package/detect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../src/detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../src/detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA0BH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,0BAA0B;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AA8LD;;GAEG;AACH,wBAAgB,cAAc,IAAI,eAAe,CA2DhD;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,mBAAmB,CAwBxD"}
|
package/index.js
CHANGED
|
@@ -1868,7 +1868,15 @@ import * as fs5 from "node:fs";
|
|
|
1868
1868
|
import * as path2 from "node:path";
|
|
1869
1869
|
import * as os2 from "node:os";
|
|
1870
1870
|
import { execSync as execSync4 } from "node:child_process";
|
|
1871
|
-
|
|
1871
|
+
function getHome() {
|
|
1872
|
+
const sudoUser = process.env["SUDO_USER"];
|
|
1873
|
+
if (sudoUser) {
|
|
1874
|
+
const userHome = path2.join("/Users", sudoUser);
|
|
1875
|
+
if (fs5.existsSync(userHome)) return userHome;
|
|
1876
|
+
}
|
|
1877
|
+
return os2.homedir();
|
|
1878
|
+
}
|
|
1879
|
+
var HOME = getHome();
|
|
1872
1880
|
function execSafe2(cmd) {
|
|
1873
1881
|
try {
|
|
1874
1882
|
return execSync4(cmd, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
@@ -4717,7 +4725,7 @@ async function copyNodeDylibs(srcBinaryPath, socketGroupName) {
|
|
|
4717
4725
|
const dylibName = match[3];
|
|
4718
4726
|
let resolvedPath;
|
|
4719
4727
|
if (prefix === "@loader_path") {
|
|
4720
|
-
resolvedPath = path6.resolve(path6.dirname(srcBinaryPath)
|
|
4728
|
+
resolvedPath = path6.resolve(path6.dirname(srcBinaryPath) + relPath + dylibName);
|
|
4721
4729
|
} else {
|
|
4722
4730
|
resolvedPath = path6.resolve(path6.dirname(srcBinaryPath), "..", "lib", dylibName);
|
|
4723
4731
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenshield/sandbox",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "User isolation and sandboxing utilities for AgenShield",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@agenshield/skills": "0.6.
|
|
18
|
+
"@agenshield/skills": "0.6.1",
|
|
19
19
|
"yaml": "^2.7.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|