eas-cli 24.12.1 → 24.14.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/bin/run CHANGED
@@ -1,5 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ if (require('semver').lt(process.version, '22.0.0')) {
4
+ console.warn(
5
+ require('chalk').yellow(
6
+ `Node.js ${process.version} is deprecated. A future release of EAS CLI will require Node.js 22 or newer.`
7
+ )
8
+ );
9
+ }
10
+
3
11
  (async () => {
4
12
  const oclif = require('@oclif/core');
5
13
  await oclif.execute({ dir: __dirname });
@@ -293,7 +293,6 @@ async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildP
293
293
  }
294
294
  }
295
295
  }
296
- await (0, projectUtils_1.validateAppVersionRuntimePolicySupportAsync)(buildCtx.projectDir, buildCtx.exp);
297
296
  if (easJsonCliConfig?.appVersionSource === undefined &&
298
297
  buildProfile.profile.autoIncrement !== 'version') {
299
298
  if (buildProfile.profile.autoIncrement !== true) {
@@ -11,7 +11,7 @@ const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
11
11
  const log_1 = tslib_1.__importDefault(require("../../log"));
12
12
  const json_1 = require("../../utils/json");
13
13
  class ChannelProtect extends EasCommand_1.default {
14
- static description = 'protect a channel so only account admins can publish to it';
14
+ static description = 'protect a channel so only Release Managers, Admins, and Owners can publish to it';
15
15
  static args = {
16
16
  name: core_1.Args.string({
17
17
  required: false,
@@ -12,7 +12,7 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
12
12
  const prompts_1 = require("../../prompts");
13
13
  const json_1 = require("../../utils/json");
14
14
  class ChannelUnprotect extends EasCommand_1.default {
15
- static description = "remove a channel's admin-only publishing restriction";
15
+ static description = "remove a channel's protected publishing restriction";
16
16
  static args = {
17
17
  name: core_1.Args.string({
18
18
  required: false,
@@ -17,7 +17,7 @@ const planGating_1 = require("../../../workflow/insights/planGating");
17
17
  const DEFAULT_WORKFLOWS_LIMIT = 50;
18
18
  const MAX_WORKFLOWS_LIMIT = 100;
19
19
  class WorkflowInsights extends EasCommand_1.default {
20
- static description = 'display run counts, success rate, and per-workflow trends for a time range';
20
+ static description = 'display run counts, success rate, run durations, and per-workflow trends for a time range';
21
21
  static flags = {
22
22
  ...filters_1.WorkflowsInsightsSharedFilterFlags,
23
23
  status: core_1.Flags.option({
@@ -1,3 +1,4 @@
1
+ import { Platform } from '@expo/eas-build-job';
1
2
  import EasCommand from '../../../commandUtils/EasCommand';
2
3
  export default class WorkflowInsightsMaestro extends EasCommand {
3
4
  static description: string;
@@ -9,6 +10,7 @@ export default class WorkflowInsightsMaestro extends EasCommand {
9
10
  days: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
11
  start: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
12
  end: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
14
  status: import("@oclif/core/lib/interfaces").OptionFlag<("FAILED" | "PASSED" | "FLAKY")[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
15
  tag: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
14
16
  search: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const eas_build_job_1 = require("@expo/eas-build-job");
4
5
  const core_1 = require("@oclif/core");
5
6
  const EasCommand_1 = tslib_1.__importDefault(require("../../../commandUtils/EasCommand"));
6
7
  const flags_1 = require("../../../commandUtils/flags");
@@ -24,6 +25,11 @@ class WorkflowInsightsMaestro extends EasCommand_1.default {
24
25
  static description = "display Maestro test insights for a time range: pass and flake rates, per-flow stats, and a single flow's history";
25
26
  static flags = {
26
27
  ...filters_1.WorkflowsInsightsSharedFilterFlags,
28
+ platform: core_1.Flags.option({
29
+ description: 'Only include flow runs on this platform (can be specified multiple times).',
30
+ options: [eas_build_job_1.Platform.IOS, eas_build_job_1.Platform.ANDROID],
31
+ multiple: true,
32
+ })(),
27
33
  status: core_1.Flags.option({
28
34
  description: 'Only include flow runs with this status (can be specified multiple times). PASSED means passed on the first attempt.',
29
35
  options: maestroFilters_1.MAESTRO_STATUS_OPTIONS,
@@ -20,7 +20,6 @@ const nanoid_1 = require("nanoid");
20
20
  const path_1 = tslib_1.__importDefault(require("path"));
21
21
  const apple_utils_1 = require("@expo/apple-utils");
22
22
  const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
23
- const env_1 = tslib_1.__importDefault(require("../../../env"));
24
23
  const AppStoreConnectApiKeyQuery_1 = require("../../../graphql/queries/AppStoreConnectApiKeyQuery");
25
24
  const log_1 = tslib_1.__importStar(require("../../../log"));
26
25
  const prompts_1 = require("../../../prompts");
@@ -39,10 +38,7 @@ var AppStoreApiKeyPurpose;
39
38
  async function promptForAscApiKeyPathAsync(ctx, purpose) {
40
39
  // Individual keys are valid only as submission keys. Every other purpose
41
40
  // requires a team key, so the key type question is not asked there.
42
- // The option stays behind an env var until every server-side submission
43
- // path runs a fastlane version that accepts keys without an issuer ID.
44
- const isIndividualKey = !!env_1.default.enableIndividualAscApiKeys &&
45
- purpose === AppStoreApiKeyPurpose.SUBMISSION_SERVICE &&
41
+ const isIndividualKey = purpose === AppStoreApiKeyPurpose.SUBMISSION_SERVICE &&
46
42
  !ctx.nonInteractive &&
47
43
  (await promptForAscApiKeyTypeIsIndividualAsync());
48
44
  const { keyId, keyP8Path } = await promptForKeyP8AndIdAsync();
@@ -90,6 +86,10 @@ async function provideOrGenerateAscApiKeyAsync(ctx, purpose) {
90
86
  if (!userProvided) {
91
87
  return await generateAscApiKeyAsync(ctx, purpose);
92
88
  }
89
+ // The validation below supports team keys only.
90
+ if (!userProvided.issuerId) {
91
+ return userProvided;
92
+ }
93
93
  if (!ctx.appStore.authCtx) {
94
94
  log_1.default.warn('Unable to validate App Store Connect API Key, you are not authenticated with Apple.');
95
95
  return userProvided;
package/build/env.d.ts CHANGED
@@ -20,9 +20,5 @@ declare const _default: {
20
20
  * Comma separated list of feature gate keys of feature gates to evaluate override to false.
21
21
  */
22
22
  featureGateDisable: string | undefined;
23
- /**
24
- * Enables the individual App Store Connect API key option in the interactive submission key prompt.
25
- */
26
- enableIndividualAscApiKeys: string | undefined;
27
23
  };
28
24
  export default _default;
package/build/env.js CHANGED
@@ -22,8 +22,4 @@ exports.default = {
22
22
  * Comma separated list of feature gate keys of feature gates to evaluate override to false.
23
23
  */
24
24
  featureGateDisable: process.env.EAS_FG_DISABLE,
25
- /**
26
- * Enables the individual App Store Connect API key option in the interactive submission key prompt.
27
- */
28
- enableIndividualAscApiKeys: process.env.EAS_ENABLE_INDIVIDUAL_ASC_API_KEYS,
29
25
  };
@@ -2323,6 +2323,7 @@ export type AppObserveCustomEvent = {
2323
2323
  errorSource?: Maybe<Scalars['String']['output']>;
2324
2324
  eventName: Scalars['String']['output'];
2325
2325
  exceptionMessage?: Maybe<Scalars['String']['output']>;
2326
+ /** Symbolicated when a build or update with a matching source map exists; otherwise as reported. */
2326
2327
  exceptionStacktrace?: Maybe<Scalars['String']['output']>;
2327
2328
  /** Error fields below are populated only for exception events (eventName: exception). */
2328
2329
  exceptionType?: Maybe<Scalars['String']['output']>;
@@ -2335,8 +2336,10 @@ export type AppObserveCustomEvent = {
2335
2336
  sessionId?: Maybe<Scalars['String']['output']>;
2336
2337
  severityNumber?: Maybe<Scalars['Int']['output']>;
2337
2338
  severityText?: Maybe<Scalars['String']['output']>;
2338
- /** Build whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported. */
2339
+ /** Build whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported or was symbolicated from an update. */
2339
2340
  symbolicationBuild?: Maybe<Build>;
2341
+ /** Update whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported or was symbolicated from a build. */
2342
+ symbolicationUpdate?: Maybe<Update>;
2340
2343
  timestamp: Scalars['DateTime']['output'];
2341
2344
  };
2342
2345
  export type AppObserveCustomEventEdge = {
@@ -2473,10 +2476,12 @@ export type AppObserveError = AppObserveLog & {
2473
2476
  severityNumber?: Maybe<Scalars['Int']['output']>;
2474
2477
  severityText?: Maybe<Scalars['String']['output']>;
2475
2478
  source?: Maybe<Scalars['String']['output']>;
2476
- /** Symbolicated when a build with a matching source map exists; otherwise as reported. */
2479
+ /** Symbolicated when a build or update with a matching source map exists; otherwise as reported. */
2477
2480
  stacktrace?: Maybe<Scalars['String']['output']>;
2478
- /** Build whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported. */
2481
+ /** Build whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported or was symbolicated from an update. */
2479
2482
  symbolicationBuild?: Maybe<Build>;
2483
+ /** Update whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported or was symbolicated from a build. */
2484
+ symbolicationUpdate?: Maybe<Update>;
2480
2485
  timestamp: Scalars['DateTime']['output'];
2481
2486
  type?: Maybe<Scalars['String']['output']>;
2482
2487
  };
@@ -5815,6 +5820,16 @@ export type CreatePostHogDeepLinkInput = {
5815
5820
  /** Which EAS surface opened the link; omitted lets PostHog apply its own default. */
5816
5821
  purpose?: InputMaybe<PostHogDeepLinkPurpose>;
5817
5822
  };
5823
+ export type CreateSandboxArtifactUploadSessionInput = {
5824
+ filename: Scalars['String']['input'];
5825
+ name: Scalars['String']['input'];
5826
+ size: Scalars['ByteSize']['input'];
5827
+ };
5828
+ export type CreateSandboxArtifactUploadSessionResult = {
5829
+ __typename?: 'CreateSandboxArtifactUploadSessionResult';
5830
+ artifact: SandboxArtifact;
5831
+ uploadSession: SandboxArtifactUploadSession;
5832
+ };
5818
5833
  export type CreateSandboxInput = {
5819
5834
  agentRunId?: InputMaybe<Scalars['ID']['input']>;
5820
5835
  appId: Scalars['ID']['input'];
@@ -6436,6 +6451,7 @@ export declare enum EasService {
6436
6451
  Jobs = "JOBS",
6437
6452
  Mcp = "MCP",
6438
6453
  Observe = "OBSERVE",
6454
+ Simulator = "SIMULATOR",
6439
6455
  Updates = "UPDATES"
6440
6456
  }
6441
6457
  export declare enum EasServiceMetric {
@@ -6447,6 +6463,7 @@ export declare enum EasServiceMetric {
6447
6463
  McpRequests = "MCP_REQUESTS",
6448
6464
  ObserveEvents = "OBSERVE_EVENTS",
6449
6465
  RunTime = "RUN_TIME",
6466
+ SimulatorUsage = "SIMULATOR_USAGE",
6450
6467
  UniqueUpdaters = "UNIQUE_UPDATERS",
6451
6468
  UniqueUsers = "UNIQUE_USERS"
6452
6469
  }
@@ -6460,6 +6477,7 @@ export declare enum EasTotalPlanEnablementUnit {
6460
6477
  Byte = "BYTE",
6461
6478
  Concurrency = "CONCURRENCY",
6462
6479
  Event = "EVENT",
6480
+ Minute = "MINUTE",
6463
6481
  Request = "REQUEST",
6464
6482
  Updater = "UPDATER",
6465
6483
  User = "USER"
@@ -7305,6 +7323,7 @@ export type EstimatedOverageAndCost = {
7305
7323
  export type EstimatedUsage = {
7306
7324
  __typename?: 'EstimatedUsage';
7307
7325
  id: Scalars['ID']['output'];
7326
+ jobTypeBreakdown?: Maybe<EstimatedUsageJobTypeBreakdown>;
7308
7327
  limit: Scalars['Float']['output'];
7309
7328
  metricType: UsageMetricType;
7310
7329
  platformBreakdown?: Maybe<EstimatedUsagePlatformBreakdown>;
@@ -7312,6 +7331,12 @@ export type EstimatedUsage = {
7312
7331
  serviceMetric: EasServiceMetric;
7313
7332
  value: Scalars['Float']['output'];
7314
7333
  };
7334
+ export type EstimatedUsageJobTypeBreakdown = {
7335
+ __typename?: 'EstimatedUsageJobTypeBreakdown';
7336
+ other: Scalars['Float']['output'];
7337
+ simulator: Scalars['Float']['output'];
7338
+ workflows: Scalars['Float']['output'];
7339
+ };
7315
7340
  export type EstimatedUsagePlatformBreakdown = {
7316
7341
  __typename?: 'EstimatedUsagePlatformBreakdown';
7317
7342
  android: EstimatedUsagePlatformDetail;
@@ -9410,6 +9435,7 @@ export type RootQuery = {
9410
9435
  posthogIntegration: PostHogIntegrationQuery;
9411
9436
  /** Top-level query object for querying Runtimes. */
9412
9437
  runtimes: RuntimeQuery;
9438
+ sandboxArtifacts: SandboxArtifactQuery;
9413
9439
  sandboxes: SandboxQuery;
9414
9440
  snack: SnackQuery;
9415
9441
  /** Top-level query object for querying Expo status page services. */
@@ -9420,6 +9446,7 @@ export type RootQuery = {
9420
9446
  updates: UpdateQuery;
9421
9447
  /** fetch all updates in a group */
9422
9448
  updatesByGroup: Array<Update>;
9449
+ usageBudget: UsageBudgetQuery;
9423
9450
  /** Top-level query object for querying UserActorPublicData publicly. */
9424
9451
  userActorPublicData: UserActorPublicDataQuery;
9425
9452
  /** Top-level query object for querying User Audit Logs. */
@@ -9622,6 +9649,7 @@ export type SsoUserDataInput = {
9622
9649
  export type Sandbox = {
9623
9650
  __typename?: 'Sandbox';
9624
9651
  app: App;
9652
+ artifacts: Array<SandboxArtifact>;
9625
9653
  createdAt: Scalars['DateTime']['output'];
9626
9654
  finishedAt?: Maybe<Scalars['DateTime']['output']>;
9627
9655
  id: Scalars['ID']['output'];
@@ -9631,6 +9659,29 @@ export type Sandbox = {
9631
9659
  turtleJobRun: JobRun;
9632
9660
  updatedAt: Scalars['DateTime']['output'];
9633
9661
  };
9662
+ export type SandboxArtifact = {
9663
+ __typename?: 'SandboxArtifact';
9664
+ createdAt: Scalars['DateTime']['output'];
9665
+ downloadUrl?: Maybe<Scalars['String']['output']>;
9666
+ fileSizeBytes?: Maybe<Scalars['ByteSize']['output']>;
9667
+ filename: Scalars['String']['output'];
9668
+ id: Scalars['ID']['output'];
9669
+ name: Scalars['String']['output'];
9670
+ sandbox: Sandbox;
9671
+ updatedAt: Scalars['DateTime']['output'];
9672
+ };
9673
+ export type SandboxArtifactQuery = {
9674
+ __typename?: 'SandboxArtifactQuery';
9675
+ byId: SandboxArtifact;
9676
+ };
9677
+ export type SandboxArtifactQuery_ByIdArgs = {
9678
+ sandboxArtifactId: Scalars['ID']['input'];
9679
+ };
9680
+ export type SandboxArtifactUploadSession = {
9681
+ __typename?: 'SandboxArtifactUploadSession';
9682
+ headers: Scalars['JSONObject']['output'];
9683
+ url: Scalars['String']['output'];
9684
+ };
9634
9685
  export type SandboxConnection = {
9635
9686
  __typename?: 'SandboxConnection';
9636
9687
  edges: Array<SandboxEdge>;
@@ -9646,14 +9697,23 @@ export type SandboxFilterInput = {
9646
9697
  };
9647
9698
  export type SandboxMutation = {
9648
9699
  __typename?: 'SandboxMutation';
9700
+ createArtifactUploadSession: CreateSandboxArtifactUploadSessionResult;
9649
9701
  createSandbox: Sandbox;
9702
+ finalizeArtifact: SandboxArtifact;
9650
9703
  markSandboxReady: Sandbox;
9651
9704
  stopSandbox: Sandbox;
9652
9705
  touchSandbox: Sandbox;
9653
9706
  };
9707
+ export type SandboxMutation_CreateArtifactUploadSessionArgs = {
9708
+ input: CreateSandboxArtifactUploadSessionInput;
9709
+ sandboxId: Scalars['ID']['input'];
9710
+ };
9654
9711
  export type SandboxMutation_CreateSandboxArgs = {
9655
9712
  input: CreateSandboxInput;
9656
9713
  };
9714
+ export type SandboxMutation_FinalizeArtifactArgs = {
9715
+ artifactId: Scalars['ID']['input'];
9716
+ };
9657
9717
  export type SandboxMutation_MarkSandboxReadyArgs = {
9658
9718
  sandboxId: Scalars['ID']['input'];
9659
9719
  };
@@ -10087,6 +10147,7 @@ export type SubmissionMutation = {
10087
10147
  createAndroidSubmission: CreateSubmissionResult;
10088
10148
  /** Create an iOS EAS Submit submission */
10089
10149
  createIosSubmission: CreateSubmissionResult;
10150
+ generateSubmissionArchiveDownloadUrl: Scalars['String']['output'];
10090
10151
  /** Retry an EAS Submit submission */
10091
10152
  retrySubmission: CreateSubmissionResult;
10092
10153
  };
@@ -10099,6 +10160,9 @@ export type SubmissionMutation_CreateAndroidSubmissionArgs = {
10099
10160
  export type SubmissionMutation_CreateIosSubmissionArgs = {
10100
10161
  input: CreateIosSubmissionInput;
10101
10162
  };
10163
+ export type SubmissionMutation_GenerateSubmissionArchiveDownloadUrlArgs = {
10164
+ submissionId: Scalars['ID']['input'];
10165
+ };
10102
10166
  export type SubmissionMutation_RetrySubmissionArgs = {
10103
10167
  parentSubmissionId: Scalars['ID']['input'];
10104
10168
  };
@@ -10985,6 +11049,7 @@ export type UsageBudget = {
10985
11049
  __typename?: 'UsageBudget';
10986
11050
  id: Scalars['ID']['output'];
10987
11051
  limits: UsageBudgetLimits;
11052
+ remaining: UsageBudgetRemaining;
10988
11053
  };
10989
11054
  export type UsageBudgetLimits = {
10990
11055
  __typename?: 'UsageBudgetLimits';
@@ -11002,6 +11067,20 @@ export type UsageBudgetMutation = {
11002
11067
  export type UsageBudgetMutation_CreateUsageBudgetArgs = {
11003
11068
  limits: UsageBudgetLimitsInput;
11004
11069
  };
11070
+ export type UsageBudgetQuery = {
11071
+ __typename?: 'UsageBudgetQuery';
11072
+ byId: UsageBudget;
11073
+ };
11074
+ export type UsageBudgetQuery_ByIdArgs = {
11075
+ id: Scalars['ID']['input'];
11076
+ };
11077
+ export type UsageBudgetRemaining = {
11078
+ __typename?: 'UsageBudgetRemaining';
11079
+ /** Available builds, or null when there is no build limit. */
11080
+ builds?: Maybe<Scalars['Int']['output']>;
11081
+ /** Available minutes after completed usage and active reservations, or null when unlimited. */
11082
+ simulatorMinutes?: Maybe<Scalars['Float']['output']>;
11083
+ };
11005
11084
  export type UsageMetricTotal = {
11006
11085
  __typename?: 'UsageMetricTotal';
11007
11086
  billingPeriod: BillingPeriod;
@@ -12251,6 +12330,8 @@ export type WorkflowDeviceTestCaseHistory_TimeSeriesArgs = {
12251
12330
  };
12252
12331
  export type WorkflowDeviceTestCaseHistoryFiltersInput = {
12253
12332
  gitRefs?: InputMaybe<Array<Scalars['String']['input']>>;
12333
+ /** Runs whose platform is unknown match no platforms filter. */
12334
+ platforms?: InputMaybe<Array<AppPlatform>>;
12254
12335
  workflowIds?: InputMaybe<Array<Scalars['ID']['input']>>;
12255
12336
  };
12256
12337
  export type WorkflowDeviceTestCaseInsights = {
@@ -12291,6 +12372,8 @@ export type WorkflowDeviceTestCaseInsightsFacets = {
12291
12372
  };
12292
12373
  export type WorkflowDeviceTestCaseInsightsFiltersInput = {
12293
12374
  gitRefs?: InputMaybe<Array<Scalars['String']['input']>>;
12375
+ /** Runs whose platform is unknown match no platforms filter. */
12376
+ platforms?: InputMaybe<Array<AppPlatform>>;
12294
12377
  statuses?: InputMaybe<Array<WorkflowDeviceTestCaseStatusFilter>>;
12295
12378
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
12296
12379
  workflowIds?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -12335,6 +12418,7 @@ export type WorkflowDeviceTestCaseInsightsTimespanInput = {
12335
12418
  * pair on each metric.
12336
12419
  *
12337
12420
  * totalRuns = passedCleanCount + flakyCount + failedCount (over is_final_attempt=1 rows).
12421
+ * platforms splits totalRuns by platform.
12338
12422
  * distinctFlakyTestCount cannot be derived in the frontend from per-test rows
12339
12423
  * because pagination means the frontend doesn't see all test paths.
12340
12424
  */
@@ -12346,6 +12430,21 @@ export type WorkflowDeviceTestCaseInsightsTotals = {
12346
12430
  flakyCount: WorkflowDeviceTestCaseInsightsMetric;
12347
12431
  p90DurationMs: WorkflowDeviceTestCaseInsightsNullableMetric;
12348
12432
  passedCleanCount: WorkflowDeviceTestCaseInsightsMetric;
12433
+ /**
12434
+ * One entry per platform with runs in the current or previous window, in the order iOS,
12435
+ * Android, unknown.
12436
+ */
12437
+ platforms: Array<WorkflowDeviceTestCasePlatformTotals>;
12438
+ totalRuns: WorkflowDeviceTestCaseInsightsMetric;
12439
+ };
12440
+ export type WorkflowDeviceTestCasePlatformTotals = {
12441
+ __typename?: 'WorkflowDeviceTestCasePlatformTotals';
12442
+ distinctTestCount: WorkflowDeviceTestCaseInsightsMetric;
12443
+ /**
12444
+ * Null for runs whose platform could not be derived: Maestro runs in custom jobs, and
12445
+ * runs ingested before the platform was recorded.
12446
+ */
12447
+ platform?: Maybe<AppPlatform>;
12349
12448
  totalRuns: WorkflowDeviceTestCaseInsightsMetric;
12350
12449
  };
12351
12450
  /**
@@ -12610,6 +12709,7 @@ export declare enum WorkflowJobStatus {
12610
12709
  Success = "SUCCESS"
12611
12710
  }
12612
12711
  export declare enum WorkflowJobType {
12712
+ Agent = "AGENT",
12613
12713
  AppleDeviceRegistrationRequest = "APPLE_DEVICE_REGISTRATION_REQUEST",
12614
12714
  BranchDelete = "BRANCH_DELETE",
12615
12715
  Build = "BUILD",
@@ -12742,7 +12842,7 @@ export type WorkflowRun = ActivityTimelineProjectActivity & {
12742
12842
  workflow: Workflow;
12743
12843
  workflowRevision?: Maybe<WorkflowRevision>;
12744
12844
  };
12745
- export type WorkflowRunCancelReason = WorkflowRunCancelReasonConcurrencyGroup;
12845
+ export type WorkflowRunCancelReason = WorkflowRunCancelReasonConcurrencyGroup | WorkflowRunCancelReasonWorkflowCall;
12746
12846
  export type WorkflowRunCancelReasonConcurrencyGroup = {
12747
12847
  __typename?: 'WorkflowRunCancelReasonConcurrencyGroup';
12748
12848
  /**
@@ -12751,6 +12851,14 @@ export type WorkflowRunCancelReasonConcurrencyGroup = {
12751
12851
  */
12752
12852
  cancelingWorkflowRun?: Maybe<WorkflowRun>;
12753
12853
  };
12854
+ export type WorkflowRunCancelReasonWorkflowCall = {
12855
+ __typename?: 'WorkflowRunCancelReasonWorkflowCall';
12856
+ /**
12857
+ * The run that called this run through workflow_call and whose cancellation
12858
+ * canceled this run. Null if that run no longer exists.
12859
+ */
12860
+ parentWorkflowRun?: Maybe<WorkflowRun>;
12861
+ };
12754
12862
  export type WorkflowRunEdge = {
12755
12863
  __typename?: 'WorkflowRunEdge';
12756
12864
  cursor: Scalars['String']['output'];
@@ -12898,11 +13006,27 @@ export type WorkflowsInsightsMutation = {
12898
13006
  export type WorkflowsInsightsMutation_ExportWorkflowRunsArgs = {
12899
13007
  input: WorkflowsInsightsExportInput;
12900
13008
  };
13009
+ /**
13010
+ * Same shape as WorkflowsInsightsMetric but nullable on both sides. Null means the window had
13011
+ * no qualifying run, which is different from 0.
13012
+ */
13013
+ export type WorkflowsInsightsNullableMetric = {
13014
+ __typename?: 'WorkflowsInsightsNullableMetric';
13015
+ currentValue?: Maybe<Scalars['Float']['output']>;
13016
+ previousValue?: Maybe<Scalars['Float']['output']>;
13017
+ };
12901
13018
  export type WorkflowsInsightsOverviewMetrics = {
12902
13019
  __typename?: 'WorkflowsInsightsOverviewMetrics';
12903
13020
  activeWorkflows: WorkflowsInsightsMetric;
13021
+ /**
13022
+ * Mean milliseconds from run creation to finalization, the same duration the run page shows,
13023
+ * so queue and approval wait count. Canceled runs are excluded.
13024
+ */
13025
+ avgDurationMs: WorkflowsInsightsNullableMetric;
12904
13026
  canceledRuns: WorkflowsInsightsMetric;
12905
13027
  failedRuns: WorkflowsInsightsMetric;
13028
+ /** Approximate 75th percentile of the same duration, excluding canceled runs. */
13029
+ p75DurationMs: WorkflowsInsightsNullableMetric;
12906
13030
  successfulRuns: WorkflowsInsightsMetric;
12907
13031
  totalRuns: WorkflowsInsightsMetric;
12908
13032
  };
@@ -12939,10 +13063,12 @@ export type WorkflowsInsightsWorkflowMetrics = {
12939
13063
  };
12940
13064
  export type WorkflowsInsightsWorkflowNode = {
12941
13065
  __typename?: 'WorkflowsInsightsWorkflowNode';
13066
+ avgDurationMs?: Maybe<Scalars['Float']['output']>;
12942
13067
  canceledRuns: Scalars['Int']['output'];
12943
13068
  failedRuns: Scalars['Int']['output'];
12944
13069
  lastRunAt: Scalars['DateTime']['output'];
12945
13070
  name: Scalars['String']['output'];
13071
+ p75DurationMs?: Maybe<Scalars['Float']['output']>;
12946
13072
  successfulRuns: Scalars['Int']['output'];
12947
13073
  totalRuns: Scalars['Int']['output'];
12948
13074
  workflowId: Scalars['ID']['output'];
@@ -22611,6 +22737,20 @@ export type WorkflowDeviceTestCaseInsightsByAppIdQuery = {
22611
22737
  currentValue?: number | null;
22612
22738
  previousValue?: number | null;
22613
22739
  };
22740
+ platforms: Array<{
22741
+ __typename?: 'WorkflowDeviceTestCasePlatformTotals';
22742
+ platform?: AppPlatform | null;
22743
+ totalRuns: {
22744
+ __typename?: 'WorkflowDeviceTestCaseInsightsMetric';
22745
+ currentValue: number;
22746
+ previousValue: number;
22747
+ };
22748
+ distinctTestCount: {
22749
+ __typename?: 'WorkflowDeviceTestCaseInsightsMetric';
22750
+ currentValue: number;
22751
+ previousValue: number;
22752
+ };
22753
+ }>;
22614
22754
  };
22615
22755
  timeSeries: Array<{
22616
22756
  __typename?: 'WorkflowDeviceTestCaseInsightsBucket';
@@ -23299,6 +23439,16 @@ export type WorkflowsInsightsByAppIdQuery = {
23299
23439
  currentValue: number;
23300
23440
  previousValue: number;
23301
23441
  };
23442
+ avgDurationMs: {
23443
+ __typename?: 'WorkflowsInsightsNullableMetric';
23444
+ currentValue?: number | null;
23445
+ previousValue?: number | null;
23446
+ };
23447
+ p75DurationMs: {
23448
+ __typename?: 'WorkflowsInsightsNullableMetric';
23449
+ currentValue?: number | null;
23450
+ previousValue?: number | null;
23451
+ };
23302
23452
  };
23303
23453
  runsOverTime: {
23304
23454
  __typename?: 'WorkflowsInsightsRunsOverTimeData';
@@ -23324,6 +23474,8 @@ export type WorkflowsInsightsByAppIdQuery = {
23324
23474
  successfulRuns: number;
23325
23475
  failedRuns: number;
23326
23476
  canceledRuns: number;
23477
+ avgDurationMs?: number | null;
23478
+ p75DurationMs?: number | null;
23327
23479
  lastRunAt: any;
23328
23480
  };
23329
23481
  }>;
@@ -597,6 +597,7 @@ var EasService;
597
597
  EasService["Jobs"] = "JOBS";
598
598
  EasService["Mcp"] = "MCP";
599
599
  EasService["Observe"] = "OBSERVE";
600
+ EasService["Simulator"] = "SIMULATOR";
600
601
  EasService["Updates"] = "UPDATES";
601
602
  })(EasService || (exports.EasService = EasService = {}));
602
603
  var EasServiceMetric;
@@ -609,6 +610,7 @@ var EasServiceMetric;
609
610
  EasServiceMetric["McpRequests"] = "MCP_REQUESTS";
610
611
  EasServiceMetric["ObserveEvents"] = "OBSERVE_EVENTS";
611
612
  EasServiceMetric["RunTime"] = "RUN_TIME";
613
+ EasServiceMetric["SimulatorUsage"] = "SIMULATOR_USAGE";
612
614
  EasServiceMetric["UniqueUpdaters"] = "UNIQUE_UPDATERS";
613
615
  EasServiceMetric["UniqueUsers"] = "UNIQUE_USERS";
614
616
  })(EasServiceMetric || (exports.EasServiceMetric = EasServiceMetric = {}));
@@ -618,6 +620,7 @@ var EasTotalPlanEnablementUnit;
618
620
  EasTotalPlanEnablementUnit["Byte"] = "BYTE";
619
621
  EasTotalPlanEnablementUnit["Concurrency"] = "CONCURRENCY";
620
622
  EasTotalPlanEnablementUnit["Event"] = "EVENT";
623
+ EasTotalPlanEnablementUnit["Minute"] = "MINUTE";
621
624
  EasTotalPlanEnablementUnit["Request"] = "REQUEST";
622
625
  EasTotalPlanEnablementUnit["Updater"] = "UPDATER";
623
626
  EasTotalPlanEnablementUnit["User"] = "USER";
@@ -1370,6 +1373,7 @@ var WorkflowJobStatus;
1370
1373
  })(WorkflowJobStatus || (exports.WorkflowJobStatus = WorkflowJobStatus = {}));
1371
1374
  var WorkflowJobType;
1372
1375
  (function (WorkflowJobType) {
1376
+ WorkflowJobType["Agent"] = "AGENT";
1373
1377
  WorkflowJobType["AppleDeviceRegistrationRequest"] = "APPLE_DEVICE_REGISTRATION_REQUEST";
1374
1378
  WorkflowJobType["BranchDelete"] = "BRANCH_DELETE";
1375
1379
  WorkflowJobType["Build"] = "BUILD";
@@ -45,6 +45,17 @@ exports.WorkflowDeviceTestCaseInsightsQuery = {
45
45
  currentValue
46
46
  previousValue
47
47
  }
48
+ platforms {
49
+ platform
50
+ totalRuns {
51
+ currentValue
52
+ previousValue
53
+ }
54
+ distinctTestCount {
55
+ currentValue
56
+ previousValue
57
+ }
58
+ }
48
59
  }
49
60
  timeSeries(granularity: $granularity) {
50
61
  bucketStartAt
@@ -41,6 +41,14 @@ exports.WorkflowsInsightsQuery = {
41
41
  currentValue
42
42
  previousValue
43
43
  }
44
+ avgDurationMs {
45
+ currentValue
46
+ previousValue
47
+ }
48
+ p75DurationMs {
49
+ currentValue
50
+ previousValue
51
+ }
44
52
  }
45
53
  runsOverTime(timespan: $timespan, filters: $filters, granularity: $granularity) {
46
54
  lineChart {
@@ -60,6 +68,8 @@ exports.WorkflowsInsightsQuery = {
60
68
  successfulRuns
61
69
  failedRuns
62
70
  canceledRuns
71
+ avgDurationMs
72
+ p75DurationMs
63
73
  lastRunAt
64
74
  }
65
75
  }
@@ -7,6 +7,14 @@ export declare function toMetricSummary(metric: {
7
7
  currentValue: number;
8
8
  previousValue: number;
9
9
  }): InsightsMetricSummary;
10
+ export interface NullableMetricSummary {
11
+ current: number | null;
12
+ previous: number | null;
13
+ }
14
+ export declare function toNullableMetricSummary(metric: {
15
+ currentValue?: number | null;
16
+ previousValue?: number | null;
17
+ }): NullableMetricSummary;
10
18
  export declare function ratePercent(part: number, total: number): number;
11
19
  export declare function formatPercent(value: number): string;
12
20
  export declare function formatCountWithTrend(metric: InsightsMetricSummary, options?: {
@@ -20,3 +28,6 @@ export declare function formatRateWithDelta(rate: InsightsMetricSummary, totalRu
20
28
  export declare function formatTrend(metric: InsightsMetricSummary, { lowerIsBetter }?: {
21
29
  lowerIsBetter?: boolean;
22
30
  }): string;
31
+ export declare function formatNullableMetricWithTrend(metric: NullableMetricSummary, formatValue: (value: number) => string, options?: {
32
+ lowerIsBetter?: boolean;
33
+ }): string;
@@ -1,16 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toMetricSummary = toMetricSummary;
4
+ exports.toNullableMetricSummary = toNullableMetricSummary;
4
5
  exports.ratePercent = ratePercent;
5
6
  exports.formatPercent = formatPercent;
6
7
  exports.formatCountWithTrend = formatCountWithTrend;
7
8
  exports.formatRateWithDelta = formatRateWithDelta;
8
9
  exports.formatTrend = formatTrend;
10
+ exports.formatNullableMetricWithTrend = formatNullableMetricWithTrend;
9
11
  const tslib_1 = require("tslib");
10
12
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
11
13
  function toMetricSummary(metric) {
12
14
  return { current: metric.currentValue, previous: metric.previousValue };
13
15
  }
16
+ function toNullableMetricSummary(metric) {
17
+ return { current: metric.currentValue ?? null, previous: metric.previousValue ?? null };
18
+ }
14
19
  function ratePercent(part, total) {
15
20
  return total === 0 ? 0 : (part / total) * 100;
16
21
  }
@@ -39,6 +44,15 @@ function formatTrend(metric, { lowerIsBetter = false } = {}) {
39
44
  const pct = ((metric.current - metric.previous) / metric.previous) * 100;
40
45
  return formatSignedChange(pct, '%', lowerIsBetter ? pct < 0 : pct > 0);
41
46
  }
47
+ function formatNullableMetricWithTrend(metric, formatValue, options) {
48
+ if (metric.current === null) {
49
+ return chalk_1.default.dim('n/a');
50
+ }
51
+ const trend = metric.previous === null
52
+ ? chalk_1.default.dim('n/a')
53
+ : formatTrend({ current: metric.current, previous: metric.previous }, options);
54
+ return `${formatValue(metric.current)} (${trend})`;
55
+ }
42
56
  function formatSignedChange(value, unit, isImprovement) {
43
57
  if (value === 0) {
44
58
  return chalk_1.default.dim(`0.0${unit}`);