@fungi.computer/spore 0.1.1 → 0.2.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/README.md +9 -9
- package/THIRD_PARTY_NOTICES +360 -12
- package/dist/cli.js +1244 -1253
- package/dist/fungi.cjs +15 -9
- package/dist/internal/local-image-fit-worker.mjs +8 -0
- package/dist/internal/private-workerd-sandbox-worker.mjs +25 -25
- package/dist/seatbelt/safe-base.sbpl +79 -0
- package/dist/tool-sigil-images.json +1 -1
- package/package.json +7 -5
package/dist/fungi.cjs
CHANGED
|
@@ -61,16 +61,22 @@ try {
|
|
|
61
61
|
}
|
|
62
62
|
const cli = resolve(__dirname, "cli.js");
|
|
63
63
|
const buildId = createHash("sha256").update(readFileSync(cli)).digest("hex");
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
// Bun otherwise loads the project's bunfig.toml preload and .env into this
|
|
65
|
+
// unsandboxed host process before the CLI can establish Agent authority.
|
|
66
|
+
const child = spawnSync(
|
|
67
|
+
bun,
|
|
68
|
+
["--config=/dev/null", "--no-env-file", cli, ...process.argv.slice(2)],
|
|
69
|
+
{
|
|
70
|
+
stdio: "inherit",
|
|
71
|
+
env: {
|
|
72
|
+
...process.env,
|
|
73
|
+
FUNGI_BUNDLED_CLI: cli,
|
|
74
|
+
FUNGI_BUNDLED_BUILD_ID: buildId,
|
|
75
|
+
FUNGI_LAUNCHER: __filename,
|
|
76
|
+
FUNGI_LAUNCHER_NODE: process.execPath,
|
|
77
|
+
},
|
|
72
78
|
},
|
|
73
|
-
|
|
79
|
+
);
|
|
74
80
|
if (child.error) throw child.error;
|
|
75
81
|
if (child.signal) process.kill(process.pid, child.signal);
|
|
76
82
|
process.exitCode = child.status ?? 1;
|