Expand description
Utility functions for tools
Re-exports§
pub use run::execute_command;pub use run::stream_command;pub use run::validate_command_safety;pub use run::CommandOptions;pub use run::CommandResult;
Modules§
- run
- Tool execution utilities
Constants§
- MAX_
RESPONSE_ LEN - Maximum response length before truncation
- TRUNCATED_
MESSAGE - Truncation message
Functions§
- check_
file_ exists - Check if a file exists and return appropriate error
- create_
edit_ snippet - Create a snippet around a specific line for editing feedback
- expand_
tabs - Expand tabs in text content
- format_
with_ line_ numbers - Format file content with line numbers
- maybe_
truncate - Truncate content if it exceeds the specified length
- run_
command - Run a shell command asynchronously with timeout
- validate_
absolute_ path - Validate that a path is absolute
- validate_
directory_ operation - Check if path is a directory and validate operation