@nanobpm/nano-coder 0.19.2 → 0.21.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 +16 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -148,7 +148,9 @@ src/
148
148
  ├── context.rs # Token accounting, context-window heuristics, overflow detection
149
149
  ├── status.rs # Bottom-of-terminal status line
150
150
  ├── ui.rs # Verbosity levels and the streaming output renderer
151
+ ├── frame.rs # App-owned frame renderer (renderer = "frame"): full redraw on resize
151
152
  ├── lineedit.rs # Key-by-key prompt input (Ctrl-O, mid-turn input on the status line)
153
+ ├── input_history.rs # Up/Down recall of submitted lines (session-scoped)
152
154
  ├── instructions.rs # AGENTS.md / CLAUDE.md discovery for the system prompt
153
155
  ├── plan.rs # Task plan and the plan_add / plan_update / plan_show tools
154
156
  ├── queue.rs # The interactive message queue and the /queue editor
@@ -357,6 +359,7 @@ auto_compact_threshold = 0.8 # fraction of the context window
357
359
  compaction_mode = "standard" # standard | smart (experimental, see Smart compaction)
358
360
  # context_window = 128000 # override the window (providers can set it too)
359
361
  verbosity = "normal" # quiet | normal | verbose | debug (or --verbosity)
362
+ renderer = "legacy" # legacy | frame (app-owned redraw on resize, experimental)
360
363
  timestamps = true # prefix CLI messages with the local time (HH:MM:SS)
361
364
  project_instructions = true # load AGENTS.md etc. (see Project Instructions)
362
365
  project_instruction_files = ["AGENTS.md", "CLAUDE.md", ".github/copilot-instructions.md"]
@@ -548,7 +551,8 @@ error).
548
551
  on the status line; Enter adds it to the message queue (one queued message runs per
549
552
  following turn; `/queue` lists, edits and removes them), Esc Esc or Ctrl-C cancels the turn. The prompt supports
550
553
  editing: Left/Right move the cursor, Home/End (or Ctrl-A/Ctrl-E) jump to the start/end,
551
- Alt/Option-Left/Right (or Alt-B/Alt-F) move by word. The mouse is never captured, so the
554
+ Alt/Option-Left/Right (or Alt-B/Alt-F) move by word, and Up/Down recall submitted lines from
555
+ the session's input history (Down past the newest restores what you were typing). The mouse is never captured, so the
552
556
  terminal keeps its native behaviour — the wheel scrolls the scrollback and drag selects text. Backspace and Delete remove the character before/under the cursor, Ctrl-U clears the
553
557
  input and Ctrl-W deletes the word before the cursor. Ctrl-Enter (or Cmd-Enter) inserts a
554
558
  newline without sending, and pasted text keeps its line breaks as a single multi-line input
@@ -562,6 +566,17 @@ Every message (your prompt, answers, tool calls and results, thinking, notes) st
562
566
  the local time as `HH:MM:SS`. The prompt's time is rewritten when you press Enter, so it
563
567
  shows when the message was sent. Turn this off with `timestamps = false`.
564
568
 
569
+ **Renderer (experimental).** By default (`renderer = "legacy"`) the terminal owns the
570
+ scrollback and reflows history itself on a resize, with the status line pinned to the bottom
571
+ via a scroll region. Setting `renderer = "frame"` (or picking it in `/settings`) switches to
572
+ an **app-owned frame renderer**: nano-coder composes the whole screen — transcript, input
573
+ editor, then the status bar as the last line — into one frame and diff-renders it through a
574
+ single writer, wrapped in synchronized-output markers so a half-drawn frame is never visible.
575
+ On a width change it re-renders the entire frame (clearing the screen and scrollback) instead
576
+ of relying on the terminal's native reflow, and resizes are debounced (~40ms) so a drag
577
+ settles on one clean redraw. It never captures the mouse. This is opt-in for now; `legacy`
578
+ remains the default.
579
+
565
580
  ## Status Line and Compaction
566
581
 
567
582
  In an interactive terminal the bottom row shows the provider/model, context usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.19.2",
3
+ "version": "0.21.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.19.2",
35
- "@nanobpm/nano-coder-darwin-x64": "0.19.2",
36
- "@nanobpm/nano-coder-linux-arm64": "0.19.2",
37
- "@nanobpm/nano-coder-linux-x64": "0.19.2"
34
+ "@nanobpm/nano-coder-darwin-arm64": "0.21.0",
35
+ "@nanobpm/nano-coder-darwin-x64": "0.21.0",
36
+ "@nanobpm/nano-coder-linux-arm64": "0.21.0",
37
+ "@nanobpm/nano-coder-linux-x64": "0.21.0"
38
38
  }
39
39
  }