summaryrefslogtreecommitdiffstats
path: root/tests/tools.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Licensesalmonik18 hours1-26/+42
|
* 0.12.1: accept `command` as an alias for `cmd` in bashsalmonik43 hours1-0/+13
| | | | | A field report showed ~40% of bash calls died on a one-word slip (command vs cmd); the alias removes the failure class instead of improving the error for it.
* 0.9.1: correctness fixes from the auditsalmonik6 days1-0/+27
| | | | | | | | | | - 64 MiB limit detected by file length, so pipelines and redirects are reported - bash temp files removed on every path via a scope guard - validate requires content/new as the schemas declare (present, may be empty) - Session::open folds in model-switch records; resume matches --list - combining mark at a wrap boundary no longer counts as a new row - --flag=value accepted; flag-shaped values rejected - dead code removed; last_reply folded into open (one read per resume)
* 0.9.0: distinguishable tool errors, separated stderr, configurable limitssalmonik6 days1-0/+56
| | | | | | | | | | | | From a field report porting a Neovim config to Helix: - validate() now separates 'empty value', 'wrong key (here is what you sent)' and 'no arguments at all, retry' instead of one false message for all four causes - named calls with no arguments are answered rather than dropped silently - bash keeps stdout and stderr in labelled sections when both produce output - bash gains timeout_seconds (1-600) and max_bytes, and says when output was cut - tool lines/results carry [step.call] labels when a step has several calls - invalid JSON errors include a preview of what arrived
* 0.7.0: resume shows where you left off; no approval for unparsable callssalmonik9 days1-0/+15
| | | | | | | | | - --continue prints the last answer, or the last reasoning block if there was none - tool arguments are validated before prompting, so an empty bash call becomes an error for the model instead of a blank approval - empty placeholder tool calls are dropped and reported - sessions tolerate invalid UTF-8 lines from a torn write - AGENT686_DEBUG_STREAM=1 dumps SSE frames
* 0.4.4: file-tool correctnesssalmonik9 days1-1/+109
| | | | | | | | - 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
* 0.4.3: kill process groups, bound bash output, keep the key out of tool envsalmonik9 days1-22/+84
| | | | | | | - setsid-style process group kill on timeout and on Ctrl-C - 64 MiB RLIMIT_FSIZE so a runaway command cannot fill /tmp - OPENCODE_API_KEY removed from child environment - sessions 0600/0700, history 0600 and trimmed
* 0.4.0: grep takes a regular expression, fixed=true for literalssalmonik9 days1-0/+48
| | | | | Invalid patterns explain themselves and point at fixed, rather than failing with a bare regex error the model cannot act on.
* 0.2.0: streaming line-range readssalmonik9 days1-1/+62
| | | | | | read seeks to offset with a buffered reader and consumes over-long lines without keeping them: 16 MB RSS on a 200 MB file, 0.8s to line 999000. Adds CHANGELOG and the versioning policy.
* M1-M5: sessions, six tools, approvals, prompt, Ctrl-C, target gatesalmonik9 days1-0/+142
- append-only JSONL sessions with --continue/--session; reasoning stored, stripped on replay - read/write/edit/grep/glob + bash with timeout and capped output - diff-preview approval for the first edit of a session, per-call approval for bash - system prompt frozen per session with AGENTS.md snapshot and change warning - SIGINT aborts the turn, second Ctrl-C exits - glibc gate ignores weak symbols; verified in linux/386 debian:12 - acceptance test (calculator in C) passes on both x86-64 and i386