From 147d1d4ca3c06491cc9bc6f2d4566399e47e1390 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Fri, 10 Apr 2026 02:01:16 +0200 Subject: [PATCH] update README and remove not neaded browser-cli-native-host script --- README.md | 31 +++++++++++++++++++++++-------- browser-cli-native-host | 2 -- 2 files changed, 23 insertions(+), 10 deletions(-) delete mode 100755 browser-cli-native-host diff --git a/README.md b/README.md index 68e95f6..0457bf0 100644 --- a/README.md +++ b/README.md @@ -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 ``` --- diff --git a/browser-cli-native-host b/browser-cli-native-host deleted file mode 100755 index f4f26f2..0000000 --- a/browser-cli-native-host +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec "/tmp/browser-cli/.venv/bin/python3" "/tmp/browser-cli/browser_cli/native_host.py" "$@"