Remove internal diagnostic methods
Merged
MO
3mo ago+156+156+012345678901234567890123456789-983-983-012345678901234567890123456789
Removes ping, runtimeLoopbackStatus, and browserGetVersion from the protocol and all SDK surfaces. It also removes the extension and runtime handlers and refreshes generated clients and documentation.
Summary by cubic
Removed internal diagnostic methods (ping, runtime.loopback_status, and browser.get_version) from the v4 protocol and all SDKs to align the public surface with Linear STG-2708. Docs, generated clients, and tests were updated; metrics remain available.
-
Refactors
- Protocol/Server: Removed methods and schemas from
stagehand.v4.jsonand the registry; deleted related controllers/handlers (includingbrowserController) and router routes; tightened the request schema; dropped runtime helpers that exposed these diagnostics. - SDKs (TS, Python, Go): Removed corresponding APIs and types; regenerated models/clients; updated tests to use non-diagnostic calls (e.g.,
context.pagesor stubbedtest.request) and adjusted notification/log checks. - Docs: Removed diagnostics from the
stagehandreference and first-steps intro; clarified that only metrics are built in.
- Protocol/Server: Removed methods and schemas from
-
Migration
- Remove any usage of
stagehand.ping(),stagehand.runtimeLoopbackStatus(), andstagehand.browserGetVersion()(and equivalents in Python/Go). - For connectivity, await
stagehand.init()and handle errors. For browser version, query CDPBrowser.getVersionvia your own connection.stagehand.metrics()is unchanged.
- Remove any usage of