feat(stagehand): expose page cursor overlay

Closed
SH
2mo ago
+196-0

Summary

Expose the existing extension cursor overlay through the public V4 page API:

  • add page.enable_cursor_overlay to the protocol
  • route it through the extension runtime
  • expose page.enableCursorOverlay() in TypeScript, page.enable_cursor_overlay() in Python, and Page.EnableCursorOverlay() in Go
  • regenerate the protocol schema and embedded Go extension
image

Verification

  • pnpm --filter ./packages/protocol test:unit
  • pnpm --filter ./packages/protocol typecheck
  • pnpm --filter ./packages/extension test:unit
  • focused TypeScript Page wrapper tests and SDK build
  • Python Page tests, generation check, Ruff format/lint
  • Go SDK tests/vet, generation check, embedded extension drift check
  • workspace pnpm check

Summary by cubic

Exposes the existing extension cursor overlay through the public V4 page API so SDK users can enable it without touching the extension directly.

  • Adds the page.enable_cursor_overlay protocol method and routes it through the extension runtime.
  • Adds page.enableCursorOverlay() in TypeScript, page.enable_cursor_overlay() in Python, and Page.EnableCursorOverlay() in Go, and documents each in the V4 reference.
  • Regenerates the protocol schema and the embedded Go extension zip.
  • Keeping this isolated from the Browse runtime cutover keeps the core API independently reviewable.