@burtson-labs/bandit-stealth-cli 1.7.564 → 1.7.565

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 +7 -2
  2. package/dist/cli.js +1558 -1529
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -92,7 +92,10 @@ tools immediately; it does not restore older tool descriptions. Tool permissions
92
92
  and execution checks still apply to deferred tools. If a provider failure
93
93
  switches the agent to text tool calling, its prompt retains the groups already
94
94
  loaded during that turn. Compact prompts keep the tool-group directory so
95
- smaller models can discover tools that have not been loaded yet.
95
+ smaller models can discover tools that have not been loaded yet. A group,
96
+ skill or MCP server loads from words a person wrote: absolute paths and the
97
+ terminal output in a pasted log do not trigger them, so the tool list and
98
+ system prompt (the cached start of every request) stay the same.
96
99
 
97
100
  After an edit, a failed check or a background job's start does not count as
98
101
  completed verification. The agent receives at most one reminder to verify the
@@ -103,6 +106,7 @@ guard, not a guarantee of correctness; `BANDIT_VERIFY_BEFORE_DONE=0` disables it
103
106
  - **Decision cards under the composer** — a permission card or a question from the model is pinned below the input box rather than replacing it: one card at a time (the title counts a batch, `1 of 3`), the keyboard on the card (digits, arrows, Enter, Esc), and anything else you type goes into the box above it, where Enter queues it for after the turn; Tab moves between the box and the card, and a bare `y` or `n` sent from the box answers the card. An answered card leaves one dim line in the transcript (`✓ allowed once · read_file ~/notes.md`, `→ answered · New Year`). A permission card offers three choices up front: **allow once**, **always allow** with the exact rule it would save stated on the row (`any \`npm test …\` command — saved to .bandit/settings.json`, `apply_edit on src/cart.js`), and **deny** (Tab adds a note); **more…** (4) opens the full menu with allow for the turn, allow for the session and deny + note. The always row is only ever a rule narrowed to a command, a path, a site or (for a read outside the workspace) a folder for the session; when only a tool-wide rule exists, or the action asks every time (secrets, destructive commands), the card offers allow once and deny, and the rest under more…. `BANDIT_APPROVAL_CARD=full` keeps the six-option menu on every card. A long card folds to the rows the screen can spare (`Ctrl+E` unfolds it, PgUp/PgDn scroll), so the box is always on screen.
104
107
  - **Pointing and clicking in prompts and menus** — question choices, Continue/Submit, permission choices (allow once, always allow, deny, more…, and in the full menu allow turn/session and deny + note; Confirm, Cancel), the MCP trust check, the theme and session pickers, the `/` command list, the `@` file list and follow-up suggestions react to the mouse. Moving the mouse onto an option highlights it exactly as the arrow keys do (a `❯` in the gutter, the label in the accent colour), and a click on the highlighted option answers with it (as Enter does), so any option is one click; a click on a row that is not highlighted highlights it first. Buttons are underlined while the mouse is over them. A `/` command or `@` file is inserted with one click. Arrow keys, digits and Enter keep working, and Alt+1–3 still picks a suggestion. Clicks and hover need a terminal with SGR (1006) mouse reporting and any-motion tracking (1003): the Stealth IDE terminal, VS Code's, iTerm2, Terminal.app, Windows Terminal, kitty, WezTerm, Alacritty and GNOME Terminal have both. Motion is requested only while something clickable is on screen. Over a clickable option the mouse pointer turns into a hand where the terminal lets an app set it (OSC 22): kitty, Ghostty, foot, xterm and iTerm2 3.7+; Terminal.app keeps its I-beam, and WezTerm, VS Code and the Stealth IDE show their arrow while the mouse is captured. `BANDIT_POINTER_SHAPE=0` leaves the pointer alone.
105
108
  - **Scrolling and native selection** — the mouse wheel scrolls the terminal's own scrollback as usual: the first wheel tick hands the mouse back to the terminal (that one tick does not scroll), and the next key you type takes it again. While it is handed back, and whenever you hold **Shift** (most terminals), **Option** (iTerm2) or **Fn** (Terminal.app), dragging is the terminal's own selection, copied with its shortcut (Cmd+C on macOS, usually Ctrl+Shift+C elsewhere). Only what is visible on screen can be selected with the in-app drag; for older text scroll up and use the native selection. `BANDIT_MOUSE=0`, `--no-mouse` or `"mouse": false` in `~/.bandit/config.json` turns the mouse features off entirely and leaves the mouse to the terminal.
109
+ - **Selecting text while Bandit works or a card waits** — in the scrollback layout (`--no-fullscreen`) the spinner, the turn view and a decision card leave the mouse to the terminal: drag selects natively and the wheel scrolls, with nothing to hold down; the card answers from the keyboard (its hint ends `Ctrl+G clicks`). **Ctrl+G** hands the mouse to Bandit for clicks, hover and drag-to-copy, and gives it back; a notice at the lower right says which way it went, and the choice lasts for the session. In the full-screen layout Bandit keeps the mouse (the wheel scrolls its transcript) and drag-to-copy works while output streams: the view holds still under the selection until the highlight goes. Ctrl+G there gives the mouse to the terminal too. `BANDIT_MOUSE=clicks` keeps clicks on cards and mid-turn from the start.
106
110
  - **Clickable web links** — labeled links retain their destinations through the live renderer. Stealth opens them in your browser; other terminals use their own link gesture and hyperlink support.
107
111
  - **Agentic tool use** — reads files, searches code, runs commands, writes changes
108
112
  - **Auditable approval gate** — writes show a colored diff, shell commands show the full command/cwd/risk, and `Allow once` / `Allow session` / `Always for target` scopes are recorded in turn traces. Cards come one at a time (`1 of 3` when a batch needs several decisions, with `apply to all N pending` for siblings of the same tool, never for destructive calls) and collapse to one line once answered
@@ -437,7 +441,8 @@ Workspace config overrides user config. Secrets belong in the user-level file, n
437
441
  | `OLLAMA_HOST` | — | Ollama's own variable (`node:port`, `http://node:port`); used after `OLLAMA_URL` and config |
438
442
  | `BANDIT_NUM_CTX` | chosen per model | Context window to request from Ollama (`32768`, `32k`); same as `--num-ctx` |
439
443
  | `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 |
440
- | `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 |
444
+ | `BANDIT_HISTORY_TOKENS` | 40% of window, min `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 |
445
+ | `BANDIT_PROMPT_CACHE` | on | `off` stops adding prompt-cache breakpoints (system prompt and newest message) to Claude requests on an OpenAI-compatible server such as OpenRouter |
441
446
  | `BANDIT_PROMPT_PROFILE` | `auto` | `lean`/`full`: the short local-model prompt (default on local Ollama and self-hosted servers) or the hosted-model prompt |
442
447
  | `BANDIT_SUGGEST` | `auto` | `1`/`0`: next-prompt suggestions (default on for hosted models, off on local ones); same as `/suggest on`/`off` |
443
448
  | `BANDIT_LESSONS` | `auto` | `1`/`0`: lesson distillation after tool-using turns (same defaults); same as `/lessons on`/`off` |