@burtson-labs/bandit-stealth-cli 1.7.572 → 1.7.574

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
@@ -126,13 +126,14 @@ guard, not a guarantee of correctness; `BANDIT_VERIFY_BEFORE_DONE=0` disables it
126
126
  - **`?` shortcuts overlay** — type `?` at an empty prompt for a live cheatsheet that disappears the moment you backspace it
127
127
  - **`!`-prefix shell escape** — `!cmd` runs straight in your shell with full TTY access. First-use confirmation gate; per-call yellow box every time after so you can't miss the bypass. Catastrophic patterns (`rm -rf`, `mkfs`, `dd if=`) blocked even here
128
128
  - **Plan execution** — structured multi-step plans for complex refactors
129
+ - **Work survives interruption** — the CLI checkpoints its task list beside the saved session. Adding feedback or another step retains unfinished obligations; greetings, `/btw`, model changes, compaction and `/clear` do not erase them. `/session new` starts a separate plan and `/session resume <id>` restores that session's plan and conversation. Session-only permission grants reset when switching conversations. Replacing or cancelling a plan requires an explicit `todo_write` operation and reason; previous plans remain in local revision archives. Checkpoint text is task data, never approval to act.
129
130
  - **Session persistence** — every REPL session saved as JSONL under `~/.bandit/sessions/` for later resume
130
131
  - **Turn traces** — every agent turn writes a JSONL trace under `.bandit/turns`; `/trace` turns the latest trace into a readable timeline, `/trace list` browses recent workspace/global turns, and `/trace failed` filters recovery/debugging runs
131
132
  - **`/insights` HTML report** — local-only activity report: reads global sessions plus workspace/global turn logs, reconstructs cross-repo wins, surfaces bigger arcs and outcome snippets, then adds tool stats, top-touched files, languages, streak, peak day, error patterns, optional AI summary, and mailto share
132
133
  - **Model behavior profiles** — `/profile` shows how Bandit treats the active model: native vs text tools, fallback policy, safe context budget, thinking default, parallel-tool limits, and known failure modes
133
134
  - **Project memory** — drop a `BANDIT.md` or `CLAUDE.md` at your workspace root and it's auto-loaded into the system prompt
134
135
  - **File + image mentions** — `@path` auto-inlines files; images are either sent multimodally or OCR'd locally (Apple Vision / tesseract)
135
- - **Clipboard paste** — `Ctrl+V` in the REPL pastes an image straight from your clipboard
136
+ - **Clipboard paste** — `Ctrl+V` attaches a clipboard image as `[Image 1]`, `[Image 2]`, and so on. Enter sends the original attachments; Backspace/Delete remove a whole label, and `Ctrl+O` reveals the paths for editing. Recalled drafts keep their attachment mappings.
136
137
  - **Big pastes collapse to a chip** — a paste of more than three lines (or 1,000+ characters) shows in the composer as `[Pasted text #1 · 40 lines]`; Enter sends the full text, `Ctrl+O` expands it in the box to edit, Backspace at its end removes it
137
138
  - **Hooks + security guard** — `PreToolUse` / `PostToolUse` / `Stop` shell hooks (global `~/.bandit/settings.json` or per-workspace), plus a default-on built-in guard that blocks catastrophic commands. See [Settings file](#settings-file--hooks-permissions-security-guard)
138
139
  - **12 themes** — Stealth Light/Dark, Midnight, Onyx, Charcoal, Dracula, Nord, Tokyo Night, Solarized Dark/Light, Catppuccin Mocha, Sepia. `/theme` to pick
@@ -354,17 +355,26 @@ bandit logout # remove the saved key
354
355
  so the command warns. `BANDIT_API_KEY` in the environment overrides the saved
355
356
  key. `bandit login status` exits 1 when no key is set, for scripts.
356
357
 
357
- | Model | Notes |
358
- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
359
- | `bandit-logic` | Default: Kimi K3 through Ollama Cloud, with vision, reasoning and native tools. Advertised context: 1M; the harness keeps conservative working budgets. |
360
- | `bandit-logic-2` | Compatibility alias for the same K3 backend. Existing saved sessions continue to work. |
361
- | `bandit-core-2` | Existing general-purpose cloud model. |
362
- | `bandit-core-1` | Lightweight self-hosted model. |
363
-
364
- K3 replaces K2.7 Code in the Logic routes. The initial three-task compatibility
365
- screen passed; that small sample is not a comparative quality or latency claim.
366
- Cloud Logic uses the existing frontier subscription, usage and credit rules.
367
- Use an explicit Qwen model with the Ollama provider for local inference.
358
+ Bandit Core and Logic names are routing aliases. Use `/model` for the current
359
+ catalog and routing details; a saved alias does not guarantee a particular native
360
+ model or provider. Response disclosures show the actual route when the gateway
361
+ reports it, including an image handoff or fallback.
362
+
363
+ In a Cloud session, `/model ergo` resolves to `bandit-ergo-preview` when that
364
+ is the unique catalog match. The command and the agent's `switch_model` tool
365
+ also accept exact catalog IDs and display labels. Unknown or ambiguous short
366
+ names leave your current selection unchanged. An unavailable catalog entry
367
+ can still be selected because the gateway may serve it through a fallback.
368
+ Explicit `bandit-` compatibility IDs absent from the catalog remain usable,
369
+ with a warning that they are unverified. Ollama and OpenAI-compatible names
370
+ pass through unchanged. Startup flags and saved configuration still use exact
371
+ model IDs; use `--model bandit-ergo-preview` when launching a new session.
372
+
373
+ When asked which model it used, Bandit can consult `stealth_about` for the selected
374
+ configuration and the last observed foreground response route. That observation
375
+ is scoped to the current conversation and selection, and does not predict future
376
+ routing. Missing provider details and billing information remain unknown; a
377
+ local-looking name or a service error is not evidence that a request was free.
368
378
 
369
379
  ### Local — Ollama
370
380
 
@@ -677,6 +687,7 @@ bandit-agent --model qwen2.5-coder:32b
677
687
  - **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.
678
688
  - **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.
679
689
  - **Local sessions** — stored as JSONL under `~/.bandit/sessions/`. Inspect at any time.
690
+ - **Work checkpoints** — `<session>.work.json` holds the current plan, with bounded context sent to the model. Explicit replacements/cancellations archive the previous revision under `sessions/.work-history/<session>/`; old archives remain local. Writes use a short exclusive `.work.json.lock` and refuse stale revisions. If the process exits during a write and leaves a lock, inspect its recorded process ID and remove only that stale lock once that process has exited; do not remove a live writer's lock. An unreadable checkpoint is preserved and reported rather than overwritten.
680
691
  - **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).
681
692
  - **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.
682
693
 
@@ -746,7 +757,8 @@ _Bandit CLI is built by [Burtson Labs](https://burtson.ai). Source for the runti
746
757
  ### Clipboard and long commands
747
758
 
748
759
  Ctrl+V attaches a clipboard screenshot at the idle prompt or while a turn is
749
- running. Typing during capture stays in the composer. Dragging over the screen
760
+ running. The composer shows numbered image labels; the submitted message retains
761
+ the original image paths. Typing during capture stays in the composer. Dragging over the screen
750
762
  copies on release with a "Copied to clipboard" notice at the lower right (see
751
763
  the input section above). `/copy` opens a scrollable selection view of the
752
764
  whole latest response, including the parts that have scrolled away: drag to
@@ -34,17 +34,17 @@ whose helper code is part of the output.
34
34
  Source: https://github.com/AlCalzone/ansi-tokenize
35
35
  Notice files: [1] LICENSE
36
36
 
37
- @burtson-labs/agent-core 1.6.108
37
+ @burtson-labs/agent-core 1.6.109
38
38
  License: Apache-2.0
39
39
  Source: https://github.com/Burtson-Labs/bandit-agent-framework
40
40
  Notice files: [2] LICENSE
41
41
 
42
- @burtson-labs/host-kit 0.4.81
42
+ @burtson-labs/host-kit 0.4.82
43
43
  License: Apache-2.0
44
44
  Source: https://github.com/Burtson-Labs/bandit-agent-framework
45
45
  Notice files: [2] LICENSE
46
46
 
47
- @burtson-labs/stealth-core-runtime 1.5.4
47
+ @burtson-labs/stealth-core-runtime 1.5.5
48
48
  License: Apache-2.0
49
49
  Source: https://github.com/Burtson-Labs/bandit-agent-framework
50
50
  Notice files: [2] LICENSE
@@ -396,8 +396,8 @@ SOFTWARE.
396
396
 
397
397
  ------------------------------------------------------------------------------
398
398
  [2] Used by:
399
- @burtson-labs/agent-core 1.6.108, @burtson-labs/host-kit 0.4.81,
400
- @burtson-labs/stealth-core-runtime 1.5.4
399
+ @burtson-labs/agent-core 1.6.109, @burtson-labs/host-kit 0.4.82,
400
+ @burtson-labs/stealth-core-runtime 1.5.5
401
401
  ------------------------------------------------------------------------------
402
402
 
403
403
  Apache License