loom-agent 1.2.12 → 1.2.13

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/bin/loom-bun.js CHANGED
@@ -5,20 +5,23 @@ const path = require("path");
5
5
  const { spawnSync } = require("child_process");
6
6
 
7
7
  if (!(typeof Bun !== "undefined" && process.versions.bun)) {
8
- const result = spawnSync(process.platform === "win32" ? "bun.exe" : "bun", ["--conditions=browser", __filename, ...process.argv.slice(2)], {
9
- stdio: "inherit",
10
- cwd: process.cwd(),
11
- env: process.env,
12
- windowsHide: false,
13
- });
8
+ const bunfigPath = path.join(__dirname, "..", "bunfig.toml");
9
+ const result = spawnSync(
10
+ process.platform === "win32" ? "bun.exe" : "bun",
11
+ ["--conditions=browser", `--config=${bunfigPath}`, __filename, ...process.argv.slice(2)],
12
+ {
13
+ stdio: "inherit",
14
+ cwd: process.cwd(),
15
+ env: process.env,
16
+ windowsHide: false,
17
+ }
18
+ );
14
19
  if (result.error) {
15
20
  console.error("[loom] Bun is required for the full CLI. Install it from https://bun.sh/");
16
21
  process.exit(1);
17
22
  }
18
23
  process.exit(result.status == null ? 1 : result.status);
19
24
  }
20
-
21
- process.env.BUN_CONFIG = path.join(__dirname, "..", "bunfig.toml");
22
25
  process.title = "loom-code";
23
26
  (async () => {
24
27
  try {
package/bin/loom-tui.js CHANGED
@@ -5,12 +5,17 @@ const path = require("path");
5
5
  const { spawnSync } = require("child_process");
6
6
 
7
7
  if (!(typeof Bun !== "undefined" && process.versions.bun)) {
8
- const result = spawnSync(process.platform === "win32" ? "bun.exe" : "bun", ["--conditions=browser", __filename, ...process.argv.slice(2)], {
9
- stdio: "inherit",
10
- cwd: process.cwd(),
11
- env: process.env,
12
- windowsHide: false,
13
- });
8
+ const bunfigPath = path.join(__dirname, "..", "bunfig.toml");
9
+ const result = spawnSync(
10
+ process.platform === "win32" ? "bun.exe" : "bun",
11
+ ["--conditions=browser", `--config=${bunfigPath}`, __filename, ...process.argv.slice(2)],
12
+ {
13
+ stdio: "inherit",
14
+ cwd: process.cwd(),
15
+ env: process.env,
16
+ windowsHide: false,
17
+ }
18
+ );
14
19
  if (result.error) {
15
20
  console.error("[loom] Bun is required for the TUI. Install it from https://bun.sh/");
16
21
  process.exit(1);
@@ -18,6 +23,5 @@ if (!(typeof Bun !== "undefined" && process.versions.bun)) {
18
23
  process.exit(result.status == null ? 1 : result.status);
19
24
  }
20
25
 
21
- process.env.BUN_CONFIG = path.join(__dirname, "..", "bunfig.toml");
22
26
  require("../src/tui-preload.js");
23
27
  (async () => { await import("../src/tui-open.tsx"); })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loom-agent",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/toshalkumbhar8979-design/loomcode.git"