haansi 0.1.109 → 0.1.110
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 +15 -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.
|
|
98
|
+
version: "0.1.110",
|
|
99
99
|
description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
|
|
100
100
|
bin: {
|
|
101
101
|
haansi: "./dist/haansi.js"
|
|
@@ -86135,6 +86135,17 @@ function messageAt(lines, i) {
|
|
|
86135
86135
|
}
|
|
86136
86136
|
function testErrorsOf(output, root) {
|
|
86137
86137
|
const lines = output.split(/\r?\n/).map((l) => relativePaths(l.replace(ANSI, "").trimEnd(), root));
|
|
86138
|
+
const marker = lines.findIndex((l) => l.trim() === BUILD_FAILED_MARKER);
|
|
86139
|
+
if (marker >= 0) {
|
|
86140
|
+
const text = scrubSecrets(
|
|
86141
|
+
lines.slice(marker + 1).filter((l) => l.trim()).slice(-OUTPUT_LINES).join("\n")
|
|
86142
|
+
);
|
|
86143
|
+
return {
|
|
86144
|
+
failing: [BUILD_FAILED],
|
|
86145
|
+
output: text.length > MAX_ERROR_OUTPUT_CHARS ? `\u2026 (trimmed)
|
|
86146
|
+
${text.slice(-MAX_ERROR_OUTPUT_CHARS)}` : text || "The build failed before any test ran."
|
|
86147
|
+
};
|
|
86148
|
+
}
|
|
86138
86149
|
const failing = [];
|
|
86139
86150
|
const messages = /* @__PURE__ */ new Map();
|
|
86140
86151
|
for (const line of lines) {
|
|
@@ -86239,7 +86250,7 @@ function testCountsOf(output) {
|
|
|
86239
86250
|
const goFail = lines.filter((l) => /^--- FAIL:/.test(l)).length;
|
|
86240
86251
|
return goPass + goFail > 0 ? { passed: goPass, failed: goFail, total: goPass + goFail } : null;
|
|
86241
86252
|
}
|
|
86242
|
-
var MAX_ERROR_TESTS, MAX_ERROR_OUTPUT_CHARS, MAX_TEST_MESSAGE_CHARS, SUITE_LOAD_FAILED, OUTPUT_LINES, MESSAGE_LINES, ANSI, JS_FILE, SECRET_PATTERNS, TEMP_CHECKOUT, MESSAGE_END, PYTEST_SUMMARY, SUMMARY, isSummary, PYTEST_SECTION, PYTEST_WHERE, cut, count;
|
|
86253
|
+
var MAX_ERROR_TESTS, MAX_ERROR_OUTPUT_CHARS, MAX_TEST_MESSAGE_CHARS, SUITE_LOAD_FAILED, OUTPUT_LINES, MESSAGE_LINES, ANSI, JS_FILE, SECRET_PATTERNS, TEMP_CHECKOUT, MESSAGE_END, PYTEST_SUMMARY, SUMMARY, isSummary, PYTEST_SECTION, PYTEST_WHERE, cut, BUILD_FAILED_MARKER, BUILD_FAILED, count;
|
|
86243
86254
|
var init_replay_errors = __esm({
|
|
86244
86255
|
"src/commands/replay-errors.ts"() {
|
|
86245
86256
|
"use strict";
|
|
@@ -86271,6 +86282,8 @@ var init_replay_errors = __esm({
|
|
|
86271
86282
|
PYTEST_SECTION = /^_{3,}\s+(.+?)\s+_{3,}$/;
|
|
86272
86283
|
PYTEST_WHERE = /^\S+\.py:\d+:\s+\S/;
|
|
86273
86284
|
cut = (text, max2) => text.length > max2 ? `${text.slice(0, max2 - 2)} \u2026` : text;
|
|
86285
|
+
BUILD_FAILED_MARKER = "HAANSI_BUILD_FAILED";
|
|
86286
|
+
BUILD_FAILED = "(build failed)";
|
|
86274
86287
|
count = (text, word) => {
|
|
86275
86288
|
const m = new RegExp(`(\\d+)\\s+${word}`).exec(text);
|
|
86276
86289
|
return m ? Number(m[1]) : 0;
|