@burtson-labs/bandit-stealth-cli 1.7.556 → 1.7.557

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 CHANGED
@@ -476,6 +476,10 @@ bandit trust --list # folders you have trusted
476
476
  bandit untrust # stop trusting this folder
477
477
  ```
478
478
 
479
+ Inside a session the same is `/trust` (the preview, then a y/N in the composer), `/trust list` and `/trust revoke`; trust applies from the next session. Typing `bandit trust`, `bandit upgrade`, `bandit doctor` or another `bandit <subcommand>` into the composer does not send it to the model: Bandit offers the slash command that does the same (`/trust`, `/update`, `/doctor`), or for a shell-only command (`bandit terms`) tells you to run it from your shell or as `!bandit terms`.
480
+
481
+ Started in your home folder, `.bandit` is `~/.bandit`: your own settings, loaded once as the user settings, with nothing to trust. `bandit trust` refuses the home folder, any folder above it and a filesystem root, because trust covers every folder under the one trusted and every repository you clone there would run its hooks without asking; trust the project folder instead. `bandit trust --list` flags such an entry if one was recorded earlier.
482
+
479
483
  Hooks run as shell commands on your machine, with your privileges, so read the files before trusting. Trust is per folder (a trusted folder covers its subfolders), recorded in `~/.bandit/trusted-workspaces.json` (`{ "trusted": ["/path/to/project"] }`) and shared with the VS Code extension's **Bandit Stealth: Trust this folder's .bandit settings** command — a folder trusted in one is trusted in the other. `BANDIT_TRUST_PROJECT_SETTINGS=1` trusts the current workspace for one process, for CI, where the checkout is the job's own. Your own `~/.bandit/settings.json` always applies, and "always allow" choices you save from a permission prompt keep working in an untrusted folder. `/doctor` shows the folder's trust state.
480
484
 
481
485
  ```jsonc