From a39ea052deff856ff9d27cdebecbbea1837d5a69 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:40:13 +0100 Subject: 0.4.4: file-tool correctness - read: regular files only, checked offset conversion on 32-bit - write/edit: atomic rename, re-read before apply, preserve mode - edit: CRLF files match and keep their line endings - grep: missing path is an error, skipped files are reported - glob: follows file symlinks --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 79acd31..213f5f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,26 @@ break the interface, **PATCH** for bug fixes. file, and the tool schemas the model sees. Anything a script or a resumed session could depend on counts as API. +## 0.4.4 + +### Fixed +- `read` refused only directories; a FIFO or device would block the single-threaded + harness forever. It now requires a regular file. +- `read`'s `offset` was cast from `u64` to `usize`, which wrapped on 32-bit builds + and produced wrong line numbers. Out-of-range values are now an error. +- `write` truncates in place, so a crash or full disk could destroy the original. + It now writes a temporary file and renames, and preserves the file mode. +- `edit` applied the snapshot taken before the approval prompt, silently + discarding anything written in between. It now re-reads and re-checks at apply + time and refuses if the text is no longer unique. +- `edit` reported "not found" for CRLF files, because the carriage returns are + invisible in `read` output. Matching now retries with normalised line endings + and writes back in the file's own style. +- `grep` on a nonexistent path said "no matches", implying the symbol was absent; + it now errors. It also reports how many files it skipped as too large or binary. +- `glob` now includes symlinked files (symlinked directories are still skipped, to + avoid loops). + ## 0.4.3 ### Fixed -- cgit v1.2.3