kern-sandbox 0.2.18 → 0.2.20
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/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# kern-sandbox (Node.js / TypeScript)
|
|
2
2
|
|
|
3
|
-
**Run
|
|
3
|
+
**Run LLM-generated code in a fast, real sandbox, one fresh box per call.**
|
|
4
4
|
|
|
5
5
|
Fast means milliseconds, and it is two numbers rather than one: the box is the cheap part, and an
|
|
6
6
|
interpreter starting inside it costs more than the box does. Both depend on your machine, so they are
|
|
@@ -23,7 +23,7 @@ agent branches on a value instead of parsing text to work out who ended the run.
|
|
|
23
23
|
|
|
24
24
|
On npm: [`npm install kern-sandbox`](https://www.npmjs.com/package/kern-sandbox). Python gets the same
|
|
25
25
|
package on PyPI: [`kern-sandbox`](https://pypi.org/project/kern-sandbox/), which also ships an **MCP
|
|
26
|
-
server** for Claude Desktop and
|
|
26
|
+
server** for Claude Desktop, Cursor and LM Studio.
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
const kern = require("kern-sandbox");
|
package/index.js
CHANGED
|
@@ -36,7 +36,7 @@ const crypto = require("crypto");
|
|
|
36
36
|
const zlib = require("zlib");
|
|
37
37
|
const { spawn, spawnSync } = require("child_process");
|
|
38
38
|
|
|
39
|
-
const VERSION = "0.2.
|
|
39
|
+
const VERSION = "0.2.20";
|
|
40
40
|
|
|
41
41
|
const DEFAULT_IMAGE = "python:3.12-slim";
|
|
42
42
|
const WORKSPACE = "/workspace"; // where the persistent workspace is mounted inside every box
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kern-sandbox",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "kern is a fast, rootless sandbox and virtual resource runtime for any workload, including untrusted and
|
|
3
|
+
"version": "0.2.20",
|
|
4
|
+
"description": "kern is a fast, rootless sandbox and virtual resource runtime for any workload, including untrusted and LLM-generated code; kern-sandbox is its Node/TypeScript binding. Run untrusted or agent-generated code (Python/JS/Bash) in a real, kernel-enforced box in single-digit milliseconds, with no cloud, no account and no VM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sandbox",
|
|
7
7
|
"kern",
|