refactor(webdriver): build the WebDriver runtime inside each provider plugin
Summary
AWS Device Farm, BrowserStack, and TestMu build their bundled WebDriver runtime in provider setup. Revyl continues to bundle the WebDriver Android snapshot parser it uses. Plugin contract v3 now returns a runtime directly and exposes a request-scoped diagnostics emitter. This removes the host adapter and agent-device/plugins/webdriver export.
Closes #4974
Value
| Core metric | Base | Head |
|---|---|---|
| npm unpacked bytes | 6,075,229 | 6,006,367 |
| npm tarball bytes | 1,856,984 | 1,837,036 |
| Rendered WebDriver modules | 20 | 0 |
Measured with npm pack --dry-run --json --ignore-scripts after preparing release assets. Base is merge-base bdf5096f77. The core module map retains XML and capture-kit. No other workspace owner or external dependency dropped out.
Validation
Built the root and four provider tsdown configs into temporary directories. A Rolldown generateBundle hook inspected each JavaScript chunk's rendered modules. The provider tarballs contain byte-identical WebDriver chunks, and all four isolated installation smokes passed.
The packed BrowserStack lease probe recorded one webdriver_route_unsupported event in core's request scope at base and head. The provider integration suite covers the request log.
Head b72e8a6909069077570c54c4d79f1e6ebcc21d9d. Foreground pnpm check:affected --run --base origin/0.22 --head HEAD passed with exactCommit: true, including 22,212 unit tests and 319 provider scenarios. Hosted checks and independent review are pending.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.