@merittdev/horus 0.8.15 → 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 +9 -2
- 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;
|
|
@@ -115539,7 +115542,11 @@ async function ensureBackendPinned(write) {
|
|
|
115539
115542
|
try {
|
|
115540
115543
|
await execFileAsync2(
|
|
115541
115544
|
"uv",
|
|
115542
|
-
|
|
115545
|
+
// --refresh: a CLI update commonly lands seconds after a backend release, so uv's
|
|
115546
|
+
// cached PyPI index may not list the just-published version yet and the install
|
|
115547
|
+
// resolves to "unsatisfiable". Refreshing the index makes the lockstep upgrade
|
|
115548
|
+
// reliable right after a release (HOR-360).
|
|
115549
|
+
["tool", "install", "--force", "--refresh", `horus-source==${PINNED_SOURCE_VERSION}`],
|
|
115543
115550
|
{ timeout: 3e5 }
|
|
115544
115551
|
);
|
|
115545
115552
|
write(` ${import_picocolors43.default.green("\u2713")} Source backend upgraded to ${PINNED_SOURCE_VERSION}.`);
|