mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-29 06:26:34 +00:00
- Added `edit_file` to the file tool; diffs are parsed and applied in-memory via `github.com/sergi/go-diff`, exported as `tools.ApplyUnifiedDiff`. - Made the hunk header lenient (position numbers optional) for models that omit them, with fuzzy content-based matching as fallback. - Tuned `FileAction` field descriptions (layered, minimal-token) to steer models toward including context lines, based on live model testing via `ctester`. - Added a `file_edit` multi-turn read_file → edit_file test case in `pkg/providers/tester`, using PentAGI's real tool schema, wired into the `advanced` test group. - Fixed a bug where a single stateful test-case instance was shared across agent types, leaking conversation history and failures between independent runs. - Extended the mock provider with sequential responses for multi-turn scenarios; added ctester integration tests.