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.
Files changed (23) hide show
  1. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/PKG-INFO +1 -1
  2. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/cli.py +18 -0
  3. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/manifest.json +1 -1
  4. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/PKG-INFO +1 -1
  5. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/pyproject.toml +1 -1
  6. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/LICENSE +0 -0
  7. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/README.md +0 -0
  8. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/SKILL.md +0 -0
  9. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/__init__.py +0 -0
  10. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/__main__.py +0 -0
  11. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/client.py +0 -0
  12. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/background.js +0 -0
  13. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-128.png +0 -0
  14. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-16.png +0 -0
  15. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-32.png +0 -0
  16. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/extension/icon-48.png +0 -0
  17. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl/server.py +0 -0
  18. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/SOURCES.txt +0 -0
  19. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/dependency_links.txt +0 -0
  20. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/entry_points.txt +0 -0
  21. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/requires.txt +0 -0
  22. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/browser_ctl.egg-info/top_level.txt +0 -0
  23. {browser_ctl-0.2.6 → browser_ctl-0.2.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: browser-ctl
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Control your browser from the command line via a Chrome extension + WebSocket bridge
5
5
  Author-email: geb <853934146@qq.com>
6
6
  License-Expression: MIT
@@ -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.6",
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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: browser-ctl
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Control your browser from the command line via a Chrome extension + WebSocket bridge
5
5
  Author-email: geb <853934146@qq.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "browser-ctl"
3
- version = "0.2.6"
3
+ version = "0.2.7"
4
4
  description = "Control your browser from the command line via a Chrome extension + WebSocket bridge"
5
5
  readme = "README.md"
6
6
  license = "MIT"
File without changes
File without changes
File without changes