Fix typechecking for core/tests, fix SEA build for windows, speed up CI

Merged
PI
9mo ago
+526-224

why

what changed

test plan


Summary by cubic

Fixes TypeScript across core tests/scripts, finalizes the default export/CLI, and makes the SEA build reliable on Windows. CI splits build and lint, OpenAPI generation no longer runs Prettier, and builds run in parallel across packages for faster pipelines.

  • Bug Fixes

    • Stricter TS across tests/scripts (tsconfig includes tests + CLI, added @types/jsdom, switched to playwright-core); tightened types (child-frame probes, DocumentReadyState, model utils, source-map Raw types); fixed OpenAPI typing; removed cross-package imports in server tests; added default-export parity test.
    • Default export and CLI fixed: introduced StagehandDefault mirroring named exports; ESM/CJS indices now export default; corrected package.json CLI paths/types.
    • SEA build works on Windows: build scripts use pnpm.cmd with better spawn error handling.
    • List parsing now works from raw source across core/server/evals and maps cleanly to dist outputs.
  • Refactors

    • CI split into separate Build and Lint jobs; lint cancels the workflow on failure; optional Turbo cache restore; discovery/runner steps no longer depend on the build job.
    • Parallelized builds: DOM script generators run concurrently; ESM/CJS builds and server/evals build tasks run in parallel; tuned Turbo inputs to reduce noisy rebuilds and improve caching.