Skip to content

feat: merge AST-based code search and enhancements from develop#8

Open
shreeshjha wants to merge 10 commits into
mainfrom
develop
Open

feat: merge AST-based code search and enhancements from develop#8
shreeshjha wants to merge 10 commits into
mainfrom
develop

Conversation

@shreeshjha
Copy link
Copy Markdown
Owner

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

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant