@merittdev/horus 0.21.4 → 0.21.5
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/dist/horus_source.whl +0 -0
- package/dist/index.cjs +8 -3
- package/package.json +1 -1
package/dist/horus_source.whl
CHANGED
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -3057,7 +3057,7 @@ var init_version = __esm({
|
|
|
3057
3057
|
"../../packages/core/src/version.ts"() {
|
|
3058
3058
|
"use strict";
|
|
3059
3059
|
init_cjs_shims();
|
|
3060
|
-
HORUS_VERSION = true ? "0.21.
|
|
3060
|
+
HORUS_VERSION = true ? "0.21.5" : "dev";
|
|
3061
3061
|
PINNED_SOURCE_VERSION = HORUS_VERSION;
|
|
3062
3062
|
SOURCE_PIN_ENFORCED = HORUS_VERSION !== "dev";
|
|
3063
3063
|
}
|
|
@@ -97566,10 +97566,15 @@ function isDeprioritizedSeedPath(filePath) {
|
|
|
97566
97566
|
function isDeprioritizedSeed(s5) {
|
|
97567
97567
|
return isDeprioritizedSeedPath(s5.filePath) || isCodegenPath(s5.filePath) || isTypeDeclarationSymbol(s5);
|
|
97568
97568
|
}
|
|
97569
|
+
function isDeclarationFile(filePath) {
|
|
97570
|
+
return /\.d\.[cm]?ts$/i.test(filePath);
|
|
97571
|
+
}
|
|
97569
97572
|
function productTier(candidates, includeTests = false) {
|
|
97570
97573
|
if (includeTests) return candidates;
|
|
97571
97574
|
const product = candidates.filter((s5) => !isDeprioritizedSeedPath(s5.filePath));
|
|
97572
|
-
|
|
97575
|
+
const pool = product.length > 0 ? product : candidates;
|
|
97576
|
+
const impl = pool.filter((s5) => !isDeclarationFile(s5.filePath));
|
|
97577
|
+
return impl.length > 0 ? impl : pool;
|
|
97573
97578
|
}
|
|
97574
97579
|
function isAnchoredExactSeed(s5, qualifier, hintHasCode, preferNamed) {
|
|
97575
97580
|
if (qualifier && qualifierBoost(s5, qualifier) >= 40) return true;
|
|
@@ -97602,7 +97607,7 @@ function scoreExactCandidate(query, symbol, includeTests) {
|
|
|
97602
97607
|
if (!includeTests && isDeprioritizedSeedPath(symbol.filePath) || isCodegenPath(symbol.filePath)) {
|
|
97603
97608
|
score -= 6;
|
|
97604
97609
|
}
|
|
97605
|
-
if (
|
|
97610
|
+
if (isDeclarationFile(symbol.filePath)) score -= 3;
|
|
97606
97611
|
const loc = (symbol.endLine ?? 0) - (symbol.startLine ?? 0);
|
|
97607
97612
|
if (loc > 0) score += Math.min(4, Math.log2(loc + 1));
|
|
97608
97613
|
return score;
|