@merittdev/horus 0.8.16 → 0.8.17
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/index.cjs +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -65880,7 +65880,7 @@ init_cjs_shims();
|
|
|
65880
65880
|
|
|
65881
65881
|
// ../../packages/core/src/version.ts
|
|
65882
65882
|
init_cjs_shims();
|
|
65883
|
-
var HORUS_VERSION = true ? "0.8.
|
|
65883
|
+
var HORUS_VERSION = true ? "0.8.17" : "dev";
|
|
65884
65884
|
var PINNED_SOURCE_VERSION = "1.5.3";
|
|
65885
65885
|
|
|
65886
65886
|
// ../../packages/core/src/evidence.ts
|
|
@@ -92002,6 +92002,9 @@ function scoreSeed(s5, index2, hintTokens, changedFiles, hintHasCode) {
|
|
|
92002
92002
|
if (changedFiles !== void 0 && changedFiles.has(s5.filePath)) score += 5;
|
|
92003
92003
|
if (/\.(resolver|controller|service)\.[jt]sx?$/i.test(s5.filePath)) score += hintHasCode ? 0 : 2;
|
|
92004
92004
|
if (/(^|\/)scripts?\//i.test(s5.filePath)) score -= 2;
|
|
92005
|
+
if (/(^|\/)(tests?|__tests__|spec)\//i.test(s5.filePath) || /(\.|_)(test|spec)\.[jt]sx?$/i.test(s5.filePath) || /(^|\/)test_[^/]*\.py$/i.test(s5.filePath) || /_test\.py$/i.test(s5.filePath)) {
|
|
92006
|
+
score -= 4;
|
|
92007
|
+
}
|
|
92005
92008
|
score += Math.max(0, 5 - index2) * (hintHasCode ? 0.8 : 0.1);
|
|
92006
92009
|
if (s5.score !== void 0) score += s5.score * (hintHasCode ? 8 : 1.5);
|
|
92007
92010
|
if (/\.[jt]sx?$/i.test(s5.name)) score -= 5;
|