Compare commits

..
Author SHA1 Message Date
Expo CI 67972c5d6a v27.11.0 2026-11-19 16:17:39 +00:00
Mustafa Abban d88708d842 [eas-build-job] support Observe error occurrence events (#4860) 2026-11-19 10:41:38 -05:00
expo-tuft[bot] 13056cac22 [build-tools] report the installed app identifier in the agent-device remote config (#4831) 2026-11-19 18:02:26 +08:00
David Mokos 1b45814e3c updates agent-cli-detector to 0.1.8 (#4912) 2026-11-19 00:34:22 +01:00
Tomasz Mazur 8d00e33806 [build-tools] Compress dSYMs with zip level 1 in fastlane gym (#4909) 2026-11-18 21:05:24 +01:00
Szymon Świerk f27e7988a1 [eas-build-job] Accept issue_comment as a workflow github.event_name (#4906) 2026-11-17 18:45:59 +01:00
Gabe DebesandClaude Opus 5.5 b4e4229464 [build-tools] Add step functions to record simulator crash artifacts (#4596)
* [build-tools] Collect simulator crash artifacts

* [build-tools] Use shared crash artifact upload deadlines

* [build-tools] Link crash artifact changelog entry

* [build-tools] Bound crash collection retries and uploads

* [build-tools] Keep retrying productive crash streams

* [build-tools] preserve crash shutdown mock in merged host tests

* Save individual native IPS crash artifacts

* [build-tools] Keep missing crash reports outside artifact limits

* [build-tools] Verify missing crash reports across reconnects

* [build-tools] Reserve crash collection before asynchronous setup

* [build-tools] Release failed crash recorder initialization

* [build-tools] Address crash artifact review findings

Skip a crash occurrence whose detail fails or exceeds 8 MiB instead of
reconnecting, and check each device's crash list once more on stop so
occurrences the stream had not delivered are kept. Key occurrences by
capture time and report path, merge the seen and skipped sets, create the
directory before the session is registered, and log dropped errors.
Artifacts are now kind simulator-crash with per-device numbered ids,
names, and filenames.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Retry transient crash detail failures

Try a failed crash detail up to three times before skipping it; skip a
missing, mismatched, malformed, or oversized detail at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Address second crash artifact review

Keep each device's serve-sim address current for the final pass, warn
when its deadline stops a device, report poller and upload failures to
Sentry, name failed uploads by report, and fall back to the process name
when the app name is empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Skip crash details that a retry cannot fix

Treat invalid JSON and permanent 4xx responses as unusable, so they are
not retried three times before later reports are collected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Upload crash reports with the shared file upload helper

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-16 16:09:00 -07:00
Gabe DebesandClaude Opus 5.5 a04489e678 [build-tools] Add step functions to record simulator HAR artifacts (#4495)
* [build-tools] record network capture with serve-sim capture har steps

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* [build-tools] Rename the network capture recording step

Edited-by: Codex

* [build-tools] Remove the capture recorder command override

Edited-by: Codex

* [build-tools] Bound failed network capture followers

* [build-tools] Limit HAR artifact uploads to 500 MiB

* [build-tools] Address HAR capture review findings

Rename the record step to eas/start_serve_sim_network_capture and the
upload helper to a one-file serveSimNetworkCaptureArtifacts; the collect
step numbers parts. Count HARs by their entry log so empty recordings
are neither uploaded nor use recording slots, give followers that record
nothing a slower restart and a separate start cap, drop the spawn
failure throttle and unreachable guards, and allow 60 s for the final
HAR rebuild with followers stopped together.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Bound HAR recording slots and uploads

Exited followers that recorded nothing no longer use recording slots, a
restarted serve-sim replaces the old identity's follower, the recording
limit warns once, and each HAR upload has a 10-minute limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Keep the ngrok token from the HAR follower

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Drop requests a restarted HAR follower replays

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Keep unflushed HAR requests and remove replayed parts

Rebuild every kept HAR from its entry log before its requests count as
recorded, and delete the files of a follower that held only replayed
requests when it is dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Upload network captures with the shared file upload helper

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* [build-tools] Import formatBytes from eas-build-job

Main moved formatBytes into @expo/eas-build-job (#4854).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-16 16:09:00 -07:00
63 changed files with 522 additions and 1848 deletions

No files matched your search

@@ -1,5 +0,0 @@
---
'@expo/build-tools': minor
---
Count Android web preview input as session activity, so `max_idle_time_minutes` works on Android sessions. `eas/start_serve_sim_remote_session` no longer rejects it on Android; the API does not accept an idle timeout for Android web-preview-only sessions yet.
-5
View File
@@ -1,5 +0,0 @@
---
'eas-cli': minor
---
Add `--network-capture-recording` to keep captured traffic as HAR session artifacts.
-5
View File
@@ -1,5 +0,0 @@
---
'@expo/build-tools': minor
---
Add start and collect steps that attach serve-sim simulator crash reports to device run sessions as IPS files.
-5
View File
@@ -1,5 +0,0 @@
---
'@expo/build-tools': minor
---
Add start and collect steps that attach serve-sim network captures to device run sessions as HAR files.
-5
View File
@@ -1,5 +0,0 @@
---
'eas-cli': patch
---
Mark the default device for each platform in `eas simulator:devices` and include `isDefault` in JSON output.
-5
View File
@@ -1,5 +0,0 @@
---
'eas-cli': minor
---
Add `simulator:network-requests` to list, follow, and inspect captured requests and download HAR files.
@@ -1,5 +0,0 @@
---
'@expo/build-tools': patch
---
A successful remote device run session no longer fails when its agent-device, Appium, or Argent tunnel does not stop within its time-out.
+18
View File
@@ -2,6 +2,24 @@
This is the log of notable changes to EAS CLI and related packages.
## [27.11.0](https://github.com/expo/eas-cli/releases/tag/v27.11.0) - 2026-11-19
### 🎉 New features
- [build-tools] Report the identifier of the installed app as `applicationIdentifier` in the agent-device remote config, so clients can attach to the app of an `application_archive_url` session. ([#4831](https://github.com/expo/eas-cli/pull/4831) by [@expo-tuft](https://github.com/apps/expo-tuft))
- [build-tools] Count Android web preview input as session activity, so `max_idle_time_minutes` works on Android sessions. `eas/start_serve_sim_remote_session` no longer rejects it on Android; the API does not accept an idle timeout for Android web-preview-only sessions yet. ([#4890](https://github.com/expo/eas-cli/pull/4890) by [@szdziedzic](https://github.com/szdziedzic))
- [eas-build-job] Accept `issue_comment` as a `github.event_name` value in the workflow interpolation context. ([#4906](https://github.com/expo/eas-cli/pull/4906) by [@sswrk](https://github.com/sswrk))
- [eas-build-job] Support error occurrence events in Observe workflow context. ([#4860](https://github.com/expo/eas-cli/pull/4860) by [@AbbanMustafa](https://github.com/AbbanMustafa))
- [build-tools] Add start and collect steps that attach serve-sim simulator crash reports to device run sessions as IPS files. ([#4596](https://github.com/expo/eas-cli/pull/4596) by [@gwdp](https://github.com/gwdp))
- [build-tools] Add start and collect steps that attach serve-sim network captures to device run sessions as HAR files. ([#4495](https://github.com/expo/eas-cli/pull/4495) by [@gwdp](https://github.com/gwdp))
### 🐛 Bug fixes
- [eas-cli] Detect Factory Droid, Grok Bot, Claude Cowork, and Muse in EAS CLI telemetry. ([#4912](https://github.com/expo/eas-cli/pull/4912) by [@davidmokos](https://github.com/davidmokos))
- [build-tools] Default `fastlane gym` dSYM compression level to 1. ([#4909](https://github.com/expo/eas-cli/pull/4909) by [@AHGIJMKLKKZNPJKQR](https://github.com/AHGIJMKLKKZNPJKQR))
- [eas-cli] Mark the default device for each platform in `eas simulator:devices` and include `isDefault` in JSON output. ([#4895](https://github.com/expo/eas-cli/pull/4895) by [@gwdp](https://github.com/gwdp))
- [build-tools] A successful remote device run session no longer fails when its agent-device, Appium, or Argent tunnel does not stop within its time-out. ([#4893](https://github.com/expo/eas-cli/pull/4893) by [@szdziedzic](https://github.com/szdziedzic))
## [27.10.0](https://github.com/expo/eas-cli/releases/tag/v27.10.0) - 2026-11-13
### 🎉 New features
+1 -1
View File
@@ -1,5 +1,5 @@
{
"npmClient": "yarn",
"version": "27.10.0",
"version": "27.11.0",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
+14
View File
@@ -1,5 +1,19 @@
# @expo/build-tools
## 27.11.0
### Minor Changes
- Report the identifier of the installed app as `applicationIdentifier` in the agent-device remote config, so clients can attach to the app of an `application_archive_url` session. ([#4831](https://github.com/expo/eas-cli/pull/4831) by [@expo-tuft](https://github.com/apps/expo-tuft))
- Count Android web preview input as session activity, so `max_idle_time_minutes` works on Android sessions. `eas/start_serve_sim_remote_session` no longer rejects it on Android; the API does not accept an idle timeout for Android web-preview-only sessions yet. ([#4890](https://github.com/expo/eas-cli/pull/4890) by [@szdziedzic](https://github.com/szdziedzic))
- Add start and collect steps that attach serve-sim simulator crash reports to device run sessions as IPS files. ([#4596](https://github.com/expo/eas-cli/pull/4596) by [@gwdp](https://github.com/gwdp))
- Add start and collect steps that attach serve-sim network captures to device run sessions as HAR files. ([#4495](https://github.com/expo/eas-cli/pull/4495) by [@gwdp](https://github.com/gwdp))
### Patch Changes
- Default `fastlane gym` dSYM compression level to 1. ([#4909](https://github.com/expo/eas-cli/pull/4909) by [@AHGIJMKLKKZNPJKQR](https://github.com/AHGIJMKLKKZNPJKQR))
- A successful remote device run session no longer fails when its agent-device, Appium, or Argent tunnel does not stop within its time-out. ([#4893](https://github.com/expo/eas-cli/pull/4893) by [@szdziedzic](https://github.com/szdziedzic))
## 27.10.0
### Minor Changes
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/build-tools",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
@@ -42,17 +42,17 @@
"dependencies": {
"@expo/config": "55.0.10",
"@expo/config-plugins": "55.0.7",
"@expo/downloader": "27.10.0",
"@expo/eas-build-job": "27.10.0",
"@expo/downloader": "27.11.0",
"@expo/eas-build-job": "27.11.0",
"@expo/env": "^0.4.0",
"@expo/logger": "27.10.0",
"@expo/logger": "27.11.0",
"@expo/package-manager": "1.9.10",
"@expo/plist": "^0.3.5",
"@expo/results": "^1.0.0",
"@expo/spawn-async": "1.7.2",
"@expo/steps": "27.10.0",
"@expo/template-file": "27.10.0",
"@expo/turtle-spawn": "27.10.0",
"@expo/steps": "27.11.0",
"@expo/template-file": "27.11.0",
"@expo/turtle-spawn": "27.11.0",
"@expo/xcpretty": "^4.4.7",
"@ngrok/ngrok": "1.7.0",
"@sentry/node": "7.77.0",
@@ -5,3 +5,7 @@ export const COMMON_FASTLANE_ENV = {
FASTLANE_HIDE_TIMESTAMP: 'true',
LC_ALL: 'en_US.UTF-8',
};
export const DEFAULT_FASTLANE_GYM_ENV = {
ZIPOPT: '-1',
};
@@ -23,13 +23,19 @@ const WORKING_DIR = '/workingdir';
// BuildContext.getReactNativeProjectDirectory() nests the RN project under `${workingdir}/build`.
const IOS_DIR = path.join(WORKING_DIR, 'build', 'ios');
function makeIosBuildContext({ simulator }: { simulator: boolean }): BuildContext<Ios.Job> {
function makeIosBuildContext({
simulator,
env = {},
}: {
simulator: boolean;
env?: Record<string, string>;
}): BuildContext<Ios.Job> {
const job: Ios.Job = { ...createTestIosJob(), simulator };
return new BuildContext(job, {
workingdir: WORKING_DIR,
logger: createMockLogger(),
logBuffer: { getLogs: () => [], getPhaseLogs: () => [] },
env: { __API_SERVER_URL: 'http://api.expo.test' },
env: { __API_SERVER_URL: 'http://api.expo.test', ...env },
uploadArtifact: jest.fn(),
});
}
@@ -125,4 +131,25 @@ describe(runFastlaneGym, () => {
workspacePath: IOS_DIR,
});
});
it.each<{ name: string; env: Record<string, string>; expectedZipopt: string }>([
{ name: 'defaults ZIPOPT to -1', env: {}, expectedZipopt: '-1' },
{ name: 'keeps ZIPOPT from the build env', env: { ZIPOPT: '-9' }, expectedZipopt: '-9' },
])('$name', async ({ env, expectedZipopt }) => {
const ctx = makeIosBuildContext({ simulator: false, env });
await runFastlaneGym(ctx, {
scheme: 'App',
credentials: ARCHIVE_CREDENTIALS,
entitlements: null,
});
expect(spawn).toHaveBeenCalledWith(
'fastlane',
['gym'],
expect.objectContaining({
env: expect.objectContaining({ ZIPOPT: expectedZipopt }),
})
);
});
});
+2 -2
View File
@@ -10,7 +10,7 @@ import type { Credentials } from './credentials/manager';
import { createFastfileForResigningBuild } from './fastfile';
import { createGymfileForArchiveBuild, createGymfileForSimulatorBuild } from './gymfile';
import { isTVOS } from './tvos';
import { COMMON_FASTLANE_ENV } from '../common/fastlane';
import { COMMON_FASTLANE_ENV, DEFAULT_FASTLANE_GYM_ENV } from '../common/fastlane';
import { XcodeBuildLogger } from '../common/xcpretty';
import { BuildContext, SkipNativeBuildError } from '../context';
@@ -52,7 +52,7 @@ export async function runFastlaneGym<TJob extends Ios.Job>(
await runFastlane(['gym'], {
cwd: workspacePath,
logger: ctx.logger,
env: { ...ctx.env, ...extraEnv },
env: { ...DEFAULT_FASTLANE_GYM_ENV, ...ctx.env, ...extraEnv },
});
} finally {
await buildLogger.flush();
@@ -216,6 +216,36 @@ describe('runAgentDeviceRemoteSessionAsync orchestration', () => {
);
});
it.each([
[
BuildRuntimePlatform.DARWIN,
{
iosSimulatorUdid: 'selected-udid',
application: Promise.resolve({
installAppPath: '/tmp/App.app',
launchAppIdentifier: 'com.example.archive',
}),
},
],
[
BuildRuntimePlatform.LINUX,
{ booted: Promise.resolve(), ready: Promise.resolve('com.example.archive') },
],
])(
'reports the identifier of the app the %s device launched',
async (runtimePlatform, device) => {
const logger = { info: jest.fn(), warn: jest.fn(), child: jest.fn().mockReturnThis() };
await runAsync(logger, runtimePlatform, { device });
expect(uploadRemoteSessionConfigAsync).toHaveBeenCalledWith(
expect.objectContaining({
remoteConfig: expect.objectContaining({ applicationIdentifier: 'com.example.archive' }),
})
);
}
);
it('uses the warm daemon after adoption and starts no daemon of its own', async () => {
const logger = { info: jest.fn(), warn: jest.fn(), child: jest.fn().mockReturnThis() };
const warmServer = { port: 3200 } as never;
@@ -517,6 +517,10 @@ describe(createStartAgentDeviceSessionBuildFunction, () => {
expect(launchApplicationAsync).toHaveBeenCalledWith(
expect.objectContaining({ applicationIdentifier: 'dev.example.app', activityName: '.Main' })
);
// The remote session reports it so clients can attach to an archive session's app.
await expect((sessionDevice() as { ready: Promise<unknown> }).ready).resolves.toBe(
'dev.example.app'
);
});
it('stops the download and waits for it when Android boot fails', async () => {
@@ -126,7 +126,8 @@ export async function runAgentDeviceRemoteSessionAsync(
device:
| {
booted: Promise<unknown>;
ready: Promise<unknown>;
/** Resolves with the identifier of the app it installed, if any. */
ready: Promise<string | void>;
}
| {
iosSimulatorUdid: string;
@@ -244,6 +245,7 @@ export async function runAgentDeviceRemoteSessionAsync(
const [
{ port: daemonPort, token: daemonToken, remoteSessionUrl: agentDeviceRemoteSessionUrl },
webPreview,
installedApplicationIdentifier,
] = await Promise.all([agentDeviceStartup, sessionHostStartup, deviceReady]).catch(
(err: unknown) => {
// Also aborts for a `device.ready` that does not come from `tasks.run`.
@@ -253,6 +255,11 @@ export async function runAgentDeviceRemoteSessionAsync(
);
tasks.signal.throwIfAborted();
logger.info(tasks.summary());
// Reported so clients can attach to the app of a session with no build record, like an
// `application_archive_url` one. The session host already launched the iOS app.
const applicationIdentifier = hostBootedDevice?.application
? (await tasks.untilAborted(hostBootedDevice.application))?.launchAppIdentifier
: installedApplicationIdentifier;
const sessionStart = await uploadRemoteSessionConfigWithLocalEgressAsync({
env,
@@ -265,6 +272,7 @@ export async function runAgentDeviceRemoteSessionAsync(
webPreviewUrl: webPreview.previewPageUrl,
previewApiUrl: webPreview.apiUrl,
...(webPreview.previewToken ? { webPreviewToken: webPreview.previewToken } : {}),
...(applicationIdentifier ? { applicationIdentifier } : {}),
},
logger,
});
@@ -226,6 +226,7 @@ export function createStartAgentDeviceSessionBuildFunction(
let sessionOwnsTeardown = false;
let downloaded: Promise<string> | undefined;
let applicationReady: Promise<ServeSimApplicationOptions | void> | undefined;
let installedAndroidApplication: Promise<string> | undefined;
try {
if (isIos) {
@@ -321,7 +322,7 @@ export function createStartAgentDeviceSessionBuildFunction(
installAppPath,
});
} else if (!isIos && (installAppPath || downloadedApp)) {
applicationReady = tasks.run('app install and launch', async taskLogger => {
installedAndroidApplication = tasks.run('app install and launch', async taskLogger => {
await tasks.untilAborted(booted!);
const artifactPath = installAppPath ?? (await downloadedApp);
if (!artifactPath) {
@@ -344,6 +345,7 @@ export function createStartAgentDeviceSessionBuildFunction(
env,
logger: taskLogger,
});
return applicationIdentifier;
});
}
@@ -374,7 +376,7 @@ export function createStartAgentDeviceSessionBuildFunction(
}
: {
booted,
ready: applicationReady ?? tasks.untilAborted(booted),
ready: installedAndroidApplication ?? tasks.untilAborted(booted),
},
});
} catch (error) {
@@ -388,7 +390,12 @@ export function createStartAgentDeviceSessionBuildFunction(
throw error;
} finally {
tasks.abort(new Error('Agent-device session ended.'));
await Promise.allSettled([booted, downloaded, applicationReady]);
await Promise.allSettled([
booted,
downloaded,
applicationReady,
installedAndroidApplication,
]);
}
};
try {
@@ -3,7 +3,7 @@ import { BuildStepEnv } from '@expo/steps';
import spawn, { SpawnResult } from '@expo/turtle-spawn';
import path from 'path';
import { COMMON_FASTLANE_ENV } from '../../../common/fastlane';
import { COMMON_FASTLANE_ENV, DEFAULT_FASTLANE_GYM_ENV } from '../../../common/fastlane';
import { XcodeBuildLogger } from '../../../common/xcpretty';
export async function runFastlaneGym({
@@ -25,7 +25,7 @@ export async function runFastlaneGym({
await runFastlane(['gym'], {
cwd: path.join(workingDir, 'ios'),
logger,
env,
env: { ...DEFAULT_FASTLANE_GYM_ENV, ...env },
extraEnv,
});
} finally {
@@ -1,5 +1,9 @@
# create-eas-build-function
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
@@ -1,6 +1,6 @@
{
"name": "create-eas-build-function",
"version": "27.10.0",
"version": "27.11.0",
"description": "Create functions for use in EAS Build custom builds.",
"keywords": [
"expo",
@@ -35,7 +35,7 @@
"clean": "rimraf ./build/ \"*.tsbuildinfo\""
},
"dependencies": {
"@expo/steps": "27.10.0"
"@expo/steps": "27.11.0"
},
"devDependencies": {
"@expo/package-manager": "1.9.10",
+4
View File
@@ -1,5 +1,9 @@
# @expo/downloader
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/downloader",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
@@ -1,5 +1,9 @@
# eas-build-cache-provider
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
@@ -1,6 +1,6 @@
{
"name": "eas-build-cache-provider",
"version": "27.10.0",
"version": "27.11.0",
"description": "A build cache provider plugin for the Expo CLI",
"homepage": "https://github.com/expo/eas-cli",
"bugs": "https://github.com/expo/eas-cli/issues",
+7
View File
@@ -1,5 +1,12 @@
# @expo/eas-build-job
## 27.11.0
### Minor Changes
- Accept `issue_comment` as a `github.event_name` value in the workflow interpolation context. ([#4906](https://github.com/expo/eas-cli/pull/4906) by [@sswrk](https://github.com/sswrk))
- Support error occurrence events in Observe workflow context. ([#4860](https://github.com/expo/eas-cli/pull/4860) by [@AbbanMustafa](https://github.com/AbbanMustafa))
## 27.10.0
No changes in this release.
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/eas-build-job",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "MIT",
"author": "Expo <[email protected]>",
@@ -25,9 +25,9 @@
"clean": "rimraf node_modules dist coverage \"*.tsbuildinfo\""
},
"dependencies": {
"@expo/logger": "27.10.0",
"@expo/logger": "27.11.0",
"@expo/results": "1.0.0",
"@expo/turtle-spawn": "27.10.0",
"@expo/turtle-spawn": "27.11.0",
"joi": "^17.13.9",
"semver": "^7.6.2",
"zod": "^4.6.7"
@@ -922,6 +922,50 @@ describe('GitHub context event payload passthrough', () => {
expect(parsed.github?.event).toMatchObject(context.github.event);
});
it('accepts the issue_comment event with issue and comment fields', () => {
const context = {
after: {},
needs: {},
github: {
event_name: 'issue_comment',
sha: 'abc123',
ref: 'refs/heads/main',
ref_name: 'main',
ref_type: 'branch',
event: {
action: 'created',
issue: {
number: 123,
title: 'Issue title',
},
comment: {
id: 456,
body: 'Comment body',
},
},
},
workflow: {
id: 'workflow-id',
name: 'Workflow',
filename: 'workflow.yml',
url: 'https://expo.dev',
},
app: {
id: 'app-id',
slug: 'app-slug',
},
account: {
id: 'account-id',
name: 'account-name',
},
};
const parsed = StaticWorkflowInterpolationContextZ.parse(context);
expect(parsed.github?.event_name).toBe('issue_comment');
expect(parsed.github?.event).toMatchObject(context.github.event);
});
});
describe('fetchEasCliVersionsAsync', () => {
@@ -1,7 +1,7 @@
import { ArchiveSourceType, BuildTrigger, StaticWorkflowInterpolationContextZ } from '../common';
import { Generic } from '../generic';
function createContext() {
function createContext(eventType: 'new_error' | 'error_occurrence' = 'new_error') {
return {
after: {},
needs: {},
@@ -16,7 +16,7 @@ function createContext() {
observe: {
event: {
id: '123e4567-e89b-42d3-a456-426614174001',
type: 'new_error' as const,
type: eventType,
occurredAt: '2026-10-29T12:00:00.000Z',
appId: '123e4567-e89b-42d3-a456-426614174000',
fingerprint: { value: 'error-fingerprint', version: 'v1' },
@@ -31,23 +31,36 @@ function createContext() {
}
describe('Observe workflow context', () => {
it('preserves the event when validating a generic job', () => {
it.each(['new_error', 'error_occurrence'] as const)(
'preserves %s events when validating a generic job',
eventType => {
const context = createContext(eventType);
const job = {
projectArchive: { type: ArchiveSourceType.GIT, gitCommitHash: 'abc123', gitRef: null },
steps: [{ run: 'echo "${{ observe.event.exception.message }}"', shell: 'sh' }],
secrets: { robotAccessToken: 'token', environmentSecrets: [] },
expoDevUrl: context.workflow.url,
builderEnvironment: { image: 'ubuntu', env: {} },
triggeredBy: BuildTrigger.GIT_BASED_INTEGRATION,
appId: context.app.id,
initiatingUserId: '123e4567-e89b-42d3-a456-426614174002',
workflowInterpolationContext: context,
};
const parsed = Generic.JobZ.parse(job);
expect(parsed.workflowInterpolationContext).toEqual(context);
}
);
it('rejects unknown Observe event types', () => {
const context = createContext();
const job = {
projectArchive: { type: ArchiveSourceType.GIT, gitCommitHash: 'abc123', gitRef: null },
steps: [{ run: 'echo "${{ observe.event.exception.message }}"', shell: 'sh' }],
secrets: { robotAccessToken: 'token', environmentSecrets: [] },
expoDevUrl: context.workflow.url,
builderEnvironment: { image: 'ubuntu', env: {} },
triggeredBy: BuildTrigger.GIT_BASED_INTEGRATION,
appId: context.app.id,
initiatingUserId: '123e4567-e89b-42d3-a456-426614174002',
workflowInterpolationContext: context,
};
const parsed = Generic.JobZ.parse(job);
expect(parsed.workflowInterpolationContext).toEqual(context);
expect(
StaticWorkflowInterpolationContextZ.safeParse({
...context,
observe: { event: { ...context.observe.event, type: 'unknown' } },
}).success
).toBe(false);
});
it('accepts nullable event metadata and an omitted device OS', () => {
+2 -2
View File
@@ -194,7 +194,7 @@ export const CacheSchema = Joi.object({
const GitHubContextZ = z.object({
triggering_actor: z.string().optional(),
event_name: z.enum(['push', 'pull_request', 'workflow_dispatch', 'schedule']),
event_name: z.enum(['push', 'pull_request', 'workflow_dispatch', 'schedule', 'issue_comment']),
sha: z.string(),
ref: z.string(),
ref_name: z.string(),
@@ -347,7 +347,7 @@ const SentryContextZ = z.looseObject({
const ObserveContextZ = z.looseObject({
event: z.looseObject({
id: z.uuid(),
type: z.literal('new_error'),
type: z.enum(['new_error', 'error_occurrence']),
occurredAt: z.iso.datetime(),
appId: z.uuid(),
fingerprint: z.looseObject({
+7
View File
@@ -1,5 +1,12 @@
# eas-cli
## 27.11.0
### Patch Changes
- Detect Factory Droid, Grok Bot, Claude Cowork, and Muse in EAS CLI telemetry. ([#4912](https://github.com/expo/eas-cli/pull/4912) by [@davidmokos](https://github.com/davidmokos))
- Mark the default device for each platform in `eas simulator:devices` and include `isDefault` in JSON output. ([#4895](https://github.com/expo/eas-cli/pull/4895) by [@gwdp](https://github.com/gwdp))
## 27.10.0
### Minor Changes
+164 -176
View File
File diff suppressed because it is too large. Load diff
+1 -13
View File
@@ -48154,7 +48154,7 @@
},
{
"name": "networkCapture",
"description": "Capture HTTP(S) traffic from apps on the device for live inspection. iOS only.\nHTTPS is decrypted, so captured traffic can contain credentials and cookies in cleartext.\nIf omitted, network capture is disabled.",
"description": "Record HTTP(S) traffic from apps on the device for the whole session. iOS only.\nHTTPS is decrypted, so recordings contain credentials and cookies in cleartext.\nIf omitted, no traffic is recorded.",
"type": {
"kind": "SCALAR",
"name": "Boolean",
@@ -48184,18 +48184,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "networkCaptureRecording",
"description": "Record network capture as a HAR artifact for access after the session. Requires networkCapture.\nIf omitted, HAR artifact recording is disabled.",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "openUrl",
"description": "Expo or development-client URL to open after launching the installed application. Requires\nbuildId, applicationArchiveUrl, or expoGo.",
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "eas-cli",
"version": "27.10.0",
"version": "27.11.0",
"description": "EAS command line tool",
"keywords": [
"cli",
@@ -48,12 +48,12 @@
"@expo/code-signing-certificates": "0.0.5",
"@expo/config": "55.0.10",
"@expo/config-plugins": "55.0.7",
"@expo/eas-build-job": "27.10.0",
"@expo/eas-json": "27.10.0",
"@expo/eas-build-job": "27.11.0",
"@expo/eas-json": "27.11.0",
"@expo/env": "^1.0.0",
"@expo/experimentation": "0.0.5",
"@expo/json-file": "8.3.3",
"@expo/logger": "27.10.0",
"@expo/logger": "27.11.0",
"@expo/multipart-body-parser": "2.0.0",
"@expo/osascript": "2.1.4",
"@expo/package-manager": "1.9.10",
@@ -65,7 +65,7 @@
"@expo/results": "1.0.0",
"@expo/rudder-sdk-node": "1.1.1",
"@expo/spawn-async": "1.7.2",
"@expo/steps": "27.10.0",
"@expo/steps": "27.11.0",
"@expo/timeago.js": "1.0.0",
"@oclif/core": "^4.8.3",
"@oclif/plugin-autocomplete": "^3.2.40",
@@ -73,7 +73,7 @@
"@sentry/node": "7.77.0",
"@urql/core": "4.0.11",
"@urql/exchange-retry": "1.2.0",
"agent-cli-detector": "0.1.7",
"agent-cli-detector": "0.1.8",
"ajv": "8.20.0",
"ajv-formats": "2.1.1",
"better-opn": "3.0.2",
@@ -1761,48 +1761,6 @@ describe(Simulator, () => {
);
});
it('passes --network-capture-recording when requested', async () => {
const { command } = createCommand([
'--platform',
'ios',
'--non-interactive',
'--network-capture',
'--network-capture-recording',
]);
await command.runAsync();
expect(mockCreateDeviceRunSessionAsync).toHaveBeenCalledWith(
graphqlClient,
expect.objectContaining({ networkCapture: true, networkCaptureRecording: true })
);
});
it.each([false, true])('omits recording without the flag (capture: %s)', async capture => {
const { command } = createCommand([
'--platform',
'ios',
'--non-interactive',
...(capture ? ['--network-capture'] : []),
]);
await command.runAsync();
expect(mockCreateDeviceRunSessionAsync.mock.calls[0][1]).not.toHaveProperty(
'networkCaptureRecording'
);
});
it('rejects --network-capture-recording without --network-capture', async () => {
const { command } = createCommand([
'--platform',
'ios',
'--non-interactive',
'--network-capture-recording',
]);
await expect(command.runAsync()).rejects.toThrow(/network-capture/);
expect(mockCreateDeviceRunSessionAsync).not.toHaveBeenCalled();
});
it('passes the requested capture fields, splitting a comma-separated value', async () => {
const { command } = createCommand([
'--platform',
@@ -1,492 +0,0 @@
import { Config } from '@oclif/core';
import chalk from 'chalk';
import { stripVTControlCharacters } from 'node:util';
import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
import { DeviceRunSessionStatus } from '../../../graphql/generated';
import { DeviceRunSessionQuery } from '../../../graphql/queries/DeviceRunSessionQuery';
import { downloadSimulatorArtifactAsync } from '../../../simulator/artifacts';
import Log from '../../../log';
import { ora } from '../../../ora';
import { loadSimulatorEnvAsync } from '../../../simulator/env';
import {
downloadNetworkCaptureAsync,
readNetworkRequestsAsync,
streamNetworkRequestsAsync,
} from '../../../simulator/networkRequests';
import { resolveSimulatorPreviewAsync } from '../../../simulator/preview';
import { enableJsonOutput, printJsonOnlyOutput } from '../../../utils/json';
import SimulatorNetworkRequests from '../network-requests';
jest.mock('../../../log');
jest.mock('../../../graphql/queries/DeviceRunSessionQuery');
jest.mock('../../../simulator/artifacts', () => ({
...jest.requireActual('../../../simulator/artifacts'),
downloadSimulatorArtifactAsync: jest.fn(),
}));
jest.mock('../../../ora', () => ({
ora: jest.fn(() => {
const spinner = {
fail: jest.fn(),
start: jest.fn(),
succeed: jest.fn(),
};
spinner.start.mockReturnValue(spinner);
return spinner;
}),
}));
jest.mock('../../../simulator/env', () => ({
...jest.requireActual('../../../simulator/env'),
loadSimulatorEnvAsync: jest.fn(),
}));
jest.mock('../../../simulator/networkRequests');
jest.mock('../../../simulator/preview', () => ({
...jest.requireActual('../../../simulator/preview'),
resolveSimulatorPreviewAsync: jest.fn(),
}));
jest.mock('../../../utils/json');
const mockLoadSimulatorEnvAsync = jest.mocked(loadSimulatorEnvAsync);
const mockOra = jest.mocked(ora);
const mockResolvePreviewAsync = jest.mocked(resolveSimulatorPreviewAsync);
const mockReadRequestsAsync = jest.mocked(readNetworkRequestsAsync);
const mockDownloadCaptureAsync = jest.mocked(downloadNetworkCaptureAsync);
const mockStreamRequestsAsync = jest.mocked(streamNetworkRequestsAsync);
const mockEnableJsonOutput = jest.mocked(enableJsonOutput);
const mockPrintJsonOnlyOutput = jest.mocked(printJsonOnlyOutput);
const mockLog = jest.mocked(Log.log);
const originalColorLevel = chalk.level;
const graphqlClient = {} as ExpoGraphqlClient;
const projectDir = '/test/project';
const preview = {
deviceRunSessionId: 'session-id',
baseUrl: new URL('https://preview.test'),
token: 'preview-token',
};
const requestSummary = {
id: 'request-id',
startedAt: Date.parse('2026-10-05T12:00:00.000Z'),
startedDateTime: '2026-10-05T12:00:00.000Z',
method: 'POST',
url: 'https://example.test/posts',
status: 201,
duration: 50,
requestSize: 100,
responseSize: 200,
};
const request = {
_captureId: 'request-id',
startedDateTime: '2026-10-05T12:00:00.000Z',
time: 50,
request: {
method: 'POST',
url: 'https://example.test/posts',
bodySize: 100,
headers: [{ name: 'Content-Type', value: 'application/json' }],
postData: { mimeType: 'application/json', text: '{"title":"Coin Flip"}' },
},
response: {
status: 201,
bodySize: 200,
content: { mimeType: 'application/json', text: '{"id":101}' },
},
};
function getMockOclifConfig(): Config {
const config = new Config({ root: __dirname });
config.runHook = async () => ({ failures: [], successes: [] });
return config;
}
describe(SimulatorNetworkRequests, () => {
beforeEach(() => {
jest.clearAllMocks();
process.env.EAS_SIMULATOR_SESSION_ID = 'session-id';
chalk.level = 0;
mockLoadSimulatorEnvAsync.mockResolvedValue();
jest
.mocked(DeviceRunSessionQuery.byIdAsync)
.mockResolvedValue({ id: 'session-id', status: DeviceRunSessionStatus.InProgress } as Awaited<
ReturnType<typeof DeviceRunSessionQuery.byIdAsync>
>);
mockResolvePreviewAsync.mockResolvedValue(preview);
mockReadRequestsAsync.mockResolvedValue([]);
mockDownloadCaptureAsync.mockResolvedValue('/test/capture.har');
});
afterEach(() => {
delete process.env.EAS_SIMULATOR_SESSION_ID;
chalk.level = originalColorLevel;
});
it.each([DeviceRunSessionStatus.Stopped, DeviceRunSessionStatus.Errored])(
'downloads the capture for a %s session without preview',
async status => {
const session = { id: 'session-id', status } as Awaited<
ReturnType<typeof DeviceRunSessionQuery.byIdAsync>
>;
jest.mocked(DeviceRunSessionQuery.byIdAsync).mockResolvedValue(session);
await createCommand(['--artifact', '2', '--output', 'capture.har', '--json']).runAsync();
expect(downloadSimulatorArtifactAsync).toHaveBeenCalledWith(session, 'network-capture', {
artifact: 2,
output: 'capture.har',
nonInteractive: true,
json: true,
});
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
expect(DeviceRunSessionQuery.byIdAsync).toHaveBeenCalledTimes(1);
}
);
it.each([['--follow'], ['--request-id', 'r1']])(
'rejects live inspection of a stopped session %s',
async (...args) => {
jest
.mocked(DeviceRunSessionQuery.byIdAsync)
.mockResolvedValue({ id: 'session-id', status: DeviceRunSessionStatus.Stopped } as Awaited<
ReturnType<typeof DeviceRunSessionQuery.byIdAsync>
>);
await expect(createCommand(args).runAsync()).rejects.toThrow('Use --output <path>');
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
}
);
it('rejects artifact selection on a running session', async () => {
await expect(createCommand(['--artifact', '1']).runAsync()).rejects.toThrow(
'only available for stopped sessions'
);
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
});
it('prints a JSON list for an explicit session with the default limit', async () => {
mockReadRequestsAsync.mockResolvedValue([requestSummary]);
await createCommand(['--id', 'session-id', '--json']).runAsync();
expect(mockEnableJsonOutput).toHaveBeenCalled();
expect(DeviceRunSessionQuery.byIdAsync).toHaveBeenCalledWith(graphqlClient, 'session-id');
expect(mockResolvePreviewAsync).toHaveBeenCalledWith(
expect.objectContaining({ id: 'session-id' })
);
expect(mockReadRequestsAsync).toHaveBeenCalledWith(preview, {
limit: 100,
requestId: undefined,
});
expect(mockPrintJsonOnlyOutput).toHaveBeenCalledWith({
deviceRunSessionId: 'session-id',
requests: [requestSummary],
});
expect(mockLog).not.toHaveBeenCalled();
expect(mockDownloadCaptureAsync).not.toHaveBeenCalled();
});
it('prints a full request detail including captured headers and bodies as JSON', async () => {
mockReadRequestsAsync.mockResolvedValue(request);
await createCommand(['--request-id', 'request-id', '--json']).runAsync();
expect(mockReadRequestsAsync).toHaveBeenCalledWith(preview, {
limit: 100,
requestId: 'request-id',
});
expect(mockPrintJsonOnlyOutput).toHaveBeenCalledWith({
deviceRunSessionId: 'session-id',
request,
});
expect(mockLog).not.toHaveBeenCalled();
});
it('downloads a HAR and prints only the resulting file metadata as JSON', async () => {
await createCommand(['--output', './capture.har', '--json']).runAsync();
expect(mockDownloadCaptureAsync).toHaveBeenCalledWith(preview, './capture.har');
expect(mockPrintJsonOnlyOutput).toHaveBeenCalledWith({
deviceRunSessionId: 'session-id',
filePath: '/test/capture.har',
});
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
expect(mockLog).not.toHaveBeenCalled();
expect(mockOra).not.toHaveBeenCalled();
});
it('shows a spinner with the saved path for human output', async () => {
await createCommand(['-o', './capture.har']).runAsync();
const spinner = mockOra.mock.results[0].value;
expect(mockOra).toHaveBeenCalledWith('Saving network capture');
expect(spinner.succeed).toHaveBeenCalledWith('Saved network capture to /test/capture.har');
expect(mockPrintJsonOnlyOutput).not.toHaveBeenCalled();
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
});
it('forwards an explicit limit and uses the dotenv session ID', async () => {
mockReadRequestsAsync.mockResolvedValue([requestSummary]);
mockLoadSimulatorEnvAsync.mockImplementation(async () => {
process.env.EAS_SIMULATOR_SESSION_ID = 'dotenv-id';
});
await createCommand(['--limit', '3']).runAsync();
expect(mockLoadSimulatorEnvAsync).toHaveBeenCalledWith(projectDir);
expect(DeviceRunSessionQuery.byIdAsync).toHaveBeenCalledWith(graphqlClient, 'dotenv-id');
expect(mockReadRequestsAsync).toHaveBeenCalledWith(preview, { limit: 3, requestId: undefined });
expect(mockLog).toHaveBeenCalledWith(
'request-id POST https://example.test/posts 201 50ms'
);
});
it('sanitizes terminal controls in human request summaries', async () => {
mockReadRequestsAsync.mockResolvedValue([
{ ...requestSummary, url: '\u001b[31mhttps://example.test/posts\u001b[0m\u0007' },
]);
await createCommand([]).runAsync();
expect(mockLog).toHaveBeenCalledWith(
'request-id POST https://example.test/posts 201 50ms'
);
});
it('rounds floating-point HAR timing noise only in human summaries', async () => {
const summary = { ...requestSummary, duration: 2.8999999999999995 };
mockReadRequestsAsync.mockResolvedValue([summary]);
await createCommand([]).runAsync();
expect(mockLog).toHaveBeenCalledWith(
'request-id POST https://example.test/posts 201 2.9ms'
);
await createCommand(['--json']).runAsync();
expect(mockPrintJsonOnlyOutput).toHaveBeenCalledWith({
deviceRunSessionId: 'session-id',
requests: [summary],
});
});
it('adds intentional colors after sanitizing remote text and preserves full URLs', async () => {
chalk.level = 1;
const url = `https://example.test/${'long-path/'.repeat(30)}`;
mockReadRequestsAsync.mockResolvedValue([
{
...requestSummary,
id: '\u001b[35mr1\u001b[0m\u0007',
startedDateTime: '\u001b[35m2026-10-05T12:00:00.000Z\u001b[0m\u0007',
method: '\u001b[35mGET\u001b[0m\u0007',
url: `\u001b[35m${url}\u001b[0m\u0007`,
},
]);
await createCommand(['--timestamp']).runAsync();
const output = mockLog.mock.calls[0][0] as string;
expect(output).toBe(
[
chalk.dim('2026-10-05T12:00:00.000Z'),
chalk.dim('r1 '),
chalk.bold.cyan('GET '),
url,
chalk.green('201'),
chalk.dim('50ms'),
].join(' ')
);
expect(output).toContain('\u001b[1m\u001b[36mGET ');
expect(output).not.toContain('\u001b[35m');
expect(output).not.toContain('\u0007');
expect(stripVTControlCharacters(output)).toBe(
`2026-10-05T12:00:00.000Z r1 GET ${url} 201 50ms`
);
});
it.each([
[200, '\u001b[32m'],
[299, '\u001b[32m'],
[301, '\u001b[36m'],
[399, '\u001b[36m'],
[404, '\u001b[33m'],
[499, '\u001b[33m'],
[500, '\u001b[31m'],
[599, '\u001b[31m'],
[0, '\u001b[31m'],
])('colors numeric status %i by response class', async (status, color) => {
chalk.level = 1;
mockReadRequestsAsync.mockResolvedValue([{ ...requestSummary, status }]);
await createCommand([]).runAsync();
expect(mockLog.mock.calls[0][0]).toContain(`${color}${status}\u001b[39m`);
});
it('leaves JSON data untouched when terminal color is enabled', async () => {
chalk.level = 1;
mockReadRequestsAsync.mockResolvedValue([requestSummary]);
await createCommand(['--json']).runAsync();
expect(mockPrintJsonOnlyOutput).toHaveBeenCalledWith({
deviceRunSessionId: 'session-id',
requests: [requestSummary],
});
expect(JSON.stringify(mockPrintJsonOnlyOutput.mock.calls[0][0])).not.toContain('\\u001b');
expect(mockLog).not.toHaveBeenCalled();
});
it('shows request start timestamps only when requested in human output', async () => {
mockReadRequestsAsync.mockResolvedValue([requestSummary]);
await createCommand(['--timestamp']).runAsync();
expect(mockLog).toHaveBeenCalledWith(
'2026-10-05T12:00:00.000Z request-id POST https://example.test/posts 201 50ms'
);
});
it.each(['--follow', '-f'])(
'streams human summaries with %s without fetching a finite list',
async follow => {
mockStreamRequestsAsync.mockImplementation(async (_preview, onRequest) => {
onRequest(requestSummary);
});
await createCommand([follow, '--timestamp']).runAsync();
expect(mockStreamRequestsAsync).toHaveBeenCalledWith(
preview,
expect.any(Function),
expect.any(AbortSignal)
);
expect(mockLog).toHaveBeenCalledWith(
'2026-10-05T12:00:00.000Z request-id POST https://example.test/posts 201 50ms'
);
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
expect(mockDownloadCaptureAsync).not.toHaveBeenCalled();
expect(mockPrintJsonOnlyOutput).not.toHaveBeenCalled();
}
);
it('stops following on Ctrl+C and removes its interrupt handler', async () => {
const listeners = process.listeners('SIGINT');
let signal: AbortSignal | undefined;
mockStreamRequestsAsync.mockImplementation(async (_preview, _onRequest, followSignal) => {
signal = followSignal;
process.emit('SIGINT');
});
await createCommand(['--follow']).runAsync();
expect(signal?.aborted).toBe(true);
expect(process.listeners('SIGINT')).toEqual(listeners);
});
it.each([
{ options: ['--json'] },
{ options: ['--limit', '1'] },
{ options: ['--request-id', 'r1'] },
{ options: ['--output', 'capture.har'] },
])('rejects incompatible follow options $options before session access', async ({ options }) => {
await expect(createCommand(['--follow', ...options]).runAsync()).rejects.toThrow();
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
expect(mockStreamRequestsAsync).not.toHaveBeenCalled();
});
it('enables JSON output before rejecting JSON follow output', async () => {
await expect(createCommand(['--json', '--follow']).runAsync()).rejects.toThrow(
'Use either --json or --follow, not both.'
);
expect(mockEnableJsonOutput).toHaveBeenCalled();
expect(mockLoadSimulatorEnvAsync).not.toHaveBeenCalled();
});
it('prints a full request detail for human output', async () => {
mockReadRequestsAsync.mockResolvedValue(request);
await createCommand(['--request-id', 'request-id']).runAsync();
expect(mockLog).toHaveBeenCalledWith(JSON.stringify(request, null, 2));
expect(mockPrintJsonOnlyOutput).not.toHaveBeenCalled();
});
it('explains the initial-launch limitation when the capture is empty', async () => {
await createCommand([]).runAsync();
expect(mockLog).toHaveBeenCalledWith(
'No completed network requests were captured. Initial-launch requests may have been missed.'
);
});
it('rejects combining a request detail and HAR output before resolving a session', async () => {
await expect(
createCommand(['--request-id', 'request-id', '--output', './capture.har']).runAsync()
).rejects.toThrow();
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
expect(mockDownloadCaptureAsync).not.toHaveBeenCalled();
});
it('rejects a nonpositive request limit', async () => {
await expect(createCommand(['--limit', '0']).runAsync()).rejects.toThrow();
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
});
it('propagates a missing capture error without printing an empty list', async () => {
mockReadRequestsAsync.mockRejectedValue(
new Error('No network capture was found. Start the session with --network-capture.')
);
await expect(createCommand([]).runAsync()).rejects.toThrow(
'Start the session with --network-capture.'
);
expect(mockLog).not.toHaveBeenCalled();
expect(mockPrintJsonOnlyOutput).not.toHaveBeenCalled();
});
it('propagates HAR download failures without claiming a file was saved', async () => {
mockDownloadCaptureAsync.mockRejectedValue(new Error('The output file already exists.'));
await expect(createCommand(['--output', './capture.har', '--json']).runAsync()).rejects.toThrow(
'The output file already exists.'
);
expect(mockPrintJsonOnlyOutput).not.toHaveBeenCalled();
expect(mockLog).not.toHaveBeenCalled();
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
});
it('fails the spinner when the HAR download fails', async () => {
mockDownloadCaptureAsync.mockRejectedValue(new Error('The output file already exists.'));
await expect(createCommand(['--output', './capture.har']).runAsync()).rejects.toThrow(
'The output file already exists.'
);
const spinner = mockOra.mock.results[0].value;
expect(spinner.fail).toHaveBeenCalledWith('Failed to save network capture');
expect(spinner.succeed).not.toHaveBeenCalled();
});
it('stops before reading traffic when there is no simulator session', async () => {
delete process.env.EAS_SIMULATOR_SESSION_ID;
await expect(createCommand([]).runAsync()).rejects.toThrow('No simulator session ID provided.');
expect(mockResolvePreviewAsync).not.toHaveBeenCalled();
expect(mockReadRequestsAsync).not.toHaveBeenCalled();
expect(mockDownloadCaptureAsync).not.toHaveBeenCalled();
});
});
function createCommand(args: string[]): SimulatorNetworkRequests {
const command = new SimulatorNetworkRequests(args, getMockOclifConfig());
// @ts-expect-error getContextAsync is protected
jest.spyOn(command, 'getContextAsync').mockResolvedValue({
loggedIn: { graphqlClient },
projectDir,
});
return command;
}
@@ -198,11 +198,7 @@ With local egress, actions wait for the connection and require interactive mode.
'network-capture': Flags.boolean({
allowNo: true,
description:
'Capture HTTP(S) traffic from apps on the device for live inspection (iOS only). HTTPS is decrypted, so captured traffic can contain credentials in cleartext and certificate-pinned apps fail to connect.',
}),
'network-capture-recording': Flags.boolean({
description: 'Save network capture as HAR artifacts for access after the session ends.',
dependsOn: ['network-capture'],
'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.',
}),
'network-capture-field': Flags.string({
description:
@@ -463,7 +459,6 @@ With local egress, actions wait for the connection and require interactive mode.
publicPreview: flags['public-link'] ?? false,
packageVersion: flags['package-version'],
networkCapture: flags['network-capture'],
...(flags['network-capture-recording'] ? { networkCaptureRecording: true } : {}),
...(networkCaptureFields.length ? { networkCaptureFields } : {}),
...platformInput,
...(buildId ? { buildId } : {}),
@@ -514,7 +509,7 @@ With local egress, actions wait for the connection and require interactive mode.
);
if (flags['network-capture']) {
Log.warn(
'Network capture was requested. HTTPS is decrypted, so captured traffic can contain credentials in cleartext. Relaunch an installed app to capture its traffic.'
'Network capture was requested. HTTPS is decrypted, so recordings contain credentials in cleartext. Relaunch an installed app to record its traffic.'
);
}
} catch (err) {
@@ -1,216 +0,0 @@
import { Flags } from '@oclif/core';
import chalk from 'chalk';
import EasCommand from '../../commandUtils/EasCommand';
import {
EasNonInteractiveAndJsonFlags,
resolveNonInteractiveAndJsonFlags,
} from '../../commandUtils/flags';
import { DeviceRunSessionQuery } from '../../graphql/queries/DeviceRunSessionQuery';
import Log from '../../log';
import { downloadSimulatorArtifactAsync, hasSimulatorArtifacts } from '../../simulator/artifacts';
import {
getSimulatorCommandAliases,
getSimulatorCommandHiddenAliases,
} from '../../simulator/commandAliases';
import { ora } from '../../ora';
import {
EAS_SIMULATOR_SESSION_ID,
SIMULATOR_DOTENV_FILE_NAME,
loadSimulatorEnvAsync,
} from '../../simulator/env';
import {
type NetworkRequestSummary,
downloadNetworkCaptureAsync,
readNetworkRequestsAsync,
streamNetworkRequestsAsync,
} from '../../simulator/networkRequests';
import { resolveSimulatorPreviewAsync } from '../../simulator/preview';
import { stripTerminalControlCharacters } from '../../simulator/utils';
import { enableJsonOutput, printJsonOnlyOutput } from '../../utils/json';
export default class SimulatorNetworkRequests extends EasCommand {
static override aliases = getSimulatorCommandAliases('network-requests');
static override hiddenAliases = getSimulatorCommandHiddenAliases('network-requests');
static override description =
'[EXPERIMENTAL] inspect completed network requests from a capture-enabled simulator session';
static override examples = [
'<%= config.bin %> simulator:network-requests --json',
'<%= config.bin %> simulator:network-requests --follow --timestamp',
'<%= config.bin %> simulator:network-requests --request-id r1 --json',
'<%= config.bin %> simulator:network-requests --output capture.har',
];
static override flags = {
id: Flags.string({
description: `Simulator session ID. Defaults to ${SIMULATOR_DOTENV_FILE_NAME}.`,
}),
artifact: Flags.integer({
min: 1,
description: 'Artifact index to download from a stopped session (1-based).',
}),
'request-id': Flags.string({
description:
'Show a captured request, including the headers and bodies selected for capture.',
exclusive: ['output'],
}),
output: Flags.string({
char: 'o',
description: 'Save the live HAR or a stopped session capture artifact to this path.',
exclusive: ['request-id'],
}),
follow: Flags.boolean({
char: 'f',
description: 'Stream completed requests, including those retained by the current capture.',
exclusive: ['request-id', 'output', 'limit'],
}),
limit: Flags.integer({
description: 'Maximum number of recent live requests to list without --follow.',
default: 100,
min: 1,
}),
timestamp: Flags.boolean({
description: 'Show request start timestamps in live human-readable lists.',
}),
...EasNonInteractiveAndJsonFlags,
};
static override contextDefinition = {
...this.ContextOptions.LoggedIn,
...this.ContextOptions.ProjectDir,
};
async runAsync(): Promise<void> {
// Before parsing, so only the JSON result reaches stdout.
if (this.argv.includes('--json')) {
enableJsonOutput();
}
const { flags } = await this.parse(SimulatorNetworkRequests);
const { json: jsonFlag, nonInteractive } = resolveNonInteractiveAndJsonFlags(flags);
if (jsonFlag && flags.follow) {
throw new Error('Use either --json or --follow, not both.');
}
const {
projectDir,
loggedIn: { graphqlClient },
} = await this.getContextAsync(SimulatorNetworkRequests, { nonInteractive });
await loadSimulatorEnvAsync(projectDir);
const deviceRunSessionId = flags.id ?? process.env[EAS_SIMULATOR_SESSION_ID];
if (!deviceRunSessionId) {
throw new Error(
`No simulator session ID provided. Pass --id, or run \`eas simulator:start\` first to write ${SIMULATOR_DOTENV_FILE_NAME}.`
);
}
const session = await DeviceRunSessionQuery.byIdAsync(graphqlClient, deviceRunSessionId);
if (hasSimulatorArtifacts(session)) {
if (flags.follow || flags['request-id']) {
throw new Error(
'The session has stopped. --follow and --request-id are only available while it runs. Use --output <path> to download its capture artifact.'
);
}
await downloadSimulatorArtifactAsync(session, 'network-capture', {
artifact: flags.artifact,
output: flags.output,
nonInteractive,
json: jsonFlag,
});
return;
}
const preview = await resolveSimulatorPreviewAsync(session);
if (flags.artifact !== undefined) {
throw new Error(
'--artifact is only available for stopped sessions. Use --output <path> to save the live HAR.'
);
}
if (flags.follow) {
const abortController = new AbortController();
const interruptHandler = (): void => {
if (abortController.signal.aborted) {
process.exit(130);
}
abortController.abort();
};
process.on('SIGINT', interruptHandler);
try {
await streamNetworkRequestsAsync(
preview,
request => {
Log.log(formatRequestSummary(request, flags.timestamp));
},
abortController.signal
);
} finally {
process.removeListener('SIGINT', interruptHandler);
}
return;
}
if (flags.output) {
const downloadSpinner = jsonFlag ? null : ora('Saving network capture').start();
let filePath: string;
try {
filePath = await downloadNetworkCaptureAsync(preview, flags.output);
downloadSpinner?.succeed(`Saved network capture to ${filePath}`);
} catch (err) {
downloadSpinner?.fail('Failed to save network capture');
throw err;
}
if (jsonFlag) {
printJsonOnlyOutput({ deviceRunSessionId: preview.deviceRunSessionId, filePath });
}
return;
}
const result = await readNetworkRequestsAsync(preview, {
limit: flags.limit,
requestId: flags['request-id'],
});
if (jsonFlag) {
printJsonOnlyOutput({
deviceRunSessionId: preview.deviceRunSessionId,
...(Array.isArray(result) ? { requests: result } : { request: result }),
});
} else if (!Array.isArray(result)) {
Log.log(
stripTerminalControlCharacters(JSON.stringify(result, null, 2), {
keepNewlinesAndTabs: true,
})
);
} else if (result.length === 0) {
Log.log(
'No completed network requests were captured. Initial-launch requests may have been missed.'
);
} else {
for (const request of result) {
Log.log(formatRequestSummary(request, flags.timestamp));
}
}
}
}
function formatRequestSummary(request: NetworkRequestSummary, timestamp = false): string {
let status = String(request.status);
if (request.status === 0 || request.status >= 500) {
status = chalk.red(status);
} else if (request.status >= 400) {
status = chalk.yellow(status);
} else if (request.status >= 300) {
status = chalk.cyan(status);
} else if (request.status >= 200) {
status = chalk.green(status);
}
const fields = [
chalk.dim(stripTerminalControlCharacters(request.id ?? '-').padEnd(5)),
chalk.bold.cyan(stripTerminalControlCharacters(request.method).padEnd(6)),
stripTerminalControlCharacters(request.url),
status,
chalk.dim(`${Math.round(request.duration * 10) / 10}ms`),
];
if (timestamp) {
fields.unshift(chalk.dim(stripTerminalControlCharacters(request.startedDateTime)));
}
return fields.join(' ');
}
+3 -8
View File
@@ -6805,9 +6805,9 @@ export type CreateDeviceRunSessionInput = {
*/
name?: InputMaybe<Scalars['String']['input']>;
/**
* Capture HTTP(S) traffic from apps on the device for live inspection. iOS only.
* HTTPS is decrypted, so captured traffic can contain credentials and cookies in cleartext.
* If omitted, network capture is disabled.
* Record HTTP(S) traffic from apps on the device for the whole session. iOS only.
* HTTPS is decrypted, so recordings contain credentials and cookies in cleartext.
* If omitted, no traffic is recorded.
*/
networkCapture?: InputMaybe<Scalars['Boolean']['input']>;
/**
@@ -6816,11 +6816,6 @@ export type CreateDeviceRunSessionInput = {
* it is asked for. Requires networkCapture.
*/
networkCaptureFields?: InputMaybe<Array<Scalars['String']['input']>>;
/**
* Record network capture as a HAR artifact for access after the session. Requires networkCapture.
* If omitted, HAR artifact recording is disabled.
*/
networkCaptureRecording?: InputMaybe<Scalars['Boolean']['input']>;
/**
* Expo or development-client URL to open after launching the installed application. Requires
* buildId, applicationArchiveUrl, or expoGo.
@@ -8,7 +8,6 @@ import SimulatorGet from '../../commands/simulator/get';
import Simulator from '../../commands/simulator/index';
import SimulatorList from '../../commands/simulator/list';
import SimulatorLogs from '../../commands/simulator/logs';
import SimulatorNetworkRequests from '../../commands/simulator/network-requests';
import SimulatorStop from '../../commands/simulator/stop';
import { isSimulatorCommandId } from '../commandAliases';
@@ -23,7 +22,6 @@ describe('simulator command aliases', () => {
['get', SimulatorGet],
['list', SimulatorList],
['logs', SimulatorLogs],
['network-requests', SimulatorNetworkRequests],
['stop', SimulatorStop],
])('runs simulator:%s from every simulator topic alias', (name, command) => {
expect(command.aliases).toEqual([`sim:${name}`]);
@@ -1,519 +0,0 @@
import { mkdtemp, readFile, readdir, rm, stat, symlink, writeFile } from 'node:fs/promises';
import { createServer } from 'node:http';
import { type AddressInfo } from 'node:net';
import os from 'node:os';
import path from 'node:path';
import { Readable } from 'node:stream';
import { Response } from '../../fetch';
import {
type NetworkRequest,
type NetworkRequestSummary,
downloadNetworkCaptureAsync,
readNetworkRequestsAsync,
streamNetworkRequestsAsync,
} from '../networkRequests';
import { fetchSimulatorPreviewAsync, streamSimulatorPreviewAsync } from '../preview';
jest.mock('../preview', () => ({
...jest.requireActual('../preview'),
fetchSimulatorPreviewAsync: jest.fn(),
streamSimulatorPreviewAsync: jest.fn(),
}));
const NOT_ENABLED_MESSAGE =
'Network capture is not enabled for this session. Capture must be requested when the session starts. Start a new session with `eas simulator:start --network-capture`.';
const preview = {
deviceRunSessionId: 'session-id',
baseUrl: new URL('https://preview.test'),
token: 'secret',
};
const signal = new AbortController().signal;
let directory: string;
function entry(id: string): NetworkRequest {
return {
_captureId: id,
_captureStartedAt: 123.45,
startedDateTime: '2026-10-05T20:54:22.074Z',
time: 82,
request: { method: 'POST', url: 'https://example.test/posts', bodySize: 0, postData: null },
response: { status: 201, bodySize: 12, content: { text: '{"id":101}' } },
};
}
function reply(body: string | Readable): void {
jest
.mocked(fetchSimulatorPreviewAsync)
.mockResolvedValue(new Response(typeof body === 'string' ? Readable.from([body]) : body));
}
function rejectOnTimeout(): AbortController {
const controller = new AbortController();
jest.spyOn(AbortSignal, 'timeout').mockReturnValue(controller.signal);
jest.mocked(fetchSimulatorPreviewAsync).mockImplementation(
async (_preview, _route, options) =>
await new Promise<Response>((_resolve, reject) => {
if (options?.signal?.aborted) {
reject(new Error('secret remote URL'));
}
options?.signal?.addEventListener('abort', () => {
reject(new Error('secret remote URL'));
});
})
);
return controller;
}
function capturedRequest(
id: string,
startedAt = Date.parse(entry(id).startedDateTime)
): {
id: string;
startedAt: number;
method: string;
url: string;
status: number;
durationMs: number;
requestBytes: number;
responseBytes: number;
} {
return {
id,
startedAt,
method: 'POST',
url: 'https://example.test/posts',
status: 201,
durationMs: 82,
requestBytes: 0,
responseBytes: 12,
};
}
function streamEvents(events: unknown[]): void {
jest.mocked(streamSimulatorPreviewAsync).mockImplementation(async (_preview, _route, onData) => {
for (const event of events) {
onData(typeof event === 'string' ? event : JSON.stringify(event));
}
});
}
beforeEach(async () => {
jest.clearAllMocks();
directory = await mkdtemp(path.join(os.tmpdir(), 'eas-network-requests-test-'));
});
afterEach(async () => {
jest.restoreAllMocks();
await rm(directory, { recursive: true, force: true });
});
describe(readNetworkRequestsAsync, () => {
it('closes a real HTTP response immediately after a malformed capture frame', async () => {
let markClosed: () => void = () => {};
const closed = new Promise<void>(resolve => {
markClosed = resolve;
});
const server = createServer((_request, response) => {
response.writeHead(200, { 'content-type': 'application/x-ndjson' });
response.write('malformed-frame\n');
const timer = setInterval(() => response.write(' \n'), 10);
response.on('close', () => {
clearInterval(timer);
markClosed();
});
});
await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve));
jest
.mocked(fetchSimulatorPreviewAsync)
.mockImplementationOnce(
jest.requireActual<typeof import('../preview')>('../preview').fetchSimulatorPreviewAsync
);
let timeout: NodeJS.Timeout | undefined;
try {
await expect(
readNetworkRequestsAsync(
{
...preview,
baseUrl: new URL(`http://127.0.0.1:${(server.address() as AddressInfo).port}`),
},
{ limit: 100 }
)
).rejects.toThrow('Could not read the network capture');
await Promise.race([
closed,
new Promise<void>((_resolve, reject) => {
timeout = setTimeout(() => {
reject(new Error('The capture connection stayed open.'));
}, 1000);
}),
]);
} finally {
clearTimeout(timeout);
server.closeAllConnections();
await new Promise<void>(resolve =>
server.close(() => {
resolve();
})
);
}
});
it('keeps recent summaries without retaining captured bodies, including a final line without a newline', async () => {
reply([entry('r1'), entry('r2'), entry('r3')].map(value => JSON.stringify(value)).join('\n'));
const requests = await readNetworkRequestsAsync(preview, { limit: 2 });
expect(fetchSimulatorPreviewAsync).toHaveBeenCalledWith(preview, '/network-capture.ndjson', {
signal: expect.any(AbortSignal),
notFoundMessage: NOT_ENABLED_MESSAGE,
});
expect(requests).toEqual(
['r2', 'r3'].map(id => ({
id,
startedAt: 123.45,
startedDateTime: '2026-10-05T20:54:22.074Z',
method: 'POST',
url: 'https://example.test/posts',
status: 201,
duration: 82,
requestSize: 0,
responseSize: 12,
}))
);
});
it('orders snapshots by start date and limits the latest starts rather than completions', async () => {
const entries = [
{ ...entry('r3'), startedDateTime: '2026-10-05T20:54:24.000Z', _captureStartedAt: 1 },
{ ...entry('r1'), startedDateTime: '2026-10-05T20:54:22.000Z', _captureStartedAt: 3 },
{ ...entry('r2'), startedDateTime: '2026-10-05T20:54:23.000Z', _captureStartedAt: 2 },
];
reply(entries.map(value => JSON.stringify(value)).join('\n'));
expect(await readNetworkRequestsAsync(preview, { limit: 2 })).toEqual([
expect.objectContaining({ id: 'r2' }),
expect.objectContaining({ id: 'r3' }),
]);
reply(entries.map(value => JSON.stringify(value)).join('\n'));
expect(await readNetworkRequestsAsync(preview, { limit: 1 })).toEqual([
expect.objectContaining({ id: 'r3' }),
]);
});
it('uses fractional start times and numeric request IDs to order equal start dates', async () => {
const entries = [
{ ...entry('r10'), _captureStartedAt: 123.45 },
{ ...entry('r3'), _captureStartedAt: 123.5 },
{ ...entry('r2'), _captureStartedAt: 123.45 },
];
reply(entries.map(value => JSON.stringify(value)).join('\n'));
expect(await readNetworkRequestsAsync(preview, { limit: 2 })).toEqual([
expect.objectContaining({ id: 'r10' }),
expect.objectContaining({ id: 'r3' }),
]);
});
it('returns selected captured headers and bodies without depending on the live request buffer', async () => {
const request = entry('r1');
reply(JSON.stringify(request));
expect(await readNetworkRequestsAsync(preview, { limit: 100, requestId: 'r1' })).toEqual(
request
);
});
it('handles UTF-8 split across chunks', async () => {
const bytes = Buffer.from(
JSON.stringify({
...entry('r1'),
request: { ...entry('r1').request, url: 'https://example.test/é' },
})
);
const split = bytes.indexOf(Buffer.from('é')) + 1;
reply(Readable.from([bytes.subarray(0, split), bytes.subarray(split)]));
const result = await readNetworkRequestsAsync(preview, { limit: 1 });
expect(result).toEqual([expect.objectContaining({ url: 'https://example.test/é' })]);
});
it('returns an empty list for an empty capture and reports a missing request', async () => {
reply('');
expect(await readNetworkRequestsAsync(preview, { limit: 100 })).toEqual([]);
reply('');
await expect(
readNetworkRequestsAsync(preview, { limit: 100, requestId: 'r1' })
).rejects.toThrow('not found');
});
it.each([
'secret-body',
'{"startedDateTime":"secret-body"}',
JSON.stringify({ ...entry('r1'), startedDateTime: 'secret-body' }),
])('reports malformed data without echoing decrypted traffic %#', async data => {
reply(data);
const error = readNetworkRequestsAsync(preview, { limit: 100 });
await expect(error).rejects.toThrow('Could not read the network capture.');
await expect(error).rejects.not.toThrow('secret-body');
});
it('reports a capture deadline', async () => {
const controller = rejectOnTimeout();
const pending = readNetworkRequestsAsync(preview, { limit: 100 });
const rejected = expect(pending).rejects.toThrow('The network capture request timed out.');
controller.abort();
await rejected;
expect(AbortSignal.timeout).toHaveBeenCalledWith(10 * 60_000);
});
it('retains useful request failures', async () => {
jest
.mocked(fetchSimulatorPreviewAsync)
.mockRejectedValue(new Error('Preview API access was refused.'));
await expect(readNetworkRequestsAsync(preview, { limit: 100 })).rejects.toThrow(
'Preview API access was refused.'
);
});
});
describe(streamNetworkRequestsAsync, () => {
it('follows retained completed requests and emits live completions immediately', async () => {
const requests: NetworkRequestSummary[] = [];
jest
.mocked(streamSimulatorPreviewAsync)
.mockImplementation(async (_preview, _route, onData) => {
onData(JSON.stringify({ type: 'meta', meta: { attachment: 'starting' }, initial: true }));
onData(JSON.stringify({ type: 'meta', meta: { attachment: 'capturing' } }));
onData(JSON.stringify({ type: 'finished', request: capturedRequest('r1', 1000) }));
onData(JSON.stringify({ type: 'finished', request: capturedRequest('r2', 2000) }));
onData(JSON.stringify({ type: 'started', request: capturedRequest('r3', 3000) }));
onData(JSON.stringify({ type: 'finished', request: capturedRequest('r4', 4000) }));
expect(requests.map(request => request.id)).toEqual(['r1', 'r2', 'r4']);
onData(
JSON.stringify({
type: 'finished',
request: { ...capturedRequest('r3', 3000), status: null, durationMs: null },
})
);
});
await streamNetworkRequestsAsync(preview, request => requests.push(request), signal);
expect(streamSimulatorPreviewAsync).toHaveBeenCalledWith(
preview,
'/network-capture',
expect.any(Function),
{ signal, notFoundMessage: NOT_ENABLED_MESSAGE }
);
expect(fetchSimulatorPreviewAsync).not.toHaveBeenCalled();
expect(requests.map(request => request.id)).toEqual(['r1', 'r2', 'r4', 'r3']);
expect(requests[3]).toEqual({
id: 'r3',
startedAt: 3000,
startedDateTime: '1970-01-01T00:00:03.000Z',
method: 'POST',
url: 'https://example.test/posts',
status: 0,
duration: 0,
requestSize: 0,
responseSize: 12,
});
});
it('keeps following when capture restarts, request IDs are reused, or events are unknown', async () => {
streamEvents([
{ type: 'meta', meta: { attachment: 'capturing' }, initial: true },
{ type: 'session', udid: 'SIM-A' },
{ type: 'finished', request: capturedRequest('r1', 1000) },
{ type: 'cleared' },
{ type: 'meta', meta: { attachment: 'starting' } },
{ type: 'started', request: capturedRequest('r1', 2000) },
{ type: 'finished', request: capturedRequest('r1', 2000) },
{ type: 'evicted', id: 'r1' },
{ type: 'finished', request: capturedRequest('r2', 3000) },
]);
const requests: NetworkRequestSummary[] = [];
await streamNetworkRequestsAsync(preview, request => requests.push(request), signal);
expect(requests.map(request => request.startedAt)).toEqual([1000, 2000, 3000]);
});
it.each([
['not-enabled', NOT_ENABLED_MESSAGE],
[
'failed',
'The network capture failed. The session reported a capture error. Open the session preview to see the error, or start a new session with `eas simulator:start --network-capture`.',
],
])(
'reports the %s capture state without exposing attachment errors',
async (attachment, message) => {
streamEvents([
{ type: 'meta', meta: { attachment, attachError: 'secret remote URL' }, initial: true },
]);
await expect(streamNetworkRequestsAsync(preview, jest.fn(), signal)).rejects.toEqual(
new Error(message)
);
}
);
it('stops on capture failure after emitting earlier completed requests', async () => {
streamEvents([
{ type: 'meta', meta: { attachment: 'capturing' } },
{ type: 'finished', request: capturedRequest('r1') },
{ type: 'meta', meta: { attachment: 'failed' } },
{ type: 'finished', request: capturedRequest('r2') },
]);
const onRequest = jest.fn();
await expect(streamNetworkRequestsAsync(preview, onRequest, signal)).rejects.toThrow(
'The network capture failed.'
);
expect(onRequest).toHaveBeenCalledTimes(1);
});
it('explains when capture is turned off after following has started', async () => {
streamEvents([
{ type: 'meta', meta: { attachment: 'capturing' }, initial: true },
{ type: 'finished', request: capturedRequest('r1', 1000) },
{ type: 'meta', meta: { attachment: 'not-enabled' } },
]);
const onRequest = jest.fn();
await expect(streamNetworkRequestsAsync(preview, onRequest, signal)).rejects.toThrow(
'Network capture was turned off,'
);
expect(onRequest).toHaveBeenCalledTimes(1);
});
it.each(['secret-body', '{"type":"finished","request":{"url":"secret-body"}}'])(
'reports malformed stream data without echoing decrypted traffic %#',
async data => {
streamEvents([data]);
const error = streamNetworkRequestsAsync(preview, jest.fn(), signal);
await expect(error).rejects.toThrow('Could not read the network capture stream.');
await expect(error).rejects.not.toThrow('secret-body');
}
);
it('preserves useful stream setup errors and returns after a clean shared interruption', async () => {
jest
.mocked(streamSimulatorPreviewAsync)
.mockRejectedValueOnce(new Error('The simulator preview is offline.'))
.mockResolvedValueOnce();
await expect(streamNetworkRequestsAsync(preview, jest.fn(), signal)).rejects.toThrow(
'The simulator preview is offline.'
);
await expect(streamNetworkRequestsAsync(preview, jest.fn(), signal)).resolves.toBeUndefined();
});
});
describe(downloadNetworkCaptureAsync, () => {
it('streams an exact HAR into a private file', async () => {
const data = JSON.stringify({ log: { entries: [entry('r1')] } });
reply(Readable.from([data.slice(0, 15), data.slice(15)]));
const output = path.join(directory, 'capture.har');
const oldUmask = process.umask(0);
try {
expect(await downloadNetworkCaptureAsync(preview, output)).toBe(output);
} finally {
process.umask(oldUmask);
}
expect(fetchSimulatorPreviewAsync).toHaveBeenCalledWith(preview, '/network-capture.har', {
signal: expect.any(AbortSignal),
notFoundMessage: NOT_ENABLED_MESSAGE,
});
expect(await readFile(output, 'utf8')).toBe(data);
expect((await stat(output)).mode & 0o777).toBe(0o600);
expect(await readdir(directory)).toEqual(['capture.har']);
});
it('refuses an existing file before requesting the capture', async () => {
const output = path.join(directory, 'capture.har');
await writeFile(output, 'keep');
reply('new capture');
await expect(downloadNetworkCaptureAsync(preview, output)).rejects.toThrow('already exists');
expect(fetchSimulatorPreviewAsync).not.toHaveBeenCalled();
expect(await readFile(output, 'utf8')).toBe('keep');
});
it('does not overwrite a file created during the download', async () => {
const output = path.join(directory, 'capture.har');
jest.mocked(fetchSimulatorPreviewAsync).mockImplementation(async () => {
await writeFile(output, 'created concurrently');
return new Response(Readable.from(['new capture']));
});
await expect(downloadNetworkCaptureAsync(preview, output)).rejects.toThrow('already exists');
expect(await readFile(output, 'utf8')).toBe('created concurrently');
expect(await readdir(directory)).toEqual(['capture.har']);
});
it('keeps a file created during a download whose body fails before the file opens', async () => {
const output = path.join(directory, 'capture.har');
jest.mocked(fetchSimulatorPreviewAsync).mockImplementation(async () => {
await writeFile(output, 'created concurrently');
const body = new Readable({ read() {} });
body.destroy(new Error('secret remote URL'));
return new Response(body);
});
await expect(downloadNetworkCaptureAsync(preview, output)).rejects.toThrow();
expect(await readFile(output, 'utf8')).toBe('created concurrently');
});
it('refuses to write through a dangling symlink', async () => {
const output = path.join(directory, 'capture.har');
await symlink(path.join(directory, 'missing-target'), output);
reply('new capture');
await expect(downloadNetworkCaptureAsync(preview, output)).rejects.toThrow('already exists');
expect(await readdir(directory)).toEqual(['capture.har']);
});
it('explains a missing output directory', async () => {
reply('capture');
await expect(
downloadNetworkCaptureAsync(preview, path.join(directory, 'missing', 'capture.har'))
).rejects.toThrow('Check that the --output directory exists and is writable,');
expect(await readdir(directory)).toEqual([]);
});
it('retains useful request errors without creating a file', async () => {
jest
.mocked(fetchSimulatorPreviewAsync)
.mockRejectedValue(new Error('Start the session with --network-capture.'));
await expect(
downloadNetworkCaptureAsync(preview, path.join(directory, 'capture.har'))
).rejects.toThrow('--network-capture');
expect(await readdir(directory)).toEqual([]);
});
it('removes the partial file after a failed transfer', async () => {
reply(
Readable.from(
(async function* () {
yield 'partial';
throw new Error('secret remote URL');
})()
)
);
const error = downloadNetworkCaptureAsync(preview, path.join(directory, 'capture.har'));
await expect(error).rejects.toThrow('Could not save the download.');
await expect(error).rejects.not.toThrow('secret');
expect(await readdir(directory)).toEqual([]);
});
it('reports a download deadline', async () => {
const controller = rejectOnTimeout();
const pending = downloadNetworkCaptureAsync(preview, path.join(directory, 'capture.har'));
const rejected = expect(pending).rejects.toThrow('The download timed out.');
controller.abort();
await rejected;
expect(AbortSignal.timeout).toHaveBeenCalledWith(10 * 60_000);
expect(await readdir(directory)).toEqual([]);
});
});
@@ -65,18 +65,12 @@ describe('simulator start configuration', () => {
it('lets the CLI disable saved public links and network capture with its saved fields', async () => {
const { parsed } = await resolve(
{
'public-link': true,
'network-capture': true,
'network-capture-field': ['header'],
'network-capture-recording': true,
},
{ 'public-link': true, 'network-capture': true, 'network-capture-field': ['header'] },
['--no-public-link', '--no-network-capture']
);
expect(parsed.flags['public-link']).toBe(false);
expect(parsed.flags['network-capture']).toBe(false);
expect(parsed.flags['network-capture-field']).toBeUndefined();
expect(parsed.flags['network-capture-recording']).toBeUndefined();
});
it('validates dependencies after merging and replaces array flags instead of appending', async () => {
@@ -1,211 +0,0 @@
import readline from 'node:readline';
import { z } from 'zod';
import { downloadSimulatorFileAsync } from './download';
import {
type SimulatorPreview,
fetchSimulatorPreviewAsync,
streamSimulatorPreviewAsync,
} from './preview';
import { type Response } from '../fetch';
const NETWORK_CAPTURE_TIMEOUT_MS = 10 * 60_000;
const NETWORK_CAPTURE_NOT_ENABLED_MESSAGE =
'Network capture is not enabled for this session. Capture must be requested when the session starts. Start a new session with `eas simulator:start --network-capture`.';
const INVALID_NETWORK_CAPTURE_MESSAGE =
'Could not read the network capture. The capture data was incomplete or not in the expected format. Try again.';
const networkRequestSchema = z.looseObject({
_captureId: z.string().optional(),
_captureStartedAt: z.number().nullable().optional(),
startedDateTime: z.string().refine(value => Number.isFinite(Date.parse(value))),
time: z.number(),
request: z.looseObject({ method: z.string(), url: z.string(), bodySize: z.number() }),
response: z.looseObject({ status: z.number(), bodySize: z.number() }),
});
const networkCaptureEventSchema = z.union([
z.object({
type: z.literal('meta'),
initial: z.boolean().optional(),
meta: z.object({ attachment: z.string().optional() }),
}),
z.object({
type: z.literal('finished'),
request: z.object({
id: z.string(),
startedAt: z.number(),
method: z.string(),
url: z.string(),
status: z.number().nullable(),
durationMs: z.number().nullable(),
requestBytes: z.number(),
responseBytes: z.number(),
}),
}),
// Other events, such as `started` and `cleared`, have nothing to print.
z.object({ type: z.string().refine(type => type !== 'meta' && type !== 'finished') }),
]);
export type NetworkRequest = z.infer<typeof networkRequestSchema>;
export type NetworkRequestSummary = {
id: string | null;
startedAt: number | null;
startedDateTime: string;
method: string;
url: string;
status: number;
duration: number;
requestSize: number;
responseSize: number;
};
function parseJson(text: string): unknown {
try {
return JSON.parse(text);
} catch {
return undefined;
}
}
function compareRequestStarts(a: NetworkRequestSummary, b: NetworkRequestSummary): number {
return (
Date.parse(a.startedDateTime) - Date.parse(b.startedDateTime) ||
(a.startedAt ?? 0) - (b.startedAt ?? 0) ||
(a.id ?? '').localeCompare(b.id ?? '', undefined, { numeric: true })
);
}
export async function readNetworkRequestsAsync(
preview: SimulatorPreview,
{ limit, requestId }: { limit: number; requestId?: string }
): Promise<NetworkRequestSummary[] | NetworkRequest> {
const controller = new AbortController();
const signal = AbortSignal.any([
controller.signal,
AbortSignal.timeout(NETWORK_CAPTURE_TIMEOUT_MS),
]);
let response: Response | undefined;
let lines: readline.Interface | undefined;
const requests: NetworkRequestSummary[] = [];
let selected: NetworkRequest | undefined;
try {
response = await fetchSimulatorPreviewAsync(preview, '/network-capture.ndjson', {
signal,
notFoundMessage: NETWORK_CAPTURE_NOT_ENABLED_MESSAGE,
});
lines = readline.createInterface({ input: response.body, crlfDelay: Infinity });
for await (const line of lines) {
if (!line.trim()) {
continue;
}
const result = networkRequestSchema.safeParse(parseJson(line));
if (!result.success) {
throw new Error(INVALID_NETWORK_CAPTURE_MESSAGE);
}
const entry = result.data;
if (requestId) {
if (entry._captureId === requestId) {
selected = entry;
}
continue;
}
requests.push({
id: entry._captureId ?? null,
startedAt: entry._captureStartedAt ?? null,
startedDateTime: entry.startedDateTime,
method: entry.request.method,
url: entry.request.url,
status: entry.response.status,
duration: entry.time,
requestSize: entry.request.bodySize,
responseSize: entry.response.bodySize,
});
}
} catch (error) {
if (signal.aborted) {
throw new Error(
'The network capture request timed out. The capture did not download within 10 minutes. Run `eas simulator:get` to check that the session is still running, then try again.'
);
}
if (!response) {
throw error;
}
throw new Error(INVALID_NETWORK_CAPTURE_MESSAGE);
} finally {
lines?.close();
response?.body.once('error', () => {});
controller.abort();
}
if (!requestId) {
return requests.sort(compareRequestStarts).slice(-limit);
}
if (!selected) {
throw new Error(
'The request was not found in the network capture. The ID does not match a completed request in the current capture. Run `eas simulator:network-requests` to see current request IDs.'
);
}
return selected;
}
export async function streamNetworkRequestsAsync(
preview: SimulatorPreview,
onRequest: (request: NetworkRequestSummary) => void,
signal: AbortSignal
): Promise<void> {
await streamSimulatorPreviewAsync(
preview,
'/network-capture',
data => {
const result = networkCaptureEventSchema.safeParse(parseJson(data));
if (!result.success) {
throw new Error(
'Could not read the network capture stream. An event from the session was not in the expected format. Run the command again.'
);
}
const event = result.data;
if ('meta' in event) {
if (event.meta.attachment === 'not-enabled') {
throw new Error(
event.initial
? NETWORK_CAPTURE_NOT_ENABLED_MESSAGE
: 'Network capture was turned off, so the session no longer records requests. Start a new session with `eas simulator:start --network-capture` to capture again.'
);
}
if (event.meta.attachment === 'failed') {
throw new Error(
'The network capture failed. The session reported a capture error. Open the session preview to see the error, or start a new session with `eas simulator:start --network-capture`.'
);
}
} else if ('request' in event) {
const { request } = event;
onRequest({
id: request.id,
startedAt: request.startedAt,
startedDateTime: new Date(request.startedAt).toISOString(),
method: request.method,
url: request.url,
status: request.status ?? 0,
duration: Math.max(0, request.durationMs ?? 0),
requestSize: request.requestBytes,
responseSize: request.responseBytes,
});
}
},
{ signal, notFoundMessage: NETWORK_CAPTURE_NOT_ENABLED_MESSAGE }
);
}
export async function downloadNetworkCaptureAsync(
preview: SimulatorPreview,
output: string
): Promise<string> {
return await downloadSimulatorFileAsync(
output,
async signal =>
await fetchSimulatorPreviewAsync(preview, '/network-capture.har', {
signal,
notFoundMessage: NETWORK_CAPTURE_NOT_ENABLED_MESSAGE,
})
);
}
@@ -58,12 +58,12 @@ export async function resolveStartConfigAsync(
if (removed.has('expo-go') && !explicitNames.has('sdk-version')) {
delete values['sdk-version'];
}
if (explicitNames.has('network-capture') && values['network-capture'] === false) {
for (const name of ['network-capture-field', 'network-capture-recording']) {
if (!explicitNames.has(name)) {
delete values[name];
}
}
if (
explicitNames.has('network-capture') &&
values['network-capture'] === false &&
!explicitNames.has('network-capture-field')
) {
delete values['network-capture-field'];
}
const effectiveArgv: string[] = [];
for (const [name, value] of Object.entries(values)) {
+4
View File
@@ -1,5 +1,9 @@
# @expo/eas-json
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/eas-json",
"version": "27.10.0",
"version": "27.11.0",
"description": "A library for interacting with eas.json",
"homepage": "https://github.com/expo/eas-cli",
"bugs": "https://github.com/expo/eas-cli/issues",
@@ -32,7 +32,7 @@
},
"dependencies": {
"@babel/code-frame": "7.23.5",
"@expo/eas-build-job": "27.10.0",
"@expo/eas-build-job": "27.11.0",
"chalk": "4.1.2",
"env-string": "1.0.1",
"fs-extra": "11.2.0",
+4
View File
@@ -1,5 +1,9 @@
# eas-cli-local-build-plugin
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "eas-cli-local-build-plugin",
"version": "27.10.0",
"version": "27.11.0",
"description": "Tool for running EAS compatible builds on a local machine.",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
@@ -26,12 +26,12 @@
"clean": "rimraf node_modules dist coverage \"*.tsbuildinfo\""
},
"dependencies": {
"@expo/build-tools": "27.10.0",
"@expo/build-tools": "27.11.0",
"@expo/bunyan": "^4.0.1",
"@expo/eas-build-job": "27.10.0",
"@expo/logger": "27.10.0",
"@expo/eas-build-job": "27.11.0",
"@expo/logger": "27.11.0",
"@expo/spawn-async": "^1.7.2",
"@expo/turtle-spawn": "27.10.0",
"@expo/turtle-spawn": "27.11.0",
"chalk": "4.1.2",
"env-paths": "^2.2.1",
"fs-extra": "^11.2.0",
+4
View File
@@ -1,5 +1,9 @@
# @expo/logger
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/logger",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
+4
View File
@@ -1,5 +1,9 @@
# @expo/simulator-launcher
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/simulator-launcher",
"version": "27.10.0",
"version": "27.11.0",
"description": "Launch and claim Simulator sessions on EAS workers",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
+4
View File
@@ -1,5 +1,9 @@
# @expo/steps
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/steps",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
@@ -27,8 +27,8 @@
"clean": "rimraf node_modules dist coverage \"*.tsbuildinfo\""
},
"dependencies": {
"@expo/eas-build-job": "27.10.0",
"@expo/logger": "27.10.0",
"@expo/eas-build-job": "27.11.0",
"@expo/logger": "27.11.0",
"@expo/spawn-async": "^1.7.2",
"arg": "^5.0.2",
"fast-glob": "^3.3.2",
+4
View File
@@ -1,5 +1,9 @@
# @expo/template-file
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/template-file",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
+4
View File
@@ -1,5 +1,9 @@
# @expo/turtle-spawn
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/turtle-spawn",
"version": "27.10.0",
"version": "27.11.0",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
"author": "Expo <[email protected]>",
@@ -25,7 +25,7 @@
"clean": "rimraf node_modules dist coverage \"*.tsbuildinfo\""
},
"dependencies": {
"@expo/logger": "27.10.0",
"@expo/logger": "27.11.0",
"@expo/spawn-async": "^1.7.2"
},
"devDependencies": {
+4
View File
@@ -1,5 +1,9 @@
# @expo/vm-tools
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/vm-tools",
"version": "27.10.0",
"version": "27.11.0",
"description": "VM startup script loader",
"bugs": "https://github.com/expo/eas-cli/issues",
"license": "BUSL-1.1",
+4
View File
@@ -1,5 +1,9 @@
# @expo/worker
## 27.11.0
No changes in this release.
## 27.10.0
No changes in this release.
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@expo/worker",
"version": "27.10.0",
"version": "27.11.0",
"private": true,
"scripts": {
"start": "yarn watch",
@@ -19,17 +19,17 @@
},
"dependencies": {
"@babel/core": "7.24.7",
"@expo/build-tools": "27.10.0",
"@expo/build-tools": "27.11.0",
"@expo/config-plugins": "55.0.7",
"@expo/config-types": "55.0.5",
"@expo/eas-build-job": "27.10.0",
"@expo/logger": "27.10.0",
"@expo/eas-build-job": "27.11.0",
"@expo/logger": "27.11.0",
"@expo/results": "1.0.0",
"@expo/rudder-sdk-node": "1.1.1",
"@expo/spawn-async": "1.7.2",
"@expo/steps": "27.10.0",
"@expo/template-file": "27.10.0",
"@expo/turtle-spawn": "27.10.0",
"@expo/steps": "27.11.0",
"@expo/template-file": "27.11.0",
"@expo/turtle-spawn": "27.11.0",
"@hapi/boom": "10.0.1",
"check-disk-space": "3.4.0",
"fast-glob": "3.3.2",
Generated
+40 -40
View File
@@ -2515,24 +2515,24 @@ __metadata:
languageName: node
linkType: hard
"@expo/build-tools@npm:27.10.0, @expo/build-tools@workspace:packages/build-tools":
"@expo/build-tools@npm:27.11.0, @expo/build-tools@workspace:packages/build-tools":
version: 0.0.0-use.local
resolution: "@expo/build-tools@workspace:packages/build-tools"
dependencies:
"@expo/config": "npm:55.0.10"
"@expo/config-plugins": "npm:55.0.7"
"@expo/downloader": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.10.0"
"@expo/downloader": "npm:27.11.0"
"@expo/eas-build-job": "npm:27.11.0"
"@expo/env": "npm:^0.4.0"
"@expo/logger": "npm:27.10.0"
"@expo/logger": "npm:27.11.0"
"@expo/package-manager": "npm:1.9.10"
"@expo/plist": "npm:^0.3.5"
"@expo/repack-app": "npm:~0.9.0"
"@expo/results": "npm:^1.0.0"
"@expo/spawn-async": "npm:1.7.2"
"@expo/steps": "npm:27.10.0"
"@expo/template-file": "npm:27.10.0"
"@expo/turtle-spawn": "npm:27.10.0"
"@expo/steps": "npm:27.11.0"
"@expo/template-file": "npm:27.11.0"
"@expo/turtle-spawn": "npm:27.11.0"
"@expo/xcpretty": "npm:^4.4.7"
"@ngrok/ngrok": "npm:1.7.0"
"@sentry/node": "npm:7.77.0"
@@ -2768,7 +2768,7 @@ __metadata:
languageName: node
linkType: hard
"@expo/downloader@npm:27.10.0, @expo/downloader@workspace:packages/downloader":
"@expo/downloader@npm:27.11.0, @expo/downloader@workspace:packages/downloader":
version: 0.0.0-use.local
resolution: "@expo/downloader@workspace:packages/downloader"
dependencies:
@@ -2784,13 +2784,13 @@ __metadata:
languageName: unknown
linkType: soft
"@expo/eas-build-job@npm:27.10.0, @expo/eas-build-job@workspace:packages/eas-build-job":
"@expo/eas-build-job@npm:27.11.0, @expo/eas-build-job@workspace:packages/eas-build-job":
version: 0.0.0-use.local
resolution: "@expo/eas-build-job@workspace:packages/eas-build-job"
dependencies:
"@expo/logger": "npm:27.10.0"
"@expo/logger": "npm:27.11.0"
"@expo/results": "npm:1.0.0"
"@expo/turtle-spawn": "npm:27.10.0"
"@expo/turtle-spawn": "npm:27.11.0"
"@types/jest": "npm:^29.5.12"
"@types/node": "npm:22.20.5"
jest: "npm:^29.7.0"
@@ -2803,12 +2803,12 @@ __metadata:
languageName: unknown
linkType: soft
"@expo/eas-json@npm:27.10.0, @expo/eas-json@workspace:packages/eas-json":
"@expo/eas-json@npm:27.11.0, @expo/eas-json@workspace:packages/eas-json":
version: 0.0.0-use.local
resolution: "@expo/eas-json@workspace:packages/eas-json"
dependencies:
"@babel/code-frame": "npm:7.23.5"
"@expo/eas-build-job": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.11.0"
"@tsconfig/node22": "npm:22.0.6"
"@types/babel__code-frame": "npm:7.0.3"
"@types/fs-extra": "npm:11.0.4"
@@ -2931,7 +2931,7 @@ __metadata:
languageName: node
linkType: hard
"@expo/logger@npm:27.10.0, @expo/logger@workspace:packages/logger":
"@expo/logger@npm:27.11.0, @expo/logger@workspace:packages/logger":
version: 0.0.0-use.local
resolution: "@expo/logger@workspace:packages/logger"
dependencies:
@@ -3149,12 +3149,12 @@ __metadata:
languageName: node
linkType: hard
"@expo/steps@npm:27.10.0, @expo/steps@workspace:packages/steps":
"@expo/steps@npm:27.11.0, @expo/steps@workspace:packages/steps":
version: 0.0.0-use.local
resolution: "@expo/steps@workspace:packages/steps"
dependencies:
"@expo/eas-build-job": "npm:27.10.0"
"@expo/logger": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.11.0"
"@expo/logger": "npm:27.11.0"
"@expo/spawn-async": "npm:^1.7.2"
"@jest/globals": "npm:^29.7.0"
"@types/jest": "npm:^29.5.12"
@@ -3180,7 +3180,7 @@ __metadata:
languageName: unknown
linkType: soft
"@expo/template-file@npm:27.10.0, @expo/template-file@workspace:packages/template-file":
"@expo/template-file@npm:27.11.0, @expo/template-file@workspace:packages/template-file":
version: 0.0.0-use.local
resolution: "@expo/template-file@workspace:packages/template-file"
dependencies:
@@ -3203,11 +3203,11 @@ __metadata:
languageName: node
linkType: hard
"@expo/turtle-spawn@npm:27.10.0, @expo/turtle-spawn@workspace:packages/turtle-spawn":
"@expo/turtle-spawn@npm:27.11.0, @expo/turtle-spawn@workspace:packages/turtle-spawn":
version: 0.0.0-use.local
resolution: "@expo/turtle-spawn@workspace:packages/turtle-spawn"
dependencies:
"@expo/logger": "npm:27.10.0"
"@expo/logger": "npm:27.11.0"
"@expo/spawn-async": "npm:^1.7.2"
"@types/jest": "npm:^29.5.12"
"@types/node": "npm:22.20.5"
@@ -3238,17 +3238,17 @@ __metadata:
resolution: "@expo/worker@workspace:packages/worker"
dependencies:
"@babel/core": "npm:7.24.7"
"@expo/build-tools": "npm:27.10.0"
"@expo/build-tools": "npm:27.11.0"
"@expo/config-plugins": "npm:55.0.7"
"@expo/config-types": "npm:55.0.5"
"@expo/eas-build-job": "npm:27.10.0"
"@expo/logger": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.11.0"
"@expo/logger": "npm:27.11.0"
"@expo/results": "npm:1.0.0"
"@expo/rudder-sdk-node": "npm:1.1.1"
"@expo/spawn-async": "npm:1.7.2"
"@expo/steps": "npm:27.10.0"
"@expo/template-file": "npm:27.10.0"
"@expo/turtle-spawn": "npm:27.10.0"
"@expo/steps": "npm:27.11.0"
"@expo/template-file": "npm:27.11.0"
"@expo/turtle-spawn": "npm:27.11.0"
"@hapi/boom": "npm:10.0.1"
"@types/babel__core": "npm:7.20.5"
"@types/fs-extra": "npm:11.0.4"
@@ -8380,12 +8380,12 @@ __metadata:
languageName: node
linkType: hard
"agent-cli-detector@npm:0.1.7":
version: 0.1.7
resolution: "agent-cli-detector@npm:0.1.7"
"agent-cli-detector@npm:0.1.8":
version: 0.1.8
resolution: "agent-cli-detector@npm:0.1.8"
bin:
agent-cli-detector: dist/cli.js
checksum: 10c0/4ff016e5fad2d96a0c53db9fd75c2359bb005a672969e8e6e7bce5c910e94107c226cbcba1303409d1da3a1cdf8f22290e63049705bb530823cce4699d39fc1d
checksum: 10c0/1d686317a6f18b1a2849b6da2bd881cebafc7304933019876b0a93686e29921f12f1aa41a4416360ab4a4615e59b370d39fd28501992106eff7e127aebe6853b
languageName: node
linkType: hard
@@ -10123,7 +10123,7 @@ __metadata:
resolution: "create-eas-build-function@workspace:packages/create-eas-build-function"
dependencies:
"@expo/package-manager": "npm:1.9.10"
"@expo/steps": "npm:27.10.0"
"@expo/steps": "npm:27.11.0"
"@jest/globals": "npm:^29.7.0"
"@types/jest": "npm:^29.5.12"
"@types/node": "npm:22.20.5"
@@ -10707,12 +10707,12 @@ __metadata:
version: 0.0.0-use.local
resolution: "eas-cli-local-build-plugin@workspace:packages/local-build-plugin"
dependencies:
"@expo/build-tools": "npm:27.10.0"
"@expo/build-tools": "npm:27.11.0"
"@expo/bunyan": "npm:^4.0.1"
"@expo/eas-build-job": "npm:27.10.0"
"@expo/logger": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.11.0"
"@expo/logger": "npm:27.11.0"
"@expo/spawn-async": "npm:^1.7.2"
"@expo/turtle-spawn": "npm:27.10.0"
"@expo/turtle-spawn": "npm:27.11.0"
"@types/fs-extra": "npm:^11.0.4"
"@types/hapi__joi": "npm:^17.1.14"
"@types/lodash": "npm:^4.17.4"
@@ -10766,12 +10766,12 @@ __metadata:
"@expo/code-signing-certificates": "npm:0.0.5"
"@expo/config": "npm:55.0.10"
"@expo/config-plugins": "npm:55.0.7"
"@expo/eas-build-job": "npm:27.10.0"
"@expo/eas-json": "npm:27.10.0"
"@expo/eas-build-job": "npm:27.11.0"
"@expo/eas-json": "npm:27.11.0"
"@expo/env": "npm:^1.0.0"
"@expo/experimentation": "npm:0.0.5"
"@expo/json-file": "npm:8.3.3"
"@expo/logger": "npm:27.10.0"
"@expo/logger": "npm:27.11.0"
"@expo/multipart-body-parser": "npm:2.0.0"
"@expo/osascript": "npm:2.1.4"
"@expo/package-manager": "npm:1.9.10"
@@ -10783,7 +10783,7 @@ __metadata:
"@expo/results": "npm:1.0.0"
"@expo/rudder-sdk-node": "npm:1.1.1"
"@expo/spawn-async": "npm:1.7.2"
"@expo/steps": "npm:27.10.0"
"@expo/steps": "npm:27.11.0"
"@expo/timeago.js": "npm:1.0.0"
"@graphql-codegen/cli": "npm:6.3.1"
"@graphql-codegen/introspection": "npm:5.0.2"
@@ -10818,7 +10818,7 @@ __metadata:
"@types/ws": "npm:8.5.10"
"@urql/core": "npm:4.0.11"
"@urql/exchange-retry": "npm:1.2.0"
agent-cli-detector: "npm:0.1.7"
agent-cli-detector: "npm:0.1.8"
ajv: "npm:8.20.0"
ajv-formats: "npm:2.1.1"
axios: "npm:1.18.1"