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.
- package/configs/pipeline.yaml +3 -1
- package/package.json +1 -1
- package/src/scripts/check-conditions.js +1 -0
- package/src/scripts/move-to-review.js +9 -0
- package/src/scripts/pick-next-task.js +1 -0
- package/src/skills/review-result/SKILL.md +4 -0
- package/templates/plan-template.md +1 -1
- package/templates/report-template.md +2 -1
package/configs/pipeline.yaml
CHANGED
|
@@ -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: "
|
|
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
|
@@ -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
|
## Когда использовать
|