479a0f1964
Testing / remote-protocol-compat (0.9.3) (push) Successful in 43s
Testing / test (push) Successful in 1m1s
Testing / remote-protocol-compat (0.9.5) (push) Successful in 39s
Build & Publish Package / publish (push) Successful in 58s
Package Extension / package-extension (push) Successful in 1m15s
- Allow remote host aliases passed via --browser to fan out for read-only multi-browser SDK paths while preserving strict routing for mutating commands. - Add remote host grouping and scoped profile labels to tabs tree output so global views avoid repeated host prefixes. - Carry browser family metadata through remote targets, tabs, and groups and style tree browser labels by family. - Split CLI rendering helpers into a typed rendering package with dedicated common, label, tabs-tree, and windows-tree modules. - Bump browser-cli and extension versions to 0.15.5. - Cover the new routing and rendering behavior with unit and CLI tests.
50 lines
1.2 KiB
Python
50 lines
1.2 KiB
Python
"""Client-side command routing and BrowserTarget helpers."""
|
|
from browser_cli.client.targets import REGISTRY_PATH, is_active_local_profile, resolve_socket
|
|
from browser_cli.client.core import (
|
|
BrowserNotConnected,
|
|
BrowserTarget,
|
|
_remote_browser_targets,
|
|
_send_remote,
|
|
_send_remote_async,
|
|
active_browser_targets,
|
|
remote_browser_targets,
|
|
remote_browser_targets_async,
|
|
remote_target_for_alias,
|
|
remote_targets_for_alias,
|
|
send_command,
|
|
send_command_async,
|
|
)
|
|
from browser_cli.endpoints import (
|
|
_looks_like_domain,
|
|
_normalize_endpoint,
|
|
_remote_display_name,
|
|
_resolve_connect_endpoint,
|
|
display_browser_name,
|
|
)
|
|
from browser_cli.remote.transport import _recv_all, _recv_exact
|
|
|
|
__all__ = [
|
|
"BrowserNotConnected",
|
|
"BrowserTarget",
|
|
"REGISTRY_PATH",
|
|
"is_active_local_profile",
|
|
"_looks_like_domain",
|
|
"_normalize_endpoint",
|
|
"_recv_all",
|
|
"_recv_exact",
|
|
"_remote_browser_targets",
|
|
"_remote_display_name",
|
|
"_resolve_connect_endpoint",
|
|
"resolve_socket",
|
|
"_send_remote",
|
|
"_send_remote_async",
|
|
"active_browser_targets",
|
|
"display_browser_name",
|
|
"remote_browser_targets",
|
|
"remote_browser_targets_async",
|
|
"remote_target_for_alias",
|
|
"remote_targets_for_alias",
|
|
"send_command",
|
|
"send_command_async",
|
|
]
|