workflow-ai 1.0.2 → 1.0.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.
@@ -256,6 +256,8 @@ pipeline:
256
256
  agent: script-move-to-review
257
257
  timeout: 120
258
258
  goto:
259
+ skipped:
260
+ stage: pick-next-task
259
261
  default:
260
262
  stage: review-result
261
263
  params:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow-ai",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI Agent Workflow Coordinator — kanban-based pipeline for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,6 +39,11 @@ function moveToReview(ticketId) {
39
39
  const targetPath = path.join(REVIEW_DIR, `${ticketId}.md`);
40
40
 
41
41
  if (!fs.existsSync(sourcePath)) {
42
+ // Ticket may have been moved directly to done/ by the agent — treat as already done
43
+ const donePath = path.join(TICKETS_DIR, 'done', `${ticketId}.md`);
44
+ if (fs.existsSync(donePath)) {
45
+ return { status: 'skipped', ticket_id: ticketId, reason: `${ticketId} already in done/` };
46
+ }
42
47
  return { status: 'error', ticket_id: ticketId, error: `${ticketId} not found in in-progress/` };
43
48
  }
44
49
 
@@ -78,6 +83,10 @@ async function main() {
78
83
  if (result.status === 'error') {
79
84
  process.exit(1);
80
85
  }
86
+
87
+ if (result.status === 'skipped') {
88
+ console.log(`[INFO] Skipped: ${result.reason}`);
89
+ }
81
90
  }
82
91
 
83
92
  main().catch(e => {
@@ -5,6 +5,10 @@ description: Проверить результат выполнения зада
5
5
 
6
6
  # Проверка результата (Review Result)
7
7
 
8
+ > **ОБЯЗАТЕЛЬНО:** Последние строки твоего ответа ВСЕГДА должны быть блоком `---RESULT---`.
9
+ > Без этого блока пайплайн не распознает статус и тикет попадёт в `blocked`.
10
+ > Даже если ревью очевидно — всё равно заверши ответ блоком результата.
11
+
8
12
  Этот skill проверяет результат выполнения задачи на соответствие критериям готовности (Definition of Done) из тикета.
9
13
 
10
14
  ## Когда использовать