@softerist/heuristic-mcp 2.0.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.
- package/ARCHITECTURE.md +287 -0
- package/CONTRIBUTING.md +308 -0
- package/LICENSE +21 -0
- package/README.md +249 -0
- package/config.json +66 -0
- package/example.png +0 -0
- package/features/clear-cache.js +75 -0
- package/features/find-similar-code.js +127 -0
- package/features/hybrid-search.js +173 -0
- package/features/index-codebase.js +811 -0
- package/how-its-works.png +0 -0
- package/index.js +208 -0
- package/lib/cache.js +163 -0
- package/lib/config.js +257 -0
- package/lib/embedding-worker.js +67 -0
- package/lib/ignore-patterns.js +314 -0
- package/lib/project-detector.js +75 -0
- package/lib/tokenizer.js +142 -0
- package/lib/utils.js +301 -0
- package/package.json +65 -0
- package/scripts/clear-cache.js +31 -0
- package/test/clear-cache.test.js +288 -0
- package/test/embedding-model.test.js +230 -0
- package/test/helpers.js +128 -0
- package/test/hybrid-search.test.js +243 -0
- package/test/index-codebase.test.js +246 -0
- package/test/integration.test.js +223 -0
- package/test/tokenizer.test.js +225 -0
- package/vitest.config.js +29 -0
package/vitest.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
// Test files pattern
|
|
6
|
+
include: ['test/**/*.test.js'],
|
|
7
|
+
|
|
8
|
+
// Global test timeout (embedding models can be slow)
|
|
9
|
+
testTimeout: 180000,
|
|
10
|
+
|
|
11
|
+
// Hook timeout for setup/teardown
|
|
12
|
+
hookTimeout: 180000,
|
|
13
|
+
|
|
14
|
+
// Run test files sequentially to avoid resource conflicts
|
|
15
|
+
// Each file loads the embedding model which uses significant memory
|
|
16
|
+
fileParallelism: false,
|
|
17
|
+
|
|
18
|
+
// Run tests within a file sequentially
|
|
19
|
+
sequence: {
|
|
20
|
+
concurrent: false
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
// Verbose output
|
|
24
|
+
reporters: ['verbose'],
|
|
25
|
+
|
|
26
|
+
// Isolate tests to prevent memory leaks between test files
|
|
27
|
+
isolate: true
|
|
28
|
+
}
|
|
29
|
+
});
|