feat(stagehand): expose page cursor overlay
Closed
SH
2mo ago+196+196+012345678901234567890123456789-0-0-0123456789
Summary
Expose the existing extension cursor overlay through the public V4 page API:
- add
page.enable_cursor_overlayto the protocol - route it through the extension runtime
- expose
page.enableCursorOverlay()in TypeScript,page.enable_cursor_overlay()in Python, andPage.EnableCursorOverlay()in Go - regenerate the protocol schema and embedded Go extension
Verification
pnpm --filter ./packages/protocol test:unitpnpm --filter ./packages/protocol typecheckpnpm --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_overlayprotocol method and routes it through the extension runtime. - Adds
page.enableCursorOverlay()in TypeScript,page.enable_cursor_overlay()in Python, andPage.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.