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.
Files changed (32) hide show
  1. package/README.md +34 -5
  2. package/dist/cli/main.js +6469 -671
  3. package/dist/cli/main.js.map +23 -14
  4. package/dist/domain/entities/introspection.d.ts +2 -0
  5. package/dist/domain/entities/literal.d.ts +4 -0
  6. package/dist/domain/ports/index.d.ts +1 -0
  7. package/dist/domain/ports/parser.d.ts +121 -0
  8. package/dist/domain/services/configValidator.d.ts +44 -0
  9. package/dist/domain/services/configValidator.test.d.ts +1 -0
  10. package/dist/domain/services/index.d.ts +4 -2
  11. package/dist/domain/services/introspection.d.ts +22 -2
  12. package/dist/domain/services/literalExtractor.d.ts +16 -0
  13. package/dist/domain/services/literalExtractor.test.d.ts +6 -0
  14. package/dist/domain/services/literalScorer.d.ts +35 -0
  15. package/dist/index.js +6397 -600
  16. package/dist/index.js.map +23 -14
  17. package/dist/infrastructure/index.d.ts +1 -0
  18. package/dist/infrastructure/introspection/IntrospectionIndex.d.ts +5 -1
  19. package/dist/infrastructure/parsing/grammarManager.d.ts +83 -0
  20. package/dist/infrastructure/parsing/index.d.ts +15 -0
  21. package/dist/infrastructure/parsing/parserFactory.d.ts +56 -0
  22. package/dist/infrastructure/parsing/parsing.test.d.ts +10 -0
  23. package/dist/infrastructure/parsing/treeSitterParser.d.ts +103 -0
  24. package/dist/infrastructure/parsing/typescriptParser.d.ts +43 -0
  25. package/dist/infrastructure/storage/literalIndex.d.ts +33 -1
  26. package/dist/modules/language/go/index.d.ts +58 -0
  27. package/dist/modules/language/go/index.test.d.ts +1 -0
  28. package/dist/modules/language/python/index.d.ts +59 -0
  29. package/dist/modules/language/rust/index.d.ts +58 -0
  30. package/dist/modules/language/rust/index.test.d.ts +1 -0
  31. package/dist/tests/vocabulary.test.d.ts +10 -0
  32. 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
- **TypeScript/JavaScript:** `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs` — AST-parsed for functions, classes, interfaces, types, enums
189
+ ### Supported Languages
188
190
 
189
- **Documentation:** `.md`, `.txt` Section-aware parsing with heading extraction
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
- **Data:** `.json` — Structure-aware with key/value extraction
196
+ **Python** (`.py`)
197
+ - AST-parsed for functions, classes, decorators
198
+ - Docstring extraction and association
199
+ - Fallback regex parsing for robustness
192
200
 
193
- **Other languages:** `.py`, `.go`, `.rs`, `.java`, `.yaml`, `.yml`, `.toml`, `.sql` — Symbol extraction and keyword search
201
+ **Go** (`.go`)
202
+ - AST-parsed for functions, methods, structs, interfaces
203
+ - Doc comment extraction (`//` style)
204
+ - Exported symbol detection
194
205
 
195
- **Automatically ignored:** `node_modules`, `dist`, `build`, `.git`, and other common directories
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