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

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 +33 -30
  2. package/dist/cli.js +972 -969
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -418,36 +418,37 @@ Workspace config overrides user config. Secrets belong in the user-level file, n
418
418
 
419
419
  ### Environment variables
420
420
 
421
- | Var | Default | Description |
422
- | ------------------------ | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
423
- | `BANDIT_PROVIDER` | `ollama` | `ollama` or `bandit` |
424
- | `BANDIT_MODEL` | `gemma4:e4b` | Model ID |
425
- | `BANDIT_API_KEY` | — | Required when `BANDIT_PROVIDER=bandit` |
426
- | `BANDIT_API_URL` | `https://api.burtson.ai` | Override Bandit API endpoint |
427
- | `OLLAMA_URL` | `http://localhost:11434` | Ollama endpoint |
428
- | `OLLAMA_HOST` | — | Ollama's own variable (`node:port`, `http://node:port`); used after `OLLAMA_URL` and config |
429
- | `BANDIT_NUM_CTX` | chosen per model | Context window to request from Ollama (`32768`, `32k`); same as `--num-ctx` |
430
- | `BANDIT_HISTORY_TOKENS` | `100000` | Conversation history kept for paid models (Bandit Cloud, hosted API-key providers) before older tool output and file writes are trimmed to one-line notes, down to half |
431
- | `BANDIT_PROMPT_PROFILE` | `auto` | `lean`/`full`: the short local-model prompt (default on local Ollama and self-hosted servers) or the hosted-model prompt |
432
- | `BANDIT_SUGGEST` | `auto` | `1`/`0`: next-prompt suggestions (default on for hosted models, off on local ones); same as `/suggest on`/`off` |
433
- | `BANDIT_LESSONS` | `auto` | `1`/`0`: lesson distillation after tool-using turns (same defaults); same as `/lessons on`/`off` |
434
- | `BANDIT_APPROVAL_CARD` | `compact` | `full` keeps the six-option approval menu on every card |
435
- | `BANDIT_SMALL_CONTEXT` | `auto` | `on`/`off`: small-context mode for small windows (with Ollama, on below 16,384 tokens); same as `--small-context`/`--no-small-context` |
436
- | `BANDIT_HOME` | `~/.bandit` | Where sessions, crash reports and the Apptainer image live; settings stay in `~/.bandit` |
437
- | `BANDIT_NO_LOGIN_HINT` | `0` | `1` to hide the note shown on what looks like a cluster login node |
438
- | `BANDIT_MAX_ITERATIONS` | `20` | Tool-use loop cap |
439
- | `BANDIT_AUTO_APPROVE` | `0` | `1`/`true` to skip write-approval prompts |
440
- | `BANDIT_TELEMETRY` | `0` | `1`/`true` to enable OTLP telemetry (opt-in) |
441
- | `BANDIT_OTLP_ENDPOINT` | `https://otlp.burtson.ai` | OTLP/HTTP collector base URL |
442
- | `BANDIT_OTLP_TOKEN` | — | Bearer token for the collector (defaults to your Bandit token) |
443
- | `BANDIT_OTLP_MODE` | `metrics+traces` | `metrics-only` to drop span payloads |
444
- | `BANDIT_NO_UPDATE_CHECK` | `0` | `1`/`true` to skip the npm-registry update check at start (one plain GET; nothing is installed) |
445
- | `BANDIT_OFFLINE` | `0` | `1`/`true`: offline mode. Only the model server is contacted ([Network and offline mode](#network-and-offline-mode)) |
446
- | `BANDIT_NO_MODELS_DEV` | `0` | `1`/`true` to never fetch the models.dev catalogue for an OpenAI-compatible server |
447
- | `BANDIT_NO_BROWSER` | `0` | `1`/`true` to never launch the default browser (`insights`, share links); the path or link is still printed |
448
- | `BANDIT_NO_CLIPBOARD` | `0` | `1`/`true` to leave the clipboard alone when a share link is printed |
449
- | `BANDIT_ACCEPT_TERMS` | — | `1`/`true` to accept the [Terms of Use](#terms-of-use) for this run only (`--accept-terms` also saves it) |
450
- | `NO_COLOR` | — | Disable ANSI colors |
421
+ | Var | Default | Description |
422
+ | ------------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
423
+ | `BANDIT_PROVIDER` | `ollama` | `ollama` or `bandit` |
424
+ | `BANDIT_MODEL` | `gemma4:e4b` | Model ID |
425
+ | `BANDIT_API_KEY` | — | Required when `BANDIT_PROVIDER=bandit` |
426
+ | `BANDIT_API_URL` | `https://api.burtson.ai` | Override Bandit API endpoint |
427
+ | `OLLAMA_URL` | `http://localhost:11434` | Ollama endpoint |
428
+ | `OLLAMA_HOST` | — | Ollama's own variable (`node:port`, `http://node:port`); used after `OLLAMA_URL` and config |
429
+ | `BANDIT_NUM_CTX` | chosen per model | Context window to request from Ollama (`32768`, `32k`); same as `--num-ctx` |
430
+ | `BANDIT_STDIN_TIMEOUT_MS` | `500` on Windows, off elsewhere | One-shot runs: how long to wait for the first byte of piped stdin before running with the prompt alone; `0` waits for EOF |
431
+ | `BANDIT_HISTORY_TOKENS` | `100000` | Conversation history kept for paid models (Bandit Cloud, hosted API-key providers) before older tool output and file writes are trimmed to one-line notes, down to half |
432
+ | `BANDIT_PROMPT_PROFILE` | `auto` | `lean`/`full`: the short local-model prompt (default on local Ollama and self-hosted servers) or the hosted-model prompt |
433
+ | `BANDIT_SUGGEST` | `auto` | `1`/`0`: next-prompt suggestions (default on for hosted models, off on local ones); same as `/suggest on`/`off` |
434
+ | `BANDIT_LESSONS` | `auto` | `1`/`0`: lesson distillation after tool-using turns (same defaults); same as `/lessons on`/`off` |
435
+ | `BANDIT_APPROVAL_CARD` | `compact` | `full` keeps the six-option approval menu on every card |
436
+ | `BANDIT_SMALL_CONTEXT` | `auto` | `on`/`off`: small-context mode for small windows (with Ollama, on below 16,384 tokens); same as `--small-context`/`--no-small-context` |
437
+ | `BANDIT_HOME` | `~/.bandit` | Where sessions, crash reports and the Apptainer image live; settings stay in `~/.bandit` |
438
+ | `BANDIT_NO_LOGIN_HINT` | `0` | `1` to hide the note shown on what looks like a cluster login node |
439
+ | `BANDIT_MAX_ITERATIONS` | `20` | Tool-use loop cap |
440
+ | `BANDIT_AUTO_APPROVE` | `0` | `1`/`true` to skip write-approval prompts |
441
+ | `BANDIT_TELEMETRY` | `0` | `1`/`true` to enable OTLP telemetry (opt-in) |
442
+ | `BANDIT_OTLP_ENDPOINT` | `https://otlp.burtson.ai` | OTLP/HTTP collector base URL |
443
+ | `BANDIT_OTLP_TOKEN` | — | Bearer token for the collector (defaults to your Bandit token) |
444
+ | `BANDIT_OTLP_MODE` | `metrics+traces` | `metrics-only` to drop span payloads |
445
+ | `BANDIT_NO_UPDATE_CHECK` | `0` | `1`/`true` to skip the npm-registry update check at start (one plain GET; nothing is installed) |
446
+ | `BANDIT_OFFLINE` | `0` | `1`/`true`: offline mode. Only the model server is contacted ([Network and offline mode](#network-and-offline-mode)) |
447
+ | `BANDIT_NO_MODELS_DEV` | `0` | `1`/`true` to never fetch the models.dev catalogue for an OpenAI-compatible server |
448
+ | `BANDIT_NO_BROWSER` | `0` | `1`/`true` to never launch the default browser (`insights`, share links); the path or link is still printed |
449
+ | `BANDIT_NO_CLIPBOARD` | `0` | `1`/`true` to leave the clipboard alone when a share link is printed |
450
+ | `BANDIT_ACCEPT_TERMS` | — | `1`/`true` to accept the [Terms of Use](#terms-of-use) for this run only (`--accept-terms` also saves it) |
451
+ | `NO_COLOR` | — | Disable ANSI colors |
451
452
 
452
453
  ### Settings file — hooks, permissions, security guard
453
454
 
@@ -626,6 +627,8 @@ bandit-agent --model qwen2.5-coder:32b
626
627
 
627
628
  Exit codes: `0` done, `1` failed (model, endpoint or runtime), `2` bad usage, `3` stopped before finishing (iteration limit, or no answer), `4` a call needed approval and nobody could give it. When stdin is not a terminal (a pipe, a redirected file, sbatch's `/dev/null`, a parent process's socket) there is nobody to answer an approval prompt: the call is not run, the model is told why, stderr names each call (`needs approval: run_command make install`), and `--output json` reports `"status": "needs_approval"` with an `approvalsNeeded` list. Use `--auto`, `BANDIT_PERMISSION_MODE=dangerous` inside a sandbox, or a `permissions.allow` rule in a trusted folder's `.bandit/settings.json`, for unattended runs.
628
629
 
630
+ On Windows a parent that spawns Bandit with `stdio: 'pipe'` hands it a pipe that looks like `type log | bandit`; when nothing arrives on it within 500 ms the run goes ahead with the prompt alone and says so on stderr. A producer that takes longer before its first line (`npm test 2>&1 | bandit "why"`) needs `BANDIT_STDIN_TIMEOUT_MS` raised, or `0` to wait for EOF. Linux and macOS wait for EOF unless the variable is set.
631
+
629
632
  - **Sandboxed commands without Docker.** `bandit --sandbox` runs agent commands under Apptainer or SingularityCE when there is no Docker. See `bench/agent/CLUSTER.md`.
630
633
 
631
634
  ---