Export a single site's live session so pup can carry it (replaces ab decrypt for the session case)
What pup needs
A verb that reads one site's live session out of the user's real signed-in Chrome/Edge (the browser nb-bridge already drives) and hands it back, so pup can set it in a pup window and act as the user on that site.
pup drives its own managed Chrome-for-Testing profile, not the user's real signed-in profile, so pup cannot see the user's existing sessions. nb-bridge is inside the real browser, where the user is already logged in, so this is a read nb is positioned to do and pup is not.
Why (the real-world case)
Signing a user into sites in pup keeps hitting a wall where the site refuses a fresh sign-in from pup's browser even with the right credential (x.com is the current example, adom/pup-bridge#136). But the user is already logged in to that site in their own Chrome. We don't need their password at all, we need the authenticated session carried over.
Until now the session came from ab's desktop_decrypt_browser_credentials, which reads cookies straight out of Chrome's sealed store. That path broke on Chrome 156 (adom/adom-bridge#254) and, more fundamentally, cracking Chrome's store from outside Chrome is a losing arms race against Chrome's hardening. Reading the session from inside the real browser, where nb already lives, sidesteps that entirely.
Shape (suggestion, nb owns the mechanism)
nb_export_site_session { domain }-> that site's cookies / storage for pup to set, scoped to the one registrable domain the user named.- Per-call consent, same as nb's other reaching-into-the-real-browser verbs. Values never printed or logged.
- If more than one profile is signed in to that domain, return the list so the caller can ask which account.
Consumer
pup-bridge's pup_import_browser_logins { sessionFor } would call this instead of ab's decrypt helper. See the companion password-import request and adom/adom-bridge#254 for the full re-scope.