@swmansion/argent 0.25.1-next.17 → 0.25.1-next.19

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
@@ -21857,7 +21857,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21857
21857
  var SESSION_ID2 = randomUUID5();
21858
21858
  function readCliVersion() {
21859
21859
  if (true) {
21860
- return "0.25.1-next.17";
21860
+ return "0.25.1-next.19";
21861
21861
  }
21862
21862
  return "0.0.0";
21863
21863
  }
@@ -16710,7 +16710,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16710
16710
  var SESSION_ID = randomUUID4();
16711
16711
  function readCliVersion() {
16712
16712
  if (true) {
16713
- return "0.25.1-next.17";
16713
+ return "0.25.1-next.19";
16714
16714
  }
16715
16715
  return "0.0.0";
16716
16716
  }
@@ -94704,7 +94704,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94704
94704
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94705
94705
  function readCliVersion() {
94706
94706
  if (true) {
94707
- return "0.25.1-next.17";
94707
+ return "0.25.1-next.19";
94708
94708
  }
94709
94709
  return "0.0.0";
94710
94710
  }
@@ -109055,16 +109055,18 @@ async function browserWebSocketUrl(port, signal) {
109055
109055
  }
109056
109056
  return url2;
109057
109057
  }
109058
+ var CDP_HTTP_TIMEOUT_MS = 5e3;
109058
109059
  async function fetchJson(url2, signal) {
109059
109060
  let res;
109060
109061
  try {
109061
- res = await fetch(url2, { signal });
109062
+ res = await fetch(url2, { signal: signal ?? AbortSignal.timeout(CDP_HTTP_TIMEOUT_MS) });
109062
109063
  } catch (err) {
109063
109064
  if (err instanceof Error && err.name === "AbortError") throw err;
109065
+ const timedOut2 = err instanceof Error && err.name === "TimeoutError";
109064
109066
  const code = err.code ?? err.cause?.code;
109065
- const network_failure = code === "ECONNREFUSED" ? "connection_refused" : code === "ECONNRESET" ? "connection_reset" : code === "ETIMEDOUT" || code === "UND_ERR_CONNECT_TIMEOUT" ? "timeout" : "other";
109067
+ const network_failure = timedOut2 ? "timeout" : code === "ECONNREFUSED" ? "connection_refused" : code === "ECONNRESET" ? "connection_reset" : code === "ETIMEDOUT" || code === "UND_ERR_CONNECT_TIMEOUT" ? "timeout" : "other";
109066
109068
  throw new FailureError(
109067
- `Chromium CDP discovery: GET ${url2} could not connect. Is the app running with --remote-debugging-port?`,
109069
+ timedOut2 ? `Chromium CDP discovery: GET ${url2} timed out. Something is holding port ${new URL(url2).port} without answering CDP.` : `Chromium CDP discovery: GET ${url2} could not connect. Is the app running with --remote-debugging-port?`,
109068
109070
  {
109069
109071
  error_code: FAILURE_CODES.CHROMIUM_CDP_UNREACHABLE,
109070
109072
  failure_stage: "chromium_cdp_discovery_connect",
@@ -120255,7 +120257,10 @@ async function bootElectronApp(options) {
120255
120257
  try {
120256
120258
  child = (0, import_node_child_process23.spawn)(launcher.command, args, {
120257
120259
  detached: true,
120258
- stdio: ["ignore", "pipe", "pipe"],
120260
+ // stdout is discarded, not piped: nothing reads it, and an unread pipe
120261
+ // blocks the child's writes once the OS buffer fills. The
120262
+ // ELECTRON_ENABLE_LOGGING below is what keeps it writing.
120263
+ stdio: ["ignore", "ignore", "pipe"],
120259
120264
  // Strip ELECTRON_RUN_AS_NODE (see electronGuiChildEnv): inherited from an
120260
120265
  // Electron-based MCP host it would boot the binary in Node mode with no
120261
120266
  // CDP endpoint, failing boot-device instead of bringing the app up.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.25.1-next.17",
3
+ "version": "0.25.1-next.19",
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",