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.
Files changed (36) hide show
  1. package/dist/app/search/index.d.ts +16 -0
  2. package/dist/cli/main.js +714 -260
  3. package/dist/cli/main.js.map +20 -15
  4. package/dist/domain/entities/index.d.ts +1 -1
  5. package/dist/domain/entities/searchResult.d.ts +54 -0
  6. package/dist/domain/ports/filesystem.d.ts +3 -1
  7. package/dist/domain/services/index.d.ts +1 -0
  8. package/dist/domain/services/simpleSearch.d.ts +75 -0
  9. package/dist/domain/usecases/exactSearch.d.ts +53 -0
  10. package/dist/domain/usecases/index.d.ts +1 -0
  11. package/dist/index.d.ts +38 -3
  12. package/dist/index.js +673 -237
  13. package/dist/index.js.map +18 -15
  14. package/dist/types.d.ts +1 -1
  15. package/package.json +2 -1
  16. package/dist/domain/services/bm25.test.d.ts +0 -4
  17. package/dist/domain/services/configValidator.test.d.ts +0 -1
  18. package/dist/domain/services/conventions/conventions.test.d.ts +0 -4
  19. package/dist/domain/services/introspection.test.d.ts +0 -4
  20. package/dist/domain/services/jsonPathExtractor.test.d.ts +0 -4
  21. package/dist/domain/services/lexicon.test.d.ts +0 -6
  22. package/dist/domain/services/literalExtractor.test.d.ts +0 -6
  23. package/dist/domain/services/phraseMatch.test.d.ts +0 -4
  24. package/dist/domain/services/queryLiteralParser.test.d.ts +0 -7
  25. package/dist/infrastructure/embeddings/embeddings.test.d.ts +0 -4
  26. package/dist/infrastructure/parsing/parsing.test.d.ts +0 -10
  27. package/dist/modules/core/symbols.test.d.ts +0 -4
  28. package/dist/modules/language/go/index.test.d.ts +0 -1
  29. package/dist/modules/language/rust/index.test.d.ts +0 -1
  30. package/dist/modules/language/typescript/parseCode.test.d.ts +0 -4
  31. package/dist/tests/integration.test.d.ts +0 -9
  32. package/dist/tests/ranking.test.d.ts +0 -12
  33. package/dist/tests/simulation-phrase-matching.test.d.ts +0 -14
  34. package/dist/tests/simulation-vocabulary.test.d.ts +0 -17
  35. package/dist/tests/vocabulary-scoring.test.d.ts +0 -16
  36. package/dist/tests/vocabulary.test.d.ts +0 -10
package/dist/types.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * This file re-exports domain entities and defines module interfaces.
5
5
  * For new code, prefer importing directly from 'domain/entities'.
6
6
  */
7
- export type { Chunk, ChunkType, FileIndex, FileManifestEntry, ModuleManifest, GlobalManifest, FileSummary, Tier1Manifest, SearchResult, SearchOptions, SearchContributions, CoreContribution, LanguageContribution, IntrospectionContribution, Config, ModuleConfig, } from "./domain/entities";
7
+ export type { Chunk, ChunkType, FileIndex, FileManifestEntry, ModuleManifest, GlobalManifest, FileSummary, Tier1Manifest, SearchResult, SearchOptions, SearchContributions, CoreContribution, LanguageContribution, IntrospectionContribution, Config, ModuleConfig, ExactMatchOccurrence, ExactMatchFile, ExactMatchResults, HybridSearchResults, } from "./domain/entities";
8
8
  export { createChunkId, DEFAULT_SEARCH_OPTIONS, DEFAULT_IGNORE_PATHS, DEFAULT_EXTENSIONS, createDefaultConfig, } from "./domain/entities";
9
9
  import type { Config, FileIndex, SearchResult, SearchOptions, ModuleConfig } from "./domain/entities";
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raggrep",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "description": "Local filesystem-based RAG system for codebases - semantic search using local embeddings",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -59,6 +59,7 @@
59
59
  "chokidar": "^5.0.0",
60
60
  "fdir": "^6.5.0",
61
61
  "glob": "^10.0.0",
62
+ "minimatch": "^10.1.1",
62
63
  "typescript": "^5.0.0",
63
64
  "web-tree-sitter": "^0.26.3"
64
65
  },
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for BM25 search implementation
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for File Conventions Module
3
- */
4
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for Introspection Module
3
- */
4
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * JSON Path Extractor Tests
3
- */
4
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Lexicon Service Tests
3
- *
4
- * Tests for query expansion using domain-specific synonyms.
5
- */
6
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Literal Extractor Tests
3
- *
4
- * Tests for vocabulary extraction and literal extraction from code chunks.
5
- */
6
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for Phrase Matching Service
3
- */
4
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * QueryLiteralParser Tests
3
- *
4
- * Comprehensive tests for query literal detection.
5
- * Tests explicit (backticks, quotes) and implicit (casing patterns) detection.
6
- */
7
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for embedding utilities
3
- */
4
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Parser Infrastructure Tests
3
- *
4
- * Tests for the parser infrastructure including:
5
- * - TypeScriptParser (TypeScript Compiler API wrapper)
6
- * - TreeSitterParser (web-tree-sitter based)
7
- * - Parser factory functions
8
- * - Language detection
9
- */
10
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for regex-based symbol extraction
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for TypeScript/JavaScript code parser
3
- */
4
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * Integration Tests for RAGgrep
3
- *
4
- * These tests run against the .simulation folder and validate
5
- * end-to-end functionality of indexing and search.
6
- *
7
- * Tests are run sequentially to ensure proper state management.
8
- */
9
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Ranking Quality Tests
3
- *
4
- * These tests verify that search results are ranked appropriately.
5
- * They serve as regression tests when making ranking improvements.
6
- *
7
- * Test structure:
8
- * - Each test specifies a query and expected ranking criteria
9
- * - Tests check relative ordering, not absolute scores
10
- * - Tests use the scenarios/basic folder
11
- */
12
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * Simulation Test: Content-Based Phrase Matching
3
- *
4
- * This test validates that exact phrase queries find Markdown content
5
- * that contains those exact phrases, even when semantic/BM25 scores
6
- * are low.
7
- *
8
- * Issue: Query "authentication flow for new users" should find
9
- * markdown file containing that exact phrase.
10
- *
11
- * Before fix: Low scores, possibly filtered out
12
- * After fix: High scores due to phrase match boost
13
- */
14
- export {};
@@ -1,17 +0,0 @@
1
- /**
2
- * Simulation Test: Vocabulary-Based Scoring
3
- *
4
- * This test reproduces and validates the fix for the issue where
5
- * long natural language queries with vocabulary overlap weren't
6
- * finding TypeScript functions with matching identifier vocabulary.
7
- *
8
- * Issue: Query "where is the user session validated" should find
9
- * function `validateUserSession` via vocabulary overlap:
10
- * - Query vocabulary: [user, session, validated]
11
- * - Function vocabulary: [validate, user, session]
12
- * - Overlap: [user, session] + stem match [validate/validated]
13
- *
14
- * Before fix: Low scores, possibly filtered out
15
- * After fix: High scores, ranked #1
16
- */
17
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Vocabulary Scoring Tests
3
- *
4
- * These tests verify that long phrase queries with vocabulary overlap
5
- * correctly find and rank results.
6
- *
7
- * This file serves as:
8
- * 1. A reproduction of the issue (long queries not finding matches)
9
- * 2. Verification that the vocabulary scoring fix works
10
- *
11
- * Test structure:
12
- * - Tests use the scenarios/basic folder
13
- * - Each test specifies a long query and expected file to find
14
- * - Tests verify the expected file appears in top N results
15
- */
16
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Vocabulary Matching Tests
3
- *
4
- * Tests for vocabulary extraction and matching capabilities.
5
- * These tests verify that:
6
- * - Vocabulary is correctly extracted from symbol names
7
- * - Partial vocabulary matches work in search
8
- * - Scoring tiers are applied correctly
9
- */
10
- export {};