eas-cli 27.6.0 → 27.7.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 +173 -161
- package/build/commands/workflow/run.d.ts +7 -0
- package/build/commands/workflow/run.js +29 -0
- package/build/graphql/generated.d.ts +69 -15
- package/build/graphql/generated.js +1 -0
- package/build/ora.js +19 -3
- package/oclif.manifest.json +1176 -1143
- package/package.json +6 -6
|
@@ -40,12 +40,17 @@
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
43
|
+
import { WorkflowRunGitInput } from '../../graphql/generated';
|
|
43
44
|
export declare function resolveWorkflowRunSshInput({ ssh, idleTimeoutSeconds, }: {
|
|
44
45
|
ssh: boolean;
|
|
45
46
|
idleTimeoutSeconds: number | undefined;
|
|
46
47
|
}): {
|
|
47
48
|
idleTimeoutSeconds: number | undefined;
|
|
48
49
|
} | null;
|
|
50
|
+
export declare function resolveWorkflowRunGitInput({ branch, commitHash, }: {
|
|
51
|
+
branch: string | undefined;
|
|
52
|
+
commitHash: string | undefined;
|
|
53
|
+
}): WorkflowRunGitInput | undefined;
|
|
49
54
|
export default class WorkflowRun extends EasCommand {
|
|
50
55
|
static description: string;
|
|
51
56
|
static args: {
|
|
@@ -56,6 +61,8 @@ export default class WorkflowRun extends EasCommand {
|
|
|
56
61
|
wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
57
62
|
input: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
58
63
|
ref: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
64
|
+
'git-branch': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
65
|
+
'git-commit-hash': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
59
66
|
ssh: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
60
67
|
'ssh-idle-timeout': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
61
68
|
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
*/
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
exports.resolveWorkflowRunSshInput = resolveWorkflowRunSshInput;
|
|
45
|
+
exports.resolveWorkflowRunGitInput = resolveWorkflowRunGitInput;
|
|
45
46
|
const tslib_1 = require("tslib");
|
|
46
47
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
47
48
|
const core_1 = require("@oclif/core");
|
|
@@ -72,6 +73,16 @@ function resolveWorkflowRunSshInput({ ssh, idleTimeoutSeconds, }) {
|
|
|
72
73
|
}
|
|
73
74
|
return ssh ? { idleTimeoutSeconds } : null;
|
|
74
75
|
}
|
|
76
|
+
function resolveWorkflowRunGitInput({ branch, commitHash, }) {
|
|
77
|
+
if (branch === undefined || commitHash === undefined) {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
const normalizedCommitHash = commitHash.toLowerCase();
|
|
81
|
+
if (!/^[0-9a-f]{40}$/.test(normalizedCommitHash)) {
|
|
82
|
+
throw new Error(`--git-commit-hash must be the full 40-character commit SHA, got "${commitHash}".`);
|
|
83
|
+
}
|
|
84
|
+
return { branch, commitHash: normalizedCommitHash };
|
|
85
|
+
}
|
|
75
86
|
class WorkflowRun extends EasCommand_1.default {
|
|
76
87
|
static description = 'run an EAS workflow. The entire local project directory will be packaged and uploaded to EAS servers for the workflow run, unless the --ref flag is used';
|
|
77
88
|
static args = {
|
|
@@ -98,6 +109,19 @@ class WorkflowRun extends EasCommand_1.default {
|
|
|
98
109
|
ref: core_1.Flags.string({
|
|
99
110
|
description: "The git reference must exist in the project's git repository, and the workflow file must exist at that reference. When this flag is used, the local project is not uploaded; instead, the workflow is run from the exact state of the project at the chosen reference.",
|
|
100
111
|
summary: 'Git reference to run the workflow on',
|
|
112
|
+
exclusive: ['git-branch', 'git-commit-hash'],
|
|
113
|
+
}),
|
|
114
|
+
'git-branch': core_1.Flags.string({
|
|
115
|
+
description: 'Name of the branch the uploaded project comes from, for example "main". The run is listed under this branch on the EAS dashboard. Requires --git-commit-hash. Cannot be used with --ref.',
|
|
116
|
+
summary: 'Git branch of the uploaded project',
|
|
117
|
+
dependsOn: ['git-commit-hash'],
|
|
118
|
+
exclusive: ['ref'],
|
|
119
|
+
}),
|
|
120
|
+
'git-commit-hash': core_1.Flags.string({
|
|
121
|
+
description: "Full 40-character SHA of the commit the uploaded project comes from. The commit must exist in the project's linked GitHub repository. Requires --git-branch. Cannot be used with --ref.",
|
|
122
|
+
summary: 'Git commit of the uploaded project',
|
|
123
|
+
dependsOn: ['git-branch'],
|
|
124
|
+
exclusive: ['ref'],
|
|
101
125
|
}),
|
|
102
126
|
ssh: core_1.Flags.boolean({
|
|
103
127
|
default: false,
|
|
@@ -256,6 +280,10 @@ class WorkflowRun extends EasCommand_1.default {
|
|
|
256
280
|
}
|
|
257
281
|
else {
|
|
258
282
|
// Run from local file
|
|
283
|
+
const gitInput = resolveWorkflowRunGitInput({
|
|
284
|
+
branch: flags['git-branch'],
|
|
285
|
+
commitHash: flags['git-commit-hash'],
|
|
286
|
+
});
|
|
259
287
|
try {
|
|
260
288
|
({ projectArchiveBucketKey } = await (0, uploadAccountScopedProjectSourceAsync_1.uploadAccountScopedProjectSourceAsync)({
|
|
261
289
|
graphqlClient,
|
|
@@ -307,6 +335,7 @@ class WorkflowRun extends EasCommand_1.default {
|
|
|
307
335
|
projectRootDirectory,
|
|
308
336
|
},
|
|
309
337
|
ssh: sshInput,
|
|
338
|
+
git: gitInput,
|
|
310
339
|
},
|
|
311
340
|
}));
|
|
312
341
|
}
|
|
@@ -47,26 +47,32 @@ export type Scalars = {
|
|
|
47
47
|
input: number;
|
|
48
48
|
output: number;
|
|
49
49
|
};
|
|
50
|
+
/** A non-negative integer number of bytes. */
|
|
50
51
|
ByteSize: {
|
|
51
52
|
input: any;
|
|
52
53
|
output: any;
|
|
53
54
|
};
|
|
55
|
+
/** Date custom scalar type */
|
|
54
56
|
DateTime: {
|
|
55
57
|
input: any;
|
|
56
58
|
output: any;
|
|
57
59
|
};
|
|
60
|
+
/** A DevDomainName for a deployed serverless app */
|
|
58
61
|
DevDomainName: {
|
|
59
62
|
input: any;
|
|
60
63
|
output: any;
|
|
61
64
|
};
|
|
65
|
+
/** A name of an environment variable environment */
|
|
62
66
|
EnvironmentVariableEnvironment: {
|
|
63
67
|
input: any;
|
|
64
68
|
output: any;
|
|
65
69
|
};
|
|
70
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
66
71
|
JSON: {
|
|
67
72
|
input: any;
|
|
68
73
|
output: any;
|
|
69
74
|
};
|
|
75
|
+
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
70
76
|
JSONObject: {
|
|
71
77
|
input: any;
|
|
72
78
|
output: any;
|
|
@@ -75,10 +81,12 @@ export type Scalars = {
|
|
|
75
81
|
input: any;
|
|
76
82
|
output: any;
|
|
77
83
|
};
|
|
84
|
+
/** A alias name for a serverless deployment */
|
|
78
85
|
WorkerDeploymentIdentifier: {
|
|
79
86
|
input: any;
|
|
80
87
|
output: any;
|
|
81
88
|
};
|
|
89
|
+
/** A Worker Deployment Request ID (also known as the CF Ray ID) */
|
|
82
90
|
WorkerDeploymentRequestID: {
|
|
83
91
|
input: any;
|
|
84
92
|
output: any;
|
|
@@ -491,14 +499,23 @@ export type Account_DeviceRunSessionsPaginatedArgs = {
|
|
|
491
499
|
* data and settings. Actors may own and be members of accounts.
|
|
492
500
|
*/
|
|
493
501
|
export type Account_EnvironmentSecretsArgs = {
|
|
502
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
494
503
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
495
504
|
};
|
|
505
|
+
/**
|
|
506
|
+
* An account is a container owning projects, credentials, billing and other organization
|
|
507
|
+
* data and settings. Actors may own and be members of accounts.
|
|
508
|
+
*/
|
|
509
|
+
export type Account_EnvironmentVariableEnvironmentsArgs = {
|
|
510
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
511
|
+
};
|
|
496
512
|
/**
|
|
497
513
|
* An account is a container owning projects, credentials, billing and other organization
|
|
498
514
|
* data and settings. Actors may own and be members of accounts.
|
|
499
515
|
*/
|
|
500
516
|
export type Account_EnvironmentVariablesArgs = {
|
|
501
517
|
environment?: InputMaybe<Scalars['EnvironmentVariableEnvironment']['input']>;
|
|
518
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
502
519
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
503
520
|
};
|
|
504
521
|
/**
|
|
@@ -507,6 +524,7 @@ export type Account_EnvironmentVariablesArgs = {
|
|
|
507
524
|
*/
|
|
508
525
|
export type Account_EnvironmentVariablesIncludingSensitiveArgs = {
|
|
509
526
|
environment?: InputMaybe<Scalars['EnvironmentVariableEnvironment']['input']>;
|
|
527
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
510
528
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
511
529
|
};
|
|
512
530
|
/**
|
|
@@ -755,7 +773,6 @@ export type AccountMutation = {
|
|
|
755
773
|
* using, creating, changing, or deleting an environment variable whose environments are
|
|
756
774
|
* exclusively production needs the PUBLISH_PROTECTED permission on the account, whatever its
|
|
757
775
|
* visibility, in every project of the account. Requires the ADMIN permission on the account.
|
|
758
|
-
* Turning protection off also requires a sudo session.
|
|
759
776
|
*/
|
|
760
777
|
setEnvironmentVariableProtectionEnabled: Account;
|
|
761
778
|
/** Set whether EAS Observe ingestion is paused for this account. */
|
|
@@ -1716,16 +1733,23 @@ export type App_EmbeddedUpdatesPaginatedArgs = {
|
|
|
1716
1733
|
};
|
|
1717
1734
|
/** Represents an Exponent App (or Experience in legacy terms) */
|
|
1718
1735
|
export type App_EnvironmentSecretsArgs = {
|
|
1736
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1719
1737
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1720
1738
|
};
|
|
1721
1739
|
/** Represents an Exponent App (or Experience in legacy terms) */
|
|
1740
|
+
export type App_EnvironmentVariableEnvironmentsArgs = {
|
|
1741
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1742
|
+
};
|
|
1743
|
+
/** Represents an Exponent App (or Experience in legacy terms) */
|
|
1722
1744
|
export type App_EnvironmentVariablesArgs = {
|
|
1723
1745
|
environment?: InputMaybe<Scalars['EnvironmentVariableEnvironment']['input']>;
|
|
1746
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1724
1747
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1725
1748
|
};
|
|
1726
1749
|
/** Represents an Exponent App (or Experience in legacy terms) */
|
|
1727
1750
|
export type App_EnvironmentVariablesIncludingSensitiveArgs = {
|
|
1728
1751
|
environment?: InputMaybe<Scalars['EnvironmentVariableEnvironment']['input']>;
|
|
1752
|
+
excludeProductionOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1729
1753
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1730
1754
|
};
|
|
1731
1755
|
/** Represents an Exponent App (or Experience in legacy terms) */
|
|
@@ -2657,13 +2681,13 @@ export declare enum AppObserveErrorOccurrencesOrderByField {
|
|
|
2657
2681
|
/** AppObserveErrorStats for one platform; iOS includes iPadOS and tvOS. */
|
|
2658
2682
|
export type AppObserveErrorPlatformStats = {
|
|
2659
2683
|
__typename?: 'AppObserveErrorPlatformStats';
|
|
2660
|
-
/** Distinct sessions on this platform that hit any exception. */
|
|
2684
|
+
/** Distinct sessions on this platform that hit any exception, including installations outside the sampleRate sample. */
|
|
2661
2685
|
affectedSessions: Scalars['Int']['output'];
|
|
2662
|
-
/** Distinct users on this platform that hit any exception. */
|
|
2686
|
+
/** Distinct users on this platform that hit any exception, including installations outside the sampleRate sample. */
|
|
2663
2687
|
affectedUsers: Scalars['Int']['output'];
|
|
2664
|
-
/** Fraction (0..1) of this platform's active sessions without a fatal error. */
|
|
2688
|
+
/** Fraction (0..1) of this platform's active sessions without a fatal error. Counts only installations in the sampleRate sample. */
|
|
2665
2689
|
crashFreeSessions: Scalars['Float']['output'];
|
|
2666
|
-
/** Fraction (0..1) of this platform's active users without a fatal error. */
|
|
2690
|
+
/** Fraction (0..1) of this platform's active users without a fatal error. Counts only installations in the sampleRate sample. */
|
|
2667
2691
|
crashFreeUsers: Scalars['Float']['output'];
|
|
2668
2692
|
fatalCount: Scalars['Int']['output'];
|
|
2669
2693
|
nonFatalCount: Scalars['Int']['output'];
|
|
@@ -2677,13 +2701,13 @@ export declare enum AppObserveErrorSeverity {
|
|
|
2677
2701
|
}
|
|
2678
2702
|
export type AppObserveErrorStats = {
|
|
2679
2703
|
__typename?: 'AppObserveErrorStats';
|
|
2680
|
-
/** Distinct sessions that hit any exception. */
|
|
2704
|
+
/** Distinct sessions that hit any exception, including installations outside the sampleRate sample. */
|
|
2681
2705
|
affectedSessions: Scalars['Int']['output'];
|
|
2682
|
-
/** Distinct users that hit any exception. */
|
|
2706
|
+
/** Distinct users that hit any exception, including installations outside the sampleRate sample that send errors because of errorSampleRate. */
|
|
2683
2707
|
affectedUsers: Scalars['Int']['output'];
|
|
2684
|
-
/** Fraction (0..1) of active sessions without a fatal error. Denominator spans app_metrics and app_events. */
|
|
2708
|
+
/** Fraction (0..1) of active sessions without a fatal error. Counts only installations in the sampleRate sample. Denominator spans app_metrics and app_events. */
|
|
2685
2709
|
crashFreeSessions: Scalars['Float']['output'];
|
|
2686
|
-
/** Fraction (0..1) of active users without a fatal error. */
|
|
2710
|
+
/** Fraction (0..1) of active users without a fatal error. Counts only installations in the sampleRate sample. */
|
|
2687
2711
|
crashFreeUsers: Scalars['Float']['output'];
|
|
2688
2712
|
fatalCount: Scalars['Int']['output'];
|
|
2689
2713
|
nonFatalCount: Scalars['Int']['output'];
|
|
@@ -3264,11 +3288,11 @@ export type AppObserveOverviewStability = {
|
|
|
3264
3288
|
__typename?: 'AppObserveOverviewStability';
|
|
3265
3289
|
/** Fatal exception events in range. */
|
|
3266
3290
|
crashCount: Scalars['Int']['output'];
|
|
3267
|
-
/** Fraction (0..1) of active sessions without a fatal error. */
|
|
3291
|
+
/** Fraction (0..1) of active sessions without a fatal error. Counts only installations in the sampleRate sample. */
|
|
3268
3292
|
crashFreeSessions: Scalars['Float']['output'];
|
|
3269
|
-
/** Fraction (0..1) of active users without a fatal error. */
|
|
3293
|
+
/** Fraction (0..1) of active users without a fatal error. Counts only installations in the sampleRate sample. */
|
|
3270
3294
|
crashFreeUsers: Scalars['Float']['output'];
|
|
3271
|
-
/** Distinct users that hit a fatal error in range. */
|
|
3295
|
+
/** Distinct users that hit a fatal error in range, including installations outside the sampleRate sample. */
|
|
3272
3296
|
crashedUsers: Scalars['Int']['output'];
|
|
3273
3297
|
/** Fatal exception events in the equal-length window before startTime. Null when the window is longer than 45 days. */
|
|
3274
3298
|
previousPeriodCrashCount?: Maybe<Scalars['Int']['output']>;
|
|
@@ -3451,6 +3475,7 @@ export type AppObserveSessionSpanFilter = {
|
|
|
3451
3475
|
minDurationMs?: InputMaybe<Scalars['Float']['input']>;
|
|
3452
3476
|
names?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3453
3477
|
rootOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3478
|
+
scopes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3454
3479
|
statusCodes?: InputMaybe<Array<AppObserveSpanStatusCode>>;
|
|
3455
3480
|
};
|
|
3456
3481
|
export type AppObserveSpan = {
|
|
@@ -3489,6 +3514,11 @@ export type AppObserveSpan = {
|
|
|
3489
3514
|
/** Null for a root span. */
|
|
3490
3515
|
parentSpanId?: Maybe<Scalars['String']['output']>;
|
|
3491
3516
|
reactNativeVersion?: Maybe<Scalars['String']['output']>;
|
|
3517
|
+
/**
|
|
3518
|
+
* The instrumentation scope that produced the span (OTLP scopeSpans.scope.name), such as
|
|
3519
|
+
* expo-observe.network. Empty when the span was sent without a scope or stored before scopes were kept.
|
|
3520
|
+
*/
|
|
3521
|
+
scopeName: Scalars['String']['output'];
|
|
3492
3522
|
sessionId?: Maybe<Scalars['String']['output']>;
|
|
3493
3523
|
spanId: Scalars['String']['output'];
|
|
3494
3524
|
startTimestamp: Scalars['DateTime']['output'];
|
|
@@ -3564,6 +3594,8 @@ export type AppObserveSpanListFilter = {
|
|
|
3564
3594
|
platforms?: InputMaybe<Array<AppObservePlatform>>;
|
|
3565
3595
|
/** Only spans with no parent. */
|
|
3566
3596
|
rootOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3597
|
+
/** Spans produced by any of these instrumentation scopes, such as expo-observe.network. */
|
|
3598
|
+
scopes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3567
3599
|
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
3568
3600
|
startTime: Scalars['DateTime']['input'];
|
|
3569
3601
|
statusCodes?: InputMaybe<Array<AppObserveSpanStatusCode>>;
|
|
@@ -5715,7 +5747,7 @@ export type CreateAndConfigureRepositoryInput = {
|
|
|
5715
5747
|
installationIdentifier: Scalars['Int']['input'];
|
|
5716
5748
|
};
|
|
5717
5749
|
export type CreateAndroidDeviceRunSessionInput = {
|
|
5718
|
-
/** AVD hardware profile id to use for the emulator (e.g. "pixel_9"). */
|
|
5750
|
+
/** AVD hardware profile id to use for the emulator (e.g. "pixel_9"). Defaults to "medium_phone". */
|
|
5719
5751
|
deviceIdentifier?: InputMaybe<Scalars['String']['input']>;
|
|
5720
5752
|
/**
|
|
5721
5753
|
* Android SDK system image package to use for the emulator (e.g.
|
|
@@ -5949,7 +5981,10 @@ export type CreateGitHubRepositorySettingsInput = {
|
|
|
5949
5981
|
baseDirectory: Scalars['String']['input'];
|
|
5950
5982
|
};
|
|
5951
5983
|
export type CreateIosDeviceRunSessionInput = {
|
|
5952
|
-
/**
|
|
5984
|
+
/**
|
|
5985
|
+
* Simulator device name or UDID to use for the session (e.g. "iPhone 16 Pro"). Defaults to
|
|
5986
|
+
* "iPhone 17".
|
|
5987
|
+
*/
|
|
5953
5988
|
deviceIdentifier?: InputMaybe<Scalars['String']['input']>;
|
|
5954
5989
|
};
|
|
5955
5990
|
export type CreateIosSubmissionInput = {
|
|
@@ -6364,6 +6399,12 @@ export type DeviceRunSession = ActivityTimelineProjectActivity & {
|
|
|
6364
6399
|
*/
|
|
6365
6400
|
build?: Maybe<Build>;
|
|
6366
6401
|
createdAt: Scalars['DateTime']['output'];
|
|
6402
|
+
/**
|
|
6403
|
+
* The simulator or emulator the session starts: the requested simulator device
|
|
6404
|
+
* name or UDID on iOS, or the AVD hardware profile id on Android, or the platform
|
|
6405
|
+
* default when none is requested. Null on sessions created before it was saved.
|
|
6406
|
+
*/
|
|
6407
|
+
deviceIdentifier?: Maybe<Scalars['String']['output']>;
|
|
6367
6408
|
finishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
6368
6409
|
id: Scalars['ID']['output'];
|
|
6369
6410
|
initiatingActor?: Maybe<Actor>;
|
|
@@ -7462,7 +7503,7 @@ export type GitHubRepository = {
|
|
|
7462
7503
|
};
|
|
7463
7504
|
export type GitHubRepositoryMetadata = {
|
|
7464
7505
|
__typename?: 'GitHubRepositoryMetadata';
|
|
7465
|
-
defaultBranch
|
|
7506
|
+
defaultBranch: Scalars['String']['output'];
|
|
7466
7507
|
githubRepoDescription?: Maybe<Scalars['String']['output']>;
|
|
7467
7508
|
githubRepoName: Scalars['String']['output'];
|
|
7468
7509
|
githubRepoOwnerName: Scalars['String']['output'];
|
|
@@ -12436,7 +12477,19 @@ export type WorkflowRunFilterInput = {
|
|
|
12436
12477
|
export type WorkflowRunGitBranchFilterInput = {
|
|
12437
12478
|
searchTerm?: InputMaybe<Scalars['String']['input']>;
|
|
12438
12479
|
};
|
|
12480
|
+
/**
|
|
12481
|
+
* Git metadata for a run started from an uploaded project. The commit must exist in the
|
|
12482
|
+
* project's linked GitHub repository. The run records the branch and commit but is not
|
|
12483
|
+
* linked to the repository.
|
|
12484
|
+
*/
|
|
12485
|
+
export type WorkflowRunGitInput = {
|
|
12486
|
+
/** Branch name such as "main". Stored as refs/heads/<branch>. Fully qualified refs are rejected. */
|
|
12487
|
+
branch: Scalars['String']['input'];
|
|
12488
|
+
/** Full commit SHA. The commit message is read from GitHub. */
|
|
12489
|
+
commitHash: Scalars['String']['input'];
|
|
12490
|
+
};
|
|
12439
12491
|
export type WorkflowRunInput = {
|
|
12492
|
+
git?: InputMaybe<WorkflowRunGitInput>;
|
|
12440
12493
|
inputs?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
12441
12494
|
projectSource: WorkflowProjectSourceInput;
|
|
12442
12495
|
ssh?: InputMaybe<WorkflowRunSshInput>;
|
|
@@ -12524,6 +12577,7 @@ export declare enum WorkflowRunTriggerEventType {
|
|
|
12524
12577
|
GithubPush = "GITHUB_PUSH",
|
|
12525
12578
|
GithubRefDelete = "GITHUB_REF_DELETE",
|
|
12526
12579
|
Manual = "MANUAL",
|
|
12580
|
+
ObserveNewError = "OBSERVE_NEW_ERROR",
|
|
12527
12581
|
RepackExpoGo = "REPACK_EXPO_GO",
|
|
12528
12582
|
Schedule = "SCHEDULE",
|
|
12529
12583
|
SentryIssueArchived = "SENTRY_ISSUE_ARCHIVED",
|
|
@@ -1391,6 +1391,7 @@ var WorkflowRunTriggerEventType;
|
|
|
1391
1391
|
WorkflowRunTriggerEventType["GithubPush"] = "GITHUB_PUSH";
|
|
1392
1392
|
WorkflowRunTriggerEventType["GithubRefDelete"] = "GITHUB_REF_DELETE";
|
|
1393
1393
|
WorkflowRunTriggerEventType["Manual"] = "MANUAL";
|
|
1394
|
+
WorkflowRunTriggerEventType["ObserveNewError"] = "OBSERVE_NEW_ERROR";
|
|
1394
1395
|
WorkflowRunTriggerEventType["RepackExpoGo"] = "REPACK_EXPO_GO";
|
|
1395
1396
|
WorkflowRunTriggerEventType["Schedule"] = "SCHEDULE";
|
|
1396
1397
|
WorkflowRunTriggerEventType["SentryIssueArchived"] = "SENTRY_ISSUE_ARCHIVED";
|
package/build/ora.js
CHANGED
|
@@ -42,11 +42,27 @@ function ora(options) {
|
|
|
42
42
|
const onResize = () => {
|
|
43
43
|
spinner.text = spinner.text;
|
|
44
44
|
};
|
|
45
|
+
// Cork so each frame is one write; separate clear and text writes flicker.
|
|
46
|
+
const corkable = stream;
|
|
47
|
+
const corked = (write) => {
|
|
48
|
+
if (!corkable.cork || !corkable.uncork) {
|
|
49
|
+
return write();
|
|
50
|
+
}
|
|
51
|
+
corkable.cork();
|
|
52
|
+
try {
|
|
53
|
+
return write();
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
corkable.uncork();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const oraRender = spinner.render.bind(spinner);
|
|
60
|
+
spinner.render = () => corked(oraRender);
|
|
45
61
|
const oraStart = spinner.start.bind(spinner);
|
|
46
62
|
const oraStop = spinner.stop.bind(spinner);
|
|
47
63
|
const oraStopAndPersist = spinner.stopAndPersist.bind(spinner);
|
|
48
64
|
const logWrap = (method, args) => {
|
|
49
|
-
oraStop
|
|
65
|
+
corked(oraStop);
|
|
50
66
|
method(...args);
|
|
51
67
|
spinner.start();
|
|
52
68
|
};
|
|
@@ -101,13 +117,13 @@ function ora(options) {
|
|
|
101
117
|
return oraStart(text);
|
|
102
118
|
};
|
|
103
119
|
spinner.stopAndPersist = (options) => {
|
|
104
|
-
const result = oraStopAndPersist(options);
|
|
120
|
+
const result = corked(() => oraStopAndPersist(options));
|
|
105
121
|
resetNativeLogs();
|
|
106
122
|
stream.off('resize', onResize);
|
|
107
123
|
return result;
|
|
108
124
|
};
|
|
109
125
|
spinner.stop = () => {
|
|
110
|
-
const result = oraStop
|
|
126
|
+
const result = corked(oraStop);
|
|
111
127
|
resetNativeLogs();
|
|
112
128
|
stream.off('resize', onResize);
|
|
113
129
|
return result;
|