takt 0.2.0 → 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/README.md +55 -15
- package/dist/agents/runner.d.ts +3 -1
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +15 -0
- package/dist/agents/runner.js.map +1 -1
- package/dist/claude/client.d.ts +3 -1
- package/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +17 -0
- package/dist/claude/client.js.map +1 -1
- package/dist/cli.d.ts +10 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +69 -18
- package/dist/cli.js.map +1 -1
- package/dist/commands/addTask.d.ts.map +1 -1
- package/dist/commands/addTask.js +27 -9
- package/dist/commands/addTask.js.map +1 -1
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +5 -3
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/reviewTasks.d.ts +43 -0
- package/dist/commands/reviewTasks.d.ts.map +1 -0
- package/dist/commands/reviewTasks.js +333 -0
- package/dist/commands/reviewTasks.js.map +1 -0
- package/dist/commands/taskExecution.d.ts +16 -2
- package/dist/commands/taskExecution.d.ts.map +1 -1
- package/dist/commands/taskExecution.js +77 -39
- package/dist/commands/taskExecution.js.map +1 -1
- package/dist/commands/watchTasks.d.ts.map +1 -1
- package/dist/commands/watchTasks.js +6 -36
- package/dist/commands/watchTasks.js.map +1 -1
- package/dist/commands/workflowExecution.d.ts +5 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +36 -12
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/config/initialization.d.ts +2 -0
- package/dist/config/initialization.d.ts.map +1 -1
- package/dist/config/initialization.js +12 -2
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/paths.d.ts +1 -1
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +3 -1
- package/dist/config/paths.js.map +1 -1
- package/dist/config/sessionStore.d.ts +15 -0
- package/dist/config/sessionStore.d.ts.map +1 -1
- package/dist/config/sessionStore.js +55 -1
- package/dist/config/sessionStore.js.map +1 -1
- package/dist/config/workflowLoader.d.ts.map +1 -1
- package/dist/config/workflowLoader.js +1 -0
- package/dist/config/workflowLoader.js.map +1 -1
- package/dist/models/schemas.d.ts +22 -0
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +8 -0
- package/dist/models/schemas.js.map +1 -1
- package/dist/models/types.d.ts +8 -2
- package/dist/models/types.d.ts.map +1 -1
- package/dist/prompt/index.d.ts +60 -11
- package/dist/prompt/index.d.ts.map +1 -1
- package/dist/prompt/index.js +246 -72
- package/dist/prompt/index.js.map +1 -1
- package/dist/providers/claude.d.ts.map +1 -1
- package/dist/providers/claude.js +2 -0
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/index.d.ts +3 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/task/autoCommit.d.ts +28 -0
- package/dist/task/autoCommit.d.ts.map +1 -0
- package/dist/task/autoCommit.js +68 -0
- package/dist/task/autoCommit.js.map +1 -0
- package/dist/task/index.d.ts +2 -1
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +2 -1
- package/dist/task/index.js.map +1 -1
- package/dist/task/runner.d.ts +14 -0
- package/dist/task/runner.d.ts.map +1 -1
- package/dist/task/runner.js +30 -7
- package/dist/task/runner.js.map +1 -1
- package/dist/task/summarize.d.ts +20 -0
- package/dist/task/summarize.d.ts.map +1 -0
- package/dist/task/summarize.js +50 -0
- package/dist/task/summarize.js.map +1 -0
- package/dist/task/worktree.d.ts +39 -0
- package/dist/task/worktree.d.ts.map +1 -1
- package/dist/task/worktree.js +111 -2
- package/dist/task/worktree.js.map +1 -1
- package/dist/utils/debug.d.ts +6 -1
- package/dist/utils/debug.d.ts.map +1 -1
- package/dist/utils/debug.js +30 -24
- package/dist/utils/debug.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/session.d.ts +20 -0
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +32 -3
- package/dist/utils/session.js.map +1 -1
- package/dist/utils/text.d.ts +22 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +54 -0
- package/dist/utils/text.js.map +1 -0
- package/dist/workflow/engine.d.ts +5 -6
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +32 -12
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/index.d.ts +2 -2
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +2 -2
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts +32 -2
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +90 -3
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/dist/workflow/transitions.d.ts.map +1 -1
- package/dist/workflow/transitions.js +1 -0
- package/dist/workflow/transitions.js.map +1 -1
- package/dist/workflow/types.d.ts +5 -1
- package/dist/workflow/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/global/en/workflows/default.yaml +22 -51
- package/resources/global/en/workflows/{expert-review.yaml → expert-cqrs.yaml} +6 -48
- package/resources/global/en/workflows/expert.yaml +1099 -0
- package/resources/global/en/workflows/magi.yaml +0 -9
- package/resources/global/en/workflows/research.yaml +0 -9
- package/resources/global/en/workflows/simple.yaml +18 -26
- package/resources/global/ja/agents/default/ai-reviewer.md +24 -1
- package/resources/global/ja/agents/default/architect.md +37 -4
- package/resources/global/ja/agents/default/coder.md +1 -0
- package/resources/global/ja/workflows/default.yaml +27 -52
- package/resources/global/ja/workflows/{expert-review.yaml → expert-cqrs.yaml} +169 -58
- package/resources/global/ja/workflows/expert.yaml +1099 -0
- package/resources/global/ja/workflows/magi.yaml +0 -9
- package/resources/global/ja/workflows/research.yaml +0 -9
- package/resources/global/ja/workflows/simple.yaml +18 -26
- /package/resources/global/en/agents/{expert-review → expert}/frontend-reviewer.md +0 -0
- /package/resources/global/en/agents/{expert-review → expert}/qa-reviewer.md +0 -0
- /package/resources/global/en/agents/{expert-review → expert}/security-reviewer.md +0 -0
- /package/resources/global/en/agents/{expert-review → expert}/supervisor.md +0 -0
- /package/resources/global/en/agents/{expert-review → expert-cqrs}/cqrs-es-reviewer.md +0 -0
- /package/resources/global/ja/agents/{expert-review → expert}/frontend-reviewer.md +0 -0
- /package/resources/global/ja/agents/{expert-review → expert}/qa-reviewer.md +0 -0
- /package/resources/global/ja/agents/{expert-review → expert}/security-reviewer.md +0 -0
- /package/resources/global/ja/agents/{expert-review → expert}/supervisor.md +0 -0
- /package/resources/global/ja/agents/{expert-review → expert-cqrs}/cqrs-es-reviewer.md +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../src/workflow/transitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3D;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAc,EACd,SAA8B;IAE9B,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,0BAA0B;IAC1B,MAAM,kBAAkB,GAA0C;QAChE,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,QAAQ,EAAE,CAAC,UAAU,CAAC;QACtB,QAAQ,EAAE,CAAC,UAAU,CAAC;QACtB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE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AAC;IAED,iDAAiD;IACjD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,+CAA+C;IAC/C,MAAM,QAAQ,GAAG;QACf,4BAA4B;QAC5B,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;KAC1B,CAAC;IAEF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACf,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,uDAAuD;IACvD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/workflow/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Contains types for workflow events, requests, and callbacks
|
|
5
5
|
* used by the workflow execution engine.
|
|
6
6
|
*/
|
|
7
|
-
import type { WorkflowStep, AgentResponse, WorkflowState } from '../models/types.js';
|
|
7
|
+
import type { WorkflowStep, AgentResponse, WorkflowState, Language } from '../models/types.js';
|
|
8
8
|
import type { StreamCallback } from '../agents/runner.js';
|
|
9
9
|
import type { PermissionHandler, AskUserQuestionHandler } from '../claude/process.js';
|
|
10
10
|
/** Events emitted by workflow engine */
|
|
@@ -63,6 +63,10 @@ export interface WorkflowEngineOptions {
|
|
|
63
63
|
onIterationLimit?: IterationLimitCallback;
|
|
64
64
|
/** Bypass all permission checks (sacrifice-my-pc mode) */
|
|
65
65
|
bypassPermissions?: boolean;
|
|
66
|
+
/** Project root directory (where .takt/ lives). Defaults to cwd if not specified. */
|
|
67
|
+
projectCwd?: string;
|
|
68
|
+
/** Language for instruction metadata. Defaults to 'en'. */
|
|
69
|
+
language?: Language;
|
|
66
70
|
}
|
|
67
71
|
/** Loop detection result */
|
|
68
72
|
export interface LoopCheckResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflow/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflow/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IACvE,cAAc,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IACtE,iBAAiB,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACpD,gBAAgB,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,oBAAoB,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,KAAK,IAA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AAE,OAAO,CAAC;IAC5B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,4BAA4B;AAC5B,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -29,16 +29,12 @@ steps:
|
|
|
29
29
|
- WebSearch
|
|
30
30
|
- WebFetch
|
|
31
31
|
status_rules_prompt: |
|
|
32
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
33
|
-
|
|
34
|
-
**Without this tag, the workflow will stop.**
|
|
35
|
-
Your final output MUST include a status tag following the rules below.
|
|
36
|
-
|
|
37
32
|
## Judgment Criteria
|
|
38
33
|
|
|
39
34
|
| Situation | Judgment |
|
|
40
35
|
|-----------|----------|
|
|
41
36
|
| Requirements clear and implementable | DONE |
|
|
37
|
+
| User is asking a question (not an implementation task) | ANSWER |
|
|
42
38
|
| Requirements unclear, insufficient info | BLOCKED |
|
|
43
39
|
|
|
44
40
|
## Output Format
|
|
@@ -46,6 +42,7 @@ steps:
|
|
|
46
42
|
| Situation | Tag |
|
|
47
43
|
|-----------|-----|
|
|
48
44
|
| Analysis complete | `[PLANNER:DONE]` |
|
|
45
|
+
| Question answered | `[PLANNER:ANSWER]` |
|
|
49
46
|
| Insufficient info | `[PLANNER:BLOCKED]` |
|
|
50
47
|
|
|
51
48
|
### Output Examples
|
|
@@ -55,6 +52,13 @@ steps:
|
|
|
55
52
|
[PLANNER:DONE]
|
|
56
53
|
```
|
|
57
54
|
|
|
55
|
+
**ANSWER case:**
|
|
56
|
+
```
|
|
57
|
+
{Answer to the question}
|
|
58
|
+
|
|
59
|
+
[PLANNER:ANSWER]
|
|
60
|
+
```
|
|
61
|
+
|
|
58
62
|
**BLOCKED case:**
|
|
59
63
|
```
|
|
60
64
|
[PLANNER:BLOCKED]
|
|
@@ -80,10 +84,15 @@ steps:
|
|
|
80
84
|
## Instructions
|
|
81
85
|
Analyze the task and create an implementation plan.
|
|
82
86
|
|
|
87
|
+
**Judgment criteria:**
|
|
88
|
+
- If the user input is an implementation task → create a plan and output `[PLANNER:DONE]`
|
|
89
|
+
- If the user input is a question → research, answer, and output `[PLANNER:ANSWER]`
|
|
90
|
+
- If there is insufficient information → output `[PLANNER:BLOCKED]`
|
|
91
|
+
|
|
83
92
|
**Note:** If returned from implement step (Previous Response exists),
|
|
84
93
|
review and revise the plan based on that feedback (replan).
|
|
85
94
|
|
|
86
|
-
**Tasks:**
|
|
95
|
+
**Tasks (for implementation tasks):**
|
|
87
96
|
1. Understand the requirements
|
|
88
97
|
2. Identify impact scope
|
|
89
98
|
3. Decide implementation approach
|
|
@@ -117,6 +126,8 @@ steps:
|
|
|
117
126
|
transitions:
|
|
118
127
|
- condition: done
|
|
119
128
|
next_step: implement
|
|
129
|
+
- condition: answer
|
|
130
|
+
next_step: COMPLETE
|
|
120
131
|
- condition: blocked
|
|
121
132
|
next_step: ABORT
|
|
122
133
|
|
|
@@ -131,12 +142,8 @@ steps:
|
|
|
131
142
|
- Bash
|
|
132
143
|
- WebSearch
|
|
133
144
|
- WebFetch
|
|
145
|
+
permission_mode: acceptEdits
|
|
134
146
|
status_rules_prompt: |
|
|
135
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
136
|
-
|
|
137
|
-
**Without this tag, the workflow will stop.**
|
|
138
|
-
Your final output MUST include a status tag following the rules below.
|
|
139
|
-
|
|
140
147
|
## Output Format
|
|
141
148
|
|
|
142
149
|
| Situation | Tag |
|
|
@@ -232,11 +239,6 @@ steps:
|
|
|
232
239
|
- WebSearch
|
|
233
240
|
- WebFetch
|
|
234
241
|
status_rules_prompt: |
|
|
235
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
236
|
-
|
|
237
|
-
**Without this tag, the workflow will stop.**
|
|
238
|
-
Your final output MUST include a status tag following the rules below.
|
|
239
|
-
|
|
240
242
|
## Judgment Criteria
|
|
241
243
|
|
|
242
244
|
| Situation | Judgment |
|
|
@@ -360,12 +362,8 @@ steps:
|
|
|
360
362
|
- Bash
|
|
361
363
|
- WebSearch
|
|
362
364
|
- WebFetch
|
|
365
|
+
permission_mode: acceptEdits
|
|
363
366
|
status_rules_prompt: |
|
|
364
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
365
|
-
|
|
366
|
-
**Without this tag, the workflow will stop.**
|
|
367
|
-
Your final output MUST include a status tag following the rules below.
|
|
368
|
-
|
|
369
367
|
## Output Format
|
|
370
368
|
|
|
371
369
|
| Situation | Tag |
|
|
@@ -434,11 +432,6 @@ steps:
|
|
|
434
432
|
- WebSearch
|
|
435
433
|
- WebFetch
|
|
436
434
|
status_rules_prompt: |
|
|
437
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
438
|
-
|
|
439
|
-
**Without this tag, the workflow will stop.**
|
|
440
|
-
Your final output MUST include a status tag following the rules below.
|
|
441
|
-
|
|
442
435
|
## Judgment Criteria
|
|
443
436
|
|
|
444
437
|
| Situation | Judgment |
|
|
@@ -545,12 +538,8 @@ steps:
|
|
|
545
538
|
- Bash
|
|
546
539
|
- WebSearch
|
|
547
540
|
- WebFetch
|
|
541
|
+
permission_mode: acceptEdits
|
|
548
542
|
status_rules_prompt: |
|
|
549
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
550
|
-
|
|
551
|
-
**Without this tag, the workflow will stop.**
|
|
552
|
-
Your final output MUST include a status tag following the rules below.
|
|
553
|
-
|
|
554
543
|
## Output Format
|
|
555
544
|
|
|
556
545
|
| Situation | Tag |
|
|
@@ -616,11 +605,6 @@ steps:
|
|
|
616
605
|
- WebSearch
|
|
617
606
|
- WebFetch
|
|
618
607
|
status_rules_prompt: |
|
|
619
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
620
|
-
|
|
621
|
-
**Without this tag, the workflow will stop.**
|
|
622
|
-
Your final output MUST include a status tag following the rules below.
|
|
623
|
-
|
|
624
608
|
## Judgment Criteria
|
|
625
609
|
|
|
626
610
|
| Situation | Judgment |
|
|
@@ -727,12 +711,8 @@ steps:
|
|
|
727
711
|
- Bash
|
|
728
712
|
- WebSearch
|
|
729
713
|
- WebFetch
|
|
714
|
+
permission_mode: acceptEdits
|
|
730
715
|
status_rules_prompt: |
|
|
731
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
732
|
-
|
|
733
|
-
**Without this tag, the workflow will stop.**
|
|
734
|
-
Your final output MUST include a status tag following the rules below.
|
|
735
|
-
|
|
736
716
|
## Output Format
|
|
737
717
|
|
|
738
718
|
| Situation | Tag |
|
|
@@ -796,12 +776,8 @@ steps:
|
|
|
796
776
|
- Bash
|
|
797
777
|
- WebSearch
|
|
798
778
|
- WebFetch
|
|
779
|
+
permission_mode: acceptEdits
|
|
799
780
|
status_rules_prompt: |
|
|
800
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
801
|
-
|
|
802
|
-
**Without this tag, the workflow will stop.**
|
|
803
|
-
Your final output MUST include a status tag following the rules below.
|
|
804
|
-
|
|
805
781
|
## Output Format
|
|
806
782
|
|
|
807
783
|
| Situation | Tag |
|
|
@@ -866,11 +842,6 @@ steps:
|
|
|
866
842
|
- WebSearch
|
|
867
843
|
- WebFetch
|
|
868
844
|
status_rules_prompt: |
|
|
869
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
870
|
-
|
|
871
|
-
**Without this tag, the workflow will stop.**
|
|
872
|
-
Your final output MUST include a status tag following the rules below.
|
|
873
|
-
|
|
874
845
|
## Judgment Criteria
|
|
875
846
|
|
|
876
847
|
| Situation | Judgment |
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
# {user_inputs} - Accumulated user inputs during workflow
|
|
21
21
|
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
22
22
|
|
|
23
|
-
name: expert-
|
|
23
|
+
name: expert-cqrs
|
|
24
24
|
description: CQRS+ES, Frontend, Security, QA Expert Review
|
|
25
25
|
|
|
26
26
|
max_iterations: 20
|
|
@@ -41,10 +41,7 @@ steps:
|
|
|
41
41
|
- WebSearch
|
|
42
42
|
- WebFetch
|
|
43
43
|
status_rules_prompt: |
|
|
44
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
45
44
|
|
|
46
|
-
**Without this tag, the workflow will stop.**
|
|
47
|
-
Your final output MUST include a status tag following the rules below.
|
|
48
45
|
|
|
49
46
|
## Output Format
|
|
50
47
|
|
|
@@ -127,10 +124,7 @@ steps:
|
|
|
127
124
|
- WebSearch
|
|
128
125
|
- WebFetch
|
|
129
126
|
status_rules_prompt: |
|
|
130
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
131
127
|
|
|
132
|
-
**Without this tag, the workflow will stop.**
|
|
133
|
-
Your final output MUST include a status tag following the rules below.
|
|
134
128
|
|
|
135
129
|
## Output Format
|
|
136
130
|
|
|
@@ -204,7 +198,7 @@ steps:
|
|
|
204
198
|
# Phase 2: CQRS+ES Review
|
|
205
199
|
# ===========================================
|
|
206
200
|
- name: cqrs_es_review
|
|
207
|
-
agent: ~/.takt/agents/expert-
|
|
201
|
+
agent: ~/.takt/agents/expert-cqrs/cqrs-es-reviewer.md
|
|
208
202
|
allowed_tools:
|
|
209
203
|
- Read
|
|
210
204
|
- Glob
|
|
@@ -212,10 +206,7 @@ steps:
|
|
|
212
206
|
- WebSearch
|
|
213
207
|
- WebFetch
|
|
214
208
|
status_rules_prompt: |
|
|
215
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
216
209
|
|
|
217
|
-
**Without this tag, the workflow will stop.**
|
|
218
|
-
Your final output MUST include a status tag following the rules below.
|
|
219
210
|
|
|
220
211
|
## Output Format
|
|
221
212
|
|
|
@@ -302,10 +293,7 @@ steps:
|
|
|
302
293
|
- WebSearch
|
|
303
294
|
- WebFetch
|
|
304
295
|
status_rules_prompt: |
|
|
305
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
306
296
|
|
|
307
|
-
**Without this tag, the workflow will stop.**
|
|
308
|
-
Your final output MUST include a status tag following the rules below.
|
|
309
297
|
|
|
310
298
|
## Output Format
|
|
311
299
|
|
|
@@ -351,7 +339,7 @@ steps:
|
|
|
351
339
|
# Phase 3: Frontend Review
|
|
352
340
|
# ===========================================
|
|
353
341
|
- name: frontend_review
|
|
354
|
-
agent: ~/.takt/agents/expert
|
|
342
|
+
agent: ~/.takt/agents/expert/frontend-reviewer.md
|
|
355
343
|
allowed_tools:
|
|
356
344
|
- Read
|
|
357
345
|
- Glob
|
|
@@ -359,10 +347,7 @@ steps:
|
|
|
359
347
|
- WebSearch
|
|
360
348
|
- WebFetch
|
|
361
349
|
status_rules_prompt: |
|
|
362
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
363
350
|
|
|
364
|
-
**Without this tag, the workflow will stop.**
|
|
365
|
-
Your final output MUST include a status tag following the rules below.
|
|
366
351
|
|
|
367
352
|
## Output Format
|
|
368
353
|
|
|
@@ -449,10 +434,7 @@ steps:
|
|
|
449
434
|
- WebSearch
|
|
450
435
|
- WebFetch
|
|
451
436
|
status_rules_prompt: |
|
|
452
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
453
437
|
|
|
454
|
-
**Without this tag, the workflow will stop.**
|
|
455
|
-
Your final output MUST include a status tag following the rules below.
|
|
456
438
|
|
|
457
439
|
## Output Format
|
|
458
440
|
|
|
@@ -506,10 +488,7 @@ steps:
|
|
|
506
488
|
- WebSearch
|
|
507
489
|
- WebFetch
|
|
508
490
|
status_rules_prompt: |
|
|
509
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
510
491
|
|
|
511
|
-
**Without this tag, the workflow will stop.**
|
|
512
|
-
Your final output MUST include a status tag following the rules below.
|
|
513
492
|
|
|
514
493
|
## Output Format
|
|
515
494
|
|
|
@@ -592,10 +571,7 @@ steps:
|
|
|
592
571
|
- WebSearch
|
|
593
572
|
- WebFetch
|
|
594
573
|
status_rules_prompt: |
|
|
595
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
596
574
|
|
|
597
|
-
**Without this tag, the workflow will stop.**
|
|
598
|
-
Your final output MUST include a status tag following the rules below.
|
|
599
575
|
|
|
600
576
|
## Output Format
|
|
601
577
|
|
|
@@ -639,7 +615,7 @@ steps:
|
|
|
639
615
|
# Phase 5: Security Review
|
|
640
616
|
# ===========================================
|
|
641
617
|
- name: security_review
|
|
642
|
-
agent: ~/.takt/agents/expert
|
|
618
|
+
agent: ~/.takt/agents/expert/security-reviewer.md
|
|
643
619
|
allowed_tools:
|
|
644
620
|
- Read
|
|
645
621
|
- Glob
|
|
@@ -647,10 +623,7 @@ steps:
|
|
|
647
623
|
- WebSearch
|
|
648
624
|
- WebFetch
|
|
649
625
|
status_rules_prompt: |
|
|
650
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
651
626
|
|
|
652
|
-
**Without this tag, the workflow will stop.**
|
|
653
|
-
Your final output MUST include a status tag following the rules below.
|
|
654
627
|
|
|
655
628
|
## Output Format
|
|
656
629
|
|
|
@@ -734,10 +707,7 @@ steps:
|
|
|
734
707
|
- WebSearch
|
|
735
708
|
- WebFetch
|
|
736
709
|
status_rules_prompt: |
|
|
737
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
738
710
|
|
|
739
|
-
**Without this tag, the workflow will stop.**
|
|
740
|
-
Your final output MUST include a status tag following the rules below.
|
|
741
711
|
|
|
742
712
|
## Output Format
|
|
743
713
|
|
|
@@ -793,7 +763,7 @@ steps:
|
|
|
793
763
|
# Phase 6: QA Review
|
|
794
764
|
# ===========================================
|
|
795
765
|
- name: qa_review
|
|
796
|
-
agent: ~/.takt/agents/expert
|
|
766
|
+
agent: ~/.takt/agents/expert/qa-reviewer.md
|
|
797
767
|
allowed_tools:
|
|
798
768
|
- Read
|
|
799
769
|
- Glob
|
|
@@ -801,10 +771,7 @@ steps:
|
|
|
801
771
|
- WebSearch
|
|
802
772
|
- WebFetch
|
|
803
773
|
status_rules_prompt: |
|
|
804
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
805
774
|
|
|
806
|
-
**Without this tag, the workflow will stop.**
|
|
807
|
-
Your final output MUST include a status tag following the rules below.
|
|
808
775
|
|
|
809
776
|
## Output Format
|
|
810
777
|
|
|
@@ -888,10 +855,7 @@ steps:
|
|
|
888
855
|
- WebSearch
|
|
889
856
|
- WebFetch
|
|
890
857
|
status_rules_prompt: |
|
|
891
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
892
858
|
|
|
893
|
-
**Without this tag, the workflow will stop.**
|
|
894
|
-
Your final output MUST include a status tag following the rules below.
|
|
895
859
|
|
|
896
860
|
## Output Format
|
|
897
861
|
|
|
@@ -952,7 +916,7 @@ steps:
|
|
|
952
916
|
# Phase 7: Supervision
|
|
953
917
|
# ===========================================
|
|
954
918
|
- name: supervise
|
|
955
|
-
agent: ~/.takt/agents/expert
|
|
919
|
+
agent: ~/.takt/agents/expert/supervisor.md
|
|
956
920
|
allowed_tools:
|
|
957
921
|
- Read
|
|
958
922
|
- Glob
|
|
@@ -960,10 +924,7 @@ steps:
|
|
|
960
924
|
- WebSearch
|
|
961
925
|
- WebFetch
|
|
962
926
|
status_rules_prompt: |
|
|
963
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
964
927
|
|
|
965
|
-
**Without this tag, the workflow will stop.**
|
|
966
|
-
Your final output MUST include a status tag following the rules below.
|
|
967
928
|
|
|
968
929
|
## Output Format
|
|
969
930
|
|
|
@@ -1089,10 +1050,7 @@ steps:
|
|
|
1089
1050
|
- WebSearch
|
|
1090
1051
|
- WebFetch
|
|
1091
1052
|
status_rules_prompt: |
|
|
1092
|
-
# ⚠️ REQUIRED: Status Output Rules ⚠️
|
|
1093
1053
|
|
|
1094
|
-
**Without this tag, the workflow will stop.**
|
|
1095
|
-
Your final output MUST include a status tag following the rules below.
|
|
1096
1054
|
|
|
1097
1055
|
## Output Format
|
|
1098
1056
|
|