You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 892c05d
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: consolidate helpers and error types across the package
- One `_documented` helper (client.py) replaces `_attach_generated` and the
copy in `_serve.py`: it copies members inherited from private modules
onto the public classes, which is what both existed for (pdoc hides such
members).
- `ProcessError` for binary-not-found, port-in-use, startup failure and
lost-connection errors, so callers can tell a dead browser from a failed
tool call. Usage errors stay on the base class.
- Startup readiness polls every 5 ms instead of 50 ms; a refused localhost
connect fails instantly, so the coarser cadence only added latency.
- Drop the dead "not started" branch in the transport error message, the
double-checked locking around uncontended asyncio locks, the `__dir__`
overrides (the generated methods always exist), the per-session rebuild
of the snake-case name map, `run_script`'s missing-file pre-check (the
binary reports it with a real exit code), and browser.py's re-export of
the error classes. `args` is typed as `Sequence[str]`.
0 commit comments