Skip to content

Conversation

@JeanMertz
Copy link
Collaborator

Updated internal project maintenance tools to be more robust and predictable.

Key changes:

  • fs_read_file: Fixed line indexing to be 1-based and added validation for start_line and end_line parameters. Corrected the line collection logic to preserve line breaks.
  • fs_modify_file: Removed implicit newline consumption when matching patterns, which was causing double-newline issues or incorrect deletions.
  • cargo_check: Refactored to return structured Outcome results and improved output formatting.
  • General refactoring of tool return types to use a unified ToolResult type for better error handling and consistency.

Updated internal project maintenance tools to be more robust and
predictable.

Key changes:
- `fs_read_file`: Fixed line indexing to be 1-based and added
validation for `start_line` and `end_line` parameters. Corrected the
line collection logic to preserve line breaks.
- `fs_modify_file`: Removed implicit newline consumption when matching
patterns, which was causing double-newline issues or incorrect
deletions.
- `cargo_check`: Refactored to return structured `Outcome` results and
improved output formatting.
- General refactoring of tool return types to use a unified
`ToolResult` type for better error handling and consistency.

Signed-off-by: Jean Mertz <[email protected]>
@JeanMertz JeanMertz merged commit c960da9 into main Jan 8, 2026
12 checks passed
@JeanMertz JeanMertz deleted the improve-tool-inquery39 branch January 8, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants