@swmansion/argent 0.34.1-next.13 → 0.34.1-next.15

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
@@ -36079,7 +36079,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
36079
36079
  var SESSION_ID2 = randomUUID5();
36080
36080
  function readCliVersion() {
36081
36081
  if (true) {
36082
- return "0.34.1-next.13";
36082
+ return "0.34.1-next.15";
36083
36083
  }
36084
36084
  return "0.0.0";
36085
36085
  }
@@ -16878,7 +16878,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16878
16878
  var SESSION_ID = randomUUID4();
16879
16879
  function readCliVersion() {
16880
16880
  if (true) {
16881
- return "0.34.1-next.13";
16881
+ return "0.34.1-next.15";
16882
16882
  }
16883
16883
  return "0.0.0";
16884
16884
  }
@@ -24861,8 +24861,8 @@ function removeBundledContent(sourceDir, targetDir) {
24861
24861
  for (const relativePath of files) {
24862
24862
  const targetPath = path29.join(targetDir, relativePath);
24863
24863
  try {
24864
- if (!fs21.existsSync(targetPath)) continue;
24865
- if (fs21.lstatSync(targetPath).isDirectory()) continue;
24864
+ const entry = fs21.lstatSync(targetPath, { throwIfNoEntry: false });
24865
+ if (!entry || entry.isDirectory()) continue;
24866
24866
  removePath(targetPath);
24867
24867
  removedPaths.push(relativePath);
24868
24868
  } catch {
@@ -101279,7 +101279,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
101279
101279
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
101280
101280
  function readCliVersion() {
101281
101281
  if (true) {
101282
- return "0.34.1-next.13";
101282
+ return "0.34.1-next.15";
101283
101283
  }
101284
101284
  return "0.0.0";
101285
101285
  }
@@ -148318,6 +148318,7 @@ function macosAppTargets(pool, bundleId, port) {
148318
148318
  );
148319
148319
  }
148320
148320
  var seenLogicalDeviceIds = /* @__PURE__ */ new Set();
148321
+ var LOGICAL_DEVICE_ID_SHAPE = /^[0-9a-f]{40}$/;
148321
148322
  function selectTarget(targets, port, options) {
148322
148323
  const pool = targets;
148323
148324
  for (const t of pool) {
@@ -148351,9 +148352,11 @@ function selectTarget(targets, port, options) {
148351
148352
  }
148352
148353
  );
148353
148354
  }
148354
- if (seenLogicalDeviceIds.has(deviceId)) {
148355
+ const seen = seenLogicalDeviceIds.has(deviceId);
148356
+ if (seen || LOGICAL_DEVICE_ID_SHAPE.test(deviceId)) {
148357
+ const state3 = seen ? `is no longer attached to Metro on port ${port} \u2014 its app likely exited or reloaded onto another Metro. ` : `is not attached to Metro on port ${port} \u2014 its app is not running, is still starting, or uses another Metro. `;
148355
148358
  throw new FailureError(
148356
- `Device with logicalDeviceId "${deviceId}" is no longer attached to Metro on port ${port} \u2014 its app likely exited or reloaded onto another Metro. Not falling back to the remaining device: ${[...distinctDevices.values()].join(", ")}. If the app exited, relaunch it on the target device (launch-app / restart-app), then retry with the same id: a relaunched app keeps its logicalDeviceId. If it was reinstalled (reinstall-app), iOS can give it a new logicalDeviceId: when the device listed above is your target, retry with the id shown for it.`,
148359
+ `Device with logicalDeviceId "${deviceId}" ${state3}Not falling back to the remaining device: ${[...distinctDevices.values()].join(", ")}. If the app exited, relaunch it on the target device (launch-app / restart-app), then retry with the same id: a relaunched app keeps its logicalDeviceId. If it was reinstalled (reinstall-app), iOS can give it a new logicalDeviceId: when the device listed above is your target, retry with the id shown for it.`,
148357
148360
  {
148358
148361
  error_code: FAILURE_CODES.DEBUGGER_METRO_NO_TARGETS,
148359
148362
  failure_stage: "debugger_select_target",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.34.1-next.13",
3
+ "version": "0.34.1-next.15",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
6
6
  "license": "Apache-2.0",