eas-cli 27.7.0 → 27.7.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/README.md +186 -163
- package/build/commands/simulator/index.d.ts +1 -0
- package/build/commands/simulator/index.js +22 -12
- package/build/commands/workflow/ssh.d.ts +2 -0
- package/build/commands/workflow/ssh.js +5 -0
- package/build/graphql/generated.d.ts +7 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +3 -2
- package/oclif.manifest.json +1373 -1357
- package/package.json +14 -14
|
@@ -22,6 +22,7 @@ export default class Simulator extends EasCommand {
|
|
|
22
22
|
'open-url': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
23
23
|
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
24
24
|
'package-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
25
|
+
'log-source': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
25
26
|
'network-capture': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
26
27
|
'network-capture-field': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
27
28
|
'max-duration-minutes': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -126,6 +126,11 @@ With local egress, actions wait for the connection and require interactive mode.
|
|
|
126
126
|
'package-version': core_1.Flags.string({
|
|
127
127
|
description: 'Version of the package backing the simulator session (e.g. "0.1.3-alpha.3"). Defaults to "latest" when omitted.',
|
|
128
128
|
}),
|
|
129
|
+
'log-source': core_1.Flags.option({
|
|
130
|
+
description: 'Android logs to record during the session and upload afterward. Repeat to select both sources; replaces the default emulator-output selection. Device-wide device-logcat may contain credentials and personal data. Logs are not redacted.',
|
|
131
|
+
options: ['emulator-output', 'device-logcat'],
|
|
132
|
+
multiple: true,
|
|
133
|
+
})(),
|
|
129
134
|
'network-capture': core_1.Flags.boolean({
|
|
130
135
|
allowNo: true,
|
|
131
136
|
description: 'Record HTTP(S) traffic from apps on the device (iOS only). HTTPS is decrypted, so recordings contain credentials in cleartext and certificate-pinned apps fail to connect.',
|
|
@@ -213,6 +218,7 @@ With local egress, actions wait for the connection and require interactive mode.
|
|
|
213
218
|
const tags = flags.tag?.map(tag => tag.trim()).filter(tag => tag.length > 0);
|
|
214
219
|
const deviceIdentifier = flags.device?.trim() || undefined;
|
|
215
220
|
const systemImagePackage = flags['system-image']?.trim() || undefined;
|
|
221
|
+
const logSources = flags['log-source'];
|
|
216
222
|
const buildId = flags['build-id']?.trim() || undefined;
|
|
217
223
|
const buildFingerprint = flags['build-fingerprint']?.trim() || undefined;
|
|
218
224
|
const applicationArchiveUrlFromFlag = flags['application-archive-url']?.trim() || undefined;
|
|
@@ -250,6 +256,9 @@ With local egress, actions wait for the connection and require interactive mode.
|
|
|
250
256
|
}
|
|
251
257
|
const platform = await resolvePlatformAsync(flags.platform, nonInteractive);
|
|
252
258
|
const egress = flags.egress === 'local' ? generated_1.DeviceRunSessionEgress.Local : undefined;
|
|
259
|
+
if (logSources && platform !== generated_1.AppPlatform.Android) {
|
|
260
|
+
throw new errors_1.EasCommandError('--log-source selects Android emulator logs. Pass --platform android.');
|
|
261
|
+
}
|
|
253
262
|
if (systemImagePackage && platform !== generated_1.AppPlatform.Android) {
|
|
254
263
|
throw new errors_1.EasCommandError('--system-image is only supported with --platform android.');
|
|
255
264
|
}
|
|
@@ -313,6 +322,18 @@ With local egress, actions wait for the connection and require interactive mode.
|
|
|
313
322
|
packageVersion: flags['package-version'],
|
|
314
323
|
nonInteractive,
|
|
315
324
|
});
|
|
325
|
+
const android = {
|
|
326
|
+
...(deviceIdentifier ? { deviceIdentifier } : {}),
|
|
327
|
+
...(systemImagePackage ? { systemImagePackage } : {}),
|
|
328
|
+
...(logSources ? { logSources } : {}),
|
|
329
|
+
};
|
|
330
|
+
const platformInput = platform === generated_1.AppPlatform.Ios
|
|
331
|
+
? deviceIdentifier
|
|
332
|
+
? { ios: { deviceIdentifier } }
|
|
333
|
+
: {}
|
|
334
|
+
: Object.keys(android).length
|
|
335
|
+
? { android }
|
|
336
|
+
: {};
|
|
316
337
|
const session = await withSimulatorRequestAnalyticsAsync(analytics, requestProperties, createSpinner, () => DeviceRunSessionMutation_1.DeviceRunSessionMutation.createDeviceRunSessionAsync(graphqlClient, {
|
|
317
338
|
appId: projectId,
|
|
318
339
|
name,
|
|
@@ -323,18 +344,7 @@ With local egress, actions wait for the connection and require interactive mode.
|
|
|
323
344
|
packageVersion: flags['package-version'],
|
|
324
345
|
networkCapture: flags['network-capture'],
|
|
325
346
|
...(networkCaptureFields.length ? { networkCaptureFields } : {}),
|
|
326
|
-
...
|
|
327
|
-
? deviceIdentifier
|
|
328
|
-
? { ios: { deviceIdentifier } }
|
|
329
|
-
: {}
|
|
330
|
-
: deviceIdentifier || systemImagePackage
|
|
331
|
-
? {
|
|
332
|
-
android: {
|
|
333
|
-
...(deviceIdentifier ? { deviceIdentifier } : {}),
|
|
334
|
-
...(systemImagePackage ? { systemImagePackage } : {}),
|
|
335
|
-
},
|
|
336
|
-
}
|
|
337
|
-
: {}),
|
|
347
|
+
...platformInput,
|
|
338
348
|
...(buildId ? { buildId } : {}),
|
|
339
349
|
...(buildFingerprint ? { buildFingerprint } : {}),
|
|
340
350
|
...(applicationArchiveUrlFromFlag
|
|
@@ -17,6 +17,8 @@ export declare function parseSshArgv(rawArgv: readonly string[]): {
|
|
|
17
17
|
};
|
|
18
18
|
export default class WorkflowSsh extends EasCommand {
|
|
19
19
|
static description: string;
|
|
20
|
+
static usage: string;
|
|
21
|
+
static examples: string[];
|
|
20
22
|
static strict: boolean;
|
|
21
23
|
static flags: {
|
|
22
24
|
'show-connect': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -79,6 +79,11 @@ function parseSshArgv(rawArgv) {
|
|
|
79
79
|
}
|
|
80
80
|
class WorkflowSsh extends EasCommand_1.default {
|
|
81
81
|
static description = '[EXPERIMENTAL] open an ssh session on the worker running a workflow job';
|
|
82
|
+
static usage = 'workflow:ssh [--show-connect] ID';
|
|
83
|
+
static examples = [
|
|
84
|
+
'$ eas workflow:ssh <ID> \t # Open an SSH session on the worker. Use the ID in the job logs ("Start SSH session" step)',
|
|
85
|
+
'$ eas workflow:ssh --show-connect <ID> \t # Print the ssh command to connect, without opening the SSH session',
|
|
86
|
+
];
|
|
82
87
|
static strict = false;
|
|
83
88
|
static flags = {
|
|
84
89
|
'show-connect': core_1.Flags.boolean({
|
|
@@ -5749,6 +5749,13 @@ export type CreateAndConfigureRepositoryInput = {
|
|
|
5749
5749
|
export type CreateAndroidDeviceRunSessionInput = {
|
|
5750
5750
|
/** AVD hardware profile id to use for the emulator (e.g. "pixel_9"). Defaults to "medium_phone". */
|
|
5751
5751
|
deviceIdentifier?: InputMaybe<Scalars['String']['input']>;
|
|
5752
|
+
/**
|
|
5753
|
+
* Logs to record during the session and upload afterward: emulator-output and device-logcat. Defaults to
|
|
5754
|
+
* ["emulator-output"]. An empty list disables recording and uploading both sources. Device-wide logcat can contain
|
|
5755
|
+
* credentials and personal data; include device-logcat only when you want to retain it.
|
|
5756
|
+
* Logs are not redacted and use the existing 90-day artifact retention policy.
|
|
5757
|
+
*/
|
|
5758
|
+
logSources?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5752
5759
|
/**
|
|
5753
5760
|
* Android SDK system image package to use for the emulator (e.g.
|
|
5754
5761
|
* "system-images;android-35;google_apis;x86_64").
|
|
@@ -126,9 +126,10 @@ exports.WorkflowJobSshQuery = {
|
|
|
126
126
|
throw error;
|
|
127
127
|
}
|
|
128
128
|
const build = data.builds.byId;
|
|
129
|
+
const jobCompleted = FINAL_BUILD_STATUSES.has(build.status);
|
|
129
130
|
return {
|
|
130
|
-
sshRequested: build.sshSession !== null,
|
|
131
|
-
jobCompleted
|
|
131
|
+
sshRequested: build.sshSession !== null || jobCompleted,
|
|
132
|
+
jobCompleted,
|
|
132
133
|
session: build.sshSession,
|
|
133
134
|
};
|
|
134
135
|
},
|