Adding json + xpath headless extractors#6559
Conversation
WalkthroughAdded support for XPathExtractor and JSONExtractor types in the headless protocol's Extract method by routing them to ExtractXPath() and ExtractJSON() functions respectively. Comprehensive test coverage validates extraction, matching, and handling of complex nested structures. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.go📄 CodeRabbit inference engine (CLAUDE.md)
Files:
pkg/protocols/**/*.go📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (2)pkg/protocols/headless/operators.go (1)
pkg/protocols/headless/operators_test.go (4)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Proposed changes
Closes #6359
Checklist
Summary by CodeRabbit
New Features
Tests