@burtson-labs/bandit-stealth-cli 1.7.515 → 1.7.517
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.
- package/README.md +3 -1
- package/dist/cli.js +1616 -1601
- 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. Setup, once: (1) install the extension
|
|
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](https://chromewebstore.google.com/detail/cflcnhiodhhcgimefhbaeeomkckinkgh) (it installs in Edge and Brave too; a development build: **Load unpacked** in `chrome://extensions` with Developer mode on); (2) `bandit chrome install`; (3) reopen the browser. 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
|
|
@@ -229,6 +229,8 @@ bandit # interactive: connects to the open brows
|
|
|
229
229
|
bandit --chrome "open the staging site, reproduce the bug from issue #412 and tell me what the console says" # one-shot needs --chrome
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
+
**Chat in the side panel.** The panel's main view is a chat: type a task (Enter sends, Shift+Enter starts a new line) and Bandit does it in that browser, without a terminal. The host process the browser starts runs the session itself, with the same provider and model resolution as `bandit` (the panel's model picker lists what your provider reports: Ollama's installed models, an OpenAI-compatible server's `/models`, or the configured Bandit Cloud model), the same system prompt and browser rules, and the same permission gate: the security guard, hooks, explicit `ask` and `deny` rules, the mode, the auto review, the browser risk tiers with the critical floor, sensitive sites, refusals and the audit file. Cards appear in the panel and are answered there: **Allow once** or **Deny** for a permission, the options or a typed answer for a question. **Ask** (the default) asks before actions on a site; **Auto** runs ordinary steps without asking, while sending, paying, publishing and deleting still ask. A panel session has the browser tools, `ask_user` and `todo_write` and nothing else: no shell, no file tools, no `web_fetch` or `web_search`, no MCP servers, no subagents, no memory writes. Sessions are saved under `~/.bandit/sessions/`, recorded against the private folder `~/.bandit/chrome/panel`, so `bandit --resume` lists them. One session uses the browser at a time: while a terminal session is attached (auto-connect included) the panel says so and does not start a task, and `/chrome disconnect` in that session frees it; while a panel task runs, a terminal session's attach is refused with a one-line reason and the session runs without the browser until the task ends. **Stop** in the panel or on the page ends the task. A panel that is closed and reopened gets the transcript back from the host. If the browser restarts the extension, the host process ends with it: the next host restores the last panel session from the past 12 hours with your messages and Bandit's answers, without its step lines and cards, and a task that was running does not finish.
|
|
233
|
+
|
|
232
234
|
`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
235
|
|
|
234
236
|
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.
|