raggrep 0.5.0 → 0.5.2
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/README.md +56 -11
- package/dist/app/indexer/index.d.ts +3 -1
- package/dist/cli/main.js +85 -11
- package/dist/cli/main.js.map +11 -11
- package/dist/domain/entities/searchResult.d.ts +5 -0
- package/dist/index.js +67 -9
- package/dist/index.js.map +10 -10
- package/dist/modules/core/index.d.ts +4 -0
- package/dist/modules/data/json/index.d.ts +2 -0
- package/dist/modules/docs/markdown/index.d.ts +2 -0
- package/dist/modules/language/typescript/index.d.ts +2 -0
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -29,6 +29,10 @@ export declare class CoreModule implements IndexModule {
|
|
|
29
29
|
readonly name = "Core Search";
|
|
30
30
|
readonly description = "Language-agnostic text search with symbol extraction";
|
|
31
31
|
readonly version = "1.0.0";
|
|
32
|
+
/**
|
|
33
|
+
* Core module accepts all files (it's the fallback).
|
|
34
|
+
*/
|
|
35
|
+
supportsFile(_filepath: string): boolean;
|
|
32
36
|
private symbolIndex;
|
|
33
37
|
private bm25Index;
|
|
34
38
|
private rootDir;
|
|
@@ -21,6 +21,7 @@ export declare const JSON_EXTENSIONS: string[];
|
|
|
21
21
|
* Check if a file is supported by this module.
|
|
22
22
|
*/
|
|
23
23
|
export declare function isJsonFile(filepath: string): boolean;
|
|
24
|
+
export declare const supportsFile: typeof isJsonFile;
|
|
24
25
|
/**
|
|
25
26
|
* Module-specific data stored alongside file index
|
|
26
27
|
*/
|
|
@@ -35,6 +36,7 @@ export declare class JsonModule implements IndexModule {
|
|
|
35
36
|
readonly name = "JSON Search";
|
|
36
37
|
readonly description = "JSON file search with structure-aware indexing";
|
|
37
38
|
readonly version = "1.0.0";
|
|
39
|
+
supportsFile(filepath: string): boolean;
|
|
38
40
|
private embeddingConfig;
|
|
39
41
|
private symbolicIndex;
|
|
40
42
|
private pendingSummaries;
|
|
@@ -21,6 +21,7 @@ export declare const MARKDOWN_EXTENSIONS: string[];
|
|
|
21
21
|
* Check if a file is supported by this module.
|
|
22
22
|
*/
|
|
23
23
|
export declare function isMarkdownFile(filepath: string): boolean;
|
|
24
|
+
export declare const supportsFile: typeof isMarkdownFile;
|
|
24
25
|
/**
|
|
25
26
|
* Module-specific data stored alongside file index
|
|
26
27
|
*/
|
|
@@ -35,6 +36,7 @@ export declare class MarkdownModule implements IndexModule {
|
|
|
35
36
|
readonly name = "Markdown Search";
|
|
36
37
|
readonly description = "Markdown documentation search with section-aware indexing";
|
|
37
38
|
readonly version = "1.0.0";
|
|
39
|
+
supportsFile(filepath: string): boolean;
|
|
38
40
|
private embeddingConfig;
|
|
39
41
|
private symbolicIndex;
|
|
40
42
|
private pendingSummaries;
|
|
@@ -21,6 +21,7 @@ export declare const TYPESCRIPT_EXTENSIONS: string[];
|
|
|
21
21
|
* Check if a file is supported by this module.
|
|
22
22
|
*/
|
|
23
23
|
export declare function isTypeScriptFile(filepath: string): boolean;
|
|
24
|
+
export declare const supportsFile: typeof isTypeScriptFile;
|
|
24
25
|
/**
|
|
25
26
|
* Module-specific data stored alongside file index
|
|
26
27
|
*/
|
|
@@ -35,6 +36,7 @@ export declare class TypeScriptModule implements IndexModule {
|
|
|
35
36
|
readonly name = "TypeScript Search";
|
|
36
37
|
readonly description = "TypeScript-aware code search with AST parsing and semantic embeddings";
|
|
37
38
|
readonly version = "1.0.0";
|
|
39
|
+
supportsFile(filepath: string): boolean;
|
|
38
40
|
private embeddingConfig;
|
|
39
41
|
private symbolicIndex;
|
|
40
42
|
private pendingSummaries;
|
package/dist/types.d.ts
CHANGED
|
@@ -71,6 +71,12 @@ export interface IndexModule {
|
|
|
71
71
|
* Use for building secondary indexes (e.g., Tier 1 summaries, BM25 index).
|
|
72
72
|
*/
|
|
73
73
|
finalize?(ctx: IndexContext): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Optional: Check if this module supports a given file.
|
|
76
|
+
* Used to pre-filter files before indexing to show accurate progress.
|
|
77
|
+
* If not implemented, all files are passed to indexFile.
|
|
78
|
+
*/
|
|
79
|
+
supportsFile?(filepath: string): boolean;
|
|
74
80
|
/**
|
|
75
81
|
* Optional: Cleanup resources
|
|
76
82
|
*/
|