`@e2e-dev/web` and `@e2e-dev/mobile` declare `e2e` an optional peer, but
their main entry imported it statically to build `test`. A program on
`@e2e-dev/core` alone that wrote `import { web } from '@e2e-dev/web'`
failed with ERR_MODULE_NOT_FOUND before any of its code ran.
The main entry now requires `e2e` only when it resolves. Without it, the
engine factory works and `test`, `describe`, and the hooks throw
RUNNER_NOT_INSTALLED when called. It uses createRequire, not a top-level
await, so a CommonJS file can still require() the entry.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* refactor: move e2e's core into @e2e-dev/core, and engines peer on it
The engine contract, locators, agent, replay cache, secrets, and the
session half of a worker move from packages/e2e to packages/core, the new
@e2e-dev/core package, at the same paths. e2e depends on it at its exact
version (a changesets fixed group) and reaches its modules through
@e2e-dev/core/lib/*, which is not public API; e2e/engine and e2e/agent
re-export it. @e2e-dev/web and @e2e-dev/mobile peer on @e2e-dev/core and
import the contract from @e2e-dev/core/engine. Install smoke checks that one
copy of @e2e-dev/core is installed.
Most of this diff is git mv and import specifiers rewritten to
@e2e-dev/core/lib/<path>; no behavior changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci: build and pack @e2e-dev/core where e2e is built or packed alone
The Bun job built e2e before the @e2e-dev/core it compiles against, and the
examples nightly installs e2e from a tarball whose exact @e2e-dev/core is
not on npm; it now packs @e2e-dev/core and overrides it in each example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(engines): name @e2e-dev/core/engine as the contract's source
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(e2e): list @e2e-dev/core beside an engine in init and upgrade
Engines peer on @e2e-dev/core. Yarn installs no peer the project does
not list, and under Plug'n'Play the engine then fails to load.
- init adds @e2e-dev/core with any engine
- upgrade adds a required @e2e-dev peer the project lacks, and keeps a
package e2e depends on at the version e2e names
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
* feat(mobile): export agent-device from @e2e-dev/mobile/agent-device
Custom tools that extend the mobile engine with agent-device calls have
to import `agent-device` directly. pnpm does not resolve that import
from a transitive dependency, so the project installs agent-device
itself and has to keep it at the exact version @e2e-dev/mobile pins,
because two versions do not share one daemon.
The new subpath re-exports what a tool commonly needs from the engine's
copy: `createAgentDeviceClient`, the error helpers (`AppError`,
`isAgentDeviceError`, `normalizeAgentDeviceError`), `centerOfRect`, and
the types for the client, snapshots, screenshots, targets, gestures,
text entry, alerts, and waits. `ensureDaemon` and `startAgentDevice`
stay out because the engine owns the daemon.
The install smoke imports the subpath from a fresh pnpm project with no
agent-device dependency and checks there is one agent-device install.
The e2e skill tells agents to use this import instead of adding
agent-device.
* docs(mobile): mark @e2e-dev/mobile/agent-device unstable, point tests to unstable_raw
A client built with `createAgentDeviceClient` does not get the engine's
daemon, lease, or per-worker session name, so the docs no longer say it
drives the engine's session. Tests use `device.unstable_raw.client`.
The subpath is agent-device's API at the pinned version, so it is
labeled unstable like `unstable_raw`.
* chore(mobile): shorten the agent-device subpath comments
* feat(mobile): give custom tools the running device session
A custom tool had no way to reach the engine's agent-device client, and
a client built from `createAgentDeviceClient` misses the engine's
daemon, lease, and per-worker session. `deviceSession(...engines)` on
`@e2e-dev/mobile/tools` returns the running attempt's `DeviceSession`,
the object a test reads from `device.unstable_raw`, using the lookup
`mobileTools` already had.
From review: `@e2e-dev/mobile/agent-device` drops the client factory and
keeps the types and error helpers. The skill line is scoped to these
imports, and the stale Limrun peer line is fixed. The export-map test
checks every entry's paths, the install smoke stops reading the `.pnpm`
layout, and the docs keep one full description in the reference.
* fix(mobile): spread the device selection in the deviceSession example
The docs example called `settings.update` without the session's
`selection`, unlike every engine call, so it could miss the worker's
device before an app is open. Also restores `createDeviceFixture`'s
JSDoc and tests the several-attempts refusal of `deviceSession`.
* refactor(mobile): keep raw sessions behind a neutral unstable API
* fix(mobile): type the unstable raw session client
---------
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
* docs(examples): add the GitLab CI/CD example
Let the registry list examples on gitlab.com: the schema accepts GitLab
projects and folders, official examples may live in the e2e_inc group, and
the checks pin, compare, and fetch GitLab URLs. A partner example stays on
GitHub, under its author.github.
* docs(examples): say partner examples live on GitHub in the contributing guide
* docs: retire sidebar page icons
The docs sidebar no longer shows icons. Drop icon: from every page's frontmatter, delete the grey silhouettes in docs/images/icons/, and make check-docs-logos fail on any frontmatter icon instead of requiring one on vendor pages. Card logos stay required. The authoring-docs skill trades its Page icons section for a short Vendor logos one.
* docs: require a migrate overview card for each migration guide
* docs: match only top-level icon keys in check-docs-logos
* docs(migrate): show the TesterArmy logo in the sidebar and add its card
The sidebar icon was the dithered black mark, which the site's grey
silhouette filter smeared into a blob at 16 px. Use TesterArmy's favicon
instead: grey shades in the sidebar, brand colors on the new card in the
migrate overview.
* docs(skills): exempt the TesterArmy icon in the authoring-docs checklist
* feat(examples): add 26 community examples, pinned to a commit, with an optional readme
* docs(examples): allow an example without a README in what we look for
* docs: add a Writing fixtures guide
* docs: list Writing fixtures after Project tools and fold its long example
* docs: show fixtures creating test data and leave sign-in to saved sessions
* docs: create fixture data with agent.act instead of a test API
* docs: cut the Writing fixtures page to the essentials
* docs: import expect from e2e in the fixtures example
* ci(examples): run every example nightly against main and report to Slack
A scheduled workflow (23:00 Europe/Warsaw) packs e2e, @e2e-dev/web, and @e2e-dev/mobile from main, installs them into each example in place of the npm releases, builds the native apps, and runs the deterministic and agent tests on Chromium, an Android emulator, and an iOS simulator. One summary job posts the whole run to Slack through the SLACK_EXAMPLES_NIGHTLY_WEBHOOK_URL webhook. with-limrun is left out; nothing here gates a pull request.
* fix(examples): never report an empty or unlisted nightly run as green
* ci(examples): never run the nightly examples on a fork
* docs(integrations): give TestMu AI its logo and fail docs:check on a vendor page without one
The TestMu AI page shipped in #772 with no sidebar icon and a Font Awesome
card on the integrations overview. The authoring-docs rule existed, but
the PR was a package PR and never loaded the skill.
scripts/check-docs-logos.ts now fails pnpm docs:check when a page under
docs/integrations/, docs/ci/, or docs/migrate/ has no logo as its sidebar
icon, a card linking to it has none, or it has no overview card. The
authoring-docs and ship-pr skills state the rule and point to the check.
* docs(scripts): reject a logo path that leaves its directory; scope the overview-card rule in ship-pr
* chore(lint): require a check on JSON parsed in package source
e2e/no-unchecked-json requires JSON.parse / .json() results in
packages/*/src to be typed unknown (or Promise<unknown>) wherever they
land: assertion, declaration, assignment, or a typed return. Fixes its
25 hits: zod schemas and one readJsonBody helper across the oauth
providers, typed readers in config, eas, and limrun, reasoned disables
for a value we serialize ourselves and two page or public API values.
* fix(lint): flag untyped JSON returns, keep cancelling a stop answer without its job
* fix(lightpanda): read the /json/version answer as unknown