@spec-wave/cli 0.2.1 → 0.2.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 +1 -1
- package/src/commands/implement.mjs +19 -0
package/package.json
CHANGED
|
@@ -50,6 +50,25 @@ function buildContext({ type, issue, tasks, spec, plan, specPath, planPath }) {
|
|
|
50
50
|
lines.push(issue.body.trim());
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
// Issues cujo status deve ir para "in progress" ao iniciar: a issue alvo
|
|
54
|
+
// (Story ou Task) e, no caso de Story, todas as suas Tasks.
|
|
55
|
+
const inProgress = [issue.number, ...tasks.map(t => t.number)]
|
|
56
|
+
.filter((n, i, arr) => arr.indexOf(n) === i);
|
|
57
|
+
lines.push('');
|
|
58
|
+
lines.push('## Instruções para o agente');
|
|
59
|
+
lines.push('');
|
|
60
|
+
lines.push(
|
|
61
|
+
'Antes de começar a implementação, atualize o status no GitHub Project para ' +
|
|
62
|
+
'**🚧 Desenvolvimento** (in progress) ' +
|
|
63
|
+
(type === 'Story'
|
|
64
|
+
? `da Story #${issue.number} e de cada Task: ${inProgress.filter(n => n !== issue.number).map(n => `#${n}`).join(', ')}.`
|
|
65
|
+
: `da Task #${issue.number}.`)
|
|
66
|
+
);
|
|
67
|
+
lines.push(
|
|
68
|
+
'(Atualize o campo "Etapa"/Status do item no board; mantenha o status coerente ' +
|
|
69
|
+
'conforme o progresso da implementação.)'
|
|
70
|
+
);
|
|
71
|
+
|
|
53
72
|
lines.push('');
|
|
54
73
|
lines.push(`## Tasks a implementar (${tasks.length})`);
|
|
55
74
|
for (const t of tasks) {
|