update README and remove not neaded browser-cli-native-host script
This commit is contained in:
@@ -76,15 +76,17 @@ Only the `browser-cli` command needs to be on your `PATH`. The browser launches
|
||||
|
||||
## Project structure
|
||||
|
||||
```
|
||||
```text
|
||||
browser-cli/
|
||||
├── browser_cli/
|
||||
│ ├── __init__.py # Python API — BrowserCLI class
|
||||
│ ├── native_host.py # Native messaging host (launched by browser)
|
||||
│ ├── client.py # Unix socket client (used by CLI and Python API)
|
||||
│ ├── __init__.py # Python API — BrowserCLI class and Python API 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/
|
||||
│ ├── navigate.py # open, reload, back, forward, focus
|
||||
│ ├── navigate.py # nav open/reload/back/forward/focus
|
||||
│ ├── search.py # search engine shortcuts
|
||||
│ ├── tabs.py # tab management
|
||||
│ ├── groups.py # tab group management
|
||||
│ ├── windows.py # window management
|
||||
@@ -93,12 +95,25 @@ browser-cli/
|
||||
│ └── session.py # session save/load
|
||||
├── extension/
|
||||
│ ├── manifest.json # MV3 extension manifest
|
||||
│ ├── background.js # Service worker — receives commands, calls chrome.* APIs
|
||||
│ └── content.js # Placeholder for future persistent content script
|
||||
│ ├── background.js # Service worker command dispatcher
|
||||
│ └── content.js # Content-script helpers
|
||||
├── examples/
|
||||
│ ├── demo.py # Python API 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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user