agentic-kdd 3.5.2 → 3.5.3

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/package.json +1 -1
  2. package/tdd-gate.cjs +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-kdd",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "Autonomous development pipeline — aa: · ag: · audit: · AST graph · Harness · Specs · Impact analysis · Decision trail · Metrics · MCP server. Works with Cursor and Claude Code.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/tdd-gate.cjs CHANGED
@@ -116,6 +116,9 @@ function runTests(command, projectRoot, testFile = null) {
116
116
  * Soporta: jest, vitest, mocha, jasmine, tap, pytest (output básico).
117
117
  */
118
118
  function parseTestOutput(raw, exitCode) {
119
+ // Strip ANSI color codes — Vitest adds them and break regex matching
120
+ raw = (raw || '').replace(/\x1b\[[0-9;]*m/g, '').replace(/\x1b\[[0-9;]*[a-zA-Z]/g, '');
121
+
119
122
  const result = {
120
123
  allPassed: exitCode === 0,
121
124
  total: 0, passed: 0, failed: 0,