haansi 0.1.135 → 0.1.136

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.
Files changed (2) hide show
  1. package/dist/haansi.js +15 -3
  2. 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.135",
98
+ version: "0.1.136",
99
99
  description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
100
100
  bin: {
101
101
  haansi: "./dist/haansi.js"
@@ -91702,7 +91702,9 @@ async function runStoredReplays(options, deps) {
91702
91702
  const sendTarget = !options.noDiffs && !targetSent && targetText !== null;
91703
91703
  const byFiles = isFeatureDelivery(task);
91704
91704
  const passed = r.passed && (!byFiles || (overlap.fileRecall ?? 0) >= FEATURE_MIN_FILE_RECALL);
91705
- if (r.passed && !passed)
91705
+ const tooSmall = r.passed && !passed;
91706
+ const tooSmallText = `Tests passed, but the change was too small: it covers ${pct(overlap.fileRecall)} of the target's files (a feature needs ${pct(FEATURE_MIN_FILE_RECALL)}).`;
91707
+ if (tooSmall)
91706
91708
  deps.log(
91707
91709
  `\u2026 ${label} [${arm}]: tests pass, but the change covers ${pct(overlap.fileRecall)} of the target's files (a feature needs ${pct(FEATURE_MIN_FILE_RECALL)})`
91708
91710
  );
@@ -91722,7 +91724,17 @@ async function runStoredReplays(options, deps) {
91722
91724
  haansi,
91723
91725
  sessionId: session?.sessionId ?? null,
91724
91726
  configFingerprint,
91725
- errors: options.noDiffs ? null : r.errors ?? [],
91727
+ errors: options.noDiffs ? null : [
91728
+ ...r.errors ?? [],
91729
+ ...tooSmall ? [
91730
+ {
91731
+ attempt: r.attempts,
91732
+ agentExit: 0,
91733
+ failing: [],
91734
+ output: tooSmallText
91735
+ }
91736
+ ] : []
91737
+ ],
91726
91738
  testCounts: r.testCounts ?? [],
91727
91739
  usage: r.usage ?? [],
91728
91740
  specGaps: task.specGaps ? task.specGaps.length : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.135",
3
+ "version": "0.1.136",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"