takt 0.1.4 → 0.1.5
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/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +4 -1
- package/dist/claude/client.js.map +1 -1
- package/dist/claude/executor.d.ts.map +1 -1
- package/dist/claude/executor.js +1 -0
- package/dist/claude/executor.js.map +1 -1
- package/dist/claude/types.d.ts +2 -0
- package/dist/claude/types.d.ts.map +1 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +25 -2
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/models/types.d.ts +2 -0
- package/dist/models/types.d.ts.map +1 -1
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +6 -3
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts +5 -2
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +4 -2
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/dist/workflow/state-manager.d.ts +4 -0
- package/dist/workflow/state-manager.d.ts.map +1 -1
- package/dist/workflow/state-manager.js +10 -0
- package/dist/workflow/state-manager.js.map +1 -1
- package/package.json +1 -1
- package/resources/global/en/workflows/default.yaml +36 -16
- package/resources/global/en/workflows/expert-review.yaml +46 -22
- package/resources/global/en/workflows/magi.yaml +10 -0
- package/resources/global/en/workflows/research.yaml +16 -3
- package/resources/global/ja/workflows/default.yaml +36 -16
- package/resources/global/ja/workflows/expert-review.yaml +46 -22
- package/resources/global/ja/workflows/magi.yaml +10 -0
- package/resources/global/ja/workflows/research.yaml +16 -3
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
# Fix destination is determined by Coder based on change impact:
|
|
10
10
|
# - fix_security: MINOR→security_review, MAJOR→cqrs_es_review
|
|
11
11
|
# - fix_qa: MINOR→qa_review, SECURITY→security_review, MAJOR→cqrs_es_review
|
|
12
|
+
#
|
|
13
|
+
# Template Variables:
|
|
14
|
+
# {iteration} - Workflow-wide turn count (total steps executed across all agents)
|
|
15
|
+
# {max_iterations} - Maximum iterations allowed for the workflow
|
|
16
|
+
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
17
|
+
# {task} - Original user request
|
|
18
|
+
# {previous_response} - Output from the previous step
|
|
19
|
+
# {git_diff} - Current uncommitted changes (git diff)
|
|
20
|
+
# {user_inputs} - Accumulated user inputs during workflow
|
|
21
|
+
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
12
22
|
|
|
13
23
|
name: expert-review
|
|
14
24
|
description: CQRS+ES, Frontend, Security, QA Expert Review
|
|
@@ -44,7 +54,8 @@ steps:
|
|
|
44
54
|
| Requirements unclear | `[PLANNER:BLOCKED]` |
|
|
45
55
|
instruction_template: |
|
|
46
56
|
## Workflow Context
|
|
47
|
-
- Iteration: {iteration}/{max_iterations}
|
|
57
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
58
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
48
59
|
- Step: plan (Task Analysis)
|
|
49
60
|
- Report Directory: .takt/reports/{report_dir}/
|
|
50
61
|
- Report File: .takt/reports/{report_dir}/00-plan.md
|
|
@@ -68,7 +79,7 @@ steps:
|
|
|
68
79
|
|
|
69
80
|
**Report output:** Output to the `Report File` specified above.
|
|
70
81
|
- If file does not exist: Create new file
|
|
71
|
-
- If file exists: Append with `## Iteration {
|
|
82
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
72
83
|
|
|
73
84
|
**Report format:**
|
|
74
85
|
```markdown
|
|
@@ -129,7 +140,8 @@ steps:
|
|
|
129
140
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
130
141
|
instruction_template: |
|
|
131
142
|
## Workflow Context
|
|
132
|
-
- Iteration: {iteration}/{max_iterations}
|
|
143
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
144
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
133
145
|
- Step: implement
|
|
134
146
|
- Report Directory: .takt/reports/{report_dir}/
|
|
135
147
|
- Report Files:
|
|
@@ -148,7 +160,7 @@ steps:
|
|
|
148
160
|
|
|
149
161
|
**Report output:** Output to the `Report Files` specified above.
|
|
150
162
|
- If file does not exist: Create new file
|
|
151
|
-
- If file exists: Append with `## Iteration {
|
|
163
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
152
164
|
|
|
153
165
|
**Scope report format (create at implementation start):**
|
|
154
166
|
```markdown
|
|
@@ -213,7 +225,8 @@ steps:
|
|
|
213
225
|
| Design issues found | `[CQRS-ES:REJECT]` |
|
|
214
226
|
instruction_template: |
|
|
215
227
|
## Workflow Context
|
|
216
|
-
- Iteration: {iteration}/{max_iterations}
|
|
228
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
229
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
217
230
|
- Step: cqrs_es_review (CQRS+ES Expert Review)
|
|
218
231
|
- Report Directory: .takt/reports/{report_dir}/
|
|
219
232
|
- Report File: .takt/reports/{report_dir}/03-cqrs-es-review.md
|
|
@@ -242,7 +255,7 @@ steps:
|
|
|
242
255
|
|
|
243
256
|
**Report output:** Output to the `Report File` specified above.
|
|
244
257
|
- If file does not exist: Create new file
|
|
245
|
-
- If file exists: Append with `## Iteration {
|
|
258
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
246
259
|
|
|
247
260
|
**Report format:**
|
|
248
261
|
```markdown
|
|
@@ -302,7 +315,8 @@ steps:
|
|
|
302
315
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
303
316
|
instruction_template: |
|
|
304
317
|
## Workflow Context
|
|
305
|
-
- Iteration: {iteration}/{max_iterations}
|
|
318
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
319
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
306
320
|
- Step: fix_cqrs_es
|
|
307
321
|
|
|
308
322
|
## CQRS+ES Review Feedback (This is the latest instruction - prioritize this)
|
|
@@ -358,7 +372,8 @@ steps:
|
|
|
358
372
|
| Design issues found | `[FRONTEND:REJECT]` |
|
|
359
373
|
instruction_template: |
|
|
360
374
|
## Workflow Context
|
|
361
|
-
- Iteration: {iteration}/{max_iterations}
|
|
375
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
376
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
362
377
|
- Step: frontend_review (Frontend Expert Review)
|
|
363
378
|
- Report Directory: .takt/reports/{report_dir}/
|
|
364
379
|
- Report File: .takt/reports/{report_dir}/04-frontend-review.md
|
|
@@ -387,7 +402,7 @@ steps:
|
|
|
387
402
|
|
|
388
403
|
**Report output:** Output to the `Report File` specified above.
|
|
389
404
|
- If file does not exist: Create new file
|
|
390
|
-
- If file exists: Append with `## Iteration {
|
|
405
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
391
406
|
|
|
392
407
|
**Report format:**
|
|
393
408
|
```markdown
|
|
@@ -447,7 +462,8 @@ steps:
|
|
|
447
462
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
448
463
|
instruction_template: |
|
|
449
464
|
## Workflow Context
|
|
450
|
-
- Iteration: {iteration}/{max_iterations}
|
|
465
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
466
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
451
467
|
- Step: fix_frontend
|
|
452
468
|
|
|
453
469
|
## Frontend Review Feedback (This is the latest instruction - prioritize this)
|
|
@@ -503,7 +519,8 @@ steps:
|
|
|
503
519
|
| Issues found | `[AI_REVIEW:REJECT]` |
|
|
504
520
|
instruction_template: |
|
|
505
521
|
## Workflow Context
|
|
506
|
-
- Iteration: {iteration}/{max_iterations}
|
|
522
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
523
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
507
524
|
- Step: ai_review (AI-Generated Code Review)
|
|
508
525
|
- Report Directory: .takt/reports/{report_dir}/
|
|
509
526
|
- Report File: .takt/reports/{report_dir}/05-ai-review.md
|
|
@@ -525,7 +542,7 @@ steps:
|
|
|
525
542
|
|
|
526
543
|
**Report output:** Output to the `Report File` specified above.
|
|
527
544
|
- If file does not exist: Create new file
|
|
528
|
-
- If file exists: Append with `## Iteration {
|
|
545
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
529
546
|
|
|
530
547
|
**Report format:**
|
|
531
548
|
```markdown
|
|
@@ -588,7 +605,8 @@ steps:
|
|
|
588
605
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
589
606
|
instruction_template: |
|
|
590
607
|
## Workflow Context
|
|
591
|
-
- Iteration: {iteration}/{max_iterations}
|
|
608
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
609
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
592
610
|
- Step: ai_fix
|
|
593
611
|
|
|
594
612
|
## AI Review Feedback (This is the latest instruction - prioritize this)
|
|
@@ -642,7 +660,8 @@ steps:
|
|
|
642
660
|
| Vulnerabilities found | `[SECURITY:REJECT]` |
|
|
643
661
|
instruction_template: |
|
|
644
662
|
## Workflow Context
|
|
645
|
-
- Iteration: {iteration}/{max_iterations}
|
|
663
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
664
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
646
665
|
- Step: security_review (Security Expert Review)
|
|
647
666
|
- Report Directory: .takt/reports/{report_dir}/
|
|
648
667
|
- Report File: .takt/reports/{report_dir}/06-security-review.md
|
|
@@ -667,7 +686,7 @@ steps:
|
|
|
667
686
|
|
|
668
687
|
**Report output:** Output to the `Report File` specified above.
|
|
669
688
|
- If file does not exist: Create new file
|
|
670
|
-
- If file exists: Append with `## Iteration {
|
|
689
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
671
690
|
|
|
672
691
|
**Report format:**
|
|
673
692
|
```markdown
|
|
@@ -729,7 +748,8 @@ steps:
|
|
|
729
748
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
730
749
|
instruction_template: |
|
|
731
750
|
## Workflow Context
|
|
732
|
-
- Iteration: {iteration}/{max_iterations}
|
|
751
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
752
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
733
753
|
- Step: fix_security
|
|
734
754
|
|
|
735
755
|
## Security Review Feedback (This is the latest instruction - prioritize this)
|
|
@@ -794,7 +814,8 @@ steps:
|
|
|
794
814
|
| Quality issues found | `[QA:REJECT]` |
|
|
795
815
|
instruction_template: |
|
|
796
816
|
## Workflow Context
|
|
797
|
-
- Iteration: {iteration}/{max_iterations}
|
|
817
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
818
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
798
819
|
- Step: qa_review (QA Expert Review)
|
|
799
820
|
- Report Directory: .takt/reports/{report_dir}/
|
|
800
821
|
- Report File: .takt/reports/{report_dir}/07-qa-review.md
|
|
@@ -820,7 +841,7 @@ steps:
|
|
|
820
841
|
|
|
821
842
|
**Report output:** Output to the `Report File` specified above.
|
|
822
843
|
- If file does not exist: Create new file
|
|
823
|
-
- If file exists: Append with `## Iteration {
|
|
844
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
824
845
|
|
|
825
846
|
**Report format:**
|
|
826
847
|
```markdown
|
|
@@ -882,7 +903,8 @@ steps:
|
|
|
882
903
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
883
904
|
instruction_template: |
|
|
884
905
|
## Workflow Context
|
|
885
|
-
- Iteration: {iteration}/{max_iterations}
|
|
906
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
907
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
886
908
|
- Step: fix_qa
|
|
887
909
|
|
|
888
910
|
## QA Review Feedback (This is the latest instruction - prioritize this)
|
|
@@ -951,7 +973,8 @@ steps:
|
|
|
951
973
|
| Issues found | `[SUPERVISOR:REJECT]` |
|
|
952
974
|
instruction_template: |
|
|
953
975
|
## Workflow Context
|
|
954
|
-
- Iteration: {iteration}/{max_iterations}
|
|
976
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
977
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
955
978
|
- Step: supervise (Final Review)
|
|
956
979
|
- Report Directory: .takt/reports/{report_dir}/
|
|
957
980
|
- Report Files:
|
|
@@ -987,7 +1010,7 @@ steps:
|
|
|
987
1010
|
|
|
988
1011
|
**Report output:** Output to the `Report Files` specified above.
|
|
989
1012
|
- If file does not exist: Create new file
|
|
990
|
-
- If file exists: Append with `## Iteration {
|
|
1013
|
+
- If file exists: Append with `## Iteration {step_iteration}` section
|
|
991
1014
|
|
|
992
1015
|
**Validation report format:**
|
|
993
1016
|
```markdown
|
|
@@ -1079,7 +1102,8 @@ steps:
|
|
|
1079
1102
|
| Cannot proceed | `[CODER:BLOCKED]` |
|
|
1080
1103
|
instruction_template: |
|
|
1081
1104
|
## Workflow Context
|
|
1082
|
-
- Iteration: {iteration}/{max_iterations}
|
|
1105
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
1106
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
1083
1107
|
- Step: fix_supervisor
|
|
1084
1108
|
|
|
1085
1109
|
## Supervisor Feedback (This is the latest instruction - prioritize this)
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# MAGI System Workflow
|
|
2
2
|
# A deliberation workflow modeled after Evangelion's MAGI system
|
|
3
3
|
# Three personas (scientist, nurturer, pragmatist) analyze from different perspectives and vote
|
|
4
|
+
#
|
|
5
|
+
# Template Variables:
|
|
6
|
+
# {iteration} - Workflow-wide turn count (total steps executed across all agents)
|
|
7
|
+
# {max_iterations} - Maximum iterations allowed for the workflow
|
|
8
|
+
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
9
|
+
# {task} - Original user request
|
|
10
|
+
# {previous_response} - Output from the previous step
|
|
11
|
+
# {git_diff} - Current uncommitted changes (git diff)
|
|
12
|
+
# {user_inputs} - Accumulated user inputs during workflow
|
|
13
|
+
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
4
14
|
|
|
5
15
|
name: magi
|
|
6
16
|
description: MAGI Deliberation System - Analyze from 3 perspectives and decide by majority
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
# Flow:
|
|
6
6
|
# plan -> dig -> supervise -> COMPLETE (approved)
|
|
7
7
|
# -> plan (rejected: restart from planning)
|
|
8
|
+
#
|
|
9
|
+
# Template Variables:
|
|
10
|
+
# {iteration} - Workflow-wide turn count (total steps executed across all agents)
|
|
11
|
+
# {max_iterations} - Maximum iterations allowed for the workflow
|
|
12
|
+
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
13
|
+
# {task} - Original user request
|
|
14
|
+
# {previous_response} - Output from the previous step
|
|
15
|
+
# {git_diff} - Current uncommitted changes (git diff)
|
|
16
|
+
# {user_inputs} - Accumulated user inputs during workflow
|
|
17
|
+
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
8
18
|
|
|
9
19
|
name: research
|
|
10
20
|
description: Research workflow - autonomously executes research without asking questions
|
|
@@ -49,7 +59,8 @@ steps:
|
|
|
49
59
|
```
|
|
50
60
|
instruction_template: |
|
|
51
61
|
## Workflow Status
|
|
52
|
-
- Iteration: {iteration}/{max_iterations}
|
|
62
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
63
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
53
64
|
- Step: plan
|
|
54
65
|
|
|
55
66
|
## Research Request
|
|
@@ -111,7 +122,8 @@ steps:
|
|
|
111
122
|
```
|
|
112
123
|
instruction_template: |
|
|
113
124
|
## Workflow Status
|
|
114
|
-
- Iteration: {iteration}/{max_iterations}
|
|
125
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
126
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
115
127
|
- Step: dig
|
|
116
128
|
|
|
117
129
|
## Original Research Request
|
|
@@ -188,7 +200,8 @@ steps:
|
|
|
188
200
|
```
|
|
189
201
|
instruction_template: |
|
|
190
202
|
## Workflow Status
|
|
191
|
-
- Iteration: {iteration}/{max_iterations}
|
|
203
|
+
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
204
|
+
- Step Iteration: {step_iteration} (times this step has run)
|
|
192
205
|
- Step: supervise (research quality evaluation)
|
|
193
206
|
|
|
194
207
|
## Original Research Request
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Default TAKT Workflow
|
|
2
2
|
# Plan -> Coder -> Architect Review -> AI Review -> Security Review -> Supervisor Approval
|
|
3
|
+
#
|
|
4
|
+
# Template Variables:
|
|
5
|
+
# {iteration} - Workflow-wide turn count (total steps executed across all agents)
|
|
6
|
+
# {max_iterations} - Maximum iterations allowed for the workflow
|
|
7
|
+
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
8
|
+
# {task} - Original user request
|
|
9
|
+
# {previous_response} - Output from the previous step
|
|
10
|
+
# {git_diff} - Current uncommitted changes (git diff)
|
|
11
|
+
# {user_inputs} - Accumulated user inputs during workflow
|
|
12
|
+
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
3
13
|
|
|
4
14
|
name: default
|
|
5
15
|
description: Standard development workflow with planning and specialized reviews
|
|
@@ -55,7 +65,8 @@ steps:
|
|
|
55
65
|
```
|
|
56
66
|
instruction_template: |
|
|
57
67
|
## Workflow Context
|
|
58
|
-
- Iteration: {iteration}/{max_iterations}
|
|
68
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
69
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
59
70
|
- Step: plan (タスク分析)
|
|
60
71
|
- Report Directory: .takt/reports/{report_dir}/
|
|
61
72
|
- Report File: .takt/reports/{report_dir}/00-plan.md
|
|
@@ -79,7 +90,7 @@ steps:
|
|
|
79
90
|
|
|
80
91
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
81
92
|
- ファイルが存在しない場合: 新規作成
|
|
82
|
-
- ファイルが存在する場合: `## Iteration {
|
|
93
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
83
94
|
|
|
84
95
|
**レポートフォーマット:**
|
|
85
96
|
```markdown
|
|
@@ -155,7 +166,8 @@ steps:
|
|
|
155
166
|
```
|
|
156
167
|
instruction_template: |
|
|
157
168
|
## Workflow Context
|
|
158
|
-
- Iteration: {iteration}/{max_iterations}
|
|
169
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
170
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
159
171
|
- Step: implement
|
|
160
172
|
- Report Directory: .takt/reports/{report_dir}/
|
|
161
173
|
- Report Files:
|
|
@@ -174,7 +186,7 @@ steps:
|
|
|
174
186
|
|
|
175
187
|
**レポート出力:** 上記の `Report Files` に出力してください。
|
|
176
188
|
- ファイルが存在しない場合: 新規作成
|
|
177
|
-
- ファイルが存在する場合: `## Iteration {
|
|
189
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
178
190
|
|
|
179
191
|
**Scopeレポートフォーマット(実装開始時に作成):**
|
|
180
192
|
```markdown
|
|
@@ -279,7 +291,8 @@ steps:
|
|
|
279
291
|
```
|
|
280
292
|
instruction_template: |
|
|
281
293
|
## Workflow Context
|
|
282
|
-
- Iteration: {iteration}/{max_iterations}
|
|
294
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
295
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
283
296
|
- Step: review (アーキテクチャレビュー)
|
|
284
297
|
- Report Directory: .takt/reports/{report_dir}/
|
|
285
298
|
- Report File: .takt/reports/{report_dir}/03-architect-review.md
|
|
@@ -299,7 +312,7 @@ steps:
|
|
|
299
312
|
|
|
300
313
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
301
314
|
- ファイルが存在しない場合: 新規作成
|
|
302
|
-
- ファイルが存在する場合: `## Iteration {
|
|
315
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
303
316
|
|
|
304
317
|
**レポートフォーマット:**
|
|
305
318
|
```markdown
|
|
@@ -382,7 +395,8 @@ steps:
|
|
|
382
395
|
```
|
|
383
396
|
instruction_template: |
|
|
384
397
|
## Workflow Context
|
|
385
|
-
- Iteration: {iteration}/{max_iterations}
|
|
398
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
399
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
386
400
|
- Step: improve
|
|
387
401
|
|
|
388
402
|
## Architect Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -462,7 +476,8 @@ steps:
|
|
|
462
476
|
```
|
|
463
477
|
instruction_template: |
|
|
464
478
|
## Workflow Context
|
|
465
|
-
- Iteration: {iteration}/{max_iterations}
|
|
479
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
480
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
466
481
|
- Step: ai_review (AI生成コードレビュー)
|
|
467
482
|
- Report Directory: .takt/reports/{report_dir}/
|
|
468
483
|
- Report File: .takt/reports/{report_dir}/04-ai-review.md
|
|
@@ -484,7 +499,7 @@ steps:
|
|
|
484
499
|
|
|
485
500
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
486
501
|
- ファイルが存在しない場合: 新規作成
|
|
487
|
-
- ファイルが存在する場合: `## Iteration {
|
|
502
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
488
503
|
|
|
489
504
|
**レポートフォーマット:**
|
|
490
505
|
```markdown
|
|
@@ -563,7 +578,8 @@ steps:
|
|
|
563
578
|
```
|
|
564
579
|
instruction_template: |
|
|
565
580
|
## Workflow Context
|
|
566
|
-
- Iteration: {iteration}/{max_iterations}
|
|
581
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
582
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
567
583
|
- Step: ai_fix
|
|
568
584
|
|
|
569
585
|
## AI Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -638,7 +654,8 @@ steps:
|
|
|
638
654
|
```
|
|
639
655
|
instruction_template: |
|
|
640
656
|
## Workflow Context
|
|
641
|
-
- Iteration: {iteration}/{max_iterations}
|
|
657
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
658
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
642
659
|
- Step: security_review
|
|
643
660
|
- Report Directory: .takt/reports/{report_dir}/
|
|
644
661
|
- Report File: .takt/reports/{report_dir}/05-security-review.md
|
|
@@ -660,7 +677,7 @@ steps:
|
|
|
660
677
|
|
|
661
678
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
662
679
|
- ファイルが存在しない場合: 新規作成
|
|
663
|
-
- ファイルが存在する場合: `## Iteration {
|
|
680
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
664
681
|
|
|
665
682
|
**レポートフォーマット:**
|
|
666
683
|
```markdown
|
|
@@ -742,7 +759,8 @@ steps:
|
|
|
742
759
|
```
|
|
743
760
|
instruction_template: |
|
|
744
761
|
## Workflow Context
|
|
745
|
-
- Iteration: {iteration}/{max_iterations}
|
|
762
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
763
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
746
764
|
- Step: security_fix
|
|
747
765
|
|
|
748
766
|
## Security Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -810,7 +828,8 @@ steps:
|
|
|
810
828
|
```
|
|
811
829
|
instruction_template: |
|
|
812
830
|
## Workflow Context
|
|
813
|
-
- Iteration: {iteration}/{max_iterations}
|
|
831
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
832
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
814
833
|
- Step: fix
|
|
815
834
|
|
|
816
835
|
## Architect Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -889,7 +908,8 @@ steps:
|
|
|
889
908
|
```
|
|
890
909
|
instruction_template: |
|
|
891
910
|
## Workflow Context
|
|
892
|
-
- Iteration: {iteration}/{max_iterations}
|
|
911
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
912
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
893
913
|
- Step: supervise (final verification)
|
|
894
914
|
- Report Directory: .takt/reports/{report_dir}/
|
|
895
915
|
- Report Files:
|
|
@@ -917,7 +937,7 @@ steps:
|
|
|
917
937
|
|
|
918
938
|
**レポート出力:** 上記の `Report Files` に出力してください。
|
|
919
939
|
- ファイルが存在しない場合: 新規作成
|
|
920
|
-
- ファイルが存在する場合: `## Iteration {
|
|
940
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
921
941
|
|
|
922
942
|
**Validationレポートフォーマット:**
|
|
923
943
|
```markdown
|
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
# 修正時の戻り先はCoderが判断:
|
|
10
10
|
# - fix_security: MINOR→security_review, MAJOR→cqrs_es_review
|
|
11
11
|
# - fix_qa: MINOR→qa_review, SECURITY→security_review, MAJOR→cqrs_es_review
|
|
12
|
+
#
|
|
13
|
+
# テンプレート変数:
|
|
14
|
+
# {iteration} - ワークフロー全体のターン数(全エージェントで実行されたステップの合計)
|
|
15
|
+
# {max_iterations} - ワークフローの最大イテレーション数
|
|
16
|
+
# {step_iteration} - ステップごとのイテレーション数(このステップが何回実行されたか)
|
|
17
|
+
# {task} - 元のユーザー要求
|
|
18
|
+
# {previous_response} - 前のステップの出力
|
|
19
|
+
# {git_diff} - 現在のコミットされていない変更(git diff)
|
|
20
|
+
# {user_inputs} - ワークフロー中に蓄積されたユーザー入力
|
|
21
|
+
# {report_dir} - レポートディレクトリ名(例: "20250126-143052-task-summary")
|
|
12
22
|
|
|
13
23
|
name: expert-review
|
|
14
24
|
description: CQRS+ES・フロントエンド・セキュリティ・QA専門家レビュー
|
|
@@ -44,7 +54,8 @@ steps:
|
|
|
44
54
|
| 要件不明確 | `[PLANNER:BLOCKED]` |
|
|
45
55
|
instruction_template: |
|
|
46
56
|
## Workflow Context
|
|
47
|
-
- Iteration: {iteration}/{max_iterations}
|
|
57
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
58
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
48
59
|
- Step: plan (タスク分析)
|
|
49
60
|
- Report Directory: .takt/reports/{report_dir}/
|
|
50
61
|
- Report File: .takt/reports/{report_dir}/00-plan.md
|
|
@@ -68,7 +79,7 @@ steps:
|
|
|
68
79
|
|
|
69
80
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
70
81
|
- ファイルが存在しない場合: 新規作成
|
|
71
|
-
- ファイルが存在する場合: `## Iteration {
|
|
82
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
72
83
|
|
|
73
84
|
**レポートフォーマット:**
|
|
74
85
|
```markdown
|
|
@@ -129,7 +140,8 @@ steps:
|
|
|
129
140
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
130
141
|
instruction_template: |
|
|
131
142
|
## Workflow Context
|
|
132
|
-
- Iteration: {iteration}/{max_iterations}
|
|
143
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
144
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
133
145
|
- Step: implement
|
|
134
146
|
- Report Directory: .takt/reports/{report_dir}/
|
|
135
147
|
- Report Files:
|
|
@@ -148,7 +160,7 @@ steps:
|
|
|
148
160
|
|
|
149
161
|
**レポート出力:** 上記の `Report Files` に出力してください。
|
|
150
162
|
- ファイルが存在しない場合: 新規作成
|
|
151
|
-
- ファイルが存在する場合: `## Iteration {
|
|
163
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
152
164
|
|
|
153
165
|
**Scopeレポートフォーマット(実装開始時に作成):**
|
|
154
166
|
```markdown
|
|
@@ -213,7 +225,8 @@ steps:
|
|
|
213
225
|
| 設計に問題あり | `[CQRS-ES:REJECT]` |
|
|
214
226
|
instruction_template: |
|
|
215
227
|
## Workflow Context
|
|
216
|
-
- Iteration: {iteration}/{max_iterations}
|
|
228
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
229
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
217
230
|
- Step: cqrs_es_review (CQRS+ES専門レビュー)
|
|
218
231
|
- Report Directory: .takt/reports/{report_dir}/
|
|
219
232
|
- Report File: .takt/reports/{report_dir}/03-cqrs-es-review.md
|
|
@@ -242,7 +255,7 @@ steps:
|
|
|
242
255
|
|
|
243
256
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
244
257
|
- ファイルが存在しない場合: 新規作成
|
|
245
|
-
- ファイルが存在する場合: `## Iteration {
|
|
258
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
246
259
|
|
|
247
260
|
**レポートフォーマット:**
|
|
248
261
|
```markdown
|
|
@@ -302,7 +315,8 @@ steps:
|
|
|
302
315
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
303
316
|
instruction_template: |
|
|
304
317
|
## Workflow Context
|
|
305
|
-
- Iteration: {iteration}/{max_iterations}
|
|
318
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
319
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
306
320
|
- Step: fix_cqrs_es
|
|
307
321
|
|
|
308
322
|
## CQRS+ES Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -358,7 +372,8 @@ steps:
|
|
|
358
372
|
| フロントエンド設計に問題あり | `[FRONTEND:REJECT]` |
|
|
359
373
|
instruction_template: |
|
|
360
374
|
## Workflow Context
|
|
361
|
-
- Iteration: {iteration}/{max_iterations}
|
|
375
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
376
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
362
377
|
- Step: frontend_review (フロントエンド専門レビュー)
|
|
363
378
|
- Report Directory: .takt/reports/{report_dir}/
|
|
364
379
|
- Report File: .takt/reports/{report_dir}/04-frontend-review.md
|
|
@@ -387,7 +402,7 @@ steps:
|
|
|
387
402
|
|
|
388
403
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
389
404
|
- ファイルが存在しない場合: 新規作成
|
|
390
|
-
- ファイルが存在する場合: `## Iteration {
|
|
405
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
391
406
|
|
|
392
407
|
**レポートフォーマット:**
|
|
393
408
|
```markdown
|
|
@@ -447,7 +462,8 @@ steps:
|
|
|
447
462
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
448
463
|
instruction_template: |
|
|
449
464
|
## Workflow Context
|
|
450
|
-
- Iteration: {iteration}/{max_iterations}
|
|
465
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
466
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
451
467
|
- Step: fix_frontend
|
|
452
468
|
|
|
453
469
|
## Frontend Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -503,7 +519,8 @@ steps:
|
|
|
503
519
|
| 問題あり | `[AI_REVIEW:REJECT]` |
|
|
504
520
|
instruction_template: |
|
|
505
521
|
## Workflow Context
|
|
506
|
-
- Iteration: {iteration}/{max_iterations}
|
|
522
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
523
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
507
524
|
- Step: ai_review (AI生成コードレビュー)
|
|
508
525
|
- Report Directory: .takt/reports/{report_dir}/
|
|
509
526
|
- Report File: .takt/reports/{report_dir}/05-ai-review.md
|
|
@@ -525,7 +542,7 @@ steps:
|
|
|
525
542
|
|
|
526
543
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
527
544
|
- ファイルが存在しない場合: 新規作成
|
|
528
|
-
- ファイルが存在する場合: `## Iteration {
|
|
545
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
529
546
|
|
|
530
547
|
**レポートフォーマット:**
|
|
531
548
|
```markdown
|
|
@@ -588,7 +605,8 @@ steps:
|
|
|
588
605
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
589
606
|
instruction_template: |
|
|
590
607
|
## Workflow Context
|
|
591
|
-
- Iteration: {iteration}/{max_iterations}
|
|
608
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
609
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
592
610
|
- Step: ai_fix
|
|
593
611
|
|
|
594
612
|
## AI Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -642,7 +660,8 @@ steps:
|
|
|
642
660
|
| 脆弱性あり | `[SECURITY:REJECT]` |
|
|
643
661
|
instruction_template: |
|
|
644
662
|
## Workflow Context
|
|
645
|
-
- Iteration: {iteration}/{max_iterations}
|
|
663
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
664
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
646
665
|
- Step: security_review (セキュリティ専門レビュー)
|
|
647
666
|
- Report Directory: .takt/reports/{report_dir}/
|
|
648
667
|
- Report File: .takt/reports/{report_dir}/06-security-review.md
|
|
@@ -667,7 +686,7 @@ steps:
|
|
|
667
686
|
|
|
668
687
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
669
688
|
- ファイルが存在しない場合: 新規作成
|
|
670
|
-
- ファイルが存在する場合: `## Iteration {
|
|
689
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
671
690
|
|
|
672
691
|
**レポートフォーマット:**
|
|
673
692
|
```markdown
|
|
@@ -729,7 +748,8 @@ steps:
|
|
|
729
748
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
730
749
|
instruction_template: |
|
|
731
750
|
## Workflow Context
|
|
732
|
-
- Iteration: {iteration}/{max_iterations}
|
|
751
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
752
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
733
753
|
- Step: fix_security
|
|
734
754
|
|
|
735
755
|
## Security Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -794,7 +814,8 @@ steps:
|
|
|
794
814
|
| 品質問題あり | `[QA:REJECT]` |
|
|
795
815
|
instruction_template: |
|
|
796
816
|
## Workflow Context
|
|
797
|
-
- Iteration: {iteration}/{max_iterations}
|
|
817
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
818
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
798
819
|
- Step: qa_review (QA専門レビュー)
|
|
799
820
|
- Report Directory: .takt/reports/{report_dir}/
|
|
800
821
|
- Report File: .takt/reports/{report_dir}/07-qa-review.md
|
|
@@ -820,7 +841,7 @@ steps:
|
|
|
820
841
|
|
|
821
842
|
**レポート出力:** 上記の `Report File` に出力してください。
|
|
822
843
|
- ファイルが存在しない場合: 新規作成
|
|
823
|
-
- ファイルが存在する場合: `## Iteration {
|
|
844
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
824
845
|
|
|
825
846
|
**レポートフォーマット:**
|
|
826
847
|
```markdown
|
|
@@ -882,7 +903,8 @@ steps:
|
|
|
882
903
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
883
904
|
instruction_template: |
|
|
884
905
|
## Workflow Context
|
|
885
|
-
- Iteration: {iteration}/{max_iterations}
|
|
906
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
907
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
886
908
|
- Step: fix_qa
|
|
887
909
|
|
|
888
910
|
## QA Review Feedback (これが最新の指示です - 優先して対応してください)
|
|
@@ -951,7 +973,8 @@ steps:
|
|
|
951
973
|
| 問題あり | `[SUPERVISOR:REJECT]` |
|
|
952
974
|
instruction_template: |
|
|
953
975
|
## Workflow Context
|
|
954
|
-
- Iteration: {iteration}/{max_iterations}
|
|
976
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
977
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
955
978
|
- Step: supervise (最終確認)
|
|
956
979
|
- Report Directory: .takt/reports/{report_dir}/
|
|
957
980
|
- Report Files:
|
|
@@ -987,7 +1010,7 @@ steps:
|
|
|
987
1010
|
|
|
988
1011
|
**レポート出力:** 上記の `Report Files` に出力してください。
|
|
989
1012
|
- ファイルが存在しない場合: 新規作成
|
|
990
|
-
- ファイルが存在する場合: `## Iteration {
|
|
1013
|
+
- ファイルが存在する場合: `## Iteration {step_iteration}` セクションを追記
|
|
991
1014
|
|
|
992
1015
|
**Validationレポートフォーマット:**
|
|
993
1016
|
```markdown
|
|
@@ -1079,7 +1102,8 @@ steps:
|
|
|
1079
1102
|
| 進行不可 | `[CODER:BLOCKED]` |
|
|
1080
1103
|
instruction_template: |
|
|
1081
1104
|
## Workflow Context
|
|
1082
|
-
- Iteration: {iteration}/{max_iterations}
|
|
1105
|
+
- Iteration: {iteration}/{max_iterations}(ワークフロー全体)
|
|
1106
|
+
- Step Iteration: {step_iteration}(このステップの実行回数)
|
|
1083
1107
|
- Step: fix_supervisor
|
|
1084
1108
|
|
|
1085
1109
|
## Supervisor Feedback (これが最新の指示です - 優先して対応してください)
|