eas-cli 27.9.0 → 27.11.0

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.
@@ -96,4 +96,4 @@ export declare function isAnalyticsOptedOutAsync(): Promise<boolean>;
96
96
  /**
97
97
  * Create an instance of Analytics based on the user's analytics enabled preferences.
98
98
  */
99
- export declare function createAnalyticsAsync(): Promise<AnalyticsWithOrchestration>;
99
+ export declare function createAnalyticsAsync(parentCommand?: string | null): Promise<AnalyticsWithOrchestration>;
@@ -120,7 +120,7 @@ async function isAnalyticsOptedOutAsync() {
120
120
  /**
121
121
  * Create an instance of Analytics based on the user's analytics enabled preferences.
122
122
  */
123
- async function createAnalyticsAsync() {
123
+ async function createAnalyticsAsync(parentCommand = null) {
124
124
  // TODO: remove after some time
125
125
  const amplitudeEnabled = await UserSettings_1.default.getAsync(USER_SETTINGS_KEY_AMPLITUDE_ENABLED, null);
126
126
  if (amplitudeEnabled !== null) {
@@ -145,7 +145,7 @@ async function createAnalyticsAsync() {
145
145
  if (!persistedDeviceId) {
146
146
  await UserSettings_1.default.setAsync(USER_SETTINGS_KEY_ANALYTICS_DEVICE_ID, deviceId);
147
147
  }
148
- return new RudderstackAnalytics(deviceId);
148
+ return new RudderstackAnalytics(deviceId, parentCommand);
149
149
  }
150
150
  class NoOpAnalytics {
151
151
  logEvent() { }
@@ -168,12 +168,14 @@ const RudderstackAnalyticsConfig = process.env.EXPO_STAGING || process.env.EXPO_
168
168
  };
169
169
  class RudderstackAnalytics {
170
170
  persistentDeviceId;
171
+ parentCommand;
171
172
  rudderstackClient = new rudder_sdk_node_1.default(RudderstackAnalyticsConfig.rudderstackWriteKey, new url_1.URL('/v1/batch', RudderstackAnalyticsConfig.rudderstackDataPlaneURL).toString(), {
172
173
  flushInterval: 300,
173
174
  });
174
175
  identifiedActor = null;
175
- constructor(persistentDeviceId) {
176
+ constructor(persistentDeviceId, parentCommand) {
176
177
  this.persistentDeviceId = persistentDeviceId;
178
+ this.parentCommand = parentCommand;
177
179
  // identify once with just anonymous ID. Once the actor is fetched, re-indentify with
178
180
  // both so that they can be associated
179
181
  this.rudderstackClient.identify({
@@ -221,6 +223,7 @@ class RudderstackAnalytics {
221
223
  os: { name: platform, version: os_1.default.release() },
222
224
  device: { type: platform, model: platform },
223
225
  app: { name: 'eas cli', version: easCli_1.easCliVersion ?? undefined },
226
+ ...(this.parentCommand ? { parent_command: this.parentCommand } : {}),
224
227
  ...(sandboxProvider ? { sandbox_provider: sandboxProvider } : {}),
225
228
  ...(agent ? { agent } : {}),
226
229
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Makes child processes and nested EAS commands report `command` as their parent command.
3
+ * Expo CLI uses the same variable name and the same `<cli> <command>` value. Do not change them.
4
+ *
5
+ * `parentCommand` is the Expo CLI or EAS CLI command that started the current one.
6
+ * `restoreParentCommand` puts the inherited value back.
7
+ */
8
+ export declare function markAsParentCommand(command: string): {
9
+ parentCommand: string | null;
10
+ restoreParentCommand: () => void;
11
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.markAsParentCommand = markAsParentCommand;
4
+ /**
5
+ * Makes child processes and nested EAS commands report `command` as their parent command.
6
+ * Expo CLI uses the same variable name and the same `<cli> <command>` value. Do not change them.
7
+ *
8
+ * `parentCommand` is the Expo CLI or EAS CLI command that started the current one.
9
+ * `restoreParentCommand` puts the inherited value back.
10
+ */
11
+ function markAsParentCommand(command) {
12
+ const inheritedCommand = process.env.__EXPO_PARENT_COMMAND;
13
+ process.env.__EXPO_PARENT_COMMAND = command;
14
+ return {
15
+ parentCommand: inheritedCommand || null,
16
+ restoreParentCommand: () => {
17
+ if (inheritedCommand === undefined) {
18
+ delete process.env.__EXPO_PARENT_COMMAND;
19
+ }
20
+ else {
21
+ process.env.__EXPO_PARENT_COMMAND = inheritedCommand;
22
+ }
23
+ },
24
+ };
25
+ }
@@ -20,6 +20,7 @@ const SessionManagementContextField_1 = tslib_1.__importDefault(require("./conte
20
20
  const VcsClientContextField_1 = tslib_1.__importDefault(require("./context/VcsClientContextField"));
21
21
  const errors_1 = require("./errors");
22
22
  const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
23
+ const parentCommand_1 = require("../analytics/parentCommand");
23
24
  const log_1 = tslib_1.__importStar(require("../log"));
24
25
  const sentry_1 = tslib_1.__importDefault(require("../sentry"));
25
26
  const SessionManager_1 = tslib_1.__importDefault(require("../user/SessionManager"));
@@ -167,23 +168,30 @@ class EasCommand extends core_1.Command {
167
168
  }
168
169
  // eslint-disable-next-line async-protect/async-suffix
169
170
  async run() {
170
- this.analyticsInternal = await (0, AnalyticsManager_1.createAnalyticsAsync)();
171
- this.sessionManagerInternal = new SessionManager_1.default(this.analytics);
172
- // this is needed for logEvent call below as it identifies the user in the analytics system
173
- // if possible
174
- const actor = await this.sessionManager.getUserAsync();
175
- if (actor) {
176
- sentry_1.default.setUser({
177
- id: actor.id,
178
- username: (0, User_1.getActorDisplayName)(actor),
179
- });
171
+ // id is assigned by oclif in constructor based on the filepath:
172
+ // commands/submit === submit, commands/build/list === build:list
173
+ const command = `eas ${this.id}`;
174
+ const { parentCommand, restoreParentCommand } = (0, parentCommand_1.markAsParentCommand)(command);
175
+ try {
176
+ this.analyticsInternal = await (0, AnalyticsManager_1.createAnalyticsAsync)(parentCommand);
177
+ this.sessionManagerInternal = new SessionManager_1.default(this.analytics);
178
+ // this is needed for logEvent call below as it identifies the user in the analytics system
179
+ // if possible
180
+ const actor = await this.sessionManager.getUserAsync();
181
+ if (actor) {
182
+ sentry_1.default.setUser({
183
+ id: actor.id,
184
+ username: (0, User_1.getActorDisplayName)(actor),
185
+ });
186
+ }
187
+ this.analytics.logEvent(AnalyticsManager_1.CommandEvent.ACTION, { action: command });
188
+ return await this.runAsync();
189
+ }
190
+ finally {
191
+ // Commands can run inside each other, for example `eas open` runs `eas browse`.
192
+ // The outer command is the parent command again after the inner one ends.
193
+ restoreParentCommand();
180
194
  }
181
- this.analytics.logEvent(AnalyticsManager_1.CommandEvent.ACTION, {
182
- // id is assigned by oclif in constructor based on the filepath:
183
- // commands/submit === submit, commands/build/list === build:list
184
- action: `eas ${this.id}`,
185
- });
186
- return await this.runAsync();
187
195
  }
188
196
  // eslint-disable-next-line async-protect/async-suffix
189
197
  async finally(err) {
@@ -0,0 +1,15 @@
1
+ import EasCommand from '../../commandUtils/EasCommand';
2
+ export default class SimulatorDevices extends EasCommand {
3
+ static aliases: string[];
4
+ static hiddenAliases: string[];
5
+ static description: string;
6
+ static flags: {
7
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
+ 'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<"android" | "ios" | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ };
11
+ static contextDefinition: {
12
+ loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
13
+ };
14
+ runAsync(): Promise<void>;
15
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
7
+ const flags_1 = require("../../commandUtils/flags");
8
+ const DeviceRunSessionQuery_1 = require("../../graphql/queries/DeviceRunSessionQuery");
9
+ const log_1 = tslib_1.__importDefault(require("../../log"));
10
+ const ora_1 = require("../../ora");
11
+ const platform_1 = require("../../platform");
12
+ const json_1 = require("../../utils/json");
13
+ const commandAliases_1 = require("../../simulator/commandAliases");
14
+ const utils_1 = require("../../simulator/utils");
15
+ const PLATFORM_ORDER = ['ios', 'android'];
16
+ function formatDeviceFlagValue(identifier) {
17
+ return /^[\w-]+$/.test(identifier) ? identifier : JSON.stringify(identifier);
18
+ }
19
+ class SimulatorDevices extends EasCommand_1.default {
20
+ static aliases = (0, commandAliases_1.getSimulatorCommandAliases)('devices');
21
+ static hiddenAliases = (0, commandAliases_1.getSimulatorCommandHiddenAliases)('devices');
22
+ static description = 'list the devices Expo suggests for a remote simulator session';
23
+ static flags = {
24
+ platform: core_1.Flags.option({
25
+ char: 'p',
26
+ description: 'Show the devices of one platform',
27
+ options: utils_1.DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES,
28
+ })(),
29
+ ...flags_1.EasNonInteractiveAndJsonFlags,
30
+ };
31
+ static contextDefinition = {
32
+ ...this.ContextOptions.LoggedIn,
33
+ };
34
+ async runAsync() {
35
+ const { flags } = await this.parse(SimulatorDevices);
36
+ const { json: jsonFlag, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
37
+ if (jsonFlag) {
38
+ (0, json_1.enableJsonOutput)();
39
+ }
40
+ const { loggedIn: { graphqlClient }, } = await this.getContextAsync(SimulatorDevices, {
41
+ nonInteractive,
42
+ });
43
+ const fetchSpinner = jsonFlag ? null : (0, ora_1.ora)('Fetching simulator devices').start();
44
+ let profiles;
45
+ try {
46
+ profiles = await DeviceRunSessionQuery_1.DeviceRunSessionQuery.profilesAsync(graphqlClient);
47
+ fetchSpinner?.stop();
48
+ }
49
+ catch (err) {
50
+ fetchSpinner?.fail('Failed to fetch simulator devices');
51
+ throw err;
52
+ }
53
+ const platforms = PLATFORM_ORDER.filter(platform => !flags.platform || flags.platform === platform);
54
+ if (jsonFlag) {
55
+ (0, json_1.printJsonOnlyOutput)(Object.fromEntries(platforms.map(platform => [
56
+ platform,
57
+ profiles[platform].devices.map(({ identifier, displayName, isDefault }) => ({
58
+ identifier,
59
+ displayName,
60
+ isDefault,
61
+ })),
62
+ ])));
63
+ return;
64
+ }
65
+ const devices = platforms.flatMap(platform => profiles[platform].devices.map(({ identifier, displayName, isDefault }) => ({
66
+ platform,
67
+ displayName: isDefault ? `${displayName} (default)` : displayName,
68
+ flagValue: formatDeviceFlagValue(identifier),
69
+ })));
70
+ if (devices.length === 0) {
71
+ log_1.default.log('No simulator devices found.');
72
+ return;
73
+ }
74
+ const header = ['Platform', 'Device', '--device value'];
75
+ const rows = devices.map(({ platform, displayName, flagValue }) => [
76
+ platform_1.appPlatformDisplayNames[utils_1.DEVICE_RUN_SESSION_PLATFORM_BY_FLAG_VALUE[platform]],
77
+ displayName,
78
+ flagValue,
79
+ ]);
80
+ const widths = header.map((title, column) => Math.max(title.length, ...rows.map(row => row[column].length)));
81
+ const formatRow = (row) => row
82
+ .map((cell, column) => cell.padEnd(widths[column]))
83
+ .join(' ')
84
+ .trimEnd();
85
+ log_1.default.log([chalk_1.default.dim(formatRow(header)), ...rows.map(formatRow)].join('\n'));
86
+ log_1.default.newLine();
87
+ log_1.default.log(`Start a session with: eas simulator:start --platform ${devices[0].platform} --device ${devices[0].flagValue}`);
88
+ }
89
+ }
90
+ exports.default = SimulatorDevices;
@@ -39,12 +39,7 @@ const OUT_CONFIG_TYPE_VALUES = {
39
39
  Env: 'env',
40
40
  Dotenv: 'dotenv',
41
41
  };
42
- const PLATFORM_FLAG_VALUES = ['android', 'ios'];
43
42
  const EGRESS_FLAG_VALUES = ['local'];
44
- const APP_PLATFORM_BY_FLAG_VALUE = {
45
- android: generated_1.AppPlatform.Android,
46
- ios: generated_1.AppPlatform.Ios,
47
- };
48
43
  class Simulator extends EasCommand_1.default {
49
44
  static aliases = ['simulator:start', ...(0, commandAliases_1.getSimulatorCommandAliases)('start')];
50
45
  static hiddenAliases = [
@@ -78,7 +73,7 @@ With local egress, actions wait for the connection and require interactive mode.
78
73
  platform: core_1.Flags.option({
79
74
  char: 'p',
80
75
  description: 'Device platform',
81
- options: PLATFORM_FLAG_VALUES,
76
+ options: utils_1.DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES,
82
77
  })(),
83
78
  name: core_1.Flags.string({
84
79
  description: 'Human-readable name for the simulator session, shown in eas simulator:list and on expo.dev. Defaults to unnamed.',
@@ -88,7 +83,7 @@ With local egress, actions wait for the connection and require interactive mode.
88
83
  multiple: true,
89
84
  }),
90
85
  device: core_1.Flags.string({
91
- description: 'Virtual device to start for the session. On iOS, a Simulator device name or UDID (e.g. "iPhone 16 Pro"). On Android, an AVD hardware profile id (e.g. "pixel_7"). Defaults to a device chosen by the runner.',
86
+ description: 'Virtual device to start for the session. On iOS, a Simulator device name or UDID (e.g. "iPhone 17 Pro"). On Android, an AVD hardware profile id (e.g. "pixel_9"). Defaults to a device chosen by the runner. eas simulator:devices lists the devices Expo suggests.',
92
87
  }),
93
88
  'system-image': core_1.Flags.string({
94
89
  description: 'Android SDK system image package to use for the emulator (e.g. "system-images;android-35-ext15;google_apis_playstore;x86_64"). Defaults to a system image chosen by the runner. Only supported with --platform android.',
@@ -711,7 +706,7 @@ async function formatJobRunErrorsAsync(graphqlClient, deviceRunSessionId, signal
711
706
  }
712
707
  async function resolvePlatformAsync(platform, nonInteractive) {
713
708
  if (platform) {
714
- return APP_PLATFORM_BY_FLAG_VALUE[platform];
709
+ return utils_1.DEVICE_RUN_SESSION_PLATFORM_BY_FLAG_VALUE[platform];
715
710
  }
716
711
  if (nonInteractive) {
717
712
  throw new Error('The --platform flag must be set when running in non-interactive mode.');
@@ -1327,6 +1327,8 @@ export type AndroidDeviceRunSessionDevice = {
1327
1327
  displayName: Scalars['String']['output'];
1328
1328
  /** AVD hardware profile id accepted by android.deviceIdentifier (e.g. "pixel_9"). */
1329
1329
  identifier: Scalars['String']['output'];
1330
+ /** Whether a session starts this device when it requests no android.deviceIdentifier. */
1331
+ isDefault: Scalars['Boolean']['output'];
1330
1332
  };
1331
1333
  export type AndroidDeviceRunSessionProfiles = {
1332
1334
  __typename?: 'AndroidDeviceRunSessionProfiles';
@@ -7840,6 +7842,8 @@ export type IosDeviceRunSessionDevice = {
7840
7842
  displayName: Scalars['String']['output'];
7841
7843
  /** Simulator device name accepted by ios.deviceIdentifier (e.g. "iPhone 17 Pro"). */
7842
7844
  identifier: Scalars['String']['output'];
7845
+ /** Whether a session starts this device when it requests no ios.deviceIdentifier. */
7846
+ isDefault: Scalars['Boolean']['output'];
7843
7847
  };
7844
7848
  export type IosDeviceRunSessionProfiles = {
7845
7849
  __typename?: 'IosDeviceRunSessionProfiles';
@@ -20196,6 +20200,36 @@ export type DeviceRunSessionByIdQuery = {
20196
20200
  };
20197
20201
  };
20198
20202
  };
20203
+ export type DeviceRunSessionProfilesQueryVariables = Exact<{
20204
+ [key: string]: never;
20205
+ }>;
20206
+ export type DeviceRunSessionProfilesQuery = {
20207
+ __typename?: 'RootQuery';
20208
+ deviceRunSessions: {
20209
+ __typename?: 'DeviceRunSessionQuery';
20210
+ profiles: {
20211
+ __typename?: 'DeviceRunSessionProfiles';
20212
+ ios: {
20213
+ __typename?: 'IosDeviceRunSessionProfiles';
20214
+ devices: Array<{
20215
+ __typename?: 'IosDeviceRunSessionDevice';
20216
+ identifier: string;
20217
+ displayName: string;
20218
+ isDefault: boolean;
20219
+ }>;
20220
+ };
20221
+ android: {
20222
+ __typename?: 'AndroidDeviceRunSessionProfiles';
20223
+ devices: Array<{
20224
+ __typename?: 'AndroidDeviceRunSessionDevice';
20225
+ identifier: string;
20226
+ displayName: string;
20227
+ isDefault: boolean;
20228
+ }>;
20229
+ };
20230
+ };
20231
+ };
20232
+ };
20199
20233
  export type DeviceRunSessionsByAppIdQueryVariables = Exact<{
20200
20234
  appId: Scalars['String']['input'];
20201
20235
  first?: InputMaybe<Scalars['Int']['input']>;
@@ -1,5 +1,5 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { DeviceRunSessionByIdQuery, DeviceRunSessionEventsByIdQuery, DeviceRunSessionFilterInput, DeviceRunSessionJobRunErrorsByIdQuery, DeviceRunSessionsByAppIdQuery } from '../generated';
2
+ import { DeviceRunSessionByIdQuery, DeviceRunSessionEventsByIdQuery, DeviceRunSessionFilterInput, DeviceRunSessionJobRunErrorsByIdQuery, DeviceRunSessionProfilesQuery, DeviceRunSessionsByAppIdQuery } from '../generated';
3
3
  export declare const DeviceRunSessionQuery: {
4
4
  eventsByIdAsync(graphqlClient: ExpoGraphqlClient, deviceRunSessionId: string): Promise<DeviceRunSessionEventsByIdQuery["deviceRunSessions"]["byId"]>;
5
5
  /**
@@ -10,6 +10,7 @@ export declare const DeviceRunSessionQuery: {
10
10
  signal: AbortSignal;
11
11
  }): Promise<DeviceRunSessionJobRunErrorsByIdQuery["deviceRunSessions"]["byId"]["turtleJobRun"]>;
12
12
  byIdAsync(graphqlClient: ExpoGraphqlClient, deviceRunSessionId: string): Promise<DeviceRunSessionByIdQuery["deviceRunSessions"]["byId"]>;
13
+ profilesAsync(graphqlClient: ExpoGraphqlClient): Promise<DeviceRunSessionProfilesQuery["deviceRunSessions"]["profiles"]>;
13
14
  listByAppIdAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after, filter, }: {
14
15
  appId: string;
15
16
  first?: number;
@@ -158,6 +158,33 @@ exports.DeviceRunSessionQuery = {
158
158
  .toPromise());
159
159
  return data.deviceRunSessions.byId;
160
160
  },
161
+ async profilesAsync(graphqlClient) {
162
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
163
+ .query((0, graphql_tag_1.default) `
164
+ query DeviceRunSessionProfilesQuery {
165
+ deviceRunSessions {
166
+ profiles {
167
+ ios {
168
+ devices {
169
+ identifier
170
+ displayName
171
+ isDefault
172
+ }
173
+ }
174
+ android {
175
+ devices {
176
+ identifier
177
+ displayName
178
+ isDefault
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ `, {}, { requestPolicy: 'network-only' })
185
+ .toPromise());
186
+ return data.deviceRunSessions.profiles;
187
+ },
161
188
  async listByAppIdAsync(graphqlClient, { appId, first, after, filter, }) {
162
189
  const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
163
190
  .query((0, graphql_tag_1.default) `
@@ -11,6 +11,9 @@ export declare function formatSimulatorUnavailableMessage(accountName: string):
11
11
  export declare const DEVICE_RUN_SESSION_TYPE_FLAG_VALUES: Record<DeviceRunSessionType, string>;
12
12
  export declare const DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE: Record<string, DeviceRunSessionType>;
13
13
  export declare const DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS: string[];
14
+ export declare const DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES: readonly ["android", "ios"];
15
+ export type DeviceRunSessionPlatformFlagValue = (typeof DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES)[number];
16
+ export declare const DEVICE_RUN_SESSION_PLATFORM_BY_FLAG_VALUE: Record<DeviceRunSessionPlatformFlagValue, AppPlatform>;
14
17
  export declare function deviceRunSessionTypesForFlagValue(value: string): DeviceRunSessionType[];
15
18
  export declare function deviceRunSessionTypeToFlagValue(type: DeviceRunSessionType): string;
16
19
  export declare const DEVICE_RUN_SESSION_RESOURCE_CLASS_FLAG_VALUES: Record<DeviceRunSessionResourceClass, string>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANDROID_EMULATOR_EGRESS_RELAY_PORT = exports.DEVICE_RUN_SESSION_RESOURCE_CLASS_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_RESOURCE_CLASS_FLAG_VALUES = exports.DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS = exports.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = void 0;
3
+ exports.ANDROID_EMULATOR_EGRESS_RELAY_PORT = exports.DEVICE_RUN_SESSION_RESOURCE_CLASS_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_RESOURCE_CLASS_FLAG_VALUES = exports.DEVICE_RUN_SESSION_PLATFORM_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES = exports.DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS = exports.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = void 0;
4
4
  exports.formatSimulatorUnavailableMessage = formatSimulatorUnavailableMessage;
5
5
  exports.deviceRunSessionTypesForFlagValue = deviceRunSessionTypesForFlagValue;
6
6
  exports.deviceRunSessionTypeToFlagValue = deviceRunSessionTypeToFlagValue;
@@ -51,6 +51,11 @@ exports.DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = Object.fromEntries(Object.entrie
51
51
  exports.DEVICE_RUN_SESSION_TYPE_FLAG_OPTIONS = [
52
52
  ...new Set(Object.values(exports.DEVICE_RUN_SESSION_TYPE_FLAG_VALUES)),
53
53
  ];
54
+ exports.DEVICE_RUN_SESSION_PLATFORM_FLAG_VALUES = ['android', 'ios'];
55
+ exports.DEVICE_RUN_SESSION_PLATFORM_BY_FLAG_VALUE = {
56
+ android: generated_1.AppPlatform.Android,
57
+ ios: generated_1.AppPlatform.Ios,
58
+ };
54
59
  // Every enum value behind a flag value, so filtering by web-preview-only also
55
60
  // matches sessions created with the legacy ServeSim type.
56
61
  function deviceRunSessionTypesForFlagValue(value) {
@@ -10227,6 +10227,107 @@
10227
10227
  "control.js"
10228
10228
  ]
10229
10229
  },
10230
+ "simulator:devices": {
10231
+ "aliases": [
10232
+ "sim:devices"
10233
+ ],
10234
+ "args": {},
10235
+ "description": "list the devices Expo suggests for a remote simulator session",
10236
+ "flags": {
10237
+ "platform": {
10238
+ "char": "p",
10239
+ "description": "Show the devices of one platform",
10240
+ "name": "platform",
10241
+ "hasDynamicHelp": false,
10242
+ "multiple": false,
10243
+ "options": [
10244
+ "android",
10245
+ "ios"
10246
+ ],
10247
+ "type": "option"
10248
+ },
10249
+ "json": {
10250
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive.",
10251
+ "name": "json",
10252
+ "allowNo": false,
10253
+ "type": "boolean"
10254
+ },
10255
+ "non-interactive": {
10256
+ "description": "Run the command in non-interactive mode.",
10257
+ "name": "non-interactive",
10258
+ "noCacheDefault": true,
10259
+ "allowNo": false,
10260
+ "type": "boolean"
10261
+ }
10262
+ },
10263
+ "hasDynamicHelp": false,
10264
+ "hiddenAliases": [
10265
+ "simulators:devices",
10266
+ "emulator:devices",
10267
+ "emulators:devices"
10268
+ ],
10269
+ "id": "simulator:devices",
10270
+ "pluginAlias": "eas-cli",
10271
+ "pluginName": "eas-cli",
10272
+ "pluginType": "core",
10273
+ "strict": true,
10274
+ "enableJsonFlag": false,
10275
+ "ContextOptions": {
10276
+ "LoggedIn": {
10277
+ "loggedIn": {}
10278
+ },
10279
+ "MaybeLoggedIn": {
10280
+ "maybeLoggedIn": {}
10281
+ },
10282
+ "DynamicLoggedIn": {
10283
+ "getDynamicLoggedInAsync": {}
10284
+ },
10285
+ "SessionManagment": {
10286
+ "sessionManager": {}
10287
+ },
10288
+ "OptionalProjectConfig": {
10289
+ "optionalPrivateProjectConfig": {}
10290
+ },
10291
+ "ProjectDir": {
10292
+ "projectDir": {}
10293
+ },
10294
+ "DynamicProjectConfig": {
10295
+ "getDynamicPublicProjectConfigAsync": {},
10296
+ "getDynamicPrivateProjectConfigAsync": {}
10297
+ },
10298
+ "ProjectConfig": {
10299
+ "loggedIn": {},
10300
+ "privateProjectConfig": {}
10301
+ },
10302
+ "Analytics": {
10303
+ "analytics": {}
10304
+ },
10305
+ "Vcs": {
10306
+ "vcsClient": {}
10307
+ },
10308
+ "ServerSideEnvironmentVariables": {
10309
+ "getServerSideEnvironmentVariablesAsync": {}
10310
+ },
10311
+ "ProjectId": {
10312
+ "projectId": {}
10313
+ },
10314
+ "Experimentation": {
10315
+ "experimentation": {
10316
+ "clientByAnalytics": {}
10317
+ }
10318
+ }
10319
+ },
10320
+ "contextDefinition": {
10321
+ "loggedIn": {}
10322
+ },
10323
+ "isESM": false,
10324
+ "relativePath": [
10325
+ "build",
10326
+ "commands",
10327
+ "simulator",
10328
+ "devices.js"
10329
+ ]
10330
+ },
10230
10331
  "simulator:egress": {
10231
10332
  "aliases": [
10232
10333
  "sim:egress"
@@ -10637,7 +10738,7 @@
10637
10738
  "type": "option"
10638
10739
  },
10639
10740
  "device": {
10640
- "description": "Virtual device to start for the session. On iOS, a Simulator device name or UDID (e.g. \"iPhone 16 Pro\"). On Android, an AVD hardware profile id (e.g. \"pixel_7\"). Defaults to a device chosen by the runner.",
10741
+ "description": "Virtual device to start for the session. On iOS, a Simulator device name or UDID (e.g. \"iPhone 17 Pro\"). On Android, an AVD hardware profile id (e.g. \"pixel_9\"). Defaults to a device chosen by the runner. eas simulator:devices lists the devices Expo suggests.",
10641
10742
  "name": "device",
10642
10743
  "hasDynamicHelp": false,
10643
10744
  "multiple": false,
@@ -18347,5 +18448,5 @@
18347
18448
  ]
18348
18449
  }
18349
18450
  },
18350
- "version": "27.9.0"
18451
+ "version": "27.11.0"
18351
18452
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eas-cli",
3
- "version": "27.9.0",
3
+ "version": "27.11.0",
4
4
  "description": "EAS command line tool",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,12 +48,12 @@
48
48
  "@expo/code-signing-certificates": "0.0.5",
49
49
  "@expo/config": "55.0.10",
50
50
  "@expo/config-plugins": "55.0.7",
51
- "@expo/eas-build-job": "27.9.0",
52
- "@expo/eas-json": "27.9.0",
51
+ "@expo/eas-build-job": "27.11.0",
52
+ "@expo/eas-json": "27.11.0",
53
53
  "@expo/env": "^1.0.0",
54
54
  "@expo/experimentation": "0.0.5",
55
55
  "@expo/json-file": "8.3.3",
56
- "@expo/logger": "27.9.0",
56
+ "@expo/logger": "27.11.0",
57
57
  "@expo/multipart-body-parser": "2.0.0",
58
58
  "@expo/osascript": "2.1.4",
59
59
  "@expo/package-manager": "1.9.10",
@@ -65,7 +65,7 @@
65
65
  "@expo/results": "1.0.0",
66
66
  "@expo/rudder-sdk-node": "1.1.1",
67
67
  "@expo/spawn-async": "1.7.2",
68
- "@expo/steps": "27.9.0",
68
+ "@expo/steps": "27.11.0",
69
69
  "@expo/timeago.js": "1.0.0",
70
70
  "@oclif/core": "^4.8.3",
71
71
  "@oclif/plugin-autocomplete": "^3.2.40",
@@ -73,7 +73,7 @@
73
73
  "@sentry/node": "7.77.0",
74
74
  "@urql/core": "4.0.11",
75
75
  "@urql/exchange-retry": "1.2.0",
76
- "agent-cli-detector": "0.1.7",
76
+ "agent-cli-detector": "0.1.8",
77
77
  "ajv": "8.20.0",
78
78
  "ajv-formats": "2.1.1",
79
79
  "better-opn": "3.0.2",
@@ -254,7 +254,7 @@
254
254
  },
255
255
  "update": {
256
256
  "node": {
257
- "version": "22.23.4"
257
+ "version": "22.23.5"
258
258
  },
259
259
  "s3": {
260
260
  "templates": {
@@ -273,5 +273,5 @@
273
273
  "engines": {
274
274
  "node": "^20.18.3 || >=22.0.0"
275
275
  },
276
- "gitHead": "14e9f1af44dbbf371a4e33cd06858c2e6f87b42e"
276
+ "gitHead": "67972c5d6a1f2074d59778fcb2b0f703d3a6e9c4"
277
277
  }