browser-ctl 0.2.6__tar.gz → 0.2.7__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_ctl-0.2.6 → browser_ctl-0.2.7}/PKG-INFO +1 -1
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/cli.py +18 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/manifest.json +1 -1
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/PKG-INFO +1 -1
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/pyproject.toml +1 -1
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/LICENSE +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/README.md +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/SKILL.md +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/__init__.py +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/__main__.py +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/client.py +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/background.js +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-128.png +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-16.png +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-32.png +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-48.png +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/server.py +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/SOURCES.txt +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/dependency_links.txt +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/entry_points.txt +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/requires.txt +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/top_level.txt +0 -0
- {browser_ctl-0.2.6 → browser_ctl-0.2.7}/setup.cfg +0 -0
|
@@ -678,7 +678,25 @@ def args_to_action_params(cmd: str, args) -> tuple[str, dict]:
|
|
|
678
678
|
# ---------------------------------------------------------------------------
|
|
679
679
|
|
|
680
680
|
|
|
681
|
+
def _ensure_utf8_stdio():
|
|
682
|
+
"""Reconfigure stdout/stderr to UTF-8 on Windows.
|
|
683
|
+
|
|
684
|
+
Windows console defaults to the system code page (e.g. CP936 for Chinese
|
|
685
|
+
locales), which causes garbled output when printing non-ASCII characters
|
|
686
|
+
via ``json.dumps(ensure_ascii=False)``. Calling ``reconfigure`` fixes
|
|
687
|
+
this for all subsequent ``print()`` calls.
|
|
688
|
+
"""
|
|
689
|
+
if sys.platform == "win32":
|
|
690
|
+
for stream in (sys.stdout, sys.stderr):
|
|
691
|
+
if hasattr(stream, "reconfigure"):
|
|
692
|
+
try:
|
|
693
|
+
stream.reconfigure(encoding="utf-8")
|
|
694
|
+
except Exception:
|
|
695
|
+
pass
|
|
696
|
+
|
|
697
|
+
|
|
681
698
|
def main():
|
|
699
|
+
_ensure_utf8_stdio()
|
|
682
700
|
parser = build_parser()
|
|
683
701
|
args = parser.parse_args()
|
|
684
702
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "Browser-Ctl",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "Developer tool for CLI-driven browser automation. Control Chrome via command-line — navigate, click, type, query DOM, capture screenshots, and download files, all through a local WebSocket bridge.",
|
|
6
6
|
"permissions": [
|
|
7
7
|
"tabs",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|