@burtson-labs/bandit-stealth-cli 1.7.511 → 1.7.513

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 (3) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +1075 -1070
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -219,7 +219,7 @@ MCP tools ask before they run, because Bandit cannot see what a server does with
219
219
 
220
220
  ## Chrome, Edge and Brave — Stealth for Chrome
221
221
 
222
- The **Bandit Stealth for Chrome** extension lets a session read and act on pages in your own browser: pages behind your sign-in, JavaScript apps, the real console. Set it up with `bandit chrome install` (`--browser all` for every browser it knows), and reopen the browser once. That's it: every interactive `bandit` session then connects to the browser by itself whenever it is open (quietly, in the background; nothing is printed when it is closed), and a session that was already running attaches with `/chrome connect`, no restart. `bandit chrome doctor` checks the setup. One-shot runs (`bandit "…"` in scripts and CI) attach only with `--chrome`, so a script never gains a browser just because the host is installed; `/chrome auto always` changes that, `/chrome auto off` (or `--no-chrome` for one session) turns auto-connect off. The setting lives in `~/.bandit/config.json` as `chrome.auto` and is read from there only, never from a repo's `.bandit/config.json`. The same MV3 extension (`apps/stealth-chrome` in this repository; not yet on the Chrome Web Store or Edge Add-ons) loads in Chrome, Microsoft Edge, Brave, Chromium, Vivaldi and Arc. The agent loop stays on your machine; the browser reaches it through a native messaging host that is this same CLI.
222
+ The **Bandit Stealth for Chrome** extension lets a session read and act on pages in your own browser: pages behind your sign-in, JavaScript apps, the real console. Setup, once: (1) install the extension (from the Chrome Web Store or Edge Add-ons once listed; until then `chrome://extensions` → **Developer mode** → **Load unpacked** → the extension folder); (2) `bandit chrome install`; (3) reopen the browser. Interactive sessions then connect by themselves, or `/chrome connect` in one already running: no restart, no new session. `bandit chrome install --browser all` registers every browser it knows; otherwise every browser found. Sessions connect quietly, in the background, and print nothing while the browser is closed. `bandit chrome doctor` checks the setup, and says so when the extension has never connected (it is not loaded in the browser yet). One-shot runs (`bandit "…"` in scripts and CI) attach only with `--chrome`, so a script never gains a browser just because the host is installed; `/chrome auto always` changes that, `/chrome auto off` (or `--no-chrome` for one session) turns auto-connect off. The setting lives in `~/.bandit/config.json` as `chrome.auto` and is read from there only, never from a repo's `.bandit/config.json`. The same MV3 extension (`apps/stealth-chrome` in this repository) loads in Chrome, Microsoft Edge, Brave, Chromium, Vivaldi and Arc. The agent loop stays on your machine; the browser reaches it through a native messaging host that is this same CLI.
223
223
 
224
224
  ```bash
225
225
  bandit chrome install # registers this bandit as the extension's host in every Chromium browser found
@@ -231,7 +231,7 @@ bandit --chrome "open the staging site, reproduce the bug from issue #412 and te
231
231
 
232
232
  `bandit browser …` is the same command under a neutral name. Inside a session, `/chrome` shows the connection, the granted sites and whether auto-connect is on, `/chrome connect` attaches right away, `/chrome doctor` runs the setup check, `/chrome disconnect` detaches for the rest of the session, and `bandit doctor` reports the browser status with the rest. When a task reads like browser work and nothing is connected, the agent says so in one line and tells you how to connect; it never pretends to have clicked.
233
233
 
234
- The manifest goes to each browser's own place (macOS `~/Library/Application Support/<Browser>/NativeMessagingHosts`, Linux `~/.config/<browser>/NativeMessagingHosts`, Windows `HKCU\\Software\\<Vendor>\\<Browser>\\NativeMessagingHosts`). One extension id covers them all: the manifest key pins it for unpacked loads; store listings get their own ids, which are added to `allowedExtensionIds` as they appear, and `--extension-id` allows one more.
234
+ The manifest goes to each browser's own place (macOS `~/Library/Application Support/<Browser>/NativeMessagingHosts`, Linux `~/.config/<browser>/NativeMessagingHosts`, Windows `HKCU\\Software\\<Vendor>\\<Browser>\\NativeMessagingHosts`). The manifest allows the unpacked build's id (pinned by the manifest key) and each store listing's id (`apps/stealth-chrome/src/extensionId.ts`). To allow another id, such as a store listing's before this CLI knows it, use `--extension-id <id>`, `BANDIT_CHROME_EXTENSION_IDS=<id>[,<id>]`, or `"chrome": { "extensionIds": ["<id>"] }` in `~/.bandit/config.json` (global config only), then run `bandit chrome install` again.
235
235
 
236
236
  The tools: `browser_tabs`, `browser_open`, `browser_navigate`, `browser_read_page` (title, URL, visible text and the interactive elements, each with a ref like `[e12]`), `browser_find`, `browser_get_text`, `browser_console`, `browser_screenshot` (attached as an image), `browser_click`, `browser_type`, `browser_select`. Elements are addressed by refs from the last read, never by selectors the model writes. Tabs the agent opens go into a tab group named Bandit; it sees no other tab. While it works, the page shows a Bandit-teal glow, a cursor that moves to each target with a label of the current action, and a **Stop Bandit** control.
237
237