@vohongtho.infotech/code-intel 1.0.0 → 1.0.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 +4 -1
- package/dist/cli/main.js +883 -324
- package/dist/cli/main.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +705 -529
- package/dist/index.js.map +1 -1
- package/dist/web/assets/{es-DIfCC5I3.js → es-Bu8iwdFw.js} +1 -1
- package/dist/web/assets/index-C9M6YLlS.css +2 -0
- package/dist/web/assets/index-CKc3HEpe.js +354 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-QSOOiRQm.js +0 -352
- package/dist/web/assets/index-XjZQJMiV.css +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -369,8 +369,13 @@ declare class Bm25Index {
|
|
|
369
369
|
*/
|
|
370
370
|
load(): void;
|
|
371
371
|
/**
|
|
372
|
-
* BM25 search.
|
|
373
|
-
*
|
|
372
|
+
* BM25 search.
|
|
373
|
+
*
|
|
374
|
+
* Performance strategy:
|
|
375
|
+
* 1. Skip ultra-high-df terms (df/N > 0.6) — near-zero IDF, dominate posting
|
|
376
|
+
* lists for common words like "function", "return", "export" in large repos.
|
|
377
|
+
* 2. Min-heap top-K selection — O(n log k) instead of full O(n log n) sort.
|
|
378
|
+
* For k=10 and n=30,000 candidates this is ~10× faster than Array.sort.
|
|
374
379
|
*/
|
|
375
380
|
search(query: string, limit: number): SearchResult[];
|
|
376
381
|
/**
|