raggrep 0.9.0 → 0.10.1
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 +34 -5
- package/dist/cli/main.js +6469 -671
- package/dist/cli/main.js.map +23 -14
- package/dist/domain/entities/introspection.d.ts +2 -0
- package/dist/domain/entities/literal.d.ts +4 -0
- package/dist/domain/ports/index.d.ts +1 -0
- package/dist/domain/ports/parser.d.ts +121 -0
- package/dist/domain/services/configValidator.d.ts +44 -0
- package/dist/domain/services/configValidator.test.d.ts +1 -0
- package/dist/domain/services/index.d.ts +4 -2
- package/dist/domain/services/introspection.d.ts +22 -2
- package/dist/domain/services/literalExtractor.d.ts +16 -0
- package/dist/domain/services/literalExtractor.test.d.ts +6 -0
- package/dist/domain/services/literalScorer.d.ts +35 -0
- package/dist/index.js +6397 -600
- package/dist/index.js.map +23 -14
- package/dist/infrastructure/index.d.ts +1 -0
- package/dist/infrastructure/introspection/IntrospectionIndex.d.ts +5 -1
- package/dist/infrastructure/parsing/grammarManager.d.ts +83 -0
- package/dist/infrastructure/parsing/index.d.ts +15 -0
- package/dist/infrastructure/parsing/parserFactory.d.ts +56 -0
- package/dist/infrastructure/parsing/parsing.test.d.ts +10 -0
- package/dist/infrastructure/parsing/treeSitterParser.d.ts +103 -0
- package/dist/infrastructure/parsing/typescriptParser.d.ts +43 -0
- package/dist/infrastructure/storage/literalIndex.d.ts +33 -1
- package/dist/modules/language/go/index.d.ts +58 -0
- package/dist/modules/language/go/index.test.d.ts +1 -0
- package/dist/modules/language/python/index.d.ts +59 -0
- package/dist/modules/language/rust/index.d.ts +58 -0
- package/dist/modules/language/rust/index.test.d.ts +1 -0
- package/dist/tests/vocabulary.test.d.ts +10 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@ RAGgrep indexes your code and lets you search it using natural language. Everyth
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- **Zero-config search** — Just run `raggrep query` and it works. Index is created and updated automatically.
|
|
10
|
+
- **Multi-language support** — Deep understanding of TypeScript, JavaScript, Python, Go, and Rust with AST-aware parsing.
|
|
11
|
+
- **Vocabulary-based search** — Search `user` to find `getUserById`, `fetchUserData`, `UserService`, etc. Understands code naming conventions.
|
|
10
12
|
- **Local-first** — All indexing and search happens on your machine. No cloud dependencies.
|
|
11
13
|
- **Incremental** — Only re-indexes files that have changed. Instant search when nothing changed.
|
|
12
14
|
- **Watch mode** — Keep the index fresh in real-time as you code.
|
|
@@ -184,15 +186,42 @@ The index is stored in a system temp directory, keeping your project clean.
|
|
|
184
186
|
|
|
185
187
|
## What Gets Indexed
|
|
186
188
|
|
|
187
|
-
|
|
189
|
+
### Supported Languages
|
|
188
190
|
|
|
189
|
-
**
|
|
191
|
+
**TypeScript/JavaScript** (`.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs`)
|
|
192
|
+
- AST-parsed for functions, classes, interfaces, types, enums
|
|
193
|
+
- Full file chunks for broad context
|
|
194
|
+
- JSDoc and comment association
|
|
190
195
|
|
|
191
|
-
**
|
|
196
|
+
**Python** (`.py`)
|
|
197
|
+
- AST-parsed for functions, classes, decorators
|
|
198
|
+
- Docstring extraction and association
|
|
199
|
+
- Fallback regex parsing for robustness
|
|
192
200
|
|
|
193
|
-
**
|
|
201
|
+
**Go** (`.go`)
|
|
202
|
+
- AST-parsed for functions, methods, structs, interfaces
|
|
203
|
+
- Doc comment extraction (`//` style)
|
|
204
|
+
- Exported symbol detection
|
|
194
205
|
|
|
195
|
-
**
|
|
206
|
+
**Rust** (`.rs`)
|
|
207
|
+
- AST-parsed for functions, structs, traits, impls, enums
|
|
208
|
+
- Doc comment extraction (`///` and `//!` style)
|
|
209
|
+
- Visibility detection (`pub`)
|
|
210
|
+
|
|
211
|
+
**Markdown** (`.md`)
|
|
212
|
+
- Hierarchical chunking at multiple heading levels (H1-H5)
|
|
213
|
+
- Each heading level creates separate searchable chunks
|
|
214
|
+
- Nested content included for context
|
|
215
|
+
|
|
216
|
+
**JSON** (`.json`)
|
|
217
|
+
- Structure-aware with key/value extraction
|
|
218
|
+
- Path-based indexing
|
|
219
|
+
|
|
220
|
+
**Other formats:** `.yaml`, `.yml`, `.toml`, `.sql`, `.txt` — Keyword search and full-text indexing
|
|
221
|
+
|
|
222
|
+
### Automatically Ignored
|
|
223
|
+
|
|
224
|
+
`node_modules`, `dist`, `build`, `.git`, `.next`, `.cache`, `__pycache__`, `target`, and other common build/dependency directories
|
|
196
225
|
|
|
197
226
|
## Documentation
|
|
198
227
|
|