kern-sandbox 0.1.4 → 0.1.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/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +4 -2
package/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export class Sandbox {
|
|
|
130
130
|
/** Write data to a workspace-relative path (host-direct, O_NOFOLLOW on the final component). */
|
|
131
131
|
writeFile(path: string, data: Buffer | string): Promise<void>;
|
|
132
132
|
/** Read a workspace-relative path (host-direct, O_NOFOLLOW). */
|
|
133
|
-
readFile(path: string): Promise<Buffer>;
|
|
133
|
+
readFile(path: string, opts?: { maxBytes?: number }): Promise<Buffer>;
|
|
134
134
|
/** Write a gzip tar of the whole workspace to `dest`, a portable filesystem checkpoint (NOT memory). */
|
|
135
135
|
snapshot(dest: string): void;
|
|
136
136
|
/** Extract a snapshot (from snapshot()) into the workspace, safely (rejects symlink/.. /absolute members). */
|
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.1.
|
|
39
|
+
const VERSION = "0.1.5";
|
|
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.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "A fast, local, daemonless code-interpreter sandbox for agent/LLM code: run Python/JS/Bash, get rich results (charts, tables), no cloud/account/VM. A thin, dependency-free wrapper around the kern binary.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sandbox",
|
|
7
7
|
"kern",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"isolation",
|
|
12
12
|
"seccomp",
|
|
13
13
|
"container",
|
|
14
|
+
"code-interpreter",
|
|
15
|
+
"jupyter",
|
|
14
16
|
"e2b"
|
|
15
17
|
],
|
|
16
18
|
"homepage": "https://github.com/getkern/kern/tree/main/bindings/node",
|