refactor(provider-webdriver): remove superseded cloud runtime factories

Merged
TH
2mo ago
+6-186

Summary

Deletes four @internal cloud-provider factories that had zero references repo-wide:

  • getAwsDeviceFarmWebDriverCapabilities / createAwsDeviceFarmWebDriverRuntime
  • getBrowserStackWebDriverCapabilities / createBrowserStackWebDriverRuntime

Each JSDoc claimed "used by integration tests". They were not. Neither symbol is
re-exported from the package barrel (index.ts is an explicit named-export barrel, not
export *), so nothing outside browserstack.ts / aws-device-farm.ts could reach them,
and no .test.ts, workflow, or script mentions them.

createCloudWebDriverProviderDefinitions composes each provider runtime directly and is
the sole construction path; these were the superseded pre-definitions shape. Every helper
they composed still has live provider-definitions.ts callers and stays: capability
overrides, both endpoint constants, createBrowserStackUploadApp,
buildBrowserStackCapabilities, listBrowserStackCloudArtifacts,
listAwsDeviceFarmCloudArtifacts, createAwsDeviceFarmPrepareSession.

Two files, net −180 production lines, no test changes.

Also removed with the BrowserStack factory: resolveConfiguredBrowserStackCapabilities,
whose webdriverCapabilities-shadowing precedence the live path never applied (it passes
buildCloudWebDriverBaseCapabilities(platform, deviceName) as configured). Deleting it
removes an unreachable alternative precedence rather than removing behaviour, so no
behaviour changes on any provider route.

Validation

Tested at efa96b6d6.

  • pnpm check:affected --run — all runnable checks passed: format, lint, typecheck,
    layering R11, fallow, build, vitest related (105 files / 602 tests).
  • vitest run --project provider-integration test/integration/provider-scenarios/cloud-webdriver*
    — 5 files / 24 tests, including packaged Cloud WebDriver facade drives provider devices
    through daemon commands
    : the surviving owner-boundary proof for both providers.
  • vitest run --project unit-core packages/provider-webdriver — 15 files / 113 tests.

No device lane is selected by this change: no route, selector, or wire shape moves.

Note for the dead-code gate: pnpm check:production-exports reports 79 findings both at
origin/main and at this head, so it never flagged these four exports. Baseline unchanged.