@nanobpm/nano-coder 0.39.0 → 0.41.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.
- package/README.md +37 -1
- 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
|
|
|
@@ -677,6 +679,39 @@ reaches the wire. The status bar shows
|
|
|
677
679
|
`/settings` sets it for the current model, its provider or all models (picking from the
|
|
678
680
|
levels the model supports), and the session log records it for each reply.
|
|
679
681
|
|
|
682
|
+
### Vision
|
|
683
|
+
|
|
684
|
+
`read_file` returns images (PNG, JPEG, GIF and WebP, recognised by magic bytes) to
|
|
685
|
+
models that can view them: the result is a short text part (`image/png, 1600×900, 131 KB`)
|
|
686
|
+
plus an image attachment the model sees directly. Images over the provider's limits are
|
|
687
|
+
downscaled first (longest side 1568 px, under the model's byte cap), and re-encoded to
|
|
688
|
+
JPEG/PNG when the model doesn't accept the source type. Other binary files still return
|
|
689
|
+
the "looks like a binary file" error, which notes whether the current model supports
|
|
690
|
+
images.
|
|
691
|
+
|
|
692
|
+
Whether a model can see images comes from, in order: a `vision = true|false` override
|
|
693
|
+
(global, `[providers.<name>]`, or `[providers.<name>.models."<model>"]`, like `thinking`);
|
|
694
|
+
what the endpoint reports (GitHub Copilot `/models` `capabilities.supports.vision` and its
|
|
695
|
+
`limits.vision`, Ollama `/api/show`'s `vision` capability, llama.cpp `/props`
|
|
696
|
+
`modalities.vision`); and a built-in assumption for current Anthropic and OpenAI model
|
|
697
|
+
families. A model that can't see images gets the text error with a hint to switch models
|
|
698
|
+
or set `vision = true`:
|
|
699
|
+
|
|
700
|
+
```toml
|
|
701
|
+
vision = true # all models
|
|
702
|
+
|
|
703
|
+
[providers.ollama.models."my-clip-model"]
|
|
704
|
+
vision = true # this model only
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
A request carries only the newest few images the model allows (GitHub Copilot's
|
|
708
|
+
`max_prompt_images`, default 1); older ones become `[image omitted: path (sent earlier)]`.
|
|
709
|
+
Each image counts toward the context estimate at a fixed cost from its size, so the status
|
|
710
|
+
bar and auto-compaction stay honest, and compaction replaces images with the same
|
|
711
|
+
placeholder. Images are stored once per session under `<session>.attachments/` (named by
|
|
712
|
+
content hash), so session logs stay small and `--resume` still works; a missing file on
|
|
713
|
+
resume is sent as a text placeholder.
|
|
714
|
+
|
|
680
715
|
Other per-provider fields: `replay_reasoning`, `max_tokens_param` (`max_tokens`, or `max_completion_tokens`
|
|
681
716
|
which is the `openai` default), `retry_initial_backoff_ms`, `retry_max_backoff_ms` and
|
|
682
717
|
`retryable_statuses`.
|
|
@@ -772,7 +807,8 @@ editing: Left/Right move the cursor, Home/End (or Ctrl-A/Ctrl-E) jump to the sta
|
|
|
772
807
|
Alt/Option-Left/Right (or Alt-B/Alt-F) move by word, and Up/Down recall submitted lines from
|
|
773
808
|
the session's input history (Down past the newest restores what you were typing). The mouse is never captured, so the
|
|
774
809
|
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
|
|
775
|
-
input
|
|
810
|
+
input, Ctrl-W deletes the word before the cursor, and Esc Esc (twice within a second)
|
|
811
|
+
clears the whole input at the prompt. At the prompt between turns,
|
|
776
812
|
Ctrl-Enter (or Cmd-Enter) inserts a newline without sending, and pasted text keeps its line breaks as a single multi-line input
|
|
777
813
|
instead of sending line by line. Ctrl-D exits on an empty line.
|
|
778
814
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.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.
|
|
35
|
-
"@nanobpm/nano-coder-darwin-x64": "0.
|
|
36
|
-
"@nanobpm/nano-coder-linux-arm64": "0.
|
|
37
|
-
"@nanobpm/nano-coder-linux-x64": "0.
|
|
34
|
+
"@nanobpm/nano-coder-darwin-arm64": "0.41.0",
|
|
35
|
+
"@nanobpm/nano-coder-darwin-x64": "0.41.0",
|
|
36
|
+
"@nanobpm/nano-coder-linux-arm64": "0.41.0",
|
|
37
|
+
"@nanobpm/nano-coder-linux-x64": "0.41.0"
|
|
38
38
|
}
|
|
39
39
|
}
|