@yarlisai/sandbox 0.1.0-alpha.1 → 0.3.0-alpha.5
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ The default `node-worker` adapter relies on Node's built-in `worker_threads` and
|
|
|
28
28
|
|
|
29
29
|
## Architecture
|
|
30
30
|
|
|
31
|
-
```
|
|
31
|
+
```text
|
|
32
32
|
Your app ──► SandboxClient ──► SandboxRunner (port) ──► [node-worker | memory | custom] (adapter)
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -70,7 +70,7 @@ await sandbox.dispose()
|
|
|
70
70
|
|
|
71
71
|
The `node-worker` adapter speaks the following protocol over `postMessage`:
|
|
72
72
|
|
|
73
|
-
```
|
|
73
|
+
```text
|
|
74
74
|
main → worker
|
|
75
75
|
{ type: 'execute', execId, code, contextVariables, executionParams,
|
|
76
76
|
envVars, isCustomTool, syncTimeout }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarlisai/sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.5",
|
|
4
4
|
"description": "Pluggable sandbox runner for executing untrusted user code (worker_threads pool + in-memory fallback).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|