@smithers-orchestrator/sandbox 0.20.1 → 0.20.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/package.json +6 -9
- package/src/execute.js +4 -0
- package/src/sandboxPath.js +1 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithers-orchestrator/sandbox",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"description": "Sandbox bundle, execution, and transport integration for Smithers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,14 +23,11 @@
|
|
|
23
23
|
"@effect/cluster": "^0.58.0",
|
|
24
24
|
"@effect/rpc": "^0.75.0",
|
|
25
25
|
"effect": "^3.21.1",
|
|
26
|
-
"@smithers-orchestrator/db": "0.20.
|
|
27
|
-
"@smithers-orchestrator/
|
|
28
|
-
"@smithers-orchestrator/
|
|
29
|
-
"@smithers-orchestrator/
|
|
30
|
-
"@smithers-orchestrator/
|
|
31
|
-
"@smithers-orchestrator/engine": "0.20.1",
|
|
32
|
-
"@smithers-orchestrator/driver": "0.20.1",
|
|
33
|
-
"@smithers-orchestrator/scheduler": "0.20.1"
|
|
26
|
+
"@smithers-orchestrator/db": "0.20.4",
|
|
27
|
+
"@smithers-orchestrator/observability": "0.20.4",
|
|
28
|
+
"@smithers-orchestrator/errors": "0.20.4",
|
|
29
|
+
"@smithers-orchestrator/scheduler": "0.20.4",
|
|
30
|
+
"@smithers-orchestrator/driver": "0.20.4"
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@types/bun": "latest",
|
package/src/execute.js
CHANGED
|
@@ -82,6 +82,10 @@ function requireSandboxHandle(handle, sandboxId) {
|
|
|
82
82
|
return handle;
|
|
83
83
|
throw new SmithersError("SANDBOX_EXECUTION_FAILED", `Sandbox ${sandboxId} did not initialize correctly.`, { sandboxId });
|
|
84
84
|
}
|
|
85
|
+
export const __executeSandboxInternals = {
|
|
86
|
+
directorySize,
|
|
87
|
+
requireSandboxHandle,
|
|
88
|
+
};
|
|
85
89
|
/**
|
|
86
90
|
* @returns {number}
|
|
87
91
|
*/
|
package/src/sandboxPath.js
CHANGED
|
@@ -50,11 +50,7 @@ export function assertPathWithinRootEffect(rootDir, resolvedPath) {
|
|
|
50
50
|
if (code && code !== "ENOENT" && code !== "ENOTDIR") {
|
|
51
51
|
return yield* Effect.fail(err);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
if (parent === current) {
|
|
55
|
-
return yield* Effect.fail(new SmithersError("TOOL_PATH_ESCAPE", "Path escapes sandbox root (via symlink)"));
|
|
56
|
-
}
|
|
57
|
-
current = parent;
|
|
53
|
+
current = dirname(current);
|
|
58
54
|
}
|
|
59
55
|
});
|
|
60
56
|
}
|