Repository navigation
v0.17.0
bdg v0.17.0
bdg 0.17.0 lets agents work with more than one tab: actions now report the tabs and popups they open, and bdg page tabs|switch|close move between them. You can save a logged-in browser state and load it again, and bdg cdp can collect CDP events (tracing, Fetch interception). A secrets theme runs through the release: credentials in network details, page URLs and HTML bodies are now masked by default, which changes three defaults (see "Changed defaults").
Highlights
- Tabs and popups: click results list what they opened (
Opened: popup ... (bdg page switch 1));bdg page tabs,page switchandpage closedrive them, and an OAuth popup that closes itself returns you to its opener (#556, #558). - Auth state:
bdg state save <file>/bdg state load <file>andbdg <url> --state <file>keep cookies and storage across sessions, in a 0600 file (#566). - CDP event collection:
bdg cdp <Method> --collect <Event> --until <Event> --out file.ndjson, plus buffered--listen/--events(#549). - JS dialogs your way:
--dialog accept|dismissand--prompt-texton DOM actions and for a whole session (#550, #561). - Why things failed: actions report the console errors they caused (#548), blocked submits name the fields (#581, #598), blocked cookies show in
details network(#564), andbdg consolelists Chrome Issues such as quirks mode and form errors (#551). - Network lists you can steer:
network list --page current --sort size, anddetails network --body|--no-body|--body-max(#565). - Sturdier DOM commands:
dom filltypes like a user sominlengthapplies (#607), parallel commands no longer break each other (#602), closed shadow roots work for clicks (#604), anddom queryrows are about 70% smaller on class-heavy pages (#571). - Secrets: masking for DOM output, network details, URLs and HAR bodies (#597, #627, #638, #648, #649, #650), and page scripts no longer carry typed values in CDP expressions (#626, #654).
Changed defaults
details network,network headers,network documentmask credentials (#638): cookies,Authorization, API-key headers, secret URL parameters and body fields show••••. Add--include-sensitivefor the raw values.- Page URLs lose
user:pass@and mask tokens (#650) in all output anddaemon.log. Add--include-sensitivetostatus,sessions,page info,page tabs,network listorpeekto see them as they are. - The default HAR and
details network --bodymask secret form-control values in HTML bodies (#648). Use--include-sensitiveto keep everything. - Also:
dom filltypes text like a user (#607), secret fields report validity state instead of Chrome's message (#649), andSubmit blockedappears in click and key results (#581, #598). To read a masked DOM value, usebdg dom eval.
Thanks
A warm welcome to @jay23606, whose first pull request here (#651) landed this release: bdg cleanup now removes atomic-write leftovers from the session directory. It was reviewed and merged the same day, and more is very welcome: issues, ideas and pull requests all help.
Install
npm install -g browser-debugger-cliFull changelog: v0.16.0...v0.17.0