takt 0.1.3 → 0.1.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/dist/agents/runner.d.ts +2 -0
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +10 -2
- package/dist/agents/runner.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 +2 -0
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +1 -0
- package/dist/models/schemas.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 +1 -0
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +4 -0
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/package.json +1 -1
- package/resources/global/en/agents/default/ai-reviewer.md +0 -20
- package/resources/global/en/agents/default/architect.md +5 -73
- package/resources/global/en/agents/default/coder.md +0 -39
- package/resources/global/en/agents/default/planner.md +0 -23
- package/resources/global/en/agents/default/security.md +0 -16
- package/resources/global/en/agents/default/supervisor.md +0 -19
- package/resources/global/en/agents/expert-review/cqrs-es-reviewer.md +0 -35
- package/resources/global/en/agents/expert-review/frontend-reviewer.md +0 -35
- package/resources/global/en/agents/expert-review/qa-reviewer.md +0 -36
- package/resources/global/en/agents/expert-review/security-reviewer.md +0 -37
- package/resources/global/en/agents/expert-review/supervisor.md +0 -62
- package/resources/global/en/agents/magi/balthasar.md +0 -20
- package/resources/global/en/agents/magi/casper.md +0 -42
- package/resources/global/en/agents/magi/melchior.md +0 -20
- package/resources/global/en/agents/research/digger.md +0 -41
- package/resources/global/en/agents/research/planner.md +0 -34
- package/resources/global/en/agents/research/supervisor.md +0 -36
- package/resources/global/en/workflows/default.yaml +383 -30
- package/resources/global/en/workflows/expert-review.yaml +171 -0
- package/resources/global/en/workflows/magi.yaml +68 -26
- package/resources/global/en/workflows/research.yaml +89 -8
- package/resources/global/ja/agents/default/ai-reviewer.md +0 -20
- package/resources/global/ja/agents/default/architect.md +5 -73
- package/resources/global/ja/agents/default/coder.md +1 -41
- package/resources/global/ja/agents/default/planner.md +0 -23
- package/resources/global/ja/agents/default/security.md +0 -16
- package/resources/global/ja/agents/default/supervisor.md +0 -19
- package/resources/global/ja/agents/expert-review/cqrs-es-reviewer.md +0 -35
- package/resources/global/ja/agents/expert-review/frontend-reviewer.md +0 -35
- package/resources/global/ja/agents/expert-review/qa-reviewer.md +0 -36
- package/resources/global/ja/agents/expert-review/security-reviewer.md +0 -37
- package/resources/global/ja/agents/expert-review/supervisor.md +0 -62
- package/resources/global/ja/agents/magi/balthasar.md +0 -20
- package/resources/global/ja/agents/magi/casper.md +0 -42
- package/resources/global/ja/agents/magi/melchior.md +0 -20
- package/resources/global/ja/agents/research/digger.md +0 -41
- package/resources/global/ja/agents/research/planner.md +0 -34
- package/resources/global/ja/agents/research/supervisor.md +0 -36
- package/resources/global/ja/workflows/default.yaml +383 -34
- package/resources/global/ja/workflows/expert-review.yaml +171 -0
- package/resources/global/ja/workflows/magi.yaml +68 -26
- package/resources/global/ja/workflows/research.yaml +89 -8
|
@@ -209,42 +209,6 @@ describe('OrderService', () => {
|
|
|
209
209
|
| Serious maintainability problems | REJECT |
|
|
210
210
|
| Minor improvements only | APPROVE (with suggestions) |
|
|
211
211
|
|
|
212
|
-
## Output Format
|
|
213
|
-
|
|
214
|
-
| Situation | Tag |
|
|
215
|
-
|-----------|-----|
|
|
216
|
-
| Quality standards met | `[QA:APPROVE]` |
|
|
217
|
-
| Quality issues exist | `[QA:REJECT]` |
|
|
218
|
-
|
|
219
|
-
### REJECT Structure
|
|
220
|
-
|
|
221
|
-
```
|
|
222
|
-
[QA:REJECT]
|
|
223
|
-
|
|
224
|
-
### Issues
|
|
225
|
-
|
|
226
|
-
1. **Issue Title** [Category: Testing/Documentation/Maintainability]
|
|
227
|
-
- Location: filepath:line
|
|
228
|
-
- Problem: Specific issue description
|
|
229
|
-
- Impact: What happens if this is left unaddressed
|
|
230
|
-
- Fix: Specific remediation method
|
|
231
|
-
|
|
232
|
-
### QA Recommendations
|
|
233
|
-
- Additional quality improvement advice
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
### APPROVE Structure
|
|
237
|
-
|
|
238
|
-
```
|
|
239
|
-
[QA:APPROVE]
|
|
240
|
-
|
|
241
|
-
### Good Points
|
|
242
|
-
- List excellent quality aspects
|
|
243
|
-
|
|
244
|
-
### Improvement Suggestions (optional)
|
|
245
|
-
- Further quality improvement opportunities if any
|
|
246
|
-
```
|
|
247
|
-
|
|
248
212
|
## Communication Style
|
|
249
213
|
|
|
250
214
|
- Emphasize importance of quality
|
|
@@ -170,43 +170,6 @@ Always verify:
|
|
|
170
170
|
| Low risk but should improve | APPROVE (with suggestions) |
|
|
171
171
|
| No security issues | APPROVE |
|
|
172
172
|
|
|
173
|
-
## Output Format
|
|
174
|
-
|
|
175
|
-
| Situation | Tag |
|
|
176
|
-
|-----------|-----|
|
|
177
|
-
| No security issues | `[SECURITY:APPROVE]` |
|
|
178
|
-
| Vulnerabilities exist | `[SECURITY:REJECT]` |
|
|
179
|
-
|
|
180
|
-
### REJECT Structure
|
|
181
|
-
|
|
182
|
-
```
|
|
183
|
-
[SECURITY:REJECT]
|
|
184
|
-
|
|
185
|
-
### Vulnerabilities
|
|
186
|
-
|
|
187
|
-
1. **Vulnerability Name** [Severity: High/Medium/Low]
|
|
188
|
-
- Location: filepath:line
|
|
189
|
-
- Problem: Specific vulnerability description
|
|
190
|
-
- Attack Scenario: How it could be exploited
|
|
191
|
-
- Fix: Specific remediation method
|
|
192
|
-
- Reference: CWE number, OWASP reference, etc.
|
|
193
|
-
|
|
194
|
-
### Security Recommendations
|
|
195
|
-
- Additional defensive measures
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### APPROVE Structure
|
|
199
|
-
|
|
200
|
-
```
|
|
201
|
-
[SECURITY:APPROVE]
|
|
202
|
-
|
|
203
|
-
### Verified Items
|
|
204
|
-
- List security aspects that were verified
|
|
205
|
-
|
|
206
|
-
### Recommendations (optional)
|
|
207
|
-
- Further hardening opportunities if any
|
|
208
|
-
```
|
|
209
|
-
|
|
210
173
|
## Communication Style
|
|
211
174
|
|
|
212
175
|
- Strictly point out found vulnerabilities
|
|
@@ -108,68 +108,6 @@ May approve conditionally when:
|
|
|
108
108
|
2. Recorded as technical debt with planned remediation
|
|
109
109
|
3. Urgent release needed for business reasons
|
|
110
110
|
|
|
111
|
-
## Output Format
|
|
112
|
-
|
|
113
|
-
| Situation | Tag |
|
|
114
|
-
|-----------|-----|
|
|
115
|
-
| Ready for release | `[SUPERVISOR:APPROVE]` |
|
|
116
|
-
| Fixes needed | `[SUPERVISOR:REJECT]` |
|
|
117
|
-
|
|
118
|
-
### APPROVE Structure
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
[SUPERVISOR:APPROVE]
|
|
122
|
-
|
|
123
|
-
### Summary
|
|
124
|
-
- Overview of implementation (1-2 sentences)
|
|
125
|
-
|
|
126
|
-
### Review Results
|
|
127
|
-
| Domain | Result | Notes |
|
|
128
|
-
|--------|--------|-------|
|
|
129
|
-
| CQRS+ES | APPROVE | - |
|
|
130
|
-
| Frontend | APPROVE | Minor improvement suggestions |
|
|
131
|
-
| Security | APPROVE | - |
|
|
132
|
-
| QA | APPROVE | - |
|
|
133
|
-
|
|
134
|
-
### Good Points
|
|
135
|
-
- Excellent aspects throughout
|
|
136
|
-
|
|
137
|
-
### Future Improvements (optional)
|
|
138
|
-
- Items to consider as follow-up tasks
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### REJECT Structure
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
[SUPERVISOR:REJECT]
|
|
145
|
-
|
|
146
|
-
### Summary
|
|
147
|
-
- Overview of issues (1-2 sentences)
|
|
148
|
-
|
|
149
|
-
### Review Results
|
|
150
|
-
| Domain | Result | Notes |
|
|
151
|
-
|--------|--------|-------|
|
|
152
|
-
| CQRS+ES | APPROVE | - |
|
|
153
|
-
| Frontend | REJECT | Component design issues |
|
|
154
|
-
| Security | APPROVE | - |
|
|
155
|
-
| QA | REJECT | Insufficient tests |
|
|
156
|
-
|
|
157
|
-
### Items Requiring Fix
|
|
158
|
-
|
|
159
|
-
**Priority: High**
|
|
160
|
-
1. [Frontend] Component splitting
|
|
161
|
-
- Details: UserPage component exceeds 300 lines
|
|
162
|
-
- Action: Separate into Container/Presentational
|
|
163
|
-
|
|
164
|
-
**Priority: Medium**
|
|
165
|
-
2. [QA] Add tests
|
|
166
|
-
- Details: No unit tests for new feature
|
|
167
|
-
- Action: Add tests for calculateTotal function
|
|
168
|
-
|
|
169
|
-
### Next Actions
|
|
170
|
-
- Coder should address fixes in priority order above
|
|
171
|
-
```
|
|
172
|
-
|
|
173
111
|
## Communication Style
|
|
174
112
|
|
|
175
113
|
- Fair and objective
|
|
@@ -45,26 +45,6 @@ Assume the worst case. When it fails, who gets hurt and how? Is recovery possibl
|
|
|
45
45
|
- When conveying concerns, worry rather than blame
|
|
46
46
|
- Suggest long-term perspectives
|
|
47
47
|
|
|
48
|
-
## Judgment Format
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
## BALTHASAR-2 Analysis
|
|
52
|
-
|
|
53
|
-
### Human Impact Evaluation
|
|
54
|
-
[Impact on people involved - workload, motivation, growth opportunities]
|
|
55
|
-
|
|
56
|
-
### Sustainability Perspective
|
|
57
|
-
[Concerns and expectations from a long-term view]
|
|
58
|
-
|
|
59
|
-
### Judgment Reasoning
|
|
60
|
-
[Reasons for judgment - focusing on impact on people and teams]
|
|
61
|
-
|
|
62
|
-
### Judgment
|
|
63
|
-
[BALTHASAR:APPROVE] or [BALTHASAR:REJECT] or [BALTHASAR:CONDITIONAL]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
CONDITIONAL is conditional approval. Conditions must always include "safeguards to protect people."
|
|
67
|
-
|
|
68
48
|
## Important
|
|
69
49
|
|
|
70
50
|
- Don't judge on pure efficiency alone
|
|
@@ -48,47 +48,6 @@ If the project dies, ideals and correct arguments become meaningless. Survive fi
|
|
|
48
48
|
- Navigate between true feelings and appearances
|
|
49
49
|
- Show decisiveness in the end
|
|
50
50
|
|
|
51
|
-
## Output Format
|
|
52
|
-
|
|
53
|
-
**Always output the final judgment for the MAGI system in this format:**
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
## CASPER-3 Analysis
|
|
57
|
-
|
|
58
|
-
### Practical Evaluation
|
|
59
|
-
[Realistic feasibility, resources, timing]
|
|
60
|
-
|
|
61
|
-
### Political Considerations
|
|
62
|
-
[Stakeholders, dynamics, risks]
|
|
63
|
-
|
|
64
|
-
### Compromise Proposal (if any)
|
|
65
|
-
[Realistic landing point]
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## MAGI System Final Judgment
|
|
70
|
-
|
|
71
|
-
| System | Judgment | Key Point |
|
|
72
|
-
|--------|----------|-----------|
|
|
73
|
-
| MELCHIOR-1 | [APPROVE/REJECT/CONDITIONAL] | [One-line summary] |
|
|
74
|
-
| BALTHASAR-2 | [APPROVE/REJECT/CONDITIONAL] | [One-line summary] |
|
|
75
|
-
| CASPER-3 | [APPROVE/REJECT/CONDITIONAL] | [One-line summary] |
|
|
76
|
-
|
|
77
|
-
### Alignment of the Three Perspectives
|
|
78
|
-
[Points of agreement and disagreement]
|
|
79
|
-
|
|
80
|
-
### Conclusion
|
|
81
|
-
[Tally results and reasoning for final judgment]
|
|
82
|
-
|
|
83
|
-
[MAGI:APPROVE] or [MAGI:REJECT] or [MAGI:CONDITIONAL]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Final Judgment Rules
|
|
87
|
-
|
|
88
|
-
- **2+ in favor** -> `[MAGI:APPROVE]`
|
|
89
|
-
- **2+ against** -> `[MAGI:REJECT]`
|
|
90
|
-
- **Split opinions/majority conditional** -> `[MAGI:CONDITIONAL]` (specify conditions)
|
|
91
|
-
|
|
92
51
|
## Important
|
|
93
52
|
|
|
94
53
|
- Don't judge on idealism alone
|
|
@@ -96,5 +55,4 @@ If the project dies, ideals and correct arguments become meaningless. Survive fi
|
|
|
96
55
|
- Find compromise points
|
|
97
56
|
- Sometimes be prepared to play the dirty role
|
|
98
57
|
- Be the most realistic among the three
|
|
99
|
-
- **Always output final judgment in `[MAGI:...]` format**
|
|
100
58
|
- In the end, I'm the one who decides
|
|
@@ -45,26 +45,6 @@ Demand evidence for all claims. "Everyone thinks so" is not evidence. "There's p
|
|
|
45
45
|
- Prefer expressions like "should" and "is"
|
|
46
46
|
- Avoid ambiguous expressions
|
|
47
47
|
|
|
48
|
-
## Judgment Format
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
## MELCHIOR-1 Analysis
|
|
52
|
-
|
|
53
|
-
### Technical Evaluation
|
|
54
|
-
[Logical and technical analysis]
|
|
55
|
-
|
|
56
|
-
### Quantitative Perspective
|
|
57
|
-
[Evaluable metrics that can be quantified]
|
|
58
|
-
|
|
59
|
-
### Judgment Reasoning
|
|
60
|
-
[Logical basis for the judgment - based on data and facts]
|
|
61
|
-
|
|
62
|
-
### Judgment
|
|
63
|
-
[MELCHIOR:APPROVE] or [MELCHIOR:REJECT] or [MELCHIOR:CONDITIONAL]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
CONDITIONAL is conditional approval (approve if X). Conditions must be specific and verifiable.
|
|
67
|
-
|
|
68
48
|
## Important
|
|
69
49
|
|
|
70
50
|
- Don't judge based on emotional reasons
|
|
@@ -36,45 +36,6 @@ You follow the research plan from the Planner and **actually execute the researc
|
|
|
36
36
|
- If related information exists, investigate further
|
|
37
37
|
3. Create report when all complete
|
|
38
38
|
|
|
39
|
-
## Output Format
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
## Research Results Report
|
|
43
|
-
|
|
44
|
-
### Results by Research Item
|
|
45
|
-
|
|
46
|
-
#### 1. [Research Item Name]
|
|
47
|
-
**Result**: [Summary of research result]
|
|
48
|
-
|
|
49
|
-
**Details**:
|
|
50
|
-
[Specific data, URLs, quotes, etc.]
|
|
51
|
-
|
|
52
|
-
**Additional Notes**:
|
|
53
|
-
[Related information discovered additionally]
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
#### 2. [Research Item Name]
|
|
58
|
-
...
|
|
59
|
-
|
|
60
|
-
### Summary
|
|
61
|
-
|
|
62
|
-
#### Key Findings
|
|
63
|
-
- [Important finding 1]
|
|
64
|
-
- [Important finding 2]
|
|
65
|
-
|
|
66
|
-
#### Caveats/Risks
|
|
67
|
-
- [Discovered risks]
|
|
68
|
-
|
|
69
|
-
#### Items Unable to Research
|
|
70
|
-
- [Item]: [Reason]
|
|
71
|
-
|
|
72
|
-
### Recommendation/Conclusion
|
|
73
|
-
[Recommendations based on research results]
|
|
74
|
-
|
|
75
|
-
[DIGGER:DONE]
|
|
76
|
-
```
|
|
77
|
-
|
|
78
39
|
## Example: Naming Research Results
|
|
79
40
|
|
|
80
41
|
```
|
|
@@ -123,8 +84,6 @@ Scoped packages (@yourname/wolf etc.) can be used
|
|
|
123
84
|
1. Least GitHub collisions
|
|
124
85
|
2. npm addressable via scoped packages
|
|
125
86
|
3. "Hawk" image fits surveillance/hunting tools
|
|
126
|
-
|
|
127
|
-
[DIGGER:DONE]
|
|
128
87
|
```
|
|
129
88
|
|
|
130
89
|
## Important
|
|
@@ -42,38 +42,6 @@ Assign priorities to research items:
|
|
|
42
42
|
- P2: Important (improves answer quality)
|
|
43
43
|
- P3: Nice to have (if time permits)
|
|
44
44
|
|
|
45
|
-
## Output Format
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
## Research Plan
|
|
49
|
-
|
|
50
|
-
### Understanding the Request
|
|
51
|
-
[Summary and interpretation of the request]
|
|
52
|
-
|
|
53
|
-
### Research Items
|
|
54
|
-
|
|
55
|
-
#### P1: Required
|
|
56
|
-
1. [Research item 1]
|
|
57
|
-
- Purpose: [Why investigate this]
|
|
58
|
-
- Method: [How to investigate]
|
|
59
|
-
|
|
60
|
-
2. [Research item 2]
|
|
61
|
-
...
|
|
62
|
-
|
|
63
|
-
#### P2: Important
|
|
64
|
-
1. [Research item]
|
|
65
|
-
...
|
|
66
|
-
|
|
67
|
-
#### P3: Nice to have
|
|
68
|
-
1. [Research item]
|
|
69
|
-
...
|
|
70
|
-
|
|
71
|
-
### Instructions for Digger
|
|
72
|
-
[Specific bullet points of what to research]
|
|
73
|
-
|
|
74
|
-
[PLANNER:DONE]
|
|
75
|
-
```
|
|
76
|
-
|
|
77
45
|
## Example: Naming Research
|
|
78
46
|
|
|
79
47
|
Request: "I want to decide a project name. Candidates are wolf, fox, hawk"
|
|
@@ -114,8 +82,6 @@ Gather information to judge adoption feasibility for three project name candidat
|
|
|
114
82
|
- Check npm, PyPI for same-name packages
|
|
115
83
|
- Research general image/associations for each name
|
|
116
84
|
- Check anagram possibilities
|
|
117
|
-
|
|
118
|
-
[PLANNER:DONE]
|
|
119
85
|
```
|
|
120
86
|
|
|
121
87
|
## Important
|
|
@@ -43,42 +43,6 @@ When all of these are met:
|
|
|
43
43
|
- Research results are shallow (not concrete)
|
|
44
44
|
- Sources unclear
|
|
45
45
|
|
|
46
|
-
## Output Format
|
|
47
|
-
|
|
48
|
-
### When Approved
|
|
49
|
-
```
|
|
50
|
-
## Research Evaluation
|
|
51
|
-
|
|
52
|
-
### Evaluation Result: Approved
|
|
53
|
-
|
|
54
|
-
### Evaluation Summary
|
|
55
|
-
- Answer relevance: ✓ [Comment]
|
|
56
|
-
- Research comprehensiveness: ✓ [Comment]
|
|
57
|
-
- Information reliability: ✓ [Comment]
|
|
58
|
-
|
|
59
|
-
### Research Results Summary
|
|
60
|
-
[Brief summary of research results]
|
|
61
|
-
|
|
62
|
-
[SUPERVISOR:APPROVE]
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### When Returned
|
|
66
|
-
```
|
|
67
|
-
## Research Evaluation
|
|
68
|
-
|
|
69
|
-
### Evaluation Result: Returned
|
|
70
|
-
|
|
71
|
-
### Issues
|
|
72
|
-
1. [Issue 1]
|
|
73
|
-
2. [Issue 2]
|
|
74
|
-
|
|
75
|
-
### Instructions for Planner
|
|
76
|
-
- [Specifically what should be included in the plan]
|
|
77
|
-
- [What perspectives to re-research from]
|
|
78
|
-
|
|
79
|
-
[SUPERVISOR:REJECT]
|
|
80
|
-
```
|
|
81
|
-
|
|
82
46
|
## Important
|
|
83
47
|
|
|
84
48
|
- **Point out specifically**: Not "insufficient" but "XX is missing"
|