browser-tools 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {browser_tools-0.3.0 → browser_tools-0.4.0}/.gitignore +3 -0
- browser_tools-0.4.0/PKG-INFO +249 -0
- browser_tools-0.4.0/README.md +210 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/pyproject.toml +2 -4
- browser_tools-0.4.0/src/browser_tools/GUIDE.txt +475 -0
- browser_tools-0.4.0/src/browser_tools/__init__.py +59 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/cdp_client.py +124 -3
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/cdp_handler.py +82 -19
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/cli.py +335 -54
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/attach.py +2 -2
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/cdp_client.py +12 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/connection.py +10 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/launcher.py +22 -7
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/registry.py +4 -4
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/supervisor.py +143 -8
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/curated.py +229 -87
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/detect_interstitial.js +31 -8
- browser_tools-0.4.0/src/browser_tools/endpoint.py +166 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/events.py +152 -7
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/extras.py +2 -2
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/interstitial.py +124 -25
- browser_tools-0.4.0/src/browser_tools/lifecycle.py +1530 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/list_verbs.py +9 -6
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/native_interaction.py +98 -46
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/native_snapshot.py +170 -44
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/one_shot.py +33 -7
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/passthrough.py +71 -25
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/process_utils.py +22 -44
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/profiler.py +3 -3
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/screencast.py +57 -10
- browser_tools-0.4.0/src/browser_tools/tool_registry.py +70 -0
- browser_tools-0.4.0/src/browser_tools/usage.py +23 -0
- browser_tools-0.4.0/tests/conftest.py +41 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/CORPUS.md +58 -68
- {browser_tools-0.3.0/src/browser_tools → browser_tools-0.4.0/tests/parity}/camoufox_session.py +11 -3
- {browser_tools-0.3.0/tests → browser_tools-0.4.0/tests/parity}/conftest.py +15 -26
- browser_tools-0.3.0/src/browser_tools/mcp_broker.py → browser_tools-0.4.0/tests/parity/node_broker.py +17 -12
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/parity_engines.py +73 -7
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/run_baseline.py +1 -1
- browser_tools-0.3.0/tests/test_camoufox.py → browser_tools-0.4.0/tests/parity/test_camoufox_session.py +28 -3
- {browser_tools-0.3.0/tests → browser_tools-0.4.0/tests/parity}/test_e2e_camoufox.py +1 -1
- browser_tools-0.4.0/tests/parity/test_node_broker.py +249 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_baseline.py +1 -1
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_engine.py +16 -3
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_gate.py +23 -13
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_native_interaction.py +51 -9
- browser_tools-0.4.0/tests/test_async_discovery.py +196 -0
- browser_tools-0.4.0/tests/test_cli_grammar.py +331 -0
- browser_tools-0.4.0/tests/test_cli_surface.py +178 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_core_launcher.py +8 -5
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_curated_verbs.py +123 -22
- browser_tools-0.4.0/tests/test_detached_tasks.py +185 -0
- browser_tools-0.4.0/tests/test_diagnostics_name_real_verbs.py +200 -0
- browser_tools-0.4.0/tests/test_endpoint.py +489 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_events.py +8 -2
- browser_tools-0.4.0/tests/test_guide.py +409 -0
- browser_tools-0.4.0/tests/test_interaction_targeting.py +170 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_interstitial.py +183 -2
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_list_verbs.py +8 -2
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_native_backend.py +9 -4
- browser_tools-0.4.0/tests/test_native_interaction.py +392 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_native_snapshot.py +206 -90
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_new_tools.py +6 -2
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_one_shot.py +15 -9
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_packaging.py +98 -14
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_passthrough.py +7 -4
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_profile_liveness.py +6 -2
- browser_tools-0.4.0/tests/test_profile_path_hardening.py +243 -0
- browser_tools-0.4.0/tests/test_profile_root_move.py +424 -0
- browser_tools-0.4.0/tests/test_profile_verbs.py +322 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_profiler.py +2 -2
- browser_tools-0.4.0/tests/test_retained_contracts.py +171 -0
- browser_tools-0.4.0/tests/test_stop_target.py +323 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_supervisor_never_pauses.py +4 -1
- browser_tools-0.4.0/tests/test_supervisor_profile_preservation.py +152 -0
- browser_tools-0.4.0/tests/test_supervisor_visibility.py +223 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_window_marking.py +7 -6
- browser_tools-0.3.0/PKG-INFO +0 -203
- browser_tools-0.3.0/README.md +0 -164
- browser_tools-0.3.0/src/browser_tools/__init__.py +0 -66
- browser_tools-0.3.0/src/browser_tools/attach_chrome.sh +0 -124
- browser_tools-0.3.0/src/browser_tools/automation_backend.py +0 -125
- browser_tools-0.3.0/src/browser_tools/browser_session.py +0 -958
- browser_tools-0.3.0/src/browser_tools/browser_state.py +0 -224
- browser_tools-0.3.0/src/browser_tools/chrome_config.py +0 -49
- browser_tools-0.3.0/src/browser_tools/chrome_utils.py +0 -185
- browser_tools-0.3.0/src/browser_tools/core/session.py +0 -241
- browser_tools-0.3.0/src/browser_tools/daemon_client.py +0 -136
- browser_tools-0.3.0/src/browser_tools/daemon_supervisor.py +0 -405
- browser_tools-0.3.0/src/browser_tools/lifecycle.py +0 -913
- browser_tools-0.3.0/src/browser_tools/live_chrome.py +0 -107
- browser_tools-0.3.0/src/browser_tools/mcp_daemon.py +0 -591
- browser_tools-0.3.0/src/browser_tools/mcp_session.py +0 -204
- browser_tools-0.3.0/src/browser_tools/page_selection.py +0 -253
- browser_tools-0.3.0/src/browser_tools/persistent-session-template.mjs +0 -132
- browser_tools-0.3.0/src/browser_tools/persistent_browser.py +0 -823
- browser_tools-0.3.0/src/browser_tools/profile_catalog.py +0 -220
- browser_tools-0.3.0/src/browser_tools/project_identity.py +0 -83
- browser_tools-0.3.0/src/browser_tools/session_layout.py +0 -151
- browser_tools-0.3.0/src/browser_tools/session_reaper.py +0 -193
- browser_tools-0.3.0/src/browser_tools/session_store.py +0 -343
- browser_tools-0.3.0/src/browser_tools/tool_registry.py +0 -140
- browser_tools-0.3.0/tests/parity/conftest.py +0 -17
- browser_tools-0.3.0/tests/test_attach_browser.py +0 -775
- browser_tools-0.3.0/tests/test_auth_identity.py +0 -271
- browser_tools-0.3.0/tests/test_automation_backend.py +0 -152
- browser_tools-0.3.0/tests/test_browser_tools.py +0 -98
- browser_tools-0.3.0/tests/test_close_and_real_mode.py +0 -576
- browser_tools-0.3.0/tests/test_daemonless_cli.py +0 -111
- browser_tools-0.3.0/tests/test_dispatch.py +0 -237
- browser_tools-0.3.0/tests/test_e2e_backend_seam.py +0 -73
- browser_tools-0.3.0/tests/test_inspect_mode.py +0 -135
- browser_tools-0.3.0/tests/test_live_chrome.py +0 -122
- browser_tools-0.3.0/tests/test_mcp_daemon.py +0 -468
- browser_tools-0.3.0/tests/test_mcp_surface_contract.py +0 -1082
- browser_tools-0.3.0/tests/test_native_interaction.py +0 -336
- browser_tools-0.3.0/tests/test_page_selection.py +0 -209
- browser_tools-0.3.0/tests/test_persistent_browser.py +0 -507
- browser_tools-0.3.0/tests/test_profiles.py +0 -180
- browser_tools-0.3.0/tests/test_session_dispatch.py +0 -251
- browser_tools-0.3.0/tests/test_session_lifecycle.py +0 -270
- {browser_tools-0.3.0 → browser_tools-0.4.0}/LICENSE +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/NOTICE +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/camoufox_runner.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/cdp_constants.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/__init__.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/__init__.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/accessibility.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/animation.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/audits.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/autofill.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/background_service.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/bluetooth_emulation.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/browser.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/cache_storage.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/cast.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/console.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/css.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/debugger.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/device_access.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/device_orientation.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/dom.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/dom_debugger.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/dom_snapshot.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/dom_storage.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/emulation.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/event_breakpoints.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/extensions.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/fed_cm.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/fetch.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/file_system.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/headless_experimental.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/heap_profiler.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/indexed_db.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/input.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/inspector.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/io.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/layer_tree.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/log.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/media.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/memory.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/network.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/overlay.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/page.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/performance.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/performance_timeline.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/preload.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/profiler.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/pwa.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/runtime.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/schema.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/security.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/service_worker.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/smart_card_emulation.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/storage.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/system_info.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/target.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/tethering.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/tracing.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/web_audio.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/domains/web_authn.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/errors.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/fingerprint.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/instance_status.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/protocol.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/core/utils.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/frame_manager.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/mcp_response.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/screenshot_utils.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/src/browser_tools/user_settings.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/dynamic.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/form.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/iframe.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/iframe_child.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/plain.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/fixtures/shadow.html +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/live_chromium.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/parity_comparison.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/parity_corpus.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_corpus.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_native.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/parity/test_parity_operator.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_cdp_client.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_cli_lifecycle.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_frame_manager.py +0 -0
- {browser_tools-0.3.0 → browser_tools-0.4.0}/tests/test_supervisor_document_liveness.py +0 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: browser-tools
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Browser automation, debugging, and anti-detect browsing CLI
|
|
5
|
+
Project-URL: Homepage, https://github.com/dungle-scrubs/browser-tools
|
|
6
|
+
Project-URL: Repository, https://github.com/dungle-scrubs/browser-tools
|
|
7
|
+
Project-URL: Issues, https://github.com/dungle-scrubs/browser-tools/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/dungle-scrubs/browser-tools/blob/main/CHANGELOG.md
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Keywords: anti-detect,browser-automation,camoufox,cdp,chrome-devtools,playwright,web-scraping
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: MacOS
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Classifier: Topic :: Software Development :: Testing
|
|
25
|
+
Classifier: Topic :: Utilities
|
|
26
|
+
Classifier: Typing :: Typed
|
|
27
|
+
Requires-Python: >=3.13
|
|
28
|
+
Requires-Dist: websockets>=16.0
|
|
29
|
+
Provides-Extra: all
|
|
30
|
+
Requires-Dist: aiohttp>=3.14.1; extra == 'all'
|
|
31
|
+
Requires-Dist: camoufox[geoip]>=0.4.11; extra == 'all'
|
|
32
|
+
Requires-Dist: pillow>=10.0.0; extra == 'all'
|
|
33
|
+
Provides-Extra: camoufox
|
|
34
|
+
Requires-Dist: aiohttp>=3.14.1; extra == 'camoufox'
|
|
35
|
+
Requires-Dist: camoufox[geoip]>=0.4.11; extra == 'camoufox'
|
|
36
|
+
Provides-Extra: profiling
|
|
37
|
+
Requires-Dist: pillow>=10.0.0; extra == 'profiling'
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
|
|
40
|
+
# Browser Tools
|
|
41
|
+
|
|
42
|
+
[](https://github.com/dungle-scrubs/browser-tools/actions/workflows/ci.yml)
|
|
43
|
+
[](https://www.python.org/downloads/)
|
|
44
|
+
[](https://opensource.org/licenses/MIT)
|
|
45
|
+
[](https://docs.astral.sh/ruff/)
|
|
46
|
+
|
|
47
|
+
Browser automation, debugging, and anti-detect browsing CLI. Provides:
|
|
48
|
+
|
|
49
|
+
- **Raw CDP passthrough** - Any `Domain.method` goes straight to the running
|
|
50
|
+
browser, with protocol help read live from it
|
|
51
|
+
- **Snapshot-based page automation** - Accessibility-tree snapshots and UID
|
|
52
|
+
interaction (`snapshot`, `click --uid`, `fill --uid`), in Python over CDP
|
|
53
|
+
- **Named browser instances** - Long-lived Chrome with a registry and named
|
|
54
|
+
profiles that keep a login across restarts
|
|
55
|
+
- **External browsers** - `--endpoint http://127.0.0.1:9222` drives a browser
|
|
56
|
+
you already have open and logged in, writing nothing to the registry
|
|
57
|
+
- **Frame-aware tools** - Iframe/CDP frame tree management, execution context
|
|
58
|
+
resolution, and storage inspection
|
|
59
|
+
- **Interstitial detection** - Multi-signal heuristic detection for Cloudflare,
|
|
60
|
+
DataDome, Akamai, PerimeterX, Imperva, AWS WAF, and other challenge pages
|
|
61
|
+
- **Camoufox anti-detect browsing** - Fingerprint-injected Firefox-based
|
|
62
|
+
browsing for bot-protected sites
|
|
63
|
+
- **Anything else CDP can do** - File upload, viewport emulation, cookies,
|
|
64
|
+
PDF export and page management have no curated verb and need none; `bt
|
|
65
|
+
guide` has a worked example of each
|
|
66
|
+
|
|
67
|
+
## Quick Start
|
|
68
|
+
|
|
69
|
+
### Installation
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Using uv (recommended)
|
|
73
|
+
uv tool install browser-tools
|
|
74
|
+
|
|
75
|
+
# Or with pip
|
|
76
|
+
pip install browser-tools
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Usage
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Run the CLI (`bt` is an alias for `browser-tools`)
|
|
83
|
+
bt --help
|
|
84
|
+
|
|
85
|
+
# Launch a browser. It is registered by name and outlives this command, so
|
|
86
|
+
# later verbs drive the same Chrome and share its page and login state.
|
|
87
|
+
bt launch
|
|
88
|
+
|
|
89
|
+
# Navigate through the raw CDP passthrough, then read the page.
|
|
90
|
+
bt Page.navigate '{"url": "https://example.com"}'
|
|
91
|
+
bt snapshot
|
|
92
|
+
|
|
93
|
+
# Interact by UID from that snapshot.
|
|
94
|
+
bt click --uid 1-13
|
|
95
|
+
|
|
96
|
+
# When the page is blocking, ask directly.
|
|
97
|
+
bt detect
|
|
98
|
+
|
|
99
|
+
bt status # registered instances and their page targets
|
|
100
|
+
bt stop # close the browser and retire its registry entry
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Omit `INSTANCE` while exactly one instance is running; with several, every verb
|
|
104
|
+
names the candidates rather than guessing. `bt help Domain.method` reads the
|
|
105
|
+
protocol schema from the running browser.
|
|
106
|
+
|
|
107
|
+
**`bt guide` is the manual.** It is the complete CLI surface -- every verb,
|
|
108
|
+
every refusal with its exit code, the login walkthrough, the UID rule, and the
|
|
109
|
+
`--endpoint` rules -- and reading it is enough to drive a browser with this
|
|
110
|
+
tool. A test fails the build when a verb has no entry in it.
|
|
111
|
+
|
|
112
|
+
To drive a browser you started yourself, pass its debugging port instead of an
|
|
113
|
+
instance name:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Chrome started with --remote-debugging-port=9222, already logged in.
|
|
117
|
+
bt snapshot --endpoint http://127.0.0.1:9222
|
|
118
|
+
bt click --uid 0BDAEF756714-14 --endpoint http://127.0.0.1:9222
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Nothing is written to the registry, so `status` does not list it and `stop` and
|
|
122
|
+
`cleanup` cannot reach it -- which is what keeps them away from your real Chrome
|
|
123
|
+
profile directory. Only `127.0.0.1` and `::1` are accepted; forward a remote
|
|
124
|
+
browser with `ssh -L 9222:127.0.0.1:9222 <host>`. `Browser.close` and
|
|
125
|
+
`Browser.crash` are refused over `--endpoint`.
|
|
126
|
+
|
|
127
|
+
### Development setup
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Clone and install in editable mode
|
|
131
|
+
git clone https://github.com/dungle-scrubs/browser-tools.git
|
|
132
|
+
cd browser-tools
|
|
133
|
+
uv sync
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Runtime requirements:
|
|
137
|
+
|
|
138
|
+
- **Chrome Canary** by default (the default channel is `canary`). Use another
|
|
139
|
+
installed channel with `--channel stable|beta|dev`, e.g. `--channel stable`
|
|
140
|
+
for regular Google Chrome.
|
|
141
|
+
- **Camoufox** (`camoufox fetch`) for anti-detect Firefox workflows, with the
|
|
142
|
+
`camoufox` extra
|
|
143
|
+
|
|
144
|
+
The default install depends on `websockets` only. There is no Node.js
|
|
145
|
+
dependency: the Node `chrome-devtools-mcp` path was removed in RFC-01.
|
|
146
|
+
|
|
147
|
+
## Architecture
|
|
148
|
+
|
|
149
|
+
Five layers. Each upper layer consumes only the layer below it, and every
|
|
150
|
+
curated tool calls the same CDP `send` path the raw passthrough uses -- so any
|
|
151
|
+
method the installed browser supports works through `bt Domain.method` whether
|
|
152
|
+
or not a verb exists for it.
|
|
153
|
+
|
|
154
|
+
| Layer | Name | Contents |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| 4 | Front | CLI verbs (the only surface), `bt guide`, the agent skill that points at it |
|
|
157
|
+
| 3 | Policy | Named profiles and the profile root, fingerprint profiles, engine routing |
|
|
158
|
+
| 2 | Native toolset | Curated tools as plain CDP consumers; profiling; window marking |
|
|
159
|
+
| 1 | Core (vendored) | Registry, liveness, launcher, supervisor, attach, passthrough, live-schema help |
|
|
160
|
+
| 0 | Browser | Chrome/Chromium over CDP; Camoufox for anti-detect paths |
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
cli.py CLI entry point (argparse, verb dispatch, exit codes)
|
|
164
|
+
|
|
|
165
|
+
+-- lifecycle.py launch / status / stop / cleanup over the registry
|
|
166
|
+
| +-- camoufox_runner.py Camoufox host process (`launch --engine camoufox`)
|
|
167
|
+
| +-- process_utils.py Chrome process and port utilities
|
|
168
|
+
|
|
|
169
|
+
+-- endpoint.py `--endpoint URL`: loopback check, refusals
|
|
170
|
+
+-- passthrough.py Raw `Domain.method` send + the focus guard
|
|
171
|
+
+-- curated.py The curated verbs over one short-lived CDP handler
|
|
172
|
+
+-- one_shot.py Connect, resolve a page target, attach, detach
|
|
173
|
+
+-- events.py attach / wait / console-list / network-list
|
|
174
|
+
+-- list_verbs.py frames / storage
|
|
175
|
+
+-- user_settings.py The persistent settings file (window border)
|
|
176
|
+
|
|
|
177
|
+
+-- core/ Vendored chrome-agent core (RFC-01; see NOTICE)
|
|
178
|
+
| +-- registry.py Named instances, liveness, retirement
|
|
179
|
+
| +-- launcher.py Chrome launch (windowless, background first window)
|
|
180
|
+
| +-- supervisor.py Per-instance window marking and retirement
|
|
181
|
+
| +-- cdp_client.py CDP WebSocket client and target discovery
|
|
182
|
+
| +-- attach.py Isolated event subscriptions
|
|
183
|
+
| +-- protocol.py Live protocol schema for `help`
|
|
184
|
+
| +-- fingerprint.py Launch-flag fingerprint profiles
|
|
185
|
+
|
|
|
186
|
+
+-- cdp_handler.py CDP tool implementations (snapshot, click, fill, ...)
|
|
187
|
+
| +-- native_snapshot.py Accessibility-tree snapshot and UID scheme
|
|
188
|
+
| +-- native_interaction.py UID click / fill
|
|
189
|
+
| +-- frame_manager.py Frame tree management
|
|
190
|
+
| +-- interstitial.py Challenge detection and the retry policy
|
|
191
|
+
| +-- screencast.py Screencast capture state machine
|
|
192
|
+
| +-- screenshot_utils.py Blank-frame detection
|
|
193
|
+
| +-- tool_registry.py Single source of truth for CDP tool routing
|
|
194
|
+
| +-- mcp_response.py Response envelope builders
|
|
195
|
+
|
|
|
196
|
+
+-- profiler.py Standalone CPU profiler (`browser-tools-profiler`)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
The CLI is the only surface. The optional MCP front and the persistent-session
|
|
200
|
+
stack behind it were deleted in RFC-01 Phase 5; there is no daemon, no broker,
|
|
201
|
+
and no listening socket.
|
|
202
|
+
|
|
203
|
+
## Keeping login state across calls
|
|
204
|
+
|
|
205
|
+
Login state lives in a browser profile directory and survives only while the
|
|
206
|
+
same directory is reused. To keep a session logged in:
|
|
207
|
+
|
|
208
|
+
- **Use a named profile**: `bt launch --profile <name>`. Named profiles persist
|
|
209
|
+
across restarts and are unaffected by headed/headless switches, viewport, or
|
|
210
|
+
which directory you invoke from.
|
|
211
|
+
- A profile is held by at most one live instance. Launching into a profile
|
|
212
|
+
another instance holds fails naming the holder rather than opening a second
|
|
213
|
+
browser on the same directory.
|
|
214
|
+
- Without `--profile`, a launch gets a fresh ephemeral directory and starts
|
|
215
|
+
logged out.
|
|
216
|
+
- `bt profile list` shows every profile with its path and its live holder, and
|
|
217
|
+
`bt profile delete NAME` removes one. Deleting a profile deletes its login
|
|
218
|
+
state; `cleanup` never removes a profile on age.
|
|
219
|
+
|
|
220
|
+
Profiles live in durable storage: `$BROWSER_TOOLS_PROFILES_DIR`, else
|
|
221
|
+
`$XDG_DATA_HOME/browser-tools/profiles`, else
|
|
222
|
+
`~/.local/share/browser-tools/profiles`. They used to live under `/tmp`, where
|
|
223
|
+
the operating system deleted every signed-in session at boot, silently. A
|
|
224
|
+
profile still there is listed with `"legacy": true`; `bt profile migrate`
|
|
225
|
+
moves them all across (`--dry-run` first, `--back` to reverse it), and
|
|
226
|
+
`launch --profile NAME` brings that one forward by itself.
|
|
227
|
+
- **Camoufox** persists login state only when you pass `--profile`; without it,
|
|
228
|
+
every launch starts logged out.
|
|
229
|
+
|
|
230
|
+
## Development
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
uv sync
|
|
234
|
+
uv run ruff check src/ tests/
|
|
235
|
+
uv run pytest
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## License
|
|
239
|
+
|
|
240
|
+
MIT - see [LICENSE](LICENSE).
|
|
241
|
+
|
|
242
|
+
## Contributing
|
|
243
|
+
|
|
244
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
|
|
245
|
+
All contributors are expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
246
|
+
|
|
247
|
+
## Security
|
|
248
|
+
|
|
249
|
+
Found a vulnerability? See [SECURITY.md](SECURITY.md) for responsible disclosure.
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Browser Tools
|
|
2
|
+
|
|
3
|
+
[](https://github.com/dungle-scrubs/browser-tools/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.python.org/downloads/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://docs.astral.sh/ruff/)
|
|
7
|
+
|
|
8
|
+
Browser automation, debugging, and anti-detect browsing CLI. Provides:
|
|
9
|
+
|
|
10
|
+
- **Raw CDP passthrough** - Any `Domain.method` goes straight to the running
|
|
11
|
+
browser, with protocol help read live from it
|
|
12
|
+
- **Snapshot-based page automation** - Accessibility-tree snapshots and UID
|
|
13
|
+
interaction (`snapshot`, `click --uid`, `fill --uid`), in Python over CDP
|
|
14
|
+
- **Named browser instances** - Long-lived Chrome with a registry and named
|
|
15
|
+
profiles that keep a login across restarts
|
|
16
|
+
- **External browsers** - `--endpoint http://127.0.0.1:9222` drives a browser
|
|
17
|
+
you already have open and logged in, writing nothing to the registry
|
|
18
|
+
- **Frame-aware tools** - Iframe/CDP frame tree management, execution context
|
|
19
|
+
resolution, and storage inspection
|
|
20
|
+
- **Interstitial detection** - Multi-signal heuristic detection for Cloudflare,
|
|
21
|
+
DataDome, Akamai, PerimeterX, Imperva, AWS WAF, and other challenge pages
|
|
22
|
+
- **Camoufox anti-detect browsing** - Fingerprint-injected Firefox-based
|
|
23
|
+
browsing for bot-protected sites
|
|
24
|
+
- **Anything else CDP can do** - File upload, viewport emulation, cookies,
|
|
25
|
+
PDF export and page management have no curated verb and need none; `bt
|
|
26
|
+
guide` has a worked example of each
|
|
27
|
+
|
|
28
|
+
## Quick Start
|
|
29
|
+
|
|
30
|
+
### Installation
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Using uv (recommended)
|
|
34
|
+
uv tool install browser-tools
|
|
35
|
+
|
|
36
|
+
# Or with pip
|
|
37
|
+
pip install browser-tools
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Usage
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Run the CLI (`bt` is an alias for `browser-tools`)
|
|
44
|
+
bt --help
|
|
45
|
+
|
|
46
|
+
# Launch a browser. It is registered by name and outlives this command, so
|
|
47
|
+
# later verbs drive the same Chrome and share its page and login state.
|
|
48
|
+
bt launch
|
|
49
|
+
|
|
50
|
+
# Navigate through the raw CDP passthrough, then read the page.
|
|
51
|
+
bt Page.navigate '{"url": "https://example.com"}'
|
|
52
|
+
bt snapshot
|
|
53
|
+
|
|
54
|
+
# Interact by UID from that snapshot.
|
|
55
|
+
bt click --uid 1-13
|
|
56
|
+
|
|
57
|
+
# When the page is blocking, ask directly.
|
|
58
|
+
bt detect
|
|
59
|
+
|
|
60
|
+
bt status # registered instances and their page targets
|
|
61
|
+
bt stop # close the browser and retire its registry entry
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Omit `INSTANCE` while exactly one instance is running; with several, every verb
|
|
65
|
+
names the candidates rather than guessing. `bt help Domain.method` reads the
|
|
66
|
+
protocol schema from the running browser.
|
|
67
|
+
|
|
68
|
+
**`bt guide` is the manual.** It is the complete CLI surface -- every verb,
|
|
69
|
+
every refusal with its exit code, the login walkthrough, the UID rule, and the
|
|
70
|
+
`--endpoint` rules -- and reading it is enough to drive a browser with this
|
|
71
|
+
tool. A test fails the build when a verb has no entry in it.
|
|
72
|
+
|
|
73
|
+
To drive a browser you started yourself, pass its debugging port instead of an
|
|
74
|
+
instance name:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Chrome started with --remote-debugging-port=9222, already logged in.
|
|
78
|
+
bt snapshot --endpoint http://127.0.0.1:9222
|
|
79
|
+
bt click --uid 0BDAEF756714-14 --endpoint http://127.0.0.1:9222
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Nothing is written to the registry, so `status` does not list it and `stop` and
|
|
83
|
+
`cleanup` cannot reach it -- which is what keeps them away from your real Chrome
|
|
84
|
+
profile directory. Only `127.0.0.1` and `::1` are accepted; forward a remote
|
|
85
|
+
browser with `ssh -L 9222:127.0.0.1:9222 <host>`. `Browser.close` and
|
|
86
|
+
`Browser.crash` are refused over `--endpoint`.
|
|
87
|
+
|
|
88
|
+
### Development setup
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Clone and install in editable mode
|
|
92
|
+
git clone https://github.com/dungle-scrubs/browser-tools.git
|
|
93
|
+
cd browser-tools
|
|
94
|
+
uv sync
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Runtime requirements:
|
|
98
|
+
|
|
99
|
+
- **Chrome Canary** by default (the default channel is `canary`). Use another
|
|
100
|
+
installed channel with `--channel stable|beta|dev`, e.g. `--channel stable`
|
|
101
|
+
for regular Google Chrome.
|
|
102
|
+
- **Camoufox** (`camoufox fetch`) for anti-detect Firefox workflows, with the
|
|
103
|
+
`camoufox` extra
|
|
104
|
+
|
|
105
|
+
The default install depends on `websockets` only. There is no Node.js
|
|
106
|
+
dependency: the Node `chrome-devtools-mcp` path was removed in RFC-01.
|
|
107
|
+
|
|
108
|
+
## Architecture
|
|
109
|
+
|
|
110
|
+
Five layers. Each upper layer consumes only the layer below it, and every
|
|
111
|
+
curated tool calls the same CDP `send` path the raw passthrough uses -- so any
|
|
112
|
+
method the installed browser supports works through `bt Domain.method` whether
|
|
113
|
+
or not a verb exists for it.
|
|
114
|
+
|
|
115
|
+
| Layer | Name | Contents |
|
|
116
|
+
|---|---|---|
|
|
117
|
+
| 4 | Front | CLI verbs (the only surface), `bt guide`, the agent skill that points at it |
|
|
118
|
+
| 3 | Policy | Named profiles and the profile root, fingerprint profiles, engine routing |
|
|
119
|
+
| 2 | Native toolset | Curated tools as plain CDP consumers; profiling; window marking |
|
|
120
|
+
| 1 | Core (vendored) | Registry, liveness, launcher, supervisor, attach, passthrough, live-schema help |
|
|
121
|
+
| 0 | Browser | Chrome/Chromium over CDP; Camoufox for anti-detect paths |
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
cli.py CLI entry point (argparse, verb dispatch, exit codes)
|
|
125
|
+
|
|
|
126
|
+
+-- lifecycle.py launch / status / stop / cleanup over the registry
|
|
127
|
+
| +-- camoufox_runner.py Camoufox host process (`launch --engine camoufox`)
|
|
128
|
+
| +-- process_utils.py Chrome process and port utilities
|
|
129
|
+
|
|
|
130
|
+
+-- endpoint.py `--endpoint URL`: loopback check, refusals
|
|
131
|
+
+-- passthrough.py Raw `Domain.method` send + the focus guard
|
|
132
|
+
+-- curated.py The curated verbs over one short-lived CDP handler
|
|
133
|
+
+-- one_shot.py Connect, resolve a page target, attach, detach
|
|
134
|
+
+-- events.py attach / wait / console-list / network-list
|
|
135
|
+
+-- list_verbs.py frames / storage
|
|
136
|
+
+-- user_settings.py The persistent settings file (window border)
|
|
137
|
+
|
|
|
138
|
+
+-- core/ Vendored chrome-agent core (RFC-01; see NOTICE)
|
|
139
|
+
| +-- registry.py Named instances, liveness, retirement
|
|
140
|
+
| +-- launcher.py Chrome launch (windowless, background first window)
|
|
141
|
+
| +-- supervisor.py Per-instance window marking and retirement
|
|
142
|
+
| +-- cdp_client.py CDP WebSocket client and target discovery
|
|
143
|
+
| +-- attach.py Isolated event subscriptions
|
|
144
|
+
| +-- protocol.py Live protocol schema for `help`
|
|
145
|
+
| +-- fingerprint.py Launch-flag fingerprint profiles
|
|
146
|
+
|
|
|
147
|
+
+-- cdp_handler.py CDP tool implementations (snapshot, click, fill, ...)
|
|
148
|
+
| +-- native_snapshot.py Accessibility-tree snapshot and UID scheme
|
|
149
|
+
| +-- native_interaction.py UID click / fill
|
|
150
|
+
| +-- frame_manager.py Frame tree management
|
|
151
|
+
| +-- interstitial.py Challenge detection and the retry policy
|
|
152
|
+
| +-- screencast.py Screencast capture state machine
|
|
153
|
+
| +-- screenshot_utils.py Blank-frame detection
|
|
154
|
+
| +-- tool_registry.py Single source of truth for CDP tool routing
|
|
155
|
+
| +-- mcp_response.py Response envelope builders
|
|
156
|
+
|
|
|
157
|
+
+-- profiler.py Standalone CPU profiler (`browser-tools-profiler`)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
The CLI is the only surface. The optional MCP front and the persistent-session
|
|
161
|
+
stack behind it were deleted in RFC-01 Phase 5; there is no daemon, no broker,
|
|
162
|
+
and no listening socket.
|
|
163
|
+
|
|
164
|
+
## Keeping login state across calls
|
|
165
|
+
|
|
166
|
+
Login state lives in a browser profile directory and survives only while the
|
|
167
|
+
same directory is reused. To keep a session logged in:
|
|
168
|
+
|
|
169
|
+
- **Use a named profile**: `bt launch --profile <name>`. Named profiles persist
|
|
170
|
+
across restarts and are unaffected by headed/headless switches, viewport, or
|
|
171
|
+
which directory you invoke from.
|
|
172
|
+
- A profile is held by at most one live instance. Launching into a profile
|
|
173
|
+
another instance holds fails naming the holder rather than opening a second
|
|
174
|
+
browser on the same directory.
|
|
175
|
+
- Without `--profile`, a launch gets a fresh ephemeral directory and starts
|
|
176
|
+
logged out.
|
|
177
|
+
- `bt profile list` shows every profile with its path and its live holder, and
|
|
178
|
+
`bt profile delete NAME` removes one. Deleting a profile deletes its login
|
|
179
|
+
state; `cleanup` never removes a profile on age.
|
|
180
|
+
|
|
181
|
+
Profiles live in durable storage: `$BROWSER_TOOLS_PROFILES_DIR`, else
|
|
182
|
+
`$XDG_DATA_HOME/browser-tools/profiles`, else
|
|
183
|
+
`~/.local/share/browser-tools/profiles`. They used to live under `/tmp`, where
|
|
184
|
+
the operating system deleted every signed-in session at boot, silently. A
|
|
185
|
+
profile still there is listed with `"legacy": true`; `bt profile migrate`
|
|
186
|
+
moves them all across (`--dry-run` first, `--back` to reverse it), and
|
|
187
|
+
`launch --profile NAME` brings that one forward by itself.
|
|
188
|
+
- **Camoufox** persists login state only when you pass `--profile`; without it,
|
|
189
|
+
every launch starts logged out.
|
|
190
|
+
|
|
191
|
+
## Development
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
uv sync
|
|
195
|
+
uv run ruff check src/ tests/
|
|
196
|
+
uv run pytest
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## License
|
|
200
|
+
|
|
201
|
+
MIT - see [LICENSE](LICENSE).
|
|
202
|
+
|
|
203
|
+
## Contributing
|
|
204
|
+
|
|
205
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
|
|
206
|
+
All contributors are expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
207
|
+
|
|
208
|
+
## Security
|
|
209
|
+
|
|
210
|
+
Found a vulnerability? See [SECURITY.md](SECURITY.md) for responsible disclosure.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "browser-tools"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
description = "Browser automation, debugging, and anti-detect browsing CLI"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -13,7 +13,6 @@ keywords = [
|
|
|
13
13
|
"camoufox",
|
|
14
14
|
"playwright",
|
|
15
15
|
"web-scraping",
|
|
16
|
-
"mcp",
|
|
17
16
|
]
|
|
18
17
|
classifiers = [
|
|
19
18
|
"Development Status :: 3 - Alpha",
|
|
@@ -81,8 +80,7 @@ build-backend = "hatchling.build"
|
|
|
81
80
|
packages = ["src/browser_tools"]
|
|
82
81
|
artifacts = [
|
|
83
82
|
"src/browser_tools/*.js",
|
|
84
|
-
"src/browser_tools
|
|
85
|
-
"src/browser_tools/*.sh",
|
|
83
|
+
"src/browser_tools/GUIDE.txt",
|
|
86
84
|
]
|
|
87
85
|
|
|
88
86
|
[tool.hatch.build.targets.sdist]
|