trackfw 2.5.1 → 2.5.2

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.5.1",
3
+ "version": "2.5.2",
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",
@@ -84,6 +84,11 @@ function checkTraceIds(reqDir, roadmapDir, fieldName) {
84
84
  roadmapIndex.get(traceId).push({ file: path.basename(filePath), state })
85
85
  }
86
86
 
87
+ // Salvaguarda: trace_id_field configurado mas nenhum arquivo indexado
88
+ if (reqIndex.size === 0 && roadmapIndex.size === 0) {
89
+ return ['traceid_config_warning: trace_id_field is set but no REQ/Roadmap entries were indexed — check reqDir, roadmapDir and roadmap_namespacing']
90
+ }
91
+
87
92
  const violations = []
88
93
 
89
94
  // traceid_duplicate_req: mesmo req_id em >1 REQ