workflow-ai 1.0.2 → 1.0.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.
@@ -53,7 +53,7 @@ pipeline:
53
53
  command: "kilo"
54
54
  args: ["-m", "kilo/minimax/minimax-m2.5:free", "--agent", "orchestrator", "run"]
55
55
  workdir: "."
56
- description: "Kilo Code — агент с мульти-режимами (architect, code, debug)"
56
+ description: "Агент с мульти-режимами (architect, code, debug)"
57
57
 
58
58
  kilo-glm:
59
59
  command: "kilo"
@@ -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.4",
4
4
  "description": "AI Agent Workflow Coordinator — kanban-based pipeline for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,6 +51,7 @@ function checkCondition(condition) {
51
51
  return !fs.existsSync(path.join(PROJECT_DIR, value));
52
52
 
53
53
  case 'tasks_completed': {
54
+ if (!value || (Array.isArray(value) && value.length === 0)) return true;
54
55
  const ids = Array.isArray(value) ? value : [value];
55
56
  return ids.every(taskId => fs.existsSync(path.join(DONE_DIR, `${taskId}.md`)));
56
57
  }
@@ -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 => {
@@ -50,6 +50,7 @@ function checkCondition(condition) {
50
50
 
51
51
  case 'tasks_completed':
52
52
  // Проверяет, что указанные задачи выполнены (находятся в done/)
53
+ if (!value || (Array.isArray(value) && value.length === 0)) return true;
53
54
  const ids = Array.isArray(value) ? value : [value];
54
55
  return ids.every(taskId => {
55
56
  const donePath = path.join(DONE_DIR, `${taskId}.md`);
@@ -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
  ## Когда использовать
@@ -1,5 +1,5 @@
1
1
  ---
2
- # Шаблон плана для системы Kilo Code Agent Workflow
2
+ # Шаблон плана
3
3
 
4
4
  id: "PLAN-{NNN}"
5
5
  title: "Название плана"
@@ -1,7 +1,8 @@
1
1
  ---
2
- # Шаблон отчёта для системы Kilo Code Agent Workflow
2
+ # Шаблон отчёта
3
3
 
4
4
  id: "REPORT-{NNN}"
5
+ title: "" # Краткое название отчёта
5
6
  type: daily # daily | sprint | milestone
6
7
  period_start: "" # ISO 8601
7
8
  period_end: ""