@swmansion/argent 0.32.1-next.1 → 0.32.1-next.2

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
@@ -35809,7 +35809,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
35809
35809
  var SESSION_ID2 = randomUUID5();
35810
35810
  function readCliVersion() {
35811
35811
  if (true) {
35812
- return "0.32.1-next.0";
35812
+ return "0.32.1-next.2";
35813
35813
  }
35814
35814
  return "0.0.0";
35815
35815
  }
@@ -16934,7 +16934,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16934
16934
  var SESSION_ID = randomUUID4();
16935
16935
  function readCliVersion() {
16936
16936
  if (true) {
16937
- return "0.32.1-next.0";
16937
+ return "0.32.1-next.2";
16938
16938
  }
16939
16939
  return "0.0.0";
16940
16940
  }
@@ -101157,7 +101157,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
101157
101157
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
101158
101158
  function readCliVersion() {
101159
101159
  if (true) {
101160
- return "0.32.1-next.0";
101160
+ return "0.32.1-next.2";
101161
101161
  }
101162
101162
  return "0.0.0";
101163
101163
  }
@@ -103493,6 +103493,10 @@ var import_node_util8 = require("node:util");
103493
103493
  init_external_devices();
103494
103494
  init_device_info();
103495
103495
  var execFileAsync8 = (0, import_node_util8.promisify)(import_node_child_process10.execFile);
103496
+ function simulatorRuntimeKind(runtimeId) {
103497
+ if (runtimeId.includes("tvOS")) return "tv";
103498
+ return runtimeId.includes("iOS") ? "mobile" : void 0;
103499
+ }
103496
103500
  async function listDeviceSetSimulators(deviceSet) {
103497
103501
  if (deviceSet && !fs15.existsSync(deviceSet)) return [];
103498
103502
  try {
@@ -103505,10 +103509,10 @@ async function listDeviceSetSimulators(deviceSet) {
103505
103509
  const out = [];
103506
103510
  const deviceTypes = [];
103507
103511
  for (const [runtimeId, devices] of Object.entries(data.devices)) {
103508
- if (!runtimeId.includes("iOS") && !runtimeId.includes("tvOS")) continue;
103512
+ const runtimeKind = simulatorRuntimeKind(runtimeId);
103513
+ if (!runtimeKind) continue;
103509
103514
  for (const d of devices) {
103510
103515
  if (!d.isAvailable) continue;
103511
- const runtimeKind = runtimeId.includes("tvOS") ? "tv" : "mobile";
103512
103516
  out.push({
103513
103517
  udid: d.udid,
103514
103518
  name: d.name,
@@ -103755,7 +103759,8 @@ async function isRemoteTvOsSimulator(udid, options) {
103755
103759
  const { devices } = await simctlListDevices(options);
103756
103760
  for (const [runtime, entries] of Object.entries(devices)) {
103757
103761
  if (!entries.some((d) => d.udid === id)) continue;
103758
- const kind = runtime.includes("tvOS") ? "tv" : "mobile";
103762
+ const kind = simulatorRuntimeKind(runtime);
103763
+ if (!kind) return false;
103759
103764
  remoteRuntimeKindCache.set(id, kind);
103760
103765
  return kind === "tv";
103761
103766
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.32.1-next.1",
3
+ "version": "0.32.1-next.2",
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",