Commit Graph

4 Commits

Author SHA1 Message Date
lorenzejay
364143a682 fix test 2026-02-12 10:29:46 -08:00
lorenzejay
9fae6c0adf feat: enhance GrepTool with sensitive file exclusion and file size limit
- Added MAX_CONTEXT_LINES to define the upper limit for context lines shown in search results.
- Introduced MAX_FILE_SIZE_BYTES to skip files larger than 10 MB during searches.
- Implemented logic to exclude sensitive files (e.g., .env, .netrc) from search results to prevent accidental leakage of credentials.
- Updated tests to validate sensitive file exclusion and file size limits, ensuring robustness in handling sensitive content.
2026-02-12 10:27:24 -08:00
lorenzejay
ec2b6a0287 feat: enhance GrepTool with regex length limit, path restrictions, and brace expansion support
- Added MAX_REGEX_LENGTH to limit regex pattern length and prevent ReDoS.
- Introduced allow_unrestricted_paths option to enable searching outside the current working directory.
- Implemented brace expansion for glob patterns to support multiple file types.
- Enhanced error handling for path traversal and regex compilation.
- Updated tests to cover new features and ensure robustness.
2026-02-11 20:44:46 -08:00
lorenzejay
f04bedc9ab moved to tools 2026-02-04 11:50:43 -08:00