eas-cli 21.0.1 → 21.0.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.
@@ -26,5 +26,6 @@ export default class BuildInspect extends EasCommand {
26
26
  runAsync(): Promise<void>;
27
27
  private prepareOutputDirAsync;
28
28
  private copyToOutputDirAsync;
29
+ private cleanUpTmpWorkingdirAsync;
29
30
  }
30
31
  export {};
@@ -121,6 +121,7 @@ class BuildInspect extends EasCommand_1.default {
121
121
  }
122
122
  finally {
123
123
  await this.copyToOutputDirAsync(path_1.default.join(tmpWorkingdir, 'build'), outputDirectory);
124
+ await this.cleanUpTmpWorkingdirAsync(tmpWorkingdir);
124
125
  }
125
126
  }
126
127
  }
@@ -149,5 +150,14 @@ class BuildInspect extends EasCommand_1.default {
149
150
  throw err;
150
151
  }
151
152
  }
153
+ async cleanUpTmpWorkingdirAsync(tmpWorkingdir) {
154
+ try {
155
+ await fs_extra_1.default.remove(tmpWorkingdir);
156
+ }
157
+ catch (err) {
158
+ log_1.default.warn(`Failed to remove temporary directory ${tmpWorkingdir}`);
159
+ log_1.default.debug(err);
160
+ }
161
+ }
152
162
  }
153
163
  exports.default = BuildInspect;
@@ -8086,7 +8086,8 @@ export type SentryProjectMutationDeleteSentryProjectArgs = {
8086
8086
  export type ServeSimRunSessionRemoteConfig = {
8087
8087
  __typename?: 'ServeSimRunSessionRemoteConfig';
8088
8088
  previewUrl: Scalars['String']['output'];
8089
- streamUrl: Scalars['String']['output'];
8089
+ /** @deprecated Use previewUrl instead. */
8090
+ streamUrl?: Maybe<Scalars['String']['output']>;
8090
8091
  };
8091
8092
  export type SetupConvexProjectInput = {
8092
8093
  appId: Scalars['ID']['input'];
@@ -16439,6 +16440,11 @@ export type AccountUsageForOverageWarningQuery = {
16439
16440
  __typename?: 'EstimatedOverageAndCost';
16440
16441
  id: string;
16441
16442
  value: number;
16443
+ metadata?: {
16444
+ __typename?: 'AccountUsageEASBuildMetadata';
16445
+ billingResourceClass?: EasBuildBillingResourceClass | null;
16446
+ platform?: AppPlatform | null;
16447
+ } | null;
16442
16448
  }>;
16443
16449
  };
16444
16450
  };
@@ -17998,7 +18004,6 @@ export type DeviceRunSessionByIdQuery = {
17998
18004
  } | {
17999
18005
  __typename: 'ServeSimRunSessionRemoteConfig';
18000
18006
  previewUrl: string;
18001
- streamUrl: string;
18002
18007
  } | null;
18003
18008
  turtleJobRun?: {
18004
18009
  __typename?: 'JobRun';
@@ -157,6 +157,12 @@ exports.AccountQuery = {
157
157
  overageMetrics {
158
158
  id
159
159
  value
160
+ metadata {
161
+ ... on AccountUsageEASBuildMetadata {
162
+ billingResourceClass
163
+ platform
164
+ }
165
+ }
160
166
  }
161
167
  totalCost
162
168
  }
@@ -51,7 +51,6 @@ exports.DeviceRunSessionQuery = {
51
51
  }
52
52
  ... on ServeSimRunSessionRemoteConfig {
53
53
  previewUrl
54
- streamUrl
55
54
  }
56
55
  }
57
56
  turtleJobRun {
@@ -23,7 +23,12 @@ async function maybeWarnAboutUsageOveragesAsync({ graphqlClient, accountId, }) {
23
23
  if (!planMetric || !subscription) {
24
24
  return;
25
25
  }
26
- const overageCount = buildMetrics.overageMetrics.reduce((sum, o) => sum + o.value, 0);
26
+ // Count only genuine per-worker build overage rows. `overageMetrics` can also
27
+ // contain rows without build metadata (e.g. rollups), which must not be summed
28
+ // in — otherwise the displayed "N builds beyond your credits" count is inflated.
29
+ const overageCount = buildMetrics.overageMetrics
30
+ .filter(o => o.metadata?.billingResourceClass && o.metadata?.platform)
31
+ .reduce((sum, o) => sum + o.value, 0);
27
32
  const overageCostCents = buildMetrics.totalCost;
28
33
  const hasFreePlan = subscription.name === 'Free';
29
34
  const tier = classifyUsageTier({