raggrep 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/search/index.d.ts +16 -0
- package/dist/cli/main.js +714 -260
- package/dist/cli/main.js.map +20 -15
- package/dist/domain/entities/index.d.ts +1 -1
- package/dist/domain/entities/searchResult.d.ts +54 -0
- package/dist/domain/ports/filesystem.d.ts +3 -1
- package/dist/domain/services/index.d.ts +1 -0
- package/dist/domain/services/simpleSearch.d.ts +75 -0
- package/dist/domain/usecases/exactSearch.d.ts +53 -0
- package/dist/domain/usecases/index.d.ts +1 -0
- package/dist/index.d.ts +38 -3
- package/dist/index.js +673 -237
- package/dist/index.js.map +18 -15
- package/dist/types.d.ts +1 -1
- package/package.json +2 -1
- package/dist/domain/services/bm25.test.d.ts +0 -4
- package/dist/domain/services/configValidator.test.d.ts +0 -1
- package/dist/domain/services/conventions/conventions.test.d.ts +0 -4
- package/dist/domain/services/introspection.test.d.ts +0 -4
- package/dist/domain/services/jsonPathExtractor.test.d.ts +0 -4
- package/dist/domain/services/lexicon.test.d.ts +0 -6
- package/dist/domain/services/literalExtractor.test.d.ts +0 -6
- package/dist/domain/services/phraseMatch.test.d.ts +0 -4
- package/dist/domain/services/queryLiteralParser.test.d.ts +0 -7
- package/dist/infrastructure/embeddings/embeddings.test.d.ts +0 -4
- package/dist/infrastructure/parsing/parsing.test.d.ts +0 -10
- package/dist/modules/core/symbols.test.d.ts +0 -4
- package/dist/modules/language/go/index.test.d.ts +0 -1
- package/dist/modules/language/rust/index.test.d.ts +0 -1
- package/dist/modules/language/typescript/parseCode.test.d.ts +0 -4
- package/dist/tests/integration.test.d.ts +0 -9
- package/dist/tests/ranking.test.d.ts +0 -12
- package/dist/tests/simulation-phrase-matching.test.d.ts +0 -14
- package/dist/tests/simulation-vocabulary.test.d.ts +0 -17
- package/dist/tests/vocabulary-scoring.test.d.ts +0 -16
- package/dist/tests/vocabulary.test.d.ts +0 -10
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { SearchOptions, SearchResult } from "../../types";
|
|
2
|
+
import type { HybridSearchResults } from "../../domain/entities";
|
|
2
3
|
/**
|
|
3
4
|
* Search across all enabled modules
|
|
4
5
|
*/
|
|
5
6
|
export declare function search(rootDir: string, query: string, options?: SearchOptions): Promise<SearchResult[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Hybrid search with both semantic and exact match tracks.
|
|
9
|
+
*
|
|
10
|
+
* Returns:
|
|
11
|
+
* - results: Semantic/BM25 results (existing behavior), with fusion boosting if applicable
|
|
12
|
+
* - exactMatches: Exact match results for identifier queries (optional)
|
|
13
|
+
*/
|
|
14
|
+
export declare function hybridSearch(rootDir: string, query: string, options?: SearchOptions): Promise<HybridSearchResults>;
|
|
6
15
|
/**
|
|
7
16
|
* Format search results for display
|
|
8
17
|
* @param results - Array of search results to format
|
|
9
18
|
* @returns Formatted string for console output
|
|
10
19
|
*/
|
|
11
20
|
export declare function formatSearchResults(results: SearchResult[]): string;
|
|
21
|
+
/**
|
|
22
|
+
* Format hybrid search results including exact matches.
|
|
23
|
+
*
|
|
24
|
+
* @param hybridResults - Results from hybridSearch
|
|
25
|
+
* @returns Formatted string for console output
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatHybridSearchResults(hybridResults: HybridSearchResults): string;
|