@swmansion/argent 0.14.1-next.17 → 0.14.1-next.18

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
@@ -6072,7 +6072,15 @@ var FAILURE_SPAWN_CODE_SET = new Set(FAILURE_SPAWN_CODES);
6072
6072
  import { randomUUID as randomUUID2 } from "node:crypto";
6073
6073
 
6074
6074
  // ../telemetry/src/events.ts
6075
- var PLATFORMS = ["ios", "ios-remote", "android", "chromium", "vega"];
6075
+ var PLATFORMS = [
6076
+ "ios",
6077
+ "ios-remote",
6078
+ "android",
6079
+ "chromium",
6080
+ "vega",
6081
+ "tvos",
6082
+ "android-tv"
6083
+ ];
6076
6084
 
6077
6085
  // ../telemetry/src/ai-identity.ts
6078
6086
  var AI_CLIENTS = [
@@ -16292,7 +16292,15 @@ var FAILURE_SPAWN_CODE_SET = new Set(FAILURE_SPAWN_CODES);
16292
16292
  import { randomUUID as randomUUID2 } from "node:crypto";
16293
16293
 
16294
16294
  // ../telemetry/src/events.ts
16295
- var PLATFORMS = ["ios", "ios-remote", "android", "chromium", "vega"];
16295
+ var PLATFORMS = [
16296
+ "ios",
16297
+ "ios-remote",
16298
+ "android",
16299
+ "chromium",
16300
+ "vega",
16301
+ "tvos",
16302
+ "android-tv"
16303
+ ];
16296
16304
 
16297
16305
  // ../telemetry/src/ai-identity.ts
16298
16306
  var AI_CLIENTS = [
@@ -17546,7 +17546,15 @@ var FAILURE_SPAWN_CODE_SET = new Set(FAILURE_SPAWN_CODES);
17546
17546
  import { randomUUID as randomUUID2 } from "node:crypto";
17547
17547
 
17548
17548
  // ../telemetry/src/events.ts
17549
- var PLATFORMS = ["ios", "ios-remote", "android", "chromium", "vega"];
17549
+ var PLATFORMS = [
17550
+ "ios",
17551
+ "ios-remote",
17552
+ "android",
17553
+ "chromium",
17554
+ "vega",
17555
+ "tvos",
17556
+ "android-tv"
17557
+ ];
17550
17558
 
17551
17559
  // ../telemetry/src/ai-identity.ts
17552
17560
  var AI_CLIENTS = [
@@ -82752,6 +82752,7 @@ __export(adb_exports, {
82752
82752
  consolePortFromAdbSerial: () => consolePortFromAdbSerial,
82753
82753
  emulatorSupportsFlag: () => emulatorSupportsFlag,
82754
82754
  getAndroidRuntimeKind: () => getAndroidRuntimeKind,
82755
+ getCachedAndroidRuntimeKind: () => getCachedAndroidRuntimeKind,
82755
82756
  hasDefaultBootSnapshot: () => hasDefaultBootSnapshot,
82756
82757
  isAndroidTv: () => isAndroidTv,
82757
82758
  listAndroidDevices: () => listAndroidDevices,
@@ -82942,6 +82943,9 @@ async function getAndroidRuntimeKind(serial) {
82942
82943
  async function isAndroidTv(serial) {
82943
82944
  return await getAndroidRuntimeKind(serial) === "tv";
82944
82945
  }
82946
+ function getCachedAndroidRuntimeKind(serial) {
82947
+ return androidRuntimeKindCache.get(serial)?.kind;
82948
+ }
82945
82949
  async function listAndroidDevices(opts = {}) {
82946
82950
  const basic = await listAndroidSerials({ devicesTimeoutMs: opts.devicesTimeoutMs });
82947
82951
  const enriched = await Promise.all(
@@ -99673,7 +99677,15 @@ function resetClient() {
99673
99677
  init_src();
99674
99678
 
99675
99679
  // ../telemetry/src/events.ts
99676
- var PLATFORMS = ["ios", "ios-remote", "android", "chromium", "vega"];
99680
+ var PLATFORMS = [
99681
+ "ios",
99682
+ "ios-remote",
99683
+ "android",
99684
+ "chromium",
99685
+ "vega",
99686
+ "tvos",
99687
+ "android-tv"
99688
+ ];
99677
99689
 
99678
99690
  // ../telemetry/src/ai-identity.ts
99679
99691
  var AI_CLIENTS = [
@@ -101874,6 +101886,12 @@ async function getSimulatorRuntimeKind(udid) {
101874
101886
  async function isTvOsSimulator(udid) {
101875
101887
  return await getSimulatorRuntimeKind(udid) === "tv";
101876
101888
  }
101889
+ function cacheSimulatorRuntimeKind(udid, kind) {
101890
+ if (kind) runtimeKindCache.set(udid, kind);
101891
+ }
101892
+ function getCachedSimulatorRuntimeKind(udid) {
101893
+ return runtimeKindCache.get(udid);
101894
+ }
101877
101895
 
101878
101896
  // ../tool-server/src/utils/ax-prefs.ts
101879
101897
  var fsAsync = __toESM(require("node:fs/promises"));
@@ -115057,6 +115075,9 @@ async function resolveFileInputs(def, body) {
115057
115075
  return { args, fileInputs: resolved, cleanup };
115058
115076
  }
115059
115077
 
115078
+ // ../tool-server/src/http.ts
115079
+ init_adb();
115080
+
115060
115081
  // ../tool-server/src/chromium-server/http-api.ts
115061
115082
  var import_express2 = __toESM(require_express2());
115062
115083
  init_wrapper();
@@ -115321,10 +115342,19 @@ function extractDeviceArg(data) {
115321
115342
  if (typeof record2.device_id === "string") return record2.device_id;
115322
115343
  return null;
115323
115344
  }
115345
+ function refineTvPlatform(basePlatform, deviceId) {
115346
+ if (basePlatform === "ios" && getCachedSimulatorRuntimeKind(deviceId) === "tv") {
115347
+ return "tvos";
115348
+ }
115349
+ if (basePlatform === "android" && getCachedAndroidRuntimeKind(deviceId) === "tv") {
115350
+ return "android-tv";
115351
+ }
115352
+ return basePlatform;
115353
+ }
115324
115354
  function inferPlatform(deviceId) {
115325
115355
  if (!deviceId) return null;
115326
115356
  try {
115327
- return resolveDevice(deviceId).platform;
115357
+ return refineTvPlatform(resolveDevice(deviceId).platform, deviceId);
115328
115358
  } catch {
115329
115359
  return null;
115330
115360
  }
@@ -116394,6 +116424,7 @@ var tvControlBlueprint = {
116394
116424
  `${TV_CONTROL_NAMESPACE}: no available simulator with udid '${udid}'. Run list-devices to find a booted Apple TV.`
116395
116425
  );
116396
116426
  }
116427
+ cacheSimulatorRuntimeKind(udid, match.runtimeKind);
116397
116428
  if (match.runtimeKind !== "tv") {
116398
116429
  throw new UnsupportedOperationError(
116399
116430
  "tv-remote",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.14.1-next.17",
3
+ "version": "0.14.1-next.18",
4
4
  "description": "MCP server for iOS Simulator and Android Emulator control",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {