haansi 0.1.130 → 0.1.131
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/haansi.js +4 -4
- package/package.json +1 -1
package/dist/haansi.js
CHANGED
|
@@ -95,7 +95,7 @@ var require_package = __commonJS({
|
|
|
95
95
|
"package.json"(exports2, module2) {
|
|
96
96
|
module2.exports = {
|
|
97
97
|
name: "haansi",
|
|
98
|
-
version: "0.1.
|
|
98
|
+
version: "0.1.131",
|
|
99
99
|
description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
|
|
100
100
|
bin: {
|
|
101
101
|
haansi: "./dist/haansi.js"
|
|
@@ -90359,7 +90359,7 @@ async function gateOnContext(deps, tasks, options) {
|
|
|
90359
90359
|
for (const t of tasks) {
|
|
90360
90360
|
const label = t.name ?? t.taskKey;
|
|
90361
90361
|
const s = states.get(t.taskId);
|
|
90362
|
-
const tier = gateTierOf(s, recurringOf(t).length
|
|
90362
|
+
const tier = gateTierOf(s, recurringOf(t).length);
|
|
90363
90363
|
if (tier) {
|
|
90364
90364
|
tiers.set(t.taskId, tier);
|
|
90365
90365
|
if (tier === "missed")
|
|
@@ -90368,7 +90368,7 @@ async function gateOnContext(deps, tasks, options) {
|
|
|
90368
90368
|
);
|
|
90369
90369
|
else if (tier === "recurring")
|
|
90370
90370
|
deps.log(
|
|
90371
|
-
|
|
90371
|
+
`recurring ${label}: ${recurringOf(t).length} earlier bug fix(es) failed the same test and were fixed before it began: replayed as decisive`
|
|
90372
90372
|
);
|
|
90373
90373
|
} else if (s === "none" && scoreOf(t).nearby > 0) {
|
|
90374
90374
|
nearby += 1;
|
|
@@ -91377,7 +91377,7 @@ var init_replay_tasks = __esm({
|
|
|
91377
91377
|
);
|
|
91378
91378
|
HAANSI_HINTS = {
|
|
91379
91379
|
"bug-fix": "For a failing test, search with its name and the error line, and ask get_prior_attempts with the failing test files and the files they import.",
|
|
91380
|
-
feature: "Ask with the modules and names under 'What the tests use'."
|
|
91380
|
+
feature: "Ask with the modules and names under 'What the tests use', and with what the feature must cover: earlier work on the same job may be recorded, and a feature built in several changes needs the whole plan before the first edit."
|
|
91381
91381
|
};
|
|
91382
91382
|
FEATURE_MIN_FILE_RECALL = 0.4;
|
|
91383
91383
|
share2 = (part, whole) => whole === 0 ? null : Math.round(part / whole * 1e3) / 1e3;
|