raggrep 0.10.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 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
 
package/dist/cli/main.js CHANGED
@@ -8334,9 +8334,9 @@ class TreeSitterParser {
8334
8334
  }
8335
8335
  async initializeTreeSitter() {
8336
8336
  try {
8337
- const Parser2 = await Promise.resolve().then(() => (init_web_tree_sitter(), exports_web_tree_sitter));
8338
- await Parser2.default.init();
8339
- this.parserInstance = new Parser2.default;
8337
+ const { Parser: Parser2 } = await Promise.resolve().then(() => (init_web_tree_sitter(), exports_web_tree_sitter));
8338
+ await Parser2.init();
8339
+ this.parserInstance = new Parser2;
8340
8340
  } catch (error) {
8341
8341
  console.error("Failed to initialize web-tree-sitter:", error);
8342
8342
  throw error;
@@ -12054,7 +12054,7 @@ async function getIndexStatus(rootDir) {
12054
12054
  }
12055
12055
  return status;
12056
12056
  }
12057
- var INDEX_SCHEMA_VERSION = "1.1.0", DEFAULT_CONCURRENCY;
12057
+ var INDEX_SCHEMA_VERSION = "2.0.0", DEFAULT_CONCURRENCY;
12058
12058
  var init_indexer = __esm(() => {
12059
12059
  init_config2();
12060
12060
  init_registry();
@@ -13635,7 +13635,7 @@ init_logger();
13635
13635
  // package.json
13636
13636
  var package_default = {
13637
13637
  name: "raggrep",
13638
- version: "0.10.0",
13638
+ version: "0.10.1",
13639
13639
  description: "Local filesystem-based RAG system for codebases - semantic search using local embeddings",
13640
13640
  type: "module",
13641
13641
  main: "./dist/index.js",
@@ -14229,4 +14229,4 @@ Run 'raggrep <command> --help' for more information.
14229
14229
  }
14230
14230
  main();
14231
14231
 
14232
- //# debugId=C678ED010B798B7464756E2164756E21
14232
+ //# debugId=983FE42C702490DF64756E2164756E21