feat: merge AST-based code search and enhancements from develop#8
Open
shreeshjha wants to merge 10 commits into
Open
feat: merge AST-based code search and enhancements from develop#8shreeshjha wants to merge 10 commits into
shreeshjha wants to merge 10 commits into
Conversation
- Create reposcout-ast crate with tree-sitter integration - Add AST extractors for Rust, Python, JavaScript/TypeScript, and Go - Implement AstMetadata, FunctionSignature, and TypeDefinition models - Add query parsing for AST filters (fn:, class:, async) - Include AST similarity scoring for hybrid ranking - Support structure-aware search across 6 languages
- Add AstAnalyzer for enriching search results with AST metadata - Implement hybrid scoring with semantic, keyword, and AST weights - Add rerank_with_ast_filters method for AST-aware ranking - Enhance embeddings with AST structure summaries - Use neutral scores (0.5) for results without AST metadata - Support graceful degradation when AST parsing fails
- Add --ast and --ast-weight flags for AST-enhanced search - Implement query parsing to extract AST filters from natural language - Display AST filter detection in verbose output - Support fn:, class:, and async query prefixes - Use character-aware string truncation for Unicode safety
- Add Shift+A keyboard shortcut to toggle AST search mode - Display AST status in code filter panel with visual indicators - Show AST weight percentage when enabled - Add AST fields to CodeSearchFilters struct - Integrate AST reranking in search pipeline - Use character-aware truncation for Unicode safety - Add stateful list rendering for proper scrolling
- Make Match.text optional to handle null values - Make Owner.avatar_url and html_url optional - Make CodeSearchRepository.html_url optional - Add flatten field to Owner for unknown API fields - Add debug logging to save failed responses for troubleshooting - Provide fallback URL construction when html_url is null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add multi-language AST extractors (Rust, Python, JS/TS, Go)
Integrate AST analysis into semantic search pipeline
Add TUI keyboard shortcuts (Shift+A) and visual indicators
Enhance CLI with query parsing and AST flags
Fix GitHub API nullable field handling
Improve Unicode string handling across codebase