Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7ca6887
feat: add browser-scoped session client
rgarcia Apr 13, 2026
b2c7aac
fix: reserve internal browser request query params
rgarcia Apr 13, 2026
cfff5b4
fix: type-check browser-scoped helpers
rgarcia Apr 13, 2026
fc34859
chore: fix browser-scoped test import order
rgarcia Apr 13, 2026
8e8dde2
fix: satisfy browser-scoped lint checks
rgarcia Apr 13, 2026
53b17c8
feat: generate browser-scoped resource bindings
rgarcia Apr 13, 2026
0bdf85e
fix: quiet generator-script pyright noise
rgarcia Apr 13, 2026
b410245
fix: satisfy generated browser-scoped type checks
rgarcia Apr 13, 2026
a80716b
chore: keep browser-scoped generator lint clean
rgarcia Apr 13, 2026
ca5d188
docs: flesh out browser-scoped example
rgarcia Apr 21, 2026
dba503e
refactor: drop browser-scoped wrapper clients
rgarcia Apr 22, 2026
de0476f
refactor: simplify browser routing cache
rgarcia Apr 22, 2026
3ae9dab
refactor: rename browser routing subresources config
rgarcia Apr 22, 2026
622f844
refactor: clean up python browser routing diff
rgarcia Apr 22, 2026
694907a
fix: finish python browser routing cleanup
rgarcia Apr 23, 2026
9690923
fix: address python browser routing ci follow-ups
rgarcia Apr 23, 2026
3ce80e7
fix: normalize python browser request string bodies
rgarcia Apr 23, 2026
0647d5c
refactor: move python browser routing rollout to env
rgarcia Apr 24, 2026
f4c247b
fix: normalize browser route cache session IDs
rgarcia Apr 24, 2026
563de7d
refactor: sniff browser routes in response hooks
rgarcia Apr 24, 2026
a873a18
fix: evict deleted browser routes
rgarcia Apr 24, 2026
02a2f59
refactor: inline browser resource passthrough returns
rgarcia Apr 24, 2026
5328730
fix: sniff browser pool route cache updates
rgarcia Apr 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions examples/browser_scoped.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Example: browser-scoped client for browser VM process exec and raw HTTP."""

from kernel import Kernel

# After creating or loading a browser session (with base_url + cdp_ws_url from the API):
# browser = client.browsers.create(...)
# scoped = client.for_browser(browser)
# scoped.process.exec(command="uname", args=["-a"])
# r = scoped.request("GET", "https://example.com")
# with scoped.stream("GET", "https://example.com") as resp:
# print(resp.read())


def main() -> None:
_ = Kernel


if __name__ == "__main__":
main()
Loading
Loading