eas-cli 25.1.1 → 25.2.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.
- package/README.md +246 -144
- package/build/analytics/AnalyticsManager.d.ts +6 -1
- package/build/analytics/AnalyticsManager.js +11 -1
- package/build/build/build.d.ts +2 -1
- package/build/build/build.js +5 -4
- package/build/build/context.d.ts +2 -0
- package/build/build/createContext.d.ts +3 -1
- package/build/build/createContext.js +2 -1
- package/build/build/freeTierLimitGuidance.d.ts +19 -0
- package/build/build/freeTierLimitGuidance.js +39 -0
- package/build/build/runBuildAndSubmit.d.ts +4 -1
- package/build/build/runBuildAndSubmit.js +4 -2
- package/build/commandUtils/EasCommand.d.ts +9 -0
- package/build/commandUtils/EasCommand.js +9 -0
- package/build/commandUtils/context/ExperimentationContextField.d.ts +13 -0
- package/build/commandUtils/context/ExperimentationContextField.js +79 -0
- package/build/commandUtils/context/contextUtils/createGraphqlClient.d.ts +3 -0
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +29 -2
- package/build/commands/analytics.js +1 -1
- package/build/commands/build/index.d.ts +1 -0
- package/build/commands/build/index.js +3 -1
- package/build/commands/simulator/control.d.ts +26 -0
- package/build/commands/simulator/control.js +250 -0
- package/build/commands/update/republish.d.ts +1 -1
- package/build/env.d.ts +6 -0
- package/build/env.js +6 -0
- package/build/experimentation/AnalyticsExposureLogger.d.ts +7 -0
- package/build/experimentation/AnalyticsExposureLogger.js +21 -0
- package/build/experimentation/ExperimentNamespace.d.ts +24 -0
- package/build/experimentation/ExperimentNamespace.js +69 -0
- package/build/experimentation/ExperimentOverrides.d.ts +17 -0
- package/build/experimentation/ExperimentOverrides.js +68 -0
- package/build/experimentation/ExperimentationClient.d.ts +32 -0
- package/build/experimentation/ExperimentationClient.js +125 -0
- package/build/experimentation/LazyExperimentationClient.d.ts +12 -0
- package/build/experimentation/LazyExperimentationClient.js +22 -0
- package/build/graphql/generated.d.ts +12 -0
- package/build/graphql/queries/ExperimentationConfigQuery.d.ts +10 -0
- package/build/graphql/queries/ExperimentationConfigQuery.js +49 -0
- package/build/graphql/queries/UserQuery.d.ts +3 -1
- package/build/graphql/queries/UserQuery.js +2 -1
- package/build/help.d.ts +4 -0
- package/build/help.js +56 -0
- package/build/simulator/hostActions.d.ts +70 -0
- package/build/simulator/hostActions.js +411 -0
- package/build/simulator/utils.d.ts +5 -0
- package/build/simulator/utils.js +11 -0
- package/build/user/SessionManager.d.ts +8 -1
- package/build/user/SessionManager.js +7 -2
- package/oclif.manifest.json +1110 -203
- package/package.json +8 -6
|
@@ -54,6 +54,11 @@ export type LocalEgressOptions = {
|
|
|
54
54
|
* from the worker.
|
|
55
55
|
*/
|
|
56
56
|
export declare function getLocalEgressConfig(remoteConfig: DeviceRunSessionRemoteConfig, allow?: readonly string[], platform?: AppPlatform): LocalEgressConfig | null;
|
|
57
|
+
export type PreviewApiAccess = {
|
|
58
|
+
apiUrl: string;
|
|
59
|
+
token: string;
|
|
60
|
+
};
|
|
61
|
+
export declare function getPreviewApiAccess(remoteConfig: DeviceRunSessionRemoteConfig): PreviewApiAccess | null;
|
|
57
62
|
/** The worker relay that the Android emulator's proxy points at; see build-tools androidLocalEgress.ts. */
|
|
58
63
|
export declare const ANDROID_EMULATOR_EGRESS_RELAY_PORT = 8898;
|
|
59
64
|
export type LoopbackForwardPlan = {
|
package/build/simulator/utils.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.formatSimulatorUnavailableMessage = formatSimulatorUnavailableMessage;
|
|
|
5
5
|
exports.deviceRunSessionTypesForFlagValue = deviceRunSessionTypesForFlagValue;
|
|
6
6
|
exports.deviceRunSessionTypeToFlagValue = deviceRunSessionTypeToFlagValue;
|
|
7
7
|
exports.getLocalEgressConfig = getLocalEgressConfig;
|
|
8
|
+
exports.getPreviewApiAccess = getPreviewApiAccess;
|
|
8
9
|
exports.getLoopbackForwardPlan = getLoopbackForwardPlan;
|
|
9
10
|
exports.formatLoopbackForwardNotice = formatLoopbackForwardNotice;
|
|
10
11
|
exports.getLocalEgressEnvironmentVariables = getLocalEgressEnvironmentVariables;
|
|
@@ -76,6 +77,16 @@ function getLocalEgressConfig(remoteConfig, allow = [], platform = generated_1.A
|
|
|
76
77
|
platform,
|
|
77
78
|
};
|
|
78
79
|
}
|
|
80
|
+
function getPreviewApiAccess(remoteConfig) {
|
|
81
|
+
const token = remoteConfig.__typename === 'ServeSimRunSessionRemoteConfig' ||
|
|
82
|
+
remoteConfig.__typename === 'WebPreviewOnlyRunSessionRemoteConfig'
|
|
83
|
+
? remoteConfig.previewToken
|
|
84
|
+
: remoteConfig.webPreviewToken;
|
|
85
|
+
if (!remoteConfig.previewApiUrl || !token) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return { apiUrl: remoteConfig.previewApiUrl, token };
|
|
89
|
+
}
|
|
79
90
|
/** The worker relay that the Android emulator's proxy points at; see build-tools androidLocalEgress.ts. */
|
|
80
91
|
exports.ANDROID_EMULATOR_EGRESS_RELAY_PORT = 8898;
|
|
81
92
|
/**
|
|
@@ -17,7 +17,14 @@ export default class SessionManager {
|
|
|
17
17
|
private getSession;
|
|
18
18
|
private setSessionAsync;
|
|
19
19
|
logoutAsync(): Promise<void>;
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @param requestTimeoutMs caps the actor lookup when no actor is cached yet. Callers that must
|
|
22
|
+
* not delay a command past a deadline pass it; the default has no timeout. A capped lookup
|
|
23
|
+
* also skips the retry exchange, since a retry would double the wait.
|
|
24
|
+
*/
|
|
25
|
+
getUserAsync({ requestTimeoutMs }?: {
|
|
26
|
+
requestTimeoutMs?: number;
|
|
27
|
+
}): Promise<Actor | undefined>;
|
|
21
28
|
/**
|
|
22
29
|
* Ensure that there is a logged-in actor. Show a login prompt if not.
|
|
23
30
|
*
|
|
@@ -59,13 +59,18 @@ class SessionManager {
|
|
|
59
59
|
this.currentActor = undefined;
|
|
60
60
|
await this.setSessionAsync(undefined);
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
/**
|
|
63
|
+
* @param requestTimeoutMs caps the actor lookup when no actor is cached yet. Callers that must
|
|
64
|
+
* not delay a command past a deadline pass it; the default has no timeout. A capped lookup
|
|
65
|
+
* also skips the retry exchange, since a retry would double the wait.
|
|
66
|
+
*/
|
|
67
|
+
async getUserAsync({ requestTimeoutMs } = {}) {
|
|
63
68
|
if (!this.currentActor && (this.getAccessToken() || this.getSessionSecret())) {
|
|
64
69
|
const authenticationInfo = {
|
|
65
70
|
accessToken: this.getAccessToken(),
|
|
66
71
|
sessionSecret: this.getSessionSecret(),
|
|
67
72
|
};
|
|
68
|
-
const actor = await UserQuery_1.UserQuery.currentUserAsync((0, createGraphqlClient_1.createGraphqlClient)(authenticationInfo));
|
|
73
|
+
const actor = await UserQuery_1.UserQuery.currentUserAsync((0, createGraphqlClient_1.createGraphqlClient)(authenticationInfo, { requestTimeoutMs }), { noRetry: requestTimeoutMs !== undefined });
|
|
69
74
|
this.currentActor = actor ?? undefined;
|
|
70
75
|
if (actor) {
|
|
71
76
|
this.analytics.setActor(actor);
|