@ai-hero/sandcastle 0.14.0 → 0.14.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.
- package/dist/{SandboxProvider-Chsi-Zs6.d.ts → SandboxProvider-CwRLxIXZ.d.ts} +2 -39
- package/dist/{chunk-BVZWLFFT.js → chunk-4BB7DNPW.js} +3 -3
- package/dist/chunk-4BB7DNPW.js.map +1 -0
- package/dist/chunk-4GZMUHVO.js +60 -0
- package/dist/chunk-4GZMUHVO.js.map +1 -0
- package/dist/{chunk-S6UHPTRG.js → chunk-7JUTKCHL.js} +4 -4
- package/dist/{chunk-S6UHPTRG.js.map → chunk-7JUTKCHL.js.map} +1 -1
- package/dist/chunk-7PHPLDVS.js +284 -0
- package/dist/chunk-7PHPLDVS.js.map +1 -0
- package/dist/{chunk-HSXPRZKG.js → chunk-BXLS4HRY.js} +15 -6
- package/dist/chunk-BXLS4HRY.js.map +1 -0
- package/dist/{chunk-G2R53CVZ.js → chunk-EM4QNWKF.js} +695 -706
- package/dist/chunk-EM4QNWKF.js.map +1 -0
- package/dist/{chunk-STB2U7BB.js → chunk-JEQ4IVQM.js} +384 -264
- package/dist/chunk-JEQ4IVQM.js.map +1 -0
- package/dist/{chunk-VRXR2T3S.js → chunk-L3BU47F6.js} +3 -3
- package/dist/{chunk-VRXR2T3S.js.map → chunk-L3BU47F6.js.map} +1 -1
- package/dist/{chunk-7N7AMUYA.js → chunk-PTJEKJPQ.js} +7 -5
- package/dist/chunk-PTJEKJPQ.js.map +1 -0
- package/dist/{chunk-H2PEFS4W.js → chunk-SAQXFLO2.js} +30 -6
- package/dist/chunk-SAQXFLO2.js.map +1 -0
- package/dist/{chunk-ATA2V2TC.js → chunk-TBVRAXYF.js} +3 -3
- package/dist/{chunk-ATA2V2TC.js.map → chunk-TBVRAXYF.js.map} +1 -1
- package/dist/{chunk-IBK2XNSS.js → chunk-VUOXFCWO.js} +3 -3
- package/dist/{chunk-IBK2XNSS.js.map → chunk-VUOXFCWO.js.map} +1 -1
- package/dist/{chunk-GCLEXPXG.js → chunk-WYOGXC72.js} +46 -84
- package/dist/chunk-WYOGXC72.js.map +1 -0
- package/dist/{chunk-RDW7FNN6.js → chunk-YDQW5IOY.js} +11 -4
- package/dist/chunk-YDQW5IOY.js.map +1 -0
- package/dist/index.d.ts +47 -4
- package/dist/index.js +536 -445
- package/dist/index.js.map +1 -1
- package/dist/main.js +72 -16
- package/dist/main.js.map +1 -1
- package/dist/sandboxes/bwrap.d.ts +1 -1
- package/dist/sandboxes/bwrap.js +9 -17
- package/dist/sandboxes/bwrap.js.map +1 -1
- package/dist/sandboxes/daytona.d.ts +1 -1
- package/dist/sandboxes/daytona.js +82 -79
- package/dist/sandboxes/daytona.js.map +1 -1
- package/dist/sandboxes/docker.d.ts +23 -1
- package/dist/sandboxes/docker.js +6 -5
- package/dist/sandboxes/e2b.d.ts +1 -1
- package/dist/sandboxes/e2b.js +4 -4
- package/dist/sandboxes/modal.d.ts +1 -1
- package/dist/sandboxes/modal.js +1 -1
- package/dist/sandboxes/no-sandbox.d.ts +1 -1
- package/dist/sandboxes/no-sandbox.js +1 -1
- package/dist/sandboxes/podman.d.ts +27 -4
- package/dist/sandboxes/podman.js +18 -45
- package/dist/sandboxes/podman.js.map +1 -1
- package/dist/sandboxes/seatbelt.d.ts +2 -2
- package/dist/sandboxes/seatbelt.js +10 -10
- package/dist/sandboxes/seatbelt.js.map +1 -1
- package/dist/sandboxes/sprites.d.ts +1 -1
- package/dist/sandboxes/sprites.js +25 -4
- package/dist/sandboxes/sprites.js.map +1 -1
- package/dist/sandboxes/vercel.d.ts +10 -1
- package/dist/sandboxes/vercel.js +74 -46
- package/dist/sandboxes/vercel.js.map +1 -1
- package/dist/templates/parallel-planner/main.mts +43 -21
- package/dist/templates/parallel-planner-with-review/main.mts +55 -27
- package/dist/templates/sequential-reviewer/main.mts +1 -1
- package/package.json +7 -3
- package/dist/chunk-7N7AMUYA.js.map +0 -1
- package/dist/chunk-BIF2X6QB.js +0 -94
- package/dist/chunk-BIF2X6QB.js.map +0 -1
- package/dist/chunk-BVZWLFFT.js.map +0 -1
- package/dist/chunk-G2R53CVZ.js.map +0 -1
- package/dist/chunk-GCLEXPXG.js.map +0 -1
- package/dist/chunk-H2PEFS4W.js.map +0 -1
- package/dist/chunk-HSXPRZKG.js.map +0 -1
- package/dist/chunk-RDW7FNN6.js.map +0 -1
- package/dist/chunk-STB2U7BB.js.map +0 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Provider authors implement a small Promise-based interface. Sandcastle
|
|
5
5
|
* handles worktree creation, git mount resolution, and commit extraction.
|
|
6
6
|
*/
|
|
7
|
+
|
|
7
8
|
/** Result of executing a command inside a sandbox. */
|
|
8
9
|
interface ExecResult {
|
|
9
10
|
readonly stdout: string;
|
|
@@ -220,34 +221,6 @@ interface NoSandboxProvider {
|
|
|
220
221
|
/** Environment variables injected by this provider. */
|
|
221
222
|
readonly env: Record<string, string>;
|
|
222
223
|
}
|
|
223
|
-
/** Head strategy: agent writes directly to host working directory. Bind-mount only. */
|
|
224
|
-
interface HeadBranchStrategy {
|
|
225
|
-
readonly type: "head";
|
|
226
|
-
}
|
|
227
|
-
/** Merge-to-head strategy: temp branch, merge back to HEAD, delete temp branch. */
|
|
228
|
-
interface MergeToHeadBranchStrategy {
|
|
229
|
-
readonly type: "merge-to-head";
|
|
230
|
-
}
|
|
231
|
-
/** Branch strategy: commits land on an explicit named branch. */
|
|
232
|
-
interface NamedBranchStrategy {
|
|
233
|
-
readonly type: "branch";
|
|
234
|
-
readonly branch: string;
|
|
235
|
-
/**
|
|
236
|
-
* Git ref to use as the starting point when creating a new branch.
|
|
237
|
-
* Only used when the branch doesn't already exist — ignored otherwise.
|
|
238
|
-
* Callers are responsible for ensuring the ref is current (e.g. `git fetch`).
|
|
239
|
-
* Defaults to `HEAD` when omitted.
|
|
240
|
-
*/
|
|
241
|
-
readonly baseBranch?: string;
|
|
242
|
-
}
|
|
243
|
-
/** Branch strategy for bind-mount providers (all three variants). */
|
|
244
|
-
type BindMountBranchStrategy = HeadBranchStrategy | MergeToHeadBranchStrategy | NamedBranchStrategy;
|
|
245
|
-
/** Branch strategy for isolated providers (no head — can't write to host). */
|
|
246
|
-
type IsolatedBranchStrategy = MergeToHeadBranchStrategy | NamedBranchStrategy;
|
|
247
|
-
/** Branch strategy for no-sandbox providers (all three — same as bind-mount). */
|
|
248
|
-
type NoSandboxBranchStrategy = HeadBranchStrategy | MergeToHeadBranchStrategy | NamedBranchStrategy;
|
|
249
|
-
/** Union of all branch strategy variants. */
|
|
250
|
-
type BranchStrategy = BindMountBranchStrategy | IsolatedBranchStrategy | NoSandboxBranchStrategy;
|
|
251
224
|
/**
|
|
252
225
|
* A sandbox provider — the pluggable unit that `run()`, `interactive()`, and
|
|
253
226
|
* `createSandbox()` accept. Tagged for internal dispatch: "bind-mount",
|
|
@@ -257,15 +230,5 @@ type BranchStrategy = BindMountBranchStrategy | IsolatedBranchStrategy | NoSandb
|
|
|
257
230
|
type SandboxProvider = BindMountSandboxProvider | IsolatedSandboxProvider | NoSandboxProvider;
|
|
258
231
|
/** @deprecated Use `SandboxProvider` — it now includes `NoSandboxProvider`. */
|
|
259
232
|
type AnySandboxProvider = SandboxProvider;
|
|
260
|
-
/**
|
|
261
|
-
* Create a bind-mount sandbox provider from a config object.
|
|
262
|
-
* The returned provider can be passed to `run()` or `createSandbox()`.
|
|
263
|
-
*/
|
|
264
|
-
declare const createBindMountSandboxProvider: (config: BindMountSandboxProviderConfig) => BindMountSandboxProvider;
|
|
265
|
-
/**
|
|
266
|
-
* Create an isolated sandbox provider from a config object.
|
|
267
|
-
* The returned provider can be passed to `run()` or `createSandbox()`.
|
|
268
|
-
*/
|
|
269
|
-
declare const createIsolatedSandboxProvider: (config: IsolatedSandboxProviderConfig) => IsolatedSandboxProvider;
|
|
270
233
|
|
|
271
|
-
export {
|
|
234
|
+
export type { AnySandboxProvider as A, BindMountSandboxProvider as B, ExecResult as E, IsolatedSandboxProvider as I, NoSandboxProvider as N, SandboxProvider as S, BindMountSandboxProviderConfig as a, IsolatedSandboxProviderConfig as b, BindMountSandboxHandle as c, BindMountCreateOptions as d, InteractiveExecOptions as e, IsolatedCreateOptions as f, IsolatedSandboxHandle as g, NoSandboxHandle as h };
|
|
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module';
|
|
|
2
2
|
|
|
3
3
|
createRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
// src/
|
|
5
|
+
// src/createSandboxProvider.ts
|
|
6
6
|
var createBindMountSandboxProvider = (config) => ({
|
|
7
7
|
tag: "bind-mount",
|
|
8
8
|
name: config.name,
|
|
@@ -18,5 +18,5 @@ var createIsolatedSandboxProvider = (config) => ({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
export { createBindMountSandboxProvider, createIsolatedSandboxProvider };
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-4BB7DNPW.js.map
|
|
22
|
+
//# sourceMappingURL=chunk-4BB7DNPW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/createSandboxProvider.ts"],"names":[],"mappings":";;;;;AAWO,IAAM,8BAAA,GAAiC,CAC5C,MAAA,MAC8B;AAAA,EAC9B,GAAA,EAAK,YAAA;AAAA,EACL,MAAM,MAAA,CAAO,IAAA;AAAA,EACb,GAAA,EAAK,MAAA,CAAO,GAAA,IAAO,EAAC;AAAA,EACpB,gBAAgB,MAAA,CAAO,cAAA;AAAA,EACvB,QAAQ,MAAA,CAAO;AACjB,CAAA;AAMO,IAAM,6BAAA,GAAgC,CAC3C,MAAA,MAC6B;AAAA,EAC7B,GAAA,EAAK,UAAA;AAAA,EACL,MAAM,MAAA,CAAO,IAAA;AAAA,EACb,GAAA,EAAK,MAAA,CAAO,GAAA,IAAO,EAAC;AAAA,EACpB,QAAQ,MAAA,CAAO;AACjB,CAAA","file":"chunk-4BB7DNPW.js","sourcesContent":["import type {\n BindMountSandboxProvider,\n BindMountSandboxProviderConfig,\n IsolatedSandboxProvider,\n IsolatedSandboxProviderConfig,\n} from \"./SandboxProvider.js\";\n\n/**\n * Create a bind-mount sandbox provider from a config object.\n * The returned provider can be passed to `run()` or `createSandbox()`.\n */\nexport const createBindMountSandboxProvider = (\n config: BindMountSandboxProviderConfig,\n): BindMountSandboxProvider => ({\n tag: \"bind-mount\",\n name: config.name,\n env: config.env ?? {},\n sandboxHomedir: config.sandboxHomedir,\n create: config.create,\n});\n\n/**\n * Create an isolated sandbox provider from a config object.\n * The returned provider can be passed to `run()` or `createSandbox()`.\n */\nexport const createIsolatedSandboxProvider = (\n config: IsolatedSandboxProviderConfig,\n): IsolatedSandboxProvider => ({\n tag: \"isolated\",\n name: config.name,\n env: config.env ?? {},\n create: config.create,\n});\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import { BoundedTail } from './chunk-6NQPCXSG.js';
|
|
3
|
+
import { createInterface } from 'readline';
|
|
4
|
+
|
|
5
|
+
createRequire(import.meta.url);
|
|
6
|
+
var SENTINEL = "__SANDCASTLE_EXIT_STATUS=";
|
|
7
|
+
var WRAPPER = [
|
|
8
|
+
'__sandcastle_cmd=$1; shift; (eval "unset __sandcastle_cmd',
|
|
9
|
+
"$__sandcastle_cmd",
|
|
10
|
+
`"); __sandcastle_status=$?; printf '\\n${SENTINEL}%s\\n' "$__sandcastle_status" >&2; exit "$__sandcastle_status"`
|
|
11
|
+
].join("\n");
|
|
12
|
+
var shellArgsReportingExit = (command) => [
|
|
13
|
+
"sh",
|
|
14
|
+
"-c",
|
|
15
|
+
WRAPPER,
|
|
16
|
+
"sh",
|
|
17
|
+
command
|
|
18
|
+
];
|
|
19
|
+
var SENTINEL_LINE = new RegExp(`\\n${SENTINEL}(\\d+)\\n$`, "u");
|
|
20
|
+
var resolveEngineExit = (stderr, cliCode) => {
|
|
21
|
+
const match = SENTINEL_LINE.exec(stderr);
|
|
22
|
+
if (match !== null) {
|
|
23
|
+
return {
|
|
24
|
+
stderr: stderr.slice(0, match.index),
|
|
25
|
+
exitCode: Number(match[1])
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return { stderr, exitCode: cliCode === null || cliCode === 0 ? 1 : cliCode };
|
|
29
|
+
};
|
|
30
|
+
var collectEngineExec = (proc, {
|
|
31
|
+
onLine,
|
|
32
|
+
maxOutputTailChars
|
|
33
|
+
}, done) => {
|
|
34
|
+
const maxChars = onLine === void 0 ? Number.POSITIVE_INFINITY : maxOutputTailChars;
|
|
35
|
+
const stderr = new BoundedTail(maxChars, "");
|
|
36
|
+
proc.stderr.on("data", (chunk) => {
|
|
37
|
+
stderr.push(chunk.toString());
|
|
38
|
+
});
|
|
39
|
+
const stdout = new BoundedTail(maxChars, onLine === void 0 ? "" : "\n");
|
|
40
|
+
if (onLine === void 0) {
|
|
41
|
+
proc.stdout.on("data", (chunk) => {
|
|
42
|
+
stdout.push(chunk.toString());
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
createInterface({ input: proc.stdout }).on("line", (line) => {
|
|
46
|
+
stdout.push(line);
|
|
47
|
+
onLine(line);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
proc.on("close", (code) => {
|
|
51
|
+
done({
|
|
52
|
+
stdout: stdout.toString(),
|
|
53
|
+
...resolveEngineExit(stderr.toString(), code)
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { collectEngineExec, shellArgsReportingExit };
|
|
59
|
+
//# sourceMappingURL=chunk-4GZMUHVO.js.map
|
|
60
|
+
//# sourceMappingURL=chunk-4GZMUHVO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/sandboxes/engineExitStatus.ts"],"names":[],"mappings":";;;;;AAiBA,IAAM,QAAA,GAAW,2BAAA;AAQjB,IAAM,OAAA,GAAU;AAAA,EACd,2DAAA;AAAA,EACA,mBAAA;AAAA,EACA,0CAA0C,QAAQ,CAAA,8DAAA;AACpD,CAAA,CAAE,KAAK,IAAI,CAAA;AAGJ,IAAM,sBAAA,GAAyB,CAAC,OAAA,KAA8B;AAAA,EACnE,IAAA;AAAA,EACA,IAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA;AACF;AAEA,IAAM,gBAAgB,IAAI,MAAA,CAAO,CAAA,GAAA,EAAM,QAAQ,cAAc,GAAG,CAAA;AAOhE,IAAM,iBAAA,GAAoB,CACxB,MAAA,EACA,OAAA,KAC2D;AAC3D,EAAA,MAAM,KAAA,GAAQ,aAAA,CAAc,IAAA,CAAK,MAAM,CAAA;AACvC,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,OAAO;AAAA,MACL,MAAA,EAAQ,MAAA,CAAO,KAAA,CAAM,CAAA,EAAG,MAAM,KAAK,CAAA;AAAA,MACnC,QAAA,EAAU,MAAA,CAAO,KAAA,CAAM,CAAC,CAAC;AAAA,KAC3B;AAAA,EACF;AACA,EAAA,OAAO,EAAE,QAAQ,QAAA,EAAU,OAAA,KAAY,QAAQ,OAAA,KAAY,CAAA,GAAI,IAAI,OAAA,EAAQ;AAC7E,CAAA;AAcO,IAAM,iBAAA,GAAoB,CAC/B,IAAA,EACA;AAAA,EACE,MAAA;AAAA,EACA;AACF,CAAA,EAIA,IAAA,KACS;AAET,EAAA,MAAM,QAAA,GACJ,MAAA,KAAW,MAAA,GAAY,MAAA,CAAO,iBAAA,GAAoB,kBAAA;AACpD,EAAA,MAAM,MAAA,GAAS,IAAI,WAAA,CAAY,QAAA,EAAU,EAAE,CAAA;AAC3C,EAAA,IAAA,CAAK,MAAA,CAAO,EAAA,CAAG,MAAA,EAAQ,CAAC,KAAA,KAAkB;AACxC,IAAA,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,QAAA,EAAU,CAAA;AAAA,EAC9B,CAAC,CAAA;AACD,EAAA,MAAM,SAAS,IAAI,WAAA,CAAY,UAAU,MAAA,KAAW,MAAA,GAAY,KAAK,IAAI,CAAA;AACzE,EAAA,IAAI,WAAW,MAAA,EAAW;AACxB,IAAA,IAAA,CAAK,MAAA,CAAO,EAAA,CAAG,MAAA,EAAQ,CAAC,KAAA,KAAkB;AACxC,MAAA,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,QAAA,EAAU,CAAA;AAAA,IAC9B,CAAC,CAAA;AAAA,EACH,CAAA,MAAO;AACL,IAAA,eAAA,CAAgB,EAAE,OAAO,IAAA,CAAK,MAAA,EAAQ,CAAA,CAAE,EAAA,CAAG,MAAA,EAAQ,CAAC,IAAA,KAAS;AAC3D,MAAA,MAAA,CAAO,KAAK,IAAI,CAAA;AAChB,MAAA,MAAA,CAAO,IAAI,CAAA;AAAA,IACb,CAAC,CAAA;AAAA,EACH;AACA,EAAA,IAAA,CAAK,EAAA,CAAG,OAAA,EAAS,CAAC,IAAA,KAAwB;AACxC,IAAA,IAAA,CAAK;AAAA,MACH,MAAA,EAAQ,OAAO,QAAA,EAAS;AAAA,MACxB,GAAG,iBAAA,CAAkB,MAAA,CAAO,QAAA,IAAY,IAAI;AAAA,KAC7C,CAAA;AAAA,EACH,CAAC,CAAA;AACH","file":"chunk-4GZMUHVO.js","sourcesContent":["/**\n * @internal The exit status of a command run with `docker exec` or\n * `podman exec`, reported by the command's own shell in the container.\n *\n * The engine CLI's exit code can't be trusted on its own: the real `docker`\n * and `podman` CLIs trap SIGTERM (docker also SIGINT) and exit 0, so a CLI\n * killed while its command still runs looks like a success. So the command\n * runs in a subshell of a wrapper that prints its status as a last stderr\n * line once it ends. A missing line means the command never finished.\n */\n\nimport type { ChildProcessByStdio } from \"node:child_process\";\nimport { createInterface } from \"node:readline\";\nimport type { Readable, Writable } from \"node:stream\";\nimport { BoundedTail } from \"../boundedTail.js\";\nimport type { ExecResult } from \"../SandboxProvider.js\";\n\nconst SENTINEL = \"__SANDCASTLE_EXIT_STATUS=\";\n\n/**\n * Runs the command in a subshell, so its `exit` ends only the subshell, then\n * prints the status. The command arrives as `$1` and is cleared from the\n * shell's arguments and variables first, so it sees what `sh -c <command>`\n * would: `$0` is `sh`, with no arguments.\n */\nconst WRAPPER = [\n '__sandcastle_cmd=$1; shift; (eval \"unset __sandcastle_cmd',\n \"$__sandcastle_cmd\",\n `\"); __sandcastle_status=$?; printf '\\\\n${SENTINEL}%s\\\\n' \"$__sandcastle_status\" >&2; exit \"$__sandcastle_status\"`,\n].join(\"\\n\");\n\n/** The `sh -c` argv that runs `command` in the container and reports its status. */\nexport const shellArgsReportingExit = (command: string): string[] => [\n \"sh\",\n \"-c\",\n WRAPPER,\n \"sh\",\n command,\n];\n\nconst SENTINEL_LINE = new RegExp(`\\\\n${SENTINEL}(\\\\d+)\\\\n$`, \"u\");\n\n/**\n * The command's stderr without the status line, and its exit code: the\n * status it reported, else the CLI's own non-zero code, else 1. A CLI that\n * exits 0 without the status line was interrupted before the command ended.\n */\nconst resolveEngineExit = (\n stderr: string,\n cliCode: number | null,\n): { readonly stderr: string; readonly exitCode: number } => {\n const match = SENTINEL_LINE.exec(stderr);\n if (match !== null) {\n return {\n stderr: stderr.slice(0, match.index),\n exitCode: Number(match[1]),\n };\n }\n return { stderr, exitCode: cliCode === null || cliCode === 0 ? 1 : cliCode };\n};\n\n/** A spawned `<engine> exec`, with stdout and stderr piped. */\ntype EngineExecProcess = ChildProcessByStdio<\n Writable | null,\n Readable,\n Readable\n>;\n\n/**\n * Collects an `<engine> exec`'s output, streaming stdout lines to `onLine`\n * when given (keeping bounded tails), and calls `done` with the result once\n * the CLI closes.\n */\nexport const collectEngineExec = (\n proc: EngineExecProcess,\n {\n onLine,\n maxOutputTailChars,\n }: {\n readonly onLine: ((line: string) => void) | undefined;\n readonly maxOutputTailChars: number;\n },\n done: (result: ExecResult) => void,\n): void => {\n // Only a streamed exec keeps bounded tails; a buffered one keeps it all.\n const maxChars =\n onLine === undefined ? Number.POSITIVE_INFINITY : maxOutputTailChars;\n const stderr = new BoundedTail(maxChars, \"\");\n proc.stderr.on(\"data\", (chunk: Buffer) => {\n stderr.push(chunk.toString());\n });\n const stdout = new BoundedTail(maxChars, onLine === undefined ? \"\" : \"\\n\");\n if (onLine === undefined) {\n proc.stdout.on(\"data\", (chunk: Buffer) => {\n stdout.push(chunk.toString());\n });\n } else {\n createInterface({ input: proc.stdout }).on(\"line\", (line) => {\n stdout.push(line);\n onLine(line);\n });\n }\n proc.on(\"close\", (code: number | null) => {\n done({\n stdout: stdout.toString(),\n ...resolveEngineExit(stderr.toString(), code),\n });\n });\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { FileSystem, Path, TypeId, makeRunMain, WatchBackend, make, BadArgument, CommandExecutor, makeExecutor, Terminal, layerManager, flatten, stdin, ExitCode, ProcessId, ProcessTypeId, PlatformWorker, SystemError, effectify, Size, FileDescriptor, WatchEventUpdate, WatchEventRemove, WatchEventCreate, makePlatform, WorkerError, FileTypeId, NativeSandboxUnavailableError } from './chunk-
|
|
3
|
-
import { effect, BaseProto, succeed3, pipe, mergeAll, provideMerge, constVoid, map4, serviceOption, try_, scoped2, provide2, async, fail3, _void, succeed2, tryPromise, acquireRelease, orDie, flatMap, getOrElse, unwrap, unwrapScoped, flatMap3, make5, constUndefined, unsafeDone, sync, match, zipRight, isDone, orElse2, _await, ignore, negate, transduce, drain, identity, tap, forkDaemon, run, fnUntraced, make6 as make6$1, gen, get3, make8, addFinalizer2, scoped, fromNullable, map, zip, suspend, asyncScoped, matchEffect, fromChannel2, fromChannel, asVoid, void_, uninterruptible, as, addFinalizer, interruptible, timeout, catchAllCause, flatMap4, embedInput, complete, failCause, suspend2, make2, unsafeMakeSemaphore, none, some, ensuring, void_2, unsafeMakeLatch, fromEffect, write, unsafeFromArray, ensuring2, fail } from './chunk-
|
|
2
|
+
import { FileSystem, Path, TypeId, makeRunMain, WatchBackend, make, BadArgument, CommandExecutor, makeExecutor, Terminal, layerManager, flatten, stdin, ExitCode, ProcessId, ProcessTypeId, PlatformWorker, SystemError, effectify, Size, FileDescriptor, WatchEventUpdate, WatchEventRemove, WatchEventCreate, makePlatform, WorkerError, FileTypeId, NativeSandboxUnavailableError } from './chunk-YDQW5IOY.js';
|
|
3
|
+
import { effect, BaseProto, succeed3, pipe, mergeAll, provideMerge, constVoid, map4, serviceOption, try_, scoped2, provide2, async, fail3, _void, succeed2, tryPromise, acquireRelease, orDie, flatMap, getOrElse, unwrap, unwrapScoped, flatMap3, make5, constUndefined, unsafeDone, sync, match, zipRight, isDone, orElse2, _await, ignore, negate, transduce, drain, identity, tap, forkDaemon, run, fnUntraced, make6 as make6$1, gen, get3, make8, addFinalizer2, scoped, fromNullable, map, zip, suspend, asyncScoped, matchEffect, fromChannel2, fromChannel, asVoid, void_, uninterruptible, as, addFinalizer, interruptible, timeout, catchAllCause, flatMap4, embedInput, complete, failCause, suspend2, make2, unsafeMakeSemaphore, none, some, ensuring, void_2, unsafeMakeLatch, fromEffect, write, unsafeFromArray, ensuring2, fail } from './chunk-JEQ4IVQM.js';
|
|
4
4
|
import { __commonJS, __require, __export, __toESM, __reExport } from './chunk-6NQPCXSG.js';
|
|
5
5
|
import * as Crypto from 'crypto';
|
|
6
6
|
import * as NFS from 'fs';
|
|
@@ -25497,5 +25497,5 @@ undici/lib/web/websocket/frame.js:
|
|
|
25497
25497
|
*/
|
|
25498
25498
|
|
|
25499
25499
|
export { NativeSandboxUnavailableError2 as NativeSandboxUnavailableError, NodeContext_exports, NodeFileSystem_exports, NodeRuntime_exports };
|
|
25500
|
-
//# sourceMappingURL=chunk-
|
|
25501
|
-
//# sourceMappingURL=chunk-
|
|
25500
|
+
//# sourceMappingURL=chunk-7JUTKCHL.js.map
|
|
25501
|
+
//# sourceMappingURL=chunk-7JUTKCHL.js.map
|