trackfw 2.4.0 → 2.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trackfw",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "CLI de governança para entrega de software: ADR → REQ → ROADMAP → kanban. Suporte nativo a agentes de IA (Claude Code, Gemini CLI, Cursor).",
5
5
  "keywords": [
6
6
  "cli",
@@ -126,7 +126,7 @@ function parse(content, cfg) {
126
126
  const colonIdx = line.indexOf(':');
127
127
  if (colonIdx > 0) {
128
128
  const k = line.slice(0, colonIdx).trim();
129
- const v = line.slice(colonIdx + 1).trim();
129
+ const v = line.slice(colonIdx + 1).trim().replace(/^["']|["']$/g, '');
130
130
  if (k) rules[k] = v;
131
131
  }
132
132
  continue;
@@ -777,11 +777,13 @@ async function validate() {
777
777
  const result = await validateUnfiltered()
778
778
  let { violations, warnings } = result
779
779
 
780
- // Ratchet: filtrar violations que já estavam no baseline
780
+ // Ratchet: filtrar violations e warnings que já estavam no baseline
781
781
  const baseline = loadBaseline()
782
782
  if (baseline) {
783
783
  const baselineSet = new Set(baseline.violations || [])
784
784
  violations = violations.filter(v => !baselineSet.has(v))
785
+ const baselineWarnSet = new Set(baseline.warnings || [])
786
+ warnings = warnings.filter(w => !baselineWarnSet.has(w))
785
787
  }
786
788
 
787
789
  // Modo lenient: mover violations para warnings, exit code 0