chore(cli): import Browse V3 baseline

Merged
SH
2mo ago
+26616-112

Summary

Import packages/cli/** exactly from the published browse@0.9.6 V3 release, without changing its source or runtime behavior.

This is intentionally a provenance checkpoint, not a line-by-line feature review. The imported source is kept runnable by a root, version-scoped pnpm override that resolves its unchanged Stagehand dependency to 3.7.1. #2834 removes that override and starts the V4 migration.

Exact-source provenance

  • Annotated tag: browse@0.9.6 (548c56407431db27823a212f53475443c7e8358d)
  • Release commit: 1d49a95c0c230c346f8d50647e10303d6310fcd2
  • Authoritative CLI tree: b4048badce921cf54f199f96033d9a014ef977ec
  • This PR's HEAD:packages/cli tree: b4048badce921cf54f199f96033d9a014ef977ec

The tag's ignored README whitespace is retained too; formatting the import would invalidate the tree proof.

Verification

  • Current remote head: a77e1507b85e3c02553f36ead6ebd0237b0cccc6, based on current main.
  • HEAD:packages/cli exactly equals the published V3 tree hash above.
  • pnpm 11 frozen install and the repository supply-chain release-age policy pass.
  • Browse lint, typecheck, and build pass; the full baseline suite passes: 25 files / 366 tests.
  • A fresh extension build still exactly matches the Go-embedded archive: SHA-256 8efc7d171a625cca95c02d02d369b59435fae776cae6c7dd2f6fe72eb19785c0 on both files. This specifically verifies that adding the V3 dependency graph does not perturb the current V4 extension artifact.
  • This layer intentionally exercises V3 through the scoped Stagehand 3.7.1 override. V4 behavior starts in #2834.

Stack (#2872)

  1. #2833 — exact Browse V3 baseline import
  2. #2834 — Stagehand V4 runtime and standard command parity
  3. #2869 — CLI-owned cursor overlay
  4. #2849 — CLI-private CDP sidecar; V3 network parity
  5. #2835 — remove --return-xpath; supported V3 parity/release checkpoint
  6. #2838 — eval and packaging integration
  7. #2839 — managed Context names (fast-follow)
  8. #2701 — shared Functions core consumer (fast-follow)

Review and landing boundary

Review this PR by verifying the tree hashes, dependency pin, root package wiring, and changeset—not by treating the imported V3 source as newly authored code. This head deliberately imports V3 code into the V4 repository and is not independently publishable. It lands only as the base of the complete stack.

The framework network-event schema proposal in #2832 is intentionally outside this landing stack.