@nanobpm/nano-coder 0.46.1 → 0.47.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 +14 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -251,7 +251,6 @@ phases). Disable them with `--no-hooks`, or granularly via the
|
|
|
251
251
|
## Built-in Tools
|
|
252
252
|
|
|
253
253
|
- `get_time` - Get current date and time
|
|
254
|
-
- `echo` - Echo back input text
|
|
255
254
|
- `bash` - Run `bash -c <command>` (stdin closed, own process group). Arguments:
|
|
256
255
|
`command`, optional `timeout_seconds` (default `bash_timeout_secs`, 600) and
|
|
257
256
|
`max_output_length` (default 40,000, max 1,000,000 characters each for stdout and stderr).
|
|
@@ -264,6 +263,19 @@ phases). Disable them with `--no-hooks`, or granularly via the
|
|
|
264
263
|
an unbounded post-exit reread of a multi-gigabyte capture.
|
|
265
264
|
- `read_file` - Numbered lines of a text file; `path`, optional `offset` (1-based) and `limit`
|
|
266
265
|
(default 2000 lines). Refuses binary files.
|
|
266
|
+
- `grep` - Search file contents for a regular expression (`pattern`, optional `path` — a file
|
|
267
|
+
or directory, default the working directory —, optional `glob` include filter such as `*.rs`
|
|
268
|
+
or `src/**/*.rs`, optional `output_mode` `content` (default; `path:line:text`), `files` or
|
|
269
|
+
`count`, optional `limit`, default 250). Read-only and allowed in plan mode.
|
|
270
|
+
- `glob` - List files matching a glob `pattern` (optional `path`, `limit`). A pattern without
|
|
271
|
+
`/` matches file names at any depth; with `/` it matches paths relative to the search root,
|
|
272
|
+
`*` within one directory and `**` across directories. Read-only and allowed in plan mode.
|
|
273
|
+
- `grep` and `glob` respect `.gitignore` (a subset: comments, `!` negation, directory
|
|
274
|
+
patterns, anchored patterns, `*`/`?`/`**`), skip `.git`, symlinks, binary files and files
|
|
275
|
+
over 16 MiB, return results sorted by path, and say when the `limit` cut results short.
|
|
276
|
+
Files covered by a `Read(...)` deny rule never appear in their output — neither contents
|
|
277
|
+
nor names — and `Grep`/`Glob` rules can deny the tools outright (see
|
|
278
|
+
[Permissions and Sandbox](#permissions-and-sandbox)).
|
|
267
279
|
- `write_file` - Create or overwrite a file (`path`, `content`), creating parent directories.
|
|
268
280
|
- `edit_file` - Replace text (`path`, `old_string`, `new_string`, optional `replace_all`).
|
|
269
281
|
Fails unless `old_string` matches exactly once (or `replace_all` is set). With no exact match,
|
|
@@ -309,7 +321,7 @@ wins. An allow rule approves a shell command only when *every* command in it mat
|
|
|
309
321
|
|---|---|
|
|
310
322
|
| `Bash(rm -rf *)` | a shell command; `*` matches anything, including spaces and `/` |
|
|
311
323
|
| `Bash(git push:*)` | `git push` alone or with any arguments |
|
|
312
|
-
| `Read(~/.ssh/**)` | `read_file` paths; `**` crosses directories, `*` does not |
|
|
324
|
+
| `Read(~/.ssh/**)` | `read_file` paths and files `grep`/`glob` may reveal; `**` crosses directories, `*` does not |
|
|
313
325
|
| `Edit(**/.env)` / `Write(...)` | `write_file` and `edit_file` paths (relative to the working directory, or absolute) |
|
|
314
326
|
| `write_file`, `bash`, any tool name | every call to that tool |
|
|
315
327
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.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.47.0",
|
|
35
|
+
"@nanobpm/nano-coder-darwin-x64": "0.47.0",
|
|
36
|
+
"@nanobpm/nano-coder-linux-arm64": "0.47.0",
|
|
37
|
+
"@nanobpm/nano-coder-linux-x64": "0.47.0"
|
|
38
38
|
}
|
|
39
39
|
}
|