@fungi.computer/spore 0.2.0 → 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/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
- const child = spawnSync(bun, [cli, ...process.argv.slice(2)], {
65
- stdio: "inherit",
66
- env: {
67
- ...process.env,
68
- FUNGI_BUNDLED_CLI: cli,
69
- FUNGI_BUNDLED_BUILD_ID: buildId,
70
- FUNGI_LAUNCHER: __filename,
71
- FUNGI_LAUNCHER_NODE: process.execPath,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/spore",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Fungi local agent for terminals and ACP editors",
5
5
  "homepage": "https://docs.fungi.computer/guides/use-fungi-in-your-editor/",
6
6
  "bin": {
@@ -32,10 +32,10 @@
32
32
  "@opencode-ai/pty": "0.3.0"
33
33
  },
34
34
  "optionalDependencies": {
35
- "@fungi.computer/spore-native-linux-x64": "0.2.0",
36
- "@fungi.computer/spore-native-linux-arm64": "0.2.0",
37
- "@fungi.computer/spore-native-darwin-arm64": "0.2.0",
38
- "@fungi.computer/spore-native-darwin-x64": "0.2.0",
35
+ "@fungi.computer/spore-native-linux-x64": "0.2.1",
36
+ "@fungi.computer/spore-native-linux-arm64": "0.2.1",
37
+ "@fungi.computer/spore-native-darwin-arm64": "0.2.1",
38
+ "@fungi.computer/spore-native-darwin-x64": "0.2.1",
39
39
  "@oven/bun-darwin-x64": "1.4.2",
40
40
  "@oven/bun-darwin-aarch64": "1.4.2",
41
41
  "@oven/bun-linux-x64": "1.4.2",