- Added code_snippet parameter to find line numbers automatically using code text
- Added search_context parameter with before/after arrays for disambiguation
- Added match_strategy parameter (strict/best) for handling multiple matches
- Added suggestion and suggestion_end_line parameters for code suggestions
- Created suggestion-formatter utility for formatting suggestion comments
- Enhanced tool definitions with clearer descriptions and examples
- Updated README with comprehensive usage guide and decision flow
- Removed all debug information from responses for production readiness
- Added detailed error responses when multiple code matches are found
- Improved type definitions and guards for new parameters
This makes the add_comment tool more intelligent and user-friendly, especially for AI-powered code review scenarios.
- Add include_patterns, exclude_patterns, and file_path parameters to get_pull_request_diff
- Implement a diff parser to filter the diff based on the provided patterns
- Add minimatch dependency for glob pattern matching
- Update documentation and changelog