@swmansion/argent 0.26.1-next.13 → 0.26.1-next.14

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/cli-cmds.mjs CHANGED
@@ -1675,7 +1675,9 @@ function spawnToolsServer(paths, port, options = {}) {
1675
1675
  } catch {
1676
1676
  logFd = fs.openSync("/dev/null", "w");
1677
1677
  }
1678
- const child = spawn("node", [paths.bundlePath, "start"], {
1678
+ const { bun, deno, electron } = process.versions;
1679
+ const nodeBin = !(bun || deno || electron) && fs.existsSync(process.execPath) ? process.execPath : "node";
1680
+ const child = spawn(nodeBin, [paths.bundlePath, "start"], {
1679
1681
  detached: true,
1680
1682
  stdio: ["ignore", "pipe", logFd],
1681
1683
  env: buildToolsServerEnv(paths, port, process.env, options)
@@ -1683,7 +1685,14 @@ function spawnToolsServer(paths, port, options = {}) {
1683
1685
  child.unref();
1684
1686
  const pid = child.pid;
1685
1687
  if (!pid) {
1686
- reject(new Error("Failed to get PID of spawned tools server"));
1688
+ child.once(
1689
+ "error",
1690
+ (err) => reject(
1691
+ new Error(
1692
+ err.code === "ENOENT" && nodeBin === "node" ? "Could not start the argent tool-server: `node` was not found on PATH. Install Node.js 20+ or add it to PATH." : `Could not start the argent tool-server: ${err.message}`
1693
+ )
1694
+ )
1695
+ );
1687
1696
  return;
1688
1697
  }
1689
1698
  let settled = false;
@@ -21897,7 +21906,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21897
21906
  var SESSION_ID2 = randomUUID5();
21898
21907
  function readCliVersion() {
21899
21908
  if (true) {
21900
- return "0.26.1-next.13";
21909
+ return "0.26.1-next.14";
21901
21910
  }
21902
21911
  return "0.0.0";
21903
21912
  }
package/dist/client.js CHANGED
@@ -887,7 +887,9 @@ function spawnToolsServer(paths, port, options = {}) {
887
887
  } catch {
888
888
  logFd = fs4.openSync("/dev/null", "w");
889
889
  }
890
- const child = spawn("node", [paths.bundlePath, "start"], {
890
+ const { bun, deno, electron } = process.versions;
891
+ const nodeBin = !(bun || deno || electron) && fs4.existsSync(process.execPath) ? process.execPath : "node";
892
+ const child = spawn(nodeBin, [paths.bundlePath, "start"], {
891
893
  detached: true,
892
894
  stdio: ["ignore", "pipe", logFd],
893
895
  env: buildToolsServerEnv(paths, port, process.env, options)
@@ -895,7 +897,14 @@ function spawnToolsServer(paths, port, options = {}) {
895
897
  child.unref();
896
898
  const pid = child.pid;
897
899
  if (!pid) {
898
- reject(new Error("Failed to get PID of spawned tools server"));
900
+ child.once(
901
+ "error",
902
+ (err) => reject(
903
+ new Error(
904
+ err.code === "ENOENT" && nodeBin === "node" ? "Could not start the argent tool-server: `node` was not found on PATH. Install Node.js 20+ or add it to PATH." : `Could not start the argent tool-server: ${err.message}`
905
+ )
906
+ )
907
+ );
899
908
  return;
900
909
  }
901
910
  let settled = false;
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16730
16730
  var SESSION_ID = randomUUID4();
16731
16731
  function readCliVersion() {
16732
16732
  if (true) {
16733
- return "0.26.1-next.13";
16733
+ return "0.26.1-next.14";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -15932,7 +15932,9 @@ function spawnToolsServer(paths, port, options = {}) {
15932
15932
  } catch {
15933
15933
  logFd = fs.openSync("/dev/null", "w");
15934
15934
  }
15935
- const child = spawn("node", [paths.bundlePath, "start"], {
15935
+ const { bun, deno, electron } = process.versions;
15936
+ const nodeBin = !(bun || deno || electron) && fs.existsSync(process.execPath) ? process.execPath : "node";
15937
+ const child = spawn(nodeBin, [paths.bundlePath, "start"], {
15936
15938
  detached: true,
15937
15939
  stdio: ["ignore", "pipe", logFd],
15938
15940
  env: buildToolsServerEnv(paths, port, process.env, options)
@@ -15940,7 +15942,14 @@ function spawnToolsServer(paths, port, options = {}) {
15940
15942
  child.unref();
15941
15943
  const pid = child.pid;
15942
15944
  if (!pid) {
15943
- reject(new Error("Failed to get PID of spawned tools server"));
15945
+ child.once(
15946
+ "error",
15947
+ (err) => reject(
15948
+ new Error(
15949
+ err.code === "ENOENT" && nodeBin === "node" ? "Could not start the argent tool-server: `node` was not found on PATH. Install Node.js 20+ or add it to PATH." : `Could not start the argent tool-server: ${err.message}`
15950
+ )
15951
+ )
15952
+ );
15944
15953
  return;
15945
15954
  }
15946
15955
  let settled = false;
@@ -94814,7 +94814,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94814
94814
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94815
94815
  function readCliVersion() {
94816
94816
  if (true) {
94817
- return "0.26.1-next.13";
94817
+ return "0.26.1-next.14";
94818
94818
  }
94819
94819
  return "0.0.0";
94820
94820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.26.1-next.13",
3
+ "version": "0.26.1-next.14",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",