@vedtechsolutions/engram-mcp 1.0.27 → 1.0.28
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/hook.js +3 -1
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -7595,7 +7595,9 @@ function extractFilePath(command2) {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
function containsError(output) {
|
|
7597
7597
|
const lower = output.toLowerCase();
|
|
7598
|
-
|
|
7598
|
+
if (!/error|exception|traceback|failed|fatal|panic/.test(lower)) return false;
|
|
7599
|
+
const stripped = lower.replace(/corrected.*?errors?/g, "").replace(/no\s+errors?\b/g, "").replace(/\b0\s+errors?\b/g, "").replace(/errors?\s+corrected/g, "").replace(/grep.*?error[^\n]*/g, "").replace(/warn\b[^\n]*/g, "");
|
|
7600
|
+
return stripped.includes("error") || stripped.includes("exception") || stripped.includes("traceback") || stripped.includes("failed") || stripped.includes("fatal") || stripped.includes("panic");
|
|
7599
7601
|
}
|
|
7600
7602
|
export {
|
|
7601
7603
|
OutputBudget,
|