You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add optional line numbering to read_text_file tool
Implements #60 - Add line numbering flag for read_text_file
Changes:
- Added `with_line_numbers` optional parameter to ReadTextFile struct
- Updated read_text_file service method to format output with line numbers
- Line numbers are right-aligned (6 digits) with pipe separator format
- Uses 1-based indexing for line numbers
- Maintains backward compatibility (defaults to false)
- Added comprehensive unit tests for various scenarios
- Updated CHANGELOG.md with feature description
This feature enables AI agents to obtain file content with line numbers
in a single tool invocation, improving efficiency for code modification
tasks that require precise line-based targeting.
[agent commit]
0 commit comments