feat: expose URL waits across Stagehand SDKs
SU
1mo ago+521+521+012345678901234567890123456789-22-22-01234567890123456789
why
Expose passive URL waiting consistently across Stagehand SDKs.
PR2 of 2, stacked on #3177 (amel/wait-for-url-extension). The parent handles navigation observation, document readiness, and cancellation. Merge it first using the repository’s stacked-PR handoff rules.
what changed
- Register
page.wait_for_url; add TypeScriptwaitForURLand Pythonwait_for_urlwith typed options. - Match full-URL string globs:
*excludes slashes,**includes slashes, and other characters are literal. Regex/predicate matchers are not exposed. - Support
loadanddomcontentloaded, defaulting to load/30 seconds.networkidleis intentionally unsupported until passive idle readiness is reliable. - Align default/explicit/zero response deadlines across TypeScript and Python; no transport polling.
- Regenerate protocol and Python models with current main's tooling; add docs and release entries for the active packages.
- Remove the retired Go additions and merge the rebased extension parent, retaining main's existing
waitForFunctionimplementation.
Reviewed with the requested Thermo-Nuclear Code Quality Review skill and an independent SDK cross-review. Business logic remains in the extension; adapters reuse existing contracts and timeout policies.
test plan
- Real Chrome: 21 tests passed — all 6 URL cases plus 15 existing function-wait cases.
- 1,054 focused extension/SDK/protocol/docs/architecture tests passed.
- Python: 207 tests passed; Ruff and generated-model consistency passed.
- Extension/SDK/protocol typechecks, dependency-ordered builds, protocol/Python regeneration, MDX compilation, scoped lint, formatting, and
git diff --checkpassed. - Parent alone: 102 tests plus extension typecheck/build passed.
- Independent strict review approved both branches.