@nanobpm/nano-coder 0.38.0 → 0.40.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 +9 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -56,6 +56,8 @@ drops one (or several, `/queue remove N M`), `/queue edit N new text` rewrites o
56
56
  asking for input (the `question` tool's picker owns the terminal until you answer).
57
57
  **Esc Esc** (twice within a second) or **Ctrl-C** cancels
58
58
  the running turn, killing any running bash command; a second Ctrl-C at the prompt exits.
59
+ At the idle prompt, **Esc Esc** instead clears the input, so a half-typed or pasted prompt
60
+ can be discarded without deleting it character by character.
59
61
  With piped (non-terminal) stdin, lines read during a turn are queued as later prompts
60
62
  (never steer).
61
63
 
@@ -342,6 +344,11 @@ model where it may write.
342
344
 
343
345
  ## Commands
344
346
 
347
+ A line starting with `/` is never sent to the model. Enter on an unknown command (`/exin`)
348
+ keeps it in the input with a hint (`Unknown command /exin. Did you mean /exit?`) so you
349
+ can fix it. To send a message that starts with `/`, such as a path, type `//`:
350
+ `//usr/lib is 4 GB, why?` sends `/usr/lib is 4 GB, why?`.
351
+
345
352
  Typing `/` at the prompt lists the commands under it, and each further character narrows the
346
353
  list. Tab completes the command, or the part all matches share. Esc hides the list. The
347
354
  list is built from the same table as `/help` (`src/commands.rs`). Commands with a known
@@ -767,7 +774,8 @@ editing: Left/Right move the cursor, Home/End (or Ctrl-A/Ctrl-E) jump to the sta
767
774
  Alt/Option-Left/Right (or Alt-B/Alt-F) move by word, and Up/Down recall submitted lines from
768
775
  the session's input history (Down past the newest restores what you were typing). The mouse is never captured, so the
769
776
  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
770
- input and Ctrl-W deletes the word before the cursor. At the prompt between turns,
777
+ input, Ctrl-W deletes the word before the cursor, and Esc Esc (twice within a second)
778
+ clears the whole input at the prompt. At the prompt between turns,
771
779
  Ctrl-Enter (or Cmd-Enter) inserts a newline without sending, and pasted text keeps its line breaks as a single multi-line input
772
780
  instead of sending line by line. Ctrl-D exits on an empty line.
773
781
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.38.0",
3
+ "version": "0.40.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.38.0",
35
- "@nanobpm/nano-coder-darwin-x64": "0.38.0",
36
- "@nanobpm/nano-coder-linux-arm64": "0.38.0",
37
- "@nanobpm/nano-coder-linux-x64": "0.38.0"
34
+ "@nanobpm/nano-coder-darwin-arm64": "0.40.0",
35
+ "@nanobpm/nano-coder-darwin-x64": "0.40.0",
36
+ "@nanobpm/nano-coder-linux-arm64": "0.40.0",
37
+ "@nanobpm/nano-coder-linux-x64": "0.40.0"
38
38
  }
39
39
  }