@burtson-labs/bandit-stealth-cli 1.7.521 → 1.7.524

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 +10 -2
  2. package/dist/cli.js +1519 -1510
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <a href="https://burtson.ai">
2
2
  <picture>
3
- <img src="https://cdn.burtson.ai/logos/bandit-stealth.png" alt="Bandit Stealth" width="140" style="width: 140px !important; max-width: 140px !important; height: auto; display: inline-block;" />
3
+ <img src="https://raw.githubusercontent.com/Burtson-Labs/bandit-stealth/main/branding/export/stealth-tile-256.png" alt="Bandit Stealth" width="112" height="112" style="width: 112px !important; max-width: 112px !important; height: auto; display: inline-block;" />
4
4
  </picture>
5
5
  </a>
6
6
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  **Local-first AI coding agent for your terminal.**
10
10
 
11
- Runs on your machine and works with any Ollama model. Your prompts, and the files and command output the agent reads, go to the model server you configure (Ollama at `http://localhost:11434` by default). In the default permission mode, a tool that would contact another host asks you first. [Network and offline mode](#network-and-offline-mode) lists every connection Bandit makes and how to turn each one off.
11
+ Runs on your machine and works with any Ollama model. Your prompts, and the files and command output the agent reads, go to the model server you configure (Ollama at `http://localhost:11434` by default). In the default permission mode, a tool that would contact another host asks you first. [Network and offline mode](#network-and-offline-mode) lists what Bandit contacts on its own and how to turn each one off; the full connection list, including what each command and tool sends, is published at [burtson.ai/bandit/what-bandit-sends](https://burtson.ai/bandit/what-bandit-sends).
12
12
 
13
13
  _Prefer an IDE?_ The sibling Bandit Stealth extension for VS Code / Cursor ships the same runtime, skills, and tool-use loop — install from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=BurtsonLabs.bandit-stealth) or [Open VSX](https://open-vsx.org/extension/BurtsonLabs/bandit-stealth).
14
14
 
@@ -254,6 +254,12 @@ Every decision is one line in `~/.bandit/audit/bandit-audit-<date>.jsonl` (origi
254
254
 
255
255
  ---
256
256
 
257
+ ## Bandit Stash (cloud)
258
+
259
+ `bandit stash <file>` saves a file to your Bandit Stash and prints its link (`bandit stash` alone lists every verb; it is not `git stash`). Each save is a new item with a new link. To keep one link for a document you update, such as a status page or a daily briefing, save new versions in place: `bandit stash briefing.md --replace <url|key>` overwrites that item, and `bandit stash briefing.md --replace` with no target overwrites your newest item saved under the same file name (or saves a new one when there is none). The key, the owner link and any share links stay the same; Stash keeps the previous version.
260
+
261
+ ---
262
+
257
263
  ## Bandit Crew (cloud)
258
264
 
259
265
  Bandit Crew is the set of named AI teammates on your Bandit account (create them here, in the Bandit app under Settings → Crew, or in Slack). `bandit crew run Riley "research Acme's 2026 pricing changes and draft a one-page brief"` starts a task on your account and follows it in the terminal: each step prints as it happens (searching, reading, writing files), and when the Bandit wants to do something that affects other people the command asks `Approve? [y/N]`. There is no flag that pre-approves a side effect; without a terminal to answer in, the command prints the `bandit crew approve <id> <approvalId>` and `decline` lines to run later. The result prints with its Stash link, sources, step count and model.
@@ -584,7 +590,9 @@ bandit-agent --model qwen2.5-coder:32b
584
590
  - **Custom hooks** — your own `PreToolUse` shell scripts can veto any tool call; configure globally (`~/.bandit/settings.json`) or per-project.
585
591
  - **Workspace trust** — a repository's own `.bandit/settings.json` cannot run hooks, add allow rules or widen the permission mode until you run `bandit trust` in that folder (or set `BANDIT_TRUST_PROJECT_SETTINGS=1` in CI); see [the settings file](#settings-file--hooks-permissions-security-guard). A clone is read-only configuration until you say otherwise.
586
592
  - **Secret hygiene** — API keys are redacted in `/config` output and never logged. The optional [telemetry](#telemetry-opt-in) exporter sends no prompt or reply text, and runs the tool arguments it does send through secret redaction.
593
+ - **Secret masking in tool output** — command output, file contents, search results, MCP results and error text are masked before the model, the terminal, the session file, the turn log or telemetry see them: `‹redacted github token gho_…, 40 chars›`, with a `1 secret masked in this output` line under the result. Known token formats (GitHub, OpenAI/Anthropic/OpenRouter `sk-…`, AWS, Slack, Stripe, Burtson `bai_`, Google, Azure connection strings, PEM private keys, JWTs) and secret-named values in env/ini/yaml/json output are covered. Commands whose purpose is printing a credential (`gh auth token`, `gcloud auth print-access-token`, `kubectl config view --raw`, `security find-generic-password -w`, `op read`, `printenv`, …) ask in every mode and their output is masked even when you approve them; the card says so. To use a credential in a follow-up step, keep it in-process: `gh`, `aws`, `az`, `gcloud` and `kubectl` authenticate on their own, and in your shell `GH_TOKEN=$(gh auth token) gh api …` never prints the value. `BANDIT_NO_SECRET_REDACTION=1` turns pattern masking of ordinary output off for debugging; credential commands stay masked.
587
594
  - **Local sessions** — stored as JSONL under `~/.bandit/sessions/`. Inspect at any time.
595
+ - **Where the rest is documented** — every connection the CLI, the IDE, the VS Code extension and Stealth for Chrome make: [burtson.ai/bandit/what-bandit-sends](https://burtson.ai/bandit/what-bandit-sends) (source: [`docs/network-and-privacy.md`](../../docs/network-and-privacy.md)). Security controls: [burtsonlabs.com/security](https://burtsonlabs.com/security) and the [Stealth security readiness report](https://burtson.ai/stealth/security-readiness.html). Reporting a vulnerability: [`SECURITY.md`](../../SECURITY.md).
588
596
  - **Turn logs** — each turn is logged to `<project>/.bandit/turns/` (your prompt, tool calls and short excerpts of tool output). When Bandit creates `.bandit/`, it writes `.bandit/.gitignore` so these logs, checkpoints and pasted images are not committed. It never overwrites an existing `.bandit/.gitignore`. If your project's `.bandit/` predates this, add `turns/` and `checkpoints/` to it yourself.
589
597
 
590
598
  ## Network and offline mode