@toolpal/sandbox 0.0.0-stage → 0.1.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.
@@ -0,0 +1,392 @@
1
+ import { spawn } from "node:child_process";
2
+ import { mkdir, mkdtemp, rm, stat } from "node:fs/promises";
3
+ import { tmpdir } from "node:os";
4
+ import { join } from "node:path";
5
+ import { SandboxError } from "./errors.js";
6
+ import { readFrames } from "./protocol.js";
7
+ import { RUNNER_PATH } from "./runner-path.js";
8
+ const STDERR_TAIL_BYTES = 8192;
9
+ const MAX_LOGS_PER_CALL = 1000;
10
+ export function buildNodeArgs(spec, runtime, tmpDir) {
11
+ const args = [
12
+ "--permission",
13
+ `--allow-fs-read=${spec.toolDir}`,
14
+ "--no-addons",
15
+ "--disable-warning=ExperimentalWarning",
16
+ `--max-old-space-size=${spec.memoryMb}`,
17
+ ];
18
+ if (tmpDir)
19
+ args.push(`--allow-fs-read=${tmpDir}`, `--allow-fs-write=${tmpDir}`);
20
+ // Below Node 25 the flag does not exist (and the network is open regardless).
21
+ if ((spec.permissions.net && runtime.netMode === "native") || runtime.simulateGuard) {
22
+ args.push("--allow-net");
23
+ }
24
+ args.push(RUNNER_PATH);
25
+ return args;
26
+ }
27
+ /**
28
+ * On Windows libuv copies these from the parent when they are missing from the
29
+ * child's environment, which would leak the user name, profile path, PATH, etc.
30
+ * Present-but-empty values stop that.
31
+ */
32
+ const WINDOWS_INHERITED_VARS = [
33
+ "HOMEDRIVE",
34
+ "HOMEPATH",
35
+ "LOGONSERVER",
36
+ "PATH",
37
+ "SYSTEMDRIVE",
38
+ "TEMP",
39
+ "USERDOMAIN",
40
+ "USERNAME",
41
+ "USERPROFILE",
42
+ "WINDIR",
43
+ ];
44
+ export function buildChildEnv(spec, tmpDir) {
45
+ const env = {};
46
+ if (process.platform === "win32") {
47
+ for (const name of WINDOWS_INHERITED_VARS)
48
+ env[name] = "";
49
+ // Node needs SystemRoot on Windows to initialise crypto and sockets.
50
+ if (process.env.SystemRoot)
51
+ env.SystemRoot = process.env.SystemRoot;
52
+ }
53
+ Object.assign(env, spec.env);
54
+ if (tmpDir) {
55
+ env.TMPDIR = tmpDir;
56
+ env.TMP = tmpDir;
57
+ env.TEMP = tmpDir;
58
+ }
59
+ return env;
60
+ }
61
+ export function netModeFor(spec, runtime) {
62
+ if (spec.permissions.net)
63
+ return "open";
64
+ return runtime.netMode;
65
+ }
66
+ /** Windows refuses to start a process whose working directory path is longer (MAX_PATH - 2). */
67
+ const WINDOWS_MAX_CWD_LENGTH = 258;
68
+ /** The reason a child without a pid never started: Node emits it as 'error' on the next tick. */
69
+ function spawnErrorOf(child) {
70
+ for (const stream of [child.stdin, child.stdout, child.stderr]) {
71
+ // The streams exist even though nothing is on the other end; on Windows their pipes can
72
+ // be unconnected, and reading one fails with ENOTCONN. (After EMFILE there are no streams.)
73
+ stream?.on("error", () => { });
74
+ }
75
+ return new Promise((resolve) => child.once("error", resolve));
76
+ }
77
+ /**
78
+ * Node reports a missing or too-long working directory as `spawn <node> ENOENT`,
79
+ * blaming the binary; name the directory instead.
80
+ */
81
+ async function spawnFailure(err, spec) {
82
+ const dir = spec.toolDir;
83
+ const details = { toolDir: dir, spawnCode: err.code };
84
+ const fail = (reason, extra = {}) => new SandboxError("SPAWN_FAILED", `could not start the tool process: ${reason}`, {
85
+ ...details,
86
+ ...extra,
87
+ });
88
+ if (err.code === "ENOENT" || err.code === "ENAMETOOLONG") {
89
+ const isDir = await stat(dir).then((s) => s.isDirectory(), () => false);
90
+ if (!isDir)
91
+ return fail(`the tool directory does not exist (${dir})`);
92
+ if (process.platform === "win32" && dir.length > WINDOWS_MAX_CWD_LENGTH) {
93
+ const over = dir.length - WINDOWS_MAX_CWD_LENGTH;
94
+ return fail(`its directory path is ${dir.length} characters long, ${over} more than Windows allows for a working directory (${WINDOWS_MAX_CWD_LENGTH})`, { maxToolDirLength: WINDOWS_MAX_CWD_LENGTH });
95
+ }
96
+ }
97
+ return fail(err.message);
98
+ }
99
+ /** One permission-restricted child process running one tool. Handles one call at a time. */
100
+ export class ToolProcess {
101
+ child;
102
+ tmpDir;
103
+ maxOutputBytes;
104
+ callsServed = 0;
105
+ description = null;
106
+ sdkVersion = null;
107
+ childNodeVersion = "";
108
+ state = "starting";
109
+ pending = null;
110
+ readyWaiter = null;
111
+ stderrTail = "";
112
+ callSeq = 0;
113
+ logsThisCall = 0;
114
+ exitListeners = [];
115
+ constructor(child, tmpDir, maxOutputBytes) {
116
+ this.child = child;
117
+ this.tmpDir = tmpDir;
118
+ this.maxOutputBytes = maxOutputBytes;
119
+ }
120
+ static async start(spec, runtime, opts) {
121
+ const tmpDir = spec.permissions.tmp ? await mkdtemp(join(tmpdir(), "toolpal-tmp-")) : undefined;
122
+ let child;
123
+ try {
124
+ child = spawn(runtime.path, buildNodeArgs(spec, runtime, tmpDir), {
125
+ cwd: spec.toolDir,
126
+ env: buildChildEnv(spec, tmpDir),
127
+ stdio: ["pipe", "pipe", "pipe"],
128
+ windowsHide: true,
129
+ shell: false,
130
+ });
131
+ // Most failures are not thrown: Node returns a child without a pid and says why later.
132
+ if (child.pid === undefined)
133
+ throw await spawnErrorOf(child);
134
+ }
135
+ catch (err) {
136
+ if (tmpDir)
137
+ await rm(tmpDir, { recursive: true, force: true });
138
+ throw await spawnFailure(err, spec);
139
+ }
140
+ const proc = new ToolProcess(child, tmpDir, opts.maxOutputBytes);
141
+ proc.wire(opts.onLog);
142
+ const ready = new Promise((resolve, reject) => {
143
+ proc.readyWaiter = { resolve, reject };
144
+ });
145
+ const timer = setTimeout(() => {
146
+ proc.failStartup("TOOL_CRASHED", `tool did not start within ${opts.startupTimeoutMs}ms`);
147
+ }, opts.startupTimeoutMs);
148
+ proc.writeFrame({
149
+ type: "init",
150
+ entry: spec.entryPath,
151
+ entryIntegrity: spec.entryIntegrity,
152
+ netMode: netModeFor(spec, runtime),
153
+ });
154
+ try {
155
+ await ready;
156
+ }
157
+ finally {
158
+ clearTimeout(timer);
159
+ }
160
+ proc.state = "idle";
161
+ return proc;
162
+ }
163
+ get alive() {
164
+ return this.state !== "dead";
165
+ }
166
+ onExit(listener) {
167
+ if (this.state === "dead")
168
+ listener();
169
+ else
170
+ this.exitListeners.push(listener);
171
+ }
172
+ /**
173
+ * Makes the folders for one call's files. They are new and randomly named, so
174
+ * the tool cannot have put anything in their place; `remove` deletes them.
175
+ */
176
+ async openCallDirs() {
177
+ if (!this.tmpDir) {
178
+ throw new SandboxError("INVALID_TOOL", "a tool with file inputs or outputs needs the `tmp` permission");
179
+ }
180
+ let dir;
181
+ try {
182
+ dir = await mkdtemp(join(this.tmpDir, "call-"));
183
+ await mkdir(join(dir, "in"));
184
+ await mkdir(join(dir, "out"));
185
+ }
186
+ catch (err) {
187
+ throw new SandboxError("TOOL_CRASHED", `could not make the folders for the call's files: ${err.message}`);
188
+ }
189
+ return {
190
+ inputDir: join(dir, "in"),
191
+ outputDir: join(dir, "out"),
192
+ // The tool can still hold one of its files open; its temp dir goes when the process does.
193
+ remove: () => rm(dir, { recursive: true, force: true }).catch(() => { }),
194
+ };
195
+ }
196
+ call(input, opts) {
197
+ if (this.state !== "idle") {
198
+ return Promise.reject(new SandboxError("PROTOCOL_ERROR", `process is ${this.state}`));
199
+ }
200
+ if (opts.signal?.aborted)
201
+ return Promise.reject(new SandboxError("ABORTED", "call aborted"));
202
+ this.state = "busy";
203
+ this.logsThisCall = 0;
204
+ this.ref();
205
+ const id = String(++this.callSeq);
206
+ return new Promise((resolve, reject) => {
207
+ const onAbort = () => this.terminate(new SandboxError("ABORTED", "call aborted"));
208
+ const timer = setTimeout(() => {
209
+ this.terminate(new SandboxError("TIMEOUT", `tool did not finish within ${opts.timeoutMs}ms`, {
210
+ timeoutMs: opts.timeoutMs,
211
+ }));
212
+ }, opts.timeoutMs);
213
+ opts.signal?.addEventListener("abort", onAbort, { once: true });
214
+ const settle = () => {
215
+ clearTimeout(timer);
216
+ opts.signal?.removeEventListener("abort", onAbort);
217
+ this.pending = null;
218
+ if (this.state === "busy") {
219
+ this.state = "idle";
220
+ this.callsServed++;
221
+ this.unref();
222
+ }
223
+ };
224
+ this.pending = {
225
+ id,
226
+ onLog: opts.onLog,
227
+ resolve: (output) => {
228
+ settle();
229
+ resolve(output);
230
+ },
231
+ reject: (err) => {
232
+ settle();
233
+ reject(err);
234
+ },
235
+ };
236
+ this.writeFrame({ type: "call", id, input, outputDir: opts.outputDir });
237
+ });
238
+ }
239
+ /** Kill the process; a pending call or startup rejects with `err`. */
240
+ terminate(err) {
241
+ if (this.state === "dead")
242
+ return;
243
+ if (err)
244
+ this.rejectAll(err);
245
+ this.state = "dead";
246
+ // An idle process is unref'd; re-ref so a caller awaiting its exit keeps the loop alive.
247
+ this.ref();
248
+ this.child.kill("SIGKILL");
249
+ }
250
+ ref() {
251
+ this.child.ref();
252
+ for (const s of [this.child.stdin, this.child.stdout, this.child.stderr]) {
253
+ s.ref?.();
254
+ }
255
+ }
256
+ /** Idle processes must not keep the host's event loop alive (scripts exit on their own). */
257
+ unref() {
258
+ this.child.unref();
259
+ for (const s of [this.child.stdin, this.child.stdout, this.child.stderr]) {
260
+ s.unref?.();
261
+ }
262
+ }
263
+ // ---------------------------------------------------------------------------
264
+ wire(processLog) {
265
+ const { child } = this;
266
+ for (const stream of [child.stdin, child.stdout, child.stderr]) {
267
+ stream.on("error", () => {
268
+ // EPIPE and the like when the child has died; the exit handler reports the real cause.
269
+ });
270
+ }
271
+ child.stderr.on("data", (chunk) => {
272
+ this.stderrTail = (this.stderrTail + chunk.toString("utf8")).slice(-STDERR_TAIL_BYTES);
273
+ });
274
+ readFrames(child.stdout, {
275
+ maxFrameBytes: this.maxOutputBytes + 1024,
276
+ onViolation: (reason) => {
277
+ const code = reason.includes("size")
278
+ ? "OUTPUT_TOO_LARGE"
279
+ : "PROTOCOL_ERROR";
280
+ this.terminate(new SandboxError(code, `tool process sent an invalid frame: ${reason}`));
281
+ },
282
+ onFrame: (frame) => this.onFrame(frame, processLog),
283
+ });
284
+ child.on("error", (err) => {
285
+ this.rejectAll(new SandboxError("SPAWN_FAILED", `tool process error: ${err.message}`));
286
+ });
287
+ child.on("exit", (code, signal) => {
288
+ const wasDead = this.state === "dead";
289
+ this.state = "dead";
290
+ if (!wasDead || this.pending || this.readyWaiter) {
291
+ this.rejectAll(this.classifyExit(code, signal));
292
+ }
293
+ if (this.tmpDir)
294
+ void rm(this.tmpDir, { recursive: true, force: true }).catch(() => { });
295
+ for (const listener of this.exitListeners.splice(0))
296
+ listener();
297
+ });
298
+ }
299
+ onFrame(frame, processLog) {
300
+ switch (frame.type) {
301
+ case "ready": {
302
+ this.description = frame.description ?? null;
303
+ this.sdkVersion = typeof frame.sdk === "string" ? frame.sdk : null;
304
+ this.childNodeVersion = String(frame.node ?? "");
305
+ const waiter = this.readyWaiter;
306
+ this.readyWaiter = null;
307
+ waiter?.resolve();
308
+ return;
309
+ }
310
+ case "log": {
311
+ const handler = this.pending?.onLog ?? processLog;
312
+ if (!handler || ++this.logsThisCall > MAX_LOGS_PER_CALL)
313
+ return;
314
+ const level = ["debug", "info", "warn", "error"].includes(String(frame.level))
315
+ ? frame.level
316
+ : "info";
317
+ const entry = { level, message: String(frame.message ?? "") };
318
+ if (frame.data !== undefined)
319
+ entry.data = frame.data;
320
+ handler(entry);
321
+ return;
322
+ }
323
+ case "result":
324
+ if (!this.pending || frame.id !== this.pending.id) {
325
+ this.terminate(new SandboxError("PROTOCOL_ERROR", "result for an unknown call id"));
326
+ return;
327
+ }
328
+ this.pending.resolve(frame.output);
329
+ return;
330
+ case "error": {
331
+ if (!this.pending || frame.id !== this.pending.id) {
332
+ this.terminate(new SandboxError("PROTOCOL_ERROR", "error for an unknown call id"));
333
+ return;
334
+ }
335
+ const e = (frame.error ?? {});
336
+ const code = e.code === "ERR_ACCESS_DENIED" ? "ACCESS_DENIED" : "TOOL_ERROR";
337
+ this.pending.reject(new SandboxError(code, e.message ?? "tool failed", {
338
+ name: e.name,
339
+ toolCode: e.code,
340
+ stack: e.stack,
341
+ }));
342
+ return;
343
+ }
344
+ case "fatal": {
345
+ const known = [
346
+ "INTEGRITY_FAILED",
347
+ "INVALID_TOOL",
348
+ "ACCESS_DENIED",
349
+ "TOOL_CRASHED",
350
+ ];
351
+ const code = known.includes(frame.code)
352
+ ? frame.code
353
+ : "TOOL_CRASHED";
354
+ this.terminate(new SandboxError(code, String(frame.message ?? "tool process failed")));
355
+ return;
356
+ }
357
+ default:
358
+ this.terminate(new SandboxError("PROTOCOL_ERROR", `unexpected frame type "${frame.type}"`));
359
+ }
360
+ }
361
+ failStartup(code, message) {
362
+ this.terminate(new SandboxError(code, message, { stderr: this.stderrTail }));
363
+ }
364
+ rejectAll(err) {
365
+ const waiter = this.readyWaiter;
366
+ const pending = this.pending;
367
+ this.readyWaiter = null;
368
+ this.pending = null;
369
+ waiter?.reject(err);
370
+ pending?.reject(err);
371
+ }
372
+ classifyExit(code, signal) {
373
+ const stderr = this.stderrTail;
374
+ if (/heap out of memory|Allocation failed|Reached heap limit/i.test(stderr)) {
375
+ return new SandboxError("OUT_OF_MEMORY", "tool exceeded its memory limit", { stderr });
376
+ }
377
+ if (/ERR_ACCESS_DENIED/.test(stderr)) {
378
+ return new SandboxError("ACCESS_DENIED", "tool attempted a denied operation", { stderr });
379
+ }
380
+ return new SandboxError("TOOL_CRASHED", `tool process exited (code ${code}, signal ${signal})`, {
381
+ exitCode: code,
382
+ signal,
383
+ stderr,
384
+ });
385
+ }
386
+ writeFrame(frame) {
387
+ if (this.state === "dead")
388
+ return;
389
+ this.child.stdin.write(`${JSON.stringify(frame)}\n`);
390
+ }
391
+ }
392
+ //# sourceMappingURL=tool-process.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-process.js","sourceRoot":"","sources":["../src/tool-process.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAA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"@toolpal/sandbox",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Runs Toolpal workflows in permission-restricted Node.js child processes",
5
+ "homepage": "https://toolpal.dev",
6
+ "type": "module",
7
+ "license": "SEE LICENSE IN LICENSE",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "child",
20
+ "LICENSE",
21
+ "README.md"
22
+ ],
23
+ "engines": {
24
+ "node": ">=22.15.0"
25
+ },
26
+ "dependencies": {
27
+ "secure-json-parse": "^4.1.0",
28
+ "@toolpal/manifest": "0.1.1"
29
+ },
30
+ "scripts": {
31
+ "build": "tsc -b"
32
+ }
6
33
  }