@nanobpm/nano-coder 0.25.1 → 0.27.0

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 (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -310,7 +310,8 @@ argument: a type-ahead list narrows as you type and Tab completes it.
310
310
  - `/verbosity [quiet|normal|verbose|debug]` - Show or set how much is printed (see below)
311
311
  - `/context` - Show context usage, window, session token totals, AI Credits (GitHub Copilot), auto-compaction state and the loaded instruction files
312
312
  - `/settings` - Interactive settings menu:
313
- - **Model**: pick a provider, then a model from its live model list (or type an ID)
313
+ - **Model**: starts with the last four models you used, then pick a provider and a
314
+ model from its live model list (or type an ID)
314
315
  - **Add or edit a provider**: name, API kind (OpenAI-compatible, Anthropic, Copilot),
315
316
  base URL, key source (env var, shell command, or a literal key; the file is then
316
317
  written with mode 0600) and default model
@@ -325,13 +326,14 @@ argument: a type-ahead list narrows as you type and Tab completes it.
325
326
  - `/skills` - List the skills the agent can load, where each lives, and any loading warnings
326
327
  - `/plan` - Show the agent's task plan with all notes
327
328
  - `/queue [list|add text|remove N...|edit N text|clear]` - Show or edit the queued messages. Works while a turn runs, so a queued message can be removed or rewritten before it is sent.
328
- - `/model [provider/model]` - Show the current model and pick a new one: scroll the provider list, then the model list (Esc steps back). With an argument, switches directly (conversation is kept). Typing `/model ` shows a type-ahead of the current model, recently used models, and each configured provider's default model; Tab completes (a bare provider name completes to its default model). Recently used models are kept in `~/.local/share/nano-coder/recent-models.json`
329
+ - `/model [provider/model]` - Show the current model and pick a new one. The list starts with the last four models you used (the current one marked; the previous one highlighted, so `/model` then Enter switches back), then the providers: pick a provider to scroll its model list (Esc steps back). With an argument, switches directly (conversation is kept). Typing `/model ` shows a type-ahead of the current model, recently used models, and each configured provider's default model; Tab completes (a bare provider name completes to its default model). Recently used models are kept in `~/.local/share/nano-coder/recent-models.json`
329
330
  - `/mode [normal|plan|auto]` - Show or set the agent mode (Shift+Tab cycles it, at the prompt or mid-turn):
330
331
  - **normal** - full tools; reaching a positive turn cap asks whether to keep going
331
332
  - **plan** - read-only: mutating tools (`bash`, `write_file`, `edit_file`) are gated, only analysis and output
332
333
  - **auto** - no turn cap; a `question` left unanswered for 15s is answered with "the user is away from the keyboard, make the best decision you can"
333
334
  - `/providers` - List providers, endpoints and whether their API key is available
334
335
  - `/session` - Show the session ID and log path
336
+ - `/trajectory` - Show this session's trajectory turn by turn: user input, thinking, answers, tool calls and results, tokens and timings. Each message row is labelled with its `#N` session-log ID, the same ID `history_read` and smart-compaction summaries use (compaction and crash-recovered input rows have no `#N`, as they aren't cited that way). When it doesn't fit on the screen it opens in your pager (`$PAGER`, default `less`) — but only at an idle prompt with the frame renderer: invoked mid-turn (while a turn runs) or under the legacy renderer it prints inline instead. `/trajectory --json` or `/trajectory --markdown` prints an export instead; `nano-coder --trajectory SESSION_ID [--json|--markdown]` does the same for any saved session
335
337
  - `/restart` - Start a fresh session (clean context) without exiting
336
338
  - `/exit` - Exit the agent (prints the session's `--resume` command first, when session persistence is enabled)
337
339
 
@@ -351,7 +353,7 @@ cargo run -- --model ollama/qwen2.5:1.5b
351
353
  cargo run -- --resume sess-20260923T012518-7e7923f8
352
354
  ```
353
355
 
354
- Flags: `--login github-copilot`, `--list-models PROVIDER`, `--acp`, `--model provider/model` (or `AGENTIC_HARNESS_MODEL`), `--resume SESSION_ID`,
356
+ Flags: `--login github-copilot`, `--list-models PROVIDER`, `--trajectory SESSION_ID [--json|--markdown]`, `--acp`, `--model provider/model` (or `AGENTIC_HARNESS_MODEL`), `--resume SESSION_ID`,
355
357
  `--config PATH`, `--verbosity LEVEL` (`-v`), `--sandbox off|workspace|read-only` (or `NANO_CODER_SANDBOX`),
356
358
  `--allow RULE` and `--deny RULE` (repeatable; added to the config's rules), `--version` (`-V`).
357
359
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.25.1",
3
+ "version": "0.27.0",
4
4
  "description": "A 6MB coding agent. Run a fleet on your laptop.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,9 +31,9 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@nanobpm/nano-coder-darwin-arm64": "0.25.1",
35
- "@nanobpm/nano-coder-darwin-x64": "0.25.1",
36
- "@nanobpm/nano-coder-linux-arm64": "0.25.1",
37
- "@nanobpm/nano-coder-linux-x64": "0.25.1"
34
+ "@nanobpm/nano-coder-darwin-arm64": "0.27.0",
35
+ "@nanobpm/nano-coder-darwin-x64": "0.27.0",
36
+ "@nanobpm/nano-coder-linux-arm64": "0.27.0",
37
+ "@nanobpm/nano-coder-linux-x64": "0.27.0"
38
38
  }
39
39
  }