haansi 0.1.127 → 0.1.128
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 +9 -6
- 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.128",
|
|
99
99
|
description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
|
|
100
100
|
bin: {
|
|
101
101
|
haansi: "./dist/haansi.js"
|
|
@@ -90096,7 +90096,7 @@ async function gateOnContext(deps, tasks, options) {
|
|
|
90096
90096
|
for (const t of tasks) {
|
|
90097
90097
|
const label = t.name ?? t.taskKey;
|
|
90098
90098
|
const s = states.get(t.taskId);
|
|
90099
|
-
const tier = gateTierOf(s, recurringOf(t).length);
|
|
90099
|
+
const tier = gateTierOf(s, recurringOf(t).length + (t.priorFixes ?? 0));
|
|
90100
90100
|
if (tier) {
|
|
90101
90101
|
tiers.set(t.taskId, tier);
|
|
90102
90102
|
if (tier === "missed")
|
|
@@ -90105,7 +90105,7 @@ async function gateOnContext(deps, tasks, options) {
|
|
|
90105
90105
|
);
|
|
90106
90106
|
else if (tier === "recurring")
|
|
90107
90107
|
deps.log(
|
|
90108
|
-
`recurring ${label}: ${recurringOf(t).length} earlier bug fix(es) failed the same test and were fixed before it began: replayed as decisive`
|
|
90108
|
+
recurringOf(t).length ? `recurring ${label}: ${recurringOf(t).length} earlier bug fix(es) failed the same test and were fixed before it began: replayed as decisive` : `recurring ${label}: ${t.priorFixes} earlier attempt(s) failed the same check and were fixed before it began: replayed as decisive`
|
|
90109
90109
|
);
|
|
90110
90110
|
} else if (s === "none" && scoreOf(t).nearby > 0) {
|
|
90111
90111
|
nearby += 1;
|
|
@@ -90136,7 +90136,10 @@ async function gateOnContext(deps, tasks, options) {
|
|
|
90136
90136
|
};
|
|
90137
90137
|
}
|
|
90138
90138
|
function fromChecks(tasks, limit, shard) {
|
|
90139
|
-
const tierOf = (t) => gateTierOf(
|
|
90139
|
+
const tierOf = (t) => gateTierOf(
|
|
90140
|
+
t.context?.state,
|
|
90141
|
+
(t.context?.recurringIds?.length ?? 0) + (t.priorFixes ?? 0)
|
|
90142
|
+
);
|
|
90140
90143
|
const ready = tasks.filter(
|
|
90141
90144
|
(t) => !needsCheck(t) && tierOf(t) !== null && t.calibration?.state === "valid" && t.calibration.inputsFingerprint === t.inputsFingerprint
|
|
90142
90145
|
);
|
|
@@ -90153,7 +90156,7 @@ var init_replay_context = __esm({
|
|
|
90153
90156
|
init_replay_diff();
|
|
90154
90157
|
init_replay_scale();
|
|
90155
90158
|
init_replay_spec();
|
|
90156
|
-
CONTEXT_CHECK_VERSION =
|
|
90159
|
+
CONTEXT_CHECK_VERSION = 9;
|
|
90157
90160
|
TIER_ORDER = {
|
|
90158
90161
|
found: 0,
|
|
90159
90162
|
missed: 1,
|
|
@@ -91827,7 +91830,7 @@ given.
|
|
|
91827
91830
|
--repo-commands uses the setup and test commands an org owner or admin saved for the
|
|
91828
91831
|
repository in Haansi (Impact \u2192 Replays) for any not given here.
|
|
91829
91832
|
|
|
91830
|
-
--check-commands runs the tasks a build
|
|
91833
|
+
--check-commands runs the tasks a build or validator check
|
|
91831
91834
|
grades: the commands that check's CI job ran, read by Haansi from this
|
|
91832
91835
|
repository's workflow file at the task's start. They are printed before they
|
|
91833
91836
|
run, and replace --test-cmd for those tasks only. Without it those tasks are
|