@burtson-labs/bandit-stealth-cli 1.7.525 → 1.7.527

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 +53 -36
  2. package/dist/cli.js +1383 -1358
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -121,41 +121,41 @@ guard, not a guarantee of correctness; `BANDIT_VERIFY_BEFORE_DONE=0` disables it
121
121
 
122
122
  Type `?` on an empty prompt for the at-a-glance overlay; `/help` for the full list.
123
123
 
124
- | Command | Does |
125
- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
126
- | `/help` | Full slash-command list |
127
- | `/doctor` | Check setup, provider, workspace context, permissions, and next best actions |
128
- | `/chrome` (or `/browser`) | Stealth for Chrome: connection status, granted sites, `/chrome connect` to attach mid-session |
129
- | `/login <key>` | Save a Bandit Cloud API key to `~/.bandit/config.json` (also `/login`, `/login clear`) |
130
- | `/crew run <Name> "<task>"` | Bandit Crew (cloud): hand a task to a named Bandit and follow its steps here (`/crew` for more) |
131
- | `/usage` | Bandit Cloud session + weekly usage limits (`/usage check` for one-line ⚠ flag) |
132
- | `/model [name]` | Switch model mid-session |
133
- | `/ollama [url]` | Show or set the Ollama endpoint — `/ollama default` resets to `http://localhost:11434` |
134
- | `/think on`, `/think off`, `/think auto` | Override per-model thinking-mode default |
135
- | `/profile [model]` | Show the active model behavior profile (tool protocol, fallback, context budget, known failure modes) |
136
- | `/notify status` | Configure desktop/bell notifications for approvals, failures, background tasks, and long turns |
137
- | `/theme [name]` | Pick a color palette (`/theme` lists; saved to global config) |
138
- | `/skills` | List loaded skills |
139
- | `/session list`, `/session resume <id>`, `/session new` | Manage sessions |
140
- | `/memory` | Show auto-loaded `BANDIT.md` / `CLAUDE.md` |
141
- | `/config` | Show effective config + path (secrets redacted) |
142
- | `/clear` | Reset conversation (keeps session id) |
143
- | `/compact` | Trim old tool results to fit the context window |
144
- | `/rewind [id]` | Restore a file from a per-edit checkpoint |
145
- | `/trace`, `/trace list`, `/trace failed`, `/trace <id>` | Inspect turn traces from workspace/global `.bandit/turns` |
146
- | `/tasks` | List background commands, monitors and subagents (`/tasks <id>` drill-down, `/tasks cancel <id>`) |
147
- | `/copy` | Open text selection: drag, release to copy, see confirmation; Esc returns to chat |
148
- | `/copy response`, `/copy code 2`, `/copy choose` | Copy the original response, a code block, or choose a complete block |
149
- | `/plan <goal>` | Heuristic plan first, y/N to execute |
150
- | `/init` | Scaffold `BANDIT.md` from a repo scan |
151
- | `/commit` | Draft a conventional-commit message from the staged diff |
152
- | `/review [focus]` | Code review of staged changes or branch-vs-main, ends with 🟢/🟡/🔴 |
153
- | `/refactor <target>` | Concrete refactor suggestions with before/after snippets |
154
- | `/test <target>` | Generate tests in the project's existing framework |
155
- | `/explain <target>` | Plain-English walkthrough of a file or function |
156
- | `/onboard` | New-developer setup checklist for the repo |
157
- | `/changelog [range]` | Release notes drafted from `git log` |
158
- | `/exit` | Quit |
124
+ | Command | Does |
125
+ | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
126
+ | `/help` | Full slash-command list |
127
+ | `/doctor` | Check setup, provider, workspace context, permissions, and next best actions |
128
+ | `/chrome` (or `/browser`) | Stealth for Chrome: connection status, granted sites, `/chrome connect` to attach mid-session |
129
+ | `/login` | Sign in to Bandit Cloud in your browser (`/login <key>`, `/login status`, `/login clear`; from a shell: `bandit login`) |
130
+ | `/crew run <Name> "<task>"` | Bandit Crew (cloud): hand a task to a named Bandit and follow its steps here (`/crew` for more) |
131
+ | `/usage` | Bandit Cloud session + weekly usage limits (`/usage check` for one-line ⚠ flag) |
132
+ | `/model [name]` | Switch model mid-session |
133
+ | `/ollama [url]` | Show or set the Ollama endpoint — `/ollama default` resets to `http://localhost:11434` |
134
+ | `/think on`, `/think off`, `/think auto` | Override per-model thinking-mode default |
135
+ | `/profile [model]` | Show the active model behavior profile (tool protocol, fallback, context budget, known failure modes) |
136
+ | `/notify status` | Configure desktop/bell notifications for approvals, failures, background tasks, and long turns |
137
+ | `/theme [name]` | Pick a color palette (`/theme` lists; saved to global config) |
138
+ | `/skills` | List loaded skills |
139
+ | `/session list`, `/session resume <id>`, `/session new` | Manage sessions |
140
+ | `/memory` | Show auto-loaded `BANDIT.md` / `CLAUDE.md` |
141
+ | `/config` | Show effective config + path (secrets redacted) |
142
+ | `/clear` | Reset conversation (keeps session id) |
143
+ | `/compact` | Trim old tool results to fit the context window |
144
+ | `/rewind [id]` | Restore a file from a per-edit checkpoint |
145
+ | `/trace`, `/trace list`, `/trace failed`, `/trace <id>` | Inspect turn traces from workspace/global `.bandit/turns` |
146
+ | `/tasks` | List background commands, monitors and subagents (`/tasks <id>` drill-down, `/tasks cancel <id>`) |
147
+ | `/copy` | Open text selection: drag, release to copy, see confirmation; Esc returns to chat |
148
+ | `/copy response`, `/copy code 2`, `/copy choose` | Copy the original response, a code block, or choose a complete block |
149
+ | `/plan <goal>` | Heuristic plan first, y/N to execute |
150
+ | `/init` | Scaffold `BANDIT.md` from a repo scan |
151
+ | `/commit` | Draft a conventional-commit message from the staged diff |
152
+ | `/review [focus]` | Code review of staged changes or branch-vs-main, ends with 🟢/🟡/🔴 |
153
+ | `/refactor <target>` | Concrete refactor suggestions with before/after snippets |
154
+ | `/test <target>` | Generate tests in the project's existing framework |
155
+ | `/explain <target>` | Plain-English walkthrough of a file or function |
156
+ | `/onboard` | New-developer setup checklist for the repo |
157
+ | `/changelog [range]` | Release notes drafted from `git log` |
158
+ | `/exit` | Quit |
159
159
 
160
160
  ---
161
161
 
@@ -285,6 +285,23 @@ Bandit uses native tool calling when supported by the selected provider.
285
285
 
286
286
  ### Cloud — Bandit gateway (API key)
287
287
 
288
+ Sign in from your shell with `bandit login` (or `/login` inside a session). It
289
+ opens your browser, and prints the URL too; `--no-browser` only prints it. Over
290
+ SSH the sign-in returns to a port on the remote machine: the command prints the
291
+ `ssh -L` line that forwards it, or save a key instead.
292
+
293
+ ```bash
294
+ bandit login # browser sign-in, saves a device key in ~/.bandit/config.json
295
+ bandit login --with-key < keyfile # save an existing key from a file or a pipe
296
+ bandit login --with-key # at a terminal: type or paste the key, nothing is shown
297
+ bandit login status # signed in? which key, from where (also: bandit auth status)
298
+ bandit logout # remove the saved key
299
+ ```
300
+
301
+ `bandit login <key>` also works, but the key then sits in your shell history,
302
+ so the command warns. `BANDIT_API_KEY` in the environment overrides the saved
303
+ key. `bandit login status` exits 1 when no key is set, for scripts.
304
+
288
305
  | Model | Notes |
289
306
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
307
  | `bandit-logic` | Default: Kimi K3 through Ollama Cloud, with vision, reasoning and native tools. Advertised context: 1M; the harness keeps conservative working budgets. |
@@ -609,7 +626,7 @@ Telemetry is off unless you turn it on ([Telemetry](#telemetry-opt-in)). Bandit
609
626
 
610
627
  **Tools that contact another host ask first.** In the default `ask` mode, Bandit shows an approval card before any of these run, with the full address (or, for git, the remote's URL):
611
628
 
612
- - `web_fetch`, `fetch_image` (any URL; private, loopback and link-local addresses are refused unless `BANDIT_ALLOW_PRIVATE_WEB_FETCH=1`), `web_search` (Tavily, only with a Tavily key);
629
+ - `web_fetch`, `fetch_image` (any URL; private, loopback and link-local addresses are refused; host names listed in `web.allowPrivateHosts` in `~/.bandit/config.json` or `BANDIT_WEB_FETCH_ALLOW_PRIVATE_HOSTS` may use a private LAN address, never loopback, link-local or metadata; `BANDIT_ALLOW_PRIVATE_WEB_FETCH=1` lifts the check for every host), `web_search` (Tavily, only with a Tavily key);
613
630
  - `git_push`, `git_pull`;
614
631
  - the Bandit Stash tools (`publish_artifact`, `share_artifact`, `email_artifact`, …; Stash was called Artifacts, the tool names keep the old word), which exist only when Bandit Cloud is the provider. Bandit Stash is cloud storage for files you save and share by link (`bandit stash <file>`, `/stash`); it is not `git stash`;
615
632
  - MCP tools, unless the server's entry says `"local": true` (then its read-named tools, such as `list…`/`get…`, run without asking; its other tools still ask).