@ai-development-environment/control-agent 0.0.132 → 0.0.133

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.
@@ -9673,6 +9673,12 @@ function parseBuildDestination(value) {
9673
9673
  BUILD_DESTINATION_TYPES,
9674
9674
  "build destination.type"
9675
9675
  ),
9676
+ ...destination.deviceType === void 0 ? {} : {
9677
+ deviceType: nullableString4(
9678
+ destination.deviceType,
9679
+ "build destination.deviceType"
9680
+ )
9681
+ },
9676
9682
  id: stringValue7(destination.id, "build destination.id"),
9677
9683
  name: stringValue7(destination.name, "build destination.name"),
9678
9684
  platform: stringValue7(destination.platform, "build destination.platform"),
@@ -11146,7 +11152,7 @@ function tailscaleServeRemovePayload(value) {
11146
11152
  // package.json
11147
11153
  var package_default = {
11148
11154
  name: "@ai-development-environment/control-agent",
11149
- version: "0.0.132",
11155
+ version: "0.0.133",
11150
11156
  description: "Control agent for the AI Development Environment",
11151
11157
  license: "MIT",
11152
11158
  repository: {
@@ -45682,6 +45688,13 @@ function simulatorDestinations(value, includeUnavailable = false) {
45682
45688
  const devices = value.devices;
45683
45689
  if (!devices || typeof devices !== "object" || Array.isArray(devices))
45684
45690
  return [];
45691
+ const rawTypes = value.devicetypes;
45692
+ const deviceTypes = /* @__PURE__ */ new Map();
45693
+ if (Array.isArray(rawTypes))
45694
+ for (const raw of rawTypes) {
45695
+ if (raw && typeof raw === "object" && typeof raw.identifier === "string" && typeof raw.name === "string")
45696
+ deviceTypes.set(raw.identifier, raw.name);
45697
+ }
45685
45698
  const result = [];
45686
45699
  for (const [runtime, entries] of Object.entries(devices)) {
45687
45700
  if (!runtime.includes("SimRuntime.iOS-") || !Array.isArray(entries))
@@ -45694,6 +45707,7 @@ function simulatorDestinations(value, includeUnavailable = false) {
45694
45707
  if (!available && !includeUnavailable || typeof device.udid !== "string")
45695
45708
  continue;
45696
45709
  result.push({
45710
+ ...typeof device.deviceTypeIdentifier === "string" && deviceTypes.has(device.deviceTypeIdentifier) ? { deviceType: deviceTypes.get(device.deviceTypeIdentifier) } : {},
45697
45711
  type: "SIMULATOR",
45698
45712
  id: device.udid,
45699
45713
  name: typeof device.name === "string" ? device.name : device.udid,
@@ -45833,7 +45847,7 @@ var inspectBuildDestinations = async (payload, timeoutMs, signal2) => {
45833
45847
  const [simulators, physical] = await Promise.all([
45834
45848
  command(
45835
45849
  "xcrun",
45836
- ["simctl", "list", "devices", "available", "-j"],
45850
+ ["simctl", "list", "-j"],
45837
45851
  Math.min(timeoutMs, 3e4),
45838
45852
  signal2,
45839
45853
  folder
@@ -45855,7 +45869,7 @@ var inspectBuildRunDestinations = async (payload, timeoutMs, signal2) => {
45855
45869
  if (input.destinationType === "SIMULATOR") {
45856
45870
  const simulators = await command(
45857
45871
  "xcrun",
45858
- ["simctl", "list", "devices", "-j"],
45872
+ ["simctl", "list", "-j"],
45859
45873
  Math.min(timeoutMs, 3e4),
45860
45874
  signal2,
45861
45875
  folder
@@ -45876,7 +45890,7 @@ var inspectAgentBuildRunDestinations = async (payload, timeoutMs, signal2) => {
45876
45890
  if (input.destinationType === "SIMULATOR") {
45877
45891
  const simulators = await command(
45878
45892
  "xcrun",
45879
- ["simctl", "list", "devices", "-j"],
45893
+ ["simctl", "list", "-j"],
45880
45894
  Math.min(timeoutMs, 3e4),
45881
45895
  signal2,
45882
45896
  process.cwd()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-development-environment/control-agent",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "description": "Control agent for the AI Development Environment",
5
5
  "license": "MIT",
6
6
  "repository": {