update README and remove not neaded browser-cli-native-host script

This commit is contained in:
2026-04-10 02:01:16 +02:00
parent 7b9a877731
commit 147d1d4ca3
2 changed files with 23 additions and 10 deletions
+23 -8
View File
@@ -76,15 +76,17 @@ Only the `browser-cli` command needs to be on your `PATH`. The browser launches
## Project structure ## Project structure
``` ```text
browser-cli/ browser-cli/
├── browser_cli/ ├── browser_cli/
│ ├── __init__.py # Python API — BrowserCLI class │ ├── __init__.py # Python API — BrowserCLI class and Python API entry point
│ ├── native_host.py # Native messaging host (launched by browser)
│ ├── client.py # Unix socket client (used by CLI and Python API)
│ ├── cli.py # Click CLI entry point │ ├── cli.py # Click CLI entry point
│ ├── client.py # Unix socket client used by CLI and API
│ ├── models.py # Tab and Group helper models
│ ├── native_host.py # Native messaging host launched by the browser
│ └── commands/ │ └── commands/
│ ├── navigate.py # open, reload, back, forward, focus │ ├── navigate.py # nav open/reload/back/forward/focus
│ ├── search.py # search engine shortcuts
│ ├── tabs.py # tab management │ ├── tabs.py # tab management
│ ├── groups.py # tab group management │ ├── groups.py # tab group management
│ ├── windows.py # window management │ ├── windows.py # window management
@@ -93,12 +95,25 @@ browser-cli/
│ └── session.py # session save/load │ └── session.py # session save/load
├── extension/ ├── extension/
│ ├── manifest.json # MV3 extension manifest │ ├── manifest.json # MV3 extension manifest
│ ├── background.js # Service worker — receives commands, calls chrome.* APIs │ ├── background.js # Service worker command dispatcher
│ └── content.js # Placeholder for future persistent content script │ └── content.js # Content-script helpers
├── examples/ ├── examples/
│ ├── demo.py # Python API walkthrough │ ├── demo.py # Python API walkthrough
│ └── demo.sh # Bash CLI walkthrough │ └── demo.sh # Bash CLI walkthrough
── pyproject.toml ── tests/
│ ├── conftest.py # shared pytest fixtures
│ ├── test_api.py
│ ├── test_cli.py
│ ├── test_dom.py
│ ├── test_extract.py
│ ├── test_groups.py
│ ├── test_nav.py
│ ├── test_session.py
│ ├── test_tabs.py
│ └── test_windows.py
├── com.browsercli.host.json # native messaging manifest template
├── pyproject.toml # package metadata and CLI entry point
└── uv.lock # locked dependencies for uv
``` ```
--- ---
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
exec "/tmp/browser-cli/.venv/bin/python3" "/tmp/browser-cli/browser_cli/native_host.py" "$@"