@burtson-labs/bandit-stealth-cli 1.7.550 → 1.7.552

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 +17 -1
  2. package/dist/cli.js +1182 -1171
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,6 +47,22 @@ _Prefer an IDE?_ The sibling Bandit Stealth extension for VS Code / Cursor ships
47
47
  bandit --read-only # start in plan mode: read and plan, change nothing
48
48
  ```
49
49
 
50
+ ### Ways to install
51
+
52
+ | | Command | Needs | Updates with |
53
+ | ----------------------------------------- | ------------------------------------------------------------------- | ----------- | -------------------------------------------------- |
54
+ | Standalone binary (macOS, Linux) | `curl -fsSL https://burtson.ai/bandit-stealth-cli/install.sh \| sh` | nothing | `bandit upgrade` |
55
+ | Standalone binary (Windows x64 and Arm64) | `irm https://burtson.ai/bandit-stealth-cli/install.ps1 \| iex` | nothing | `bandit upgrade` |
56
+ | Homebrew | `brew install burtson-labs/tap/bandit-agent` | Homebrew | `brew upgrade bandit-agent` |
57
+ | winget | `winget install BurtsonLabs.BanditCLI` | winget | `winget upgrade BurtsonLabs.BanditCLI` |
58
+ | npm | `npm i -g @burtson-labs/bandit-stealth-cli` | Node.js 20+ | `npm i -g @burtson-labs/bandit-stealth-cli@latest` |
59
+
60
+ The standalone binary is one executable with the runtime inside (Bun), about 73 MB on disk and a 25 MB download, built from the same code as the npm package. Builds: `darwin-arm64`, `darwin-x64`, `darwin-universal`, `linux-x64`, `linux-arm64`, `windows-x64`, `windows-arm64`. Homebrew and winget are listed once the tap and the winget-pkgs entry are published.
61
+
62
+ **How a download is checked.** Since 1.7.551 each release publishes a manifest (`https://burtson.ai/bandit-stealth-cli/latest.json`) that names the SHA-256 and size of every binary; the binaries themselves are on a separate host (S3). `install.sh`, `install.ps1` and `bandit upgrade` check every download against the manifest and refuse anything that does not match; a failed check never falls back to npm. The manifest can also be signed (`latest.json.sig`, ECDSA P-256), and the binaries code-signed: macOS with the Burtson Labs Developer ID (notarized) and Windows with Burtson Labs' Authenticode certificate. Builds that carry the release key refuse a manifest without a valid signature, and `install.ps1` refuses a binary signed by anyone else. Until a release is signed, the installers and `bandit upgrade` say that only the SHA-256 was checked. Homebrew and winget pin each binary by SHA-256 in their own manifests, and an install made with either is left to that package manager: `bandit upgrade` prints the command to run.
63
+
64
+ Installer options (environment variables): `BANDIT_VERSION=1.7.551` installs a given version (verified against that version's own signed manifest; releases before 1.7.551 have none and need `BANDIT_ALLOW_UNVERIFIED=1`), `BANDIT_BIN_DIR` sets where the binary goes (default `~/.local/bin`, or `%LOCALAPPDATA%\Programs\bandit`), `BANDIT_INSTALL_METHOD=binary|npm` forces one method, and `BANDIT_NO_MODIFY_PATH=1` leaves your shell profile alone. The installer never pipes another script into a shell: if you choose npm and Node is missing, it tells you where to get Node.
65
+
50
66
  The CLI installs two commands that do the same thing: `bandit` and `bandit-agent`. The Python security linter [Bandit](https://github.com/PyCQA/bandit) also installs a `bandit` command; if it comes first on your PATH (common in Python environments and on shared clusters), use `bandit-agent`. `bandit doctor` tells you when that happens.
51
67
 
52
68
  That's it. No API keys. No cloud services. The agent reads your code, searches, runs commands, and writes changes — all locally.
@@ -665,7 +681,7 @@ Offline mode does not control the commands the agent runs with `run_command` (th
665
681
 
666
682
  ## Requirements
667
683
 
668
- - Node.js 20+
684
+ - Nothing for the standalone binary; Node.js 20+ for the npm package
669
685
  - [Ollama](https://ollama.com) running locally (or remote via `OLLAMA_URL`) — unless you use `BANDIT_PROVIDER=bandit`
670
686
  - `rg` (ripgrep) on `PATH` for fast code search; falls back to `grep` if absent
671
687