@nanobpm/nano-coder 0.24.0 → 0.25.1

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 +14 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -355,6 +355,10 @@ Flags: `--login github-copilot`, `--list-models PROVIDER`, `--acp`, `--model pro
355
355
  `--config PATH`, `--verbosity LEVEL` (`-v`), `--sandbox off|workspace|read-only` (or `NANO_CODER_SANDBOX`),
356
356
  `--allow RULE` and `--deny RULE` (repeatable; added to the config's rules), `--version` (`-V`).
357
357
 
358
+ Before opening a PR, run `cargo fmt` (style in `rustfmt.toml`), `cargo clippy --all-targets -- -D warnings`
359
+ and `cargo test`; CI checks all three. To keep `git blame` past the one-time reformat, run
360
+ `git config blame.ignoreRevsFile .git-blame-ignore-revs` once.
361
+
358
362
  ## Configuration
359
363
 
360
364
  Create `~/.config/nano-coder/config.toml` (every field is optional). Directories from before the rename (`agentic-harness`) are still used if the new ones don't exist:
@@ -374,7 +378,7 @@ auto_compact_threshold = 0.8 # fraction of the context window
374
378
  compaction_mode = "standard" # standard | smart (experimental, see Smart compaction)
375
379
  # context_window = 128000 # override the window (providers can set it too)
376
380
  verbosity = "normal" # quiet | normal | verbose | debug (or --verbosity)
377
- renderer = "legacy" # legacy | frame (app-owned redraw on resize, experimental)
381
+ renderer = "frame" # frame (default: app-owned redraw on resize) | legacy
378
382
  timestamps = true # prefix CLI messages with the local time (HH:MM:SS)
379
383
  project_instructions = true # load AGENTS.md etc. (see Project Instructions)
380
384
  project_instruction_files = ["AGENTS.md", "CLAUDE.md", ".github/copilot-instructions.md"]
@@ -582,16 +586,16 @@ Every message (your prompt, answers, tool calls and results, thinking, notes) st
582
586
  the local time as `HH:MM:SS`. The prompt's time is rewritten when you press Enter, so it
583
587
  shows when the message was sent. Turn this off with `timestamps = false`.
584
588
 
585
- **Renderer (experimental).** By default (`renderer = "legacy"`) the terminal owns the
586
- scrollback and reflows history itself on a resize, with the status line pinned to the bottom
587
- via a scroll region. Setting `renderer = "frame"` (or picking it in `/settings`) switches to
588
- an **app-owned frame renderer**: nano-coder composes the whole screen — transcript, input
589
+ **Renderer.** By default (`renderer = "frame"`) nano-coder uses an **app-owned frame
590
+ renderer**: it composes the whole screen — transcript, input
589
591
  editor, then the status bar as the last line — into one frame and diff-renders it through a
590
592
  single writer, wrapped in synchronized-output markers so a half-drawn frame is never visible.
591
593
  On a width change it re-renders the entire frame (clearing the screen and scrollback) instead
592
594
  of relying on the terminal's native reflow, and resizes are debounced (~40ms) so a drag
593
- settles on one clean redraw. It never captures the mouse. This is opt-in for now; `legacy`
594
- remains the default.
595
+ settles on one clean redraw. The `/` command menu is drawn under the input editor as part of
596
+ the frame. It never captures the mouse. Setting `renderer = "legacy"` (or picking it in
597
+ `/settings`) switches back to the scroll-region renderer, where the terminal owns the
598
+ scrollback and reflows history itself on a resize, with the status line pinned to the bottom.
595
599
 
596
600
  ## Status Line and Compaction
597
601
 
@@ -600,8 +604,9 @@ In an interactive terminal the bottom row shows the provider/model, context usag
600
604
  a fill bar, message count, session input/output tokens, the auto-compaction threshold and
601
605
  count, the active mode when it is `plan` or `auto` (the default `normal` is not shown, to
602
606
  save space), and what the agent is doing. With a GitHub Copilot model it also shows the session's
603
- AI Credits (`0.4 AIC`), summed from the `total_nano_aiu` each response reports. It uses a terminal
604
- scroll region, follows resizes, and is off when stdin/stdout isn't a TTY or `AGENTIC_NO_STATUS` is set. The conversation is kept
607
+ AI Credits (`0.4 AIC`), summed from the `total_nano_aiu` each response reports. In the legacy
608
+ renderer it uses a terminal scroll region (DECSTBM); the default frame renderer instead composes
609
+ the bar as the frame's final row. Either way it follows resizes, and is off when stdin/stdout isn't a TTY or `AGENTIC_NO_STATUS` is set. The conversation is kept
605
610
  directly above the status line (empty space collects at the top), so shrinking the window
606
611
  drops empty rows rather than pushing the conversation out of view.
607
612
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
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.24.0",
35
- "@nanobpm/nano-coder-darwin-x64": "0.24.0",
36
- "@nanobpm/nano-coder-linux-arm64": "0.24.0",
37
- "@nanobpm/nano-coder-linux-x64": "0.24.0"
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"
38
38
  }
39
39
  }