feat: Enhance CodexLens indexing and search capabilities with new CLI options and improved error handling

This commit is contained in:
catlog22
2025-12-19 15:10:37 +08:00
parent c7ced2bfbb
commit 2f0cce0089
18 changed files with 480 additions and 128 deletions

View File

@@ -831,13 +831,13 @@ class ChainSearchEngine:
r.target_qualified_name AS target_symbol,
r.relationship_type,
r.source_line,
f.path AS source_file,
f.full_path AS source_file,
r.target_file
FROM code_relationships r
JOIN symbols s ON r.source_symbol_id = s.id
JOIN files f ON s.file_id = f.id
WHERE s.name = ? AND r.relationship_type = 'call'
ORDER BY f.path, r.source_line
ORDER BY f.full_path, r.source_line
LIMIT 100
""",
(source_symbol,)
@@ -928,7 +928,7 @@ class ChainSearchEngine:
r.target_qualified_name,
r.relationship_type,
r.source_line,
f.path AS source_file,
f.full_path AS source_file,
r.target_file
FROM code_relationships r
JOIN symbols s ON r.source_symbol_id = s.id
@@ -940,7 +940,7 @@ class ChainSearchEngine:
r.target_qualified_name,
r.relationship_type,
r.source_line,
f.path AS source_file,
f.full_path AS source_file,
r.target_file
FROM code_relationships r
JOIN symbols s ON r.source_symbol_id = s.id