@nanobpm/nano-coder 0.16.1 → 0.17.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 +12 -3
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -115,6 +115,13 @@ escalation). Redelivering the input returns the same outcome. See [Outcomes](#ou
115
115
  - `/providers` - lists providers
116
116
  - `/model provider/model` - switches model
117
117
 
118
+ **Exit status.** Normal shutdown — stdin closing after at least one valid request was
119
+ processed — exits `0`. If stdin reaches EOF without a single parseable JSON-RPC request
120
+ (e.g. the client isn't speaking ACP), the harness prints
121
+ `no valid ACP requests received on stdin …` to stderr and exits `2`, so a misconfigured
122
+ caller can't mistake a no-op run for success. A non-JSON first line is called out
123
+ explicitly (`input doesn't look like ACP JSON-RPC …`).
124
+
118
125
  ## Architecture
119
126
 
120
127
  ```
@@ -608,9 +615,11 @@ It needs a session log, and falls back to a standard summary when `persist_sessi
608
615
  that the originals can be retrieved. Tool results clipped at compaction point at their ID.
609
616
  - **History tools.** Once a smart summary is in the context, the agent gets two tools
610
617
  over the current session's log (and only that one):
611
- - `history_search(pattern, role?, before?, after?, limit?)` - case-insensitive regex (or
612
- plain text) search, newest first, one `#N role name (time): snippet` line per match.
613
- Earlier history lookups are not searched.
618
+ - `history_search(pattern, role?, before?, after?, order?, limit?)` - case-insensitive
619
+ regex (or plain text) search. Newest first by default (`order=oldest` for early
620
+ history); each matching message is one `#N role name (time): snippet` line with up to
621
+ three snippets (and a `[K matches]` count when more matched). Earlier history lookups
622
+ are not searched.
614
623
  - `history_read(id, max_output_length?)` - one message in full, bounded like other tool
615
624
  output (the whole is spilled to a file when it is longer).
616
625
  Before a smart compaction the tools are not offered, so they cost nothing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanobpm/nano-coder",
3
- "version": "0.16.1",
3
+ "version": "0.17.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.16.1",
35
- "@nanobpm/nano-coder-darwin-x64": "0.16.1",
36
- "@nanobpm/nano-coder-linux-arm64": "0.16.1",
37
- "@nanobpm/nano-coder-linux-x64": "0.16.1"
34
+ "@nanobpm/nano-coder-darwin-arm64": "0.17.0",
35
+ "@nanobpm/nano-coder-darwin-x64": "0.17.0",
36
+ "@nanobpm/nano-coder-linux-arm64": "0.17.0",
37
+ "@nanobpm/nano-coder-linux-x64": "0.17.0"
38
38
  }
39
39
  }