@spec-wave/cli 1.7.3 → 1.7.4

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": "@spec-wave/cli",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Setup spec-driven GitHub workflow with Projects v2, labels, issue templates, and AI-powered Actions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -43,7 +43,17 @@ export function findOpenTodos(content) {
43
43
  // crua, para a explicação não perder os nomes entre crases.
44
44
  const semCodigo = raw.replace(/`([^`\n]*)`/g, (span, inner) => (START_RE.test(inner) ? inner : ''));
45
45
  if (!MARKER_RE.test(semCodigo)) return;
46
- const excerpt = raw.slice(raw.search(MARKER_RE)).replace(/\s+/g, ' ').trim();
46
+ const at = raw.search(MARKER_RE);
47
+ let trecho = raw.slice(at);
48
+ // Marcação entre crases ("`[TODO: …]`."): o trecho termina no `]` que a
49
+ // fecha. Sem o corte, a crase de fechamento e a pontuação da frase vazavam
50
+ // para o comentário da issue ("…]`."). O PRIMEIRO "]`" é o fechamento: a
51
+ // explicação pode ter crases (`.drawio`), mas não colchete seguido de crase.
52
+ if (raw[at - 1] === '`') {
53
+ const fecho = trecho.indexOf(']`');
54
+ if (fecho !== -1) trecho = trecho.slice(0, fecho + 1);
55
+ }
56
+ const excerpt = trecho.replace(/\s+/g, ' ').trim();
47
57
  found.push({
48
58
  line: i + 1,
49
59
  excerpt: excerpt.length > EXCERPT_MAX ? `${excerpt.slice(0, EXCERPT_MAX)}…` : excerpt,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spec-wave",
3
3
  "displayName": "Spec Wave",
4
- "version": "1.7.3",
4
+ "version": "1.7.4",
5
5
  "description": "Fluxo spec-driven no GitHub (RFC-001): Projects v2, labels de gatilho, spec/plan gerados por Action, decomposição em duas etapas e implementação orientada a Stories/Tasks.",
6
6
  "author": {
7
7
  "name": "Astratech",