takt 0.2.2 → 0.3.0
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 +223 -166
- package/dist/agents/runner.d.ts +2 -4
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +6 -35
- package/dist/agents/runner.js.map +1 -1
- package/dist/claude/client.d.ts +31 -6
- package/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +78 -30
- package/dist/claude/client.js.map +1 -1
- package/dist/claude/index.d.ts +1 -1
- package/dist/claude/index.d.ts.map +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/claude/index.js.map +1 -1
- package/dist/cli.d.ts +4 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +41 -20
- package/dist/cli.js.map +1 -1
- package/dist/codex/client.d.ts +0 -1
- package/dist/codex/client.d.ts.map +1 -1
- package/dist/codex/client.js +3 -6
- package/dist/codex/client.js.map +1 -1
- package/dist/commands/addTask.d.ts.map +1 -1
- package/dist/commands/addTask.js +23 -7
- package/dist/commands/addTask.js.map +1 -1
- package/dist/commands/eject.d.ts +13 -0
- package/dist/commands/eject.d.ts.map +1 -0
- package/dist/commands/eject.js +105 -0
- package/dist/commands/eject.js.map +1 -0
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +12 -5
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/index.d.ts +2 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/listTasks.d.ts +45 -0
- package/dist/commands/listTasks.d.ts.map +1 -0
- package/dist/commands/{reviewTasks.js → listTasks.js} +93 -73
- package/dist/commands/listTasks.js.map +1 -0
- package/dist/commands/refreshBuiltin.d.ts +4 -4
- package/dist/commands/refreshBuiltin.d.ts.map +1 -1
- package/dist/commands/refreshBuiltin.js +13 -29
- package/dist/commands/refreshBuiltin.js.map +1 -1
- package/dist/commands/taskExecution.d.ts +7 -5
- package/dist/commands/taskExecution.d.ts.map +1 -1
- package/dist/commands/taskExecution.js +21 -14
- package/dist/commands/taskExecution.js.map +1 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +88 -21
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/config/agentLoader.d.ts +3 -1
- package/dist/config/agentLoader.d.ts.map +1 -1
- package/dist/config/agentLoader.js +17 -24
- package/dist/config/agentLoader.js.map +1 -1
- package/dist/config/globalConfig.d.ts +2 -0
- package/dist/config/globalConfig.d.ts.map +1 -1
- package/dist/config/globalConfig.js +18 -0
- package/dist/config/globalConfig.js.map +1 -1
- package/dist/config/initialization.d.ts +7 -5
- package/dist/config/initialization.d.ts.map +1 -1
- package/dist/config/initialization.js +23 -21
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/paths.d.ts +5 -0
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +9 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/config/workflowLoader.d.ts +6 -4
- package/dist/config/workflowLoader.d.ts.map +1 -1
- package/dist/config/workflowLoader.js +190 -35
- package/dist/config/workflowLoader.js.map +1 -1
- package/dist/github/issue.d.ts +72 -0
- package/dist/github/issue.d.ts.map +1 -0
- package/dist/github/issue.js +143 -0
- package/dist/github/issue.js.map +1 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/schemas.d.ts +165 -90
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +79 -51
- package/dist/models/schemas.js.map +1 -1
- package/dist/models/types.d.ts +53 -20
- package/dist/models/types.d.ts.map +1 -1
- package/dist/providers/claude.js +2 -2
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/codex.d.ts.map +1 -1
- package/dist/providers/codex.js +0 -2
- package/dist/providers/codex.js.map +1 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/resources/index.d.ts +3 -22
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +9 -76
- package/dist/resources/index.js.map +1 -1
- package/dist/task/autoCommit.d.ts +9 -6
- package/dist/task/autoCommit.d.ts.map +1 -1
- package/dist/task/autoCommit.js +21 -12
- package/dist/task/autoCommit.js.map +1 -1
- package/dist/task/branchList.d.ts +55 -0
- package/dist/task/branchList.d.ts.map +1 -0
- package/dist/task/branchList.js +131 -0
- package/dist/task/branchList.js.map +1 -0
- package/dist/task/clone.d.ts +53 -0
- package/dist/task/clone.d.ts.map +1 -0
- package/dist/task/clone.js +181 -0
- package/dist/task/clone.js.map +1 -0
- package/dist/task/index.d.ts +3 -2
- package/dist/task/index.d.ts.map +1 -1
- package/dist/task/index.js +3 -2
- package/dist/task/index.js.map +1 -1
- package/dist/task/schema.d.ts +4 -4
- package/dist/task/schema.js +4 -4
- package/dist/task/summarize.d.ts +7 -5
- package/dist/task/summarize.d.ts.map +1 -1
- package/dist/task/summarize.js +62 -29
- package/dist/task/summarize.js.map +1 -1
- package/dist/utils/session.d.ts +74 -10
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +101 -51
- package/dist/utils/session.js.map +1 -1
- package/dist/utils/updateNotifier.d.ts +6 -0
- package/dist/utils/updateNotifier.d.ts.map +1 -0
- package/dist/utils/updateNotifier.js +17 -0
- package/dist/utils/updateNotifier.js.map +1 -0
- package/dist/workflow/engine.d.ts +35 -2
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +238 -38
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts +89 -20
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +404 -61
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/dist/workflow/parallel-logger.d.ts +76 -0
- package/dist/workflow/parallel-logger.d.ts.map +1 -0
- package/dist/workflow/parallel-logger.js +173 -0
- package/dist/workflow/parallel-logger.js.map +1 -0
- package/dist/workflow/phase-runner.d.ts +40 -0
- package/dist/workflow/phase-runner.d.ts.map +1 -0
- package/dist/workflow/phase-runner.js +69 -0
- package/dist/workflow/phase-runner.js.map +1 -0
- package/dist/workflow/rule-evaluator.d.ts +64 -0
- package/dist/workflow/rule-evaluator.d.ts.map +1 -0
- package/dist/workflow/rule-evaluator.js +178 -0
- package/dist/workflow/rule-evaluator.js.map +1 -0
- package/dist/workflow/rule-utils.d.ts +13 -0
- package/dist/workflow/rule-utils.d.ts.map +1 -0
- package/dist/workflow/rule-utils.js +17 -0
- package/dist/workflow/rule-utils.js.map +1 -0
- package/dist/workflow/transitions.d.ts +5 -13
- package/dist/workflow/transitions.d.ts.map +1 -1
- package/dist/workflow/transitions.js +8 -78
- package/dist/workflow/transitions.js.map +1 -1
- package/dist/workflow/types.d.ts +2 -1
- package/dist/workflow/types.d.ts.map +1 -1
- package/package.json +4 -1
- package/resources/global/en/agents/default/ai-antipattern-reviewer.md +193 -0
- package/resources/global/en/agents/default/{architect.md → architecture-reviewer.md} +144 -44
- package/resources/global/en/agents/default/coder.md +7 -7
- package/resources/global/en/agents/default/planner.md +29 -9
- package/resources/global/en/agents/default/{security.md → security-reviewer.md} +23 -5
- package/resources/global/en/agents/default/supervisor.md +13 -2
- package/resources/global/en/agents/expert/frontend-reviewer.md +0 -17
- package/resources/global/en/agents/expert/qa-reviewer.md +0 -16
- package/resources/global/en/agents/expert/security-reviewer.md +0 -16
- package/resources/global/en/agents/expert-cqrs/cqrs-es-reviewer.md +0 -17
- package/resources/global/en/agents/templates/coder.md +128 -0
- package/resources/global/en/agents/templates/planner.md +44 -0
- package/resources/global/en/agents/templates/reviewer.md +57 -0
- package/resources/global/en/agents/templates/supervisor.md +64 -0
- package/resources/global/en/workflows/default.yaml +235 -770
- package/resources/global/en/workflows/expert-cqrs.yaml +325 -697
- package/resources/global/en/workflows/expert.yaml +354 -722
- package/resources/global/en/workflows/magi.yaml +45 -52
- package/resources/global/en/workflows/research.yaml +18 -99
- package/resources/global/en/workflows/simple.yaml +156 -421
- package/resources/global/ja/agents/default/{ai-reviewer.md → ai-antipattern-reviewer.md} +92 -15
- package/resources/global/ja/agents/default/{architect.md → architecture-reviewer.md} +148 -48
- package/resources/global/ja/agents/default/coder.md +7 -7
- package/resources/global/ja/agents/default/planner.md +29 -9
- package/resources/global/ja/agents/default/{security.md → security-reviewer.md} +23 -5
- package/resources/global/ja/agents/default/supervisor.md +13 -2
- package/resources/global/ja/agents/expert/frontend-reviewer.md +0 -18
- package/resources/global/ja/agents/expert/qa-reviewer.md +0 -16
- package/resources/global/ja/agents/expert/security-reviewer.md +0 -16
- package/resources/global/ja/agents/expert-cqrs/cqrs-es-reviewer.md +0 -18
- package/resources/global/ja/agents/templates/coder.md +128 -0
- package/resources/global/ja/agents/templates/planner.md +44 -0
- package/resources/global/ja/agents/templates/reviewer.md +57 -0
- package/resources/global/ja/agents/templates/supervisor.md +64 -0
- package/resources/global/ja/workflows/default.yaml +230 -771
- package/resources/global/ja/workflows/expert-cqrs.yaml +316 -832
- package/resources/global/ja/workflows/expert.yaml +331 -711
- package/resources/global/ja/workflows/magi.yaml +45 -52
- package/resources/global/ja/workflows/research.yaml +18 -99
- package/resources/global/ja/workflows/simple.yaml +149 -415
- package/resources/project/dotgitignore +10 -0
- package/resources/project/tasks/TASK-FORMAT +37 -0
- package/dist/commands/reviewTasks.d.ts +0 -43
- package/dist/commands/reviewTasks.d.ts.map +0 -1
- package/dist/commands/reviewTasks.js.map +0 -1
- package/dist/task/worktree.d.ts +0 -70
- package/dist/task/worktree.d.ts.map +0 -1
- package/dist/task/worktree.js +0 -221
- package/dist/task/worktree.js.map +0 -1
- package/resources/global/en/agents/default/ai-reviewer.md +0 -116
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
9
9
|
# {task} - Original user request
|
|
10
10
|
# {previous_response} - Output from the previous step
|
|
11
|
-
# {git_diff} - Current uncommitted changes (git diff)
|
|
12
11
|
# {user_inputs} - Accumulated user inputs during workflow
|
|
13
12
|
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
14
13
|
|
|
@@ -19,15 +18,22 @@ max_iterations: 5
|
|
|
19
18
|
|
|
20
19
|
steps:
|
|
21
20
|
- name: melchior
|
|
22
|
-
agent:
|
|
21
|
+
agent: ../agents/magi/melchior.md
|
|
23
22
|
allowed_tools:
|
|
24
23
|
- Read
|
|
25
24
|
- Glob
|
|
26
25
|
- Grep
|
|
27
26
|
- WebSearch
|
|
28
27
|
- WebFetch
|
|
29
|
-
|
|
28
|
+
instruction_template: |
|
|
29
|
+
# MAGI System Initiated
|
|
30
30
|
|
|
31
|
+
## Matter for Deliberation
|
|
32
|
+
{task}
|
|
33
|
+
|
|
34
|
+
## Instructions
|
|
35
|
+
You are MELCHIOR-1 of the MAGI System.
|
|
36
|
+
Analyze the above from the perspective of a scientist/engineer and render your judgment.
|
|
31
37
|
|
|
32
38
|
## Output Format
|
|
33
39
|
|
|
@@ -44,29 +50,31 @@ steps:
|
|
|
44
50
|
|
|
45
51
|
Reason: {Reason for approval}
|
|
46
52
|
```
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## Matter for Deliberation
|
|
51
|
-
{task}
|
|
52
|
-
|
|
53
|
-
## Instructions
|
|
54
|
-
You are MELCHIOR-1 of the MAGI System.
|
|
55
|
-
Analyze the above from the perspective of a scientist/engineer and render your judgment.
|
|
56
|
-
transitions:
|
|
57
|
-
- condition: always
|
|
58
|
-
next_step: balthasar
|
|
53
|
+
rules:
|
|
54
|
+
- condition: Judgment completed
|
|
55
|
+
next: balthasar
|
|
59
56
|
|
|
60
57
|
- name: balthasar
|
|
61
|
-
agent:
|
|
58
|
+
agent: ../agents/magi/balthasar.md
|
|
62
59
|
allowed_tools:
|
|
63
60
|
- Read
|
|
64
61
|
- Glob
|
|
65
62
|
- Grep
|
|
66
63
|
- WebSearch
|
|
67
64
|
- WebFetch
|
|
68
|
-
|
|
65
|
+
instruction_template: |
|
|
66
|
+
# MAGI System Continuing
|
|
69
67
|
|
|
68
|
+
## Matter for Deliberation
|
|
69
|
+
{task}
|
|
70
|
+
|
|
71
|
+
## MELCHIOR-1's Judgment
|
|
72
|
+
{previous_response}
|
|
73
|
+
|
|
74
|
+
## Instructions
|
|
75
|
+
You are BALTHASAR-2 of the MAGI System.
|
|
76
|
+
Analyze the above from the perspective of a nurturer and render your judgment.
|
|
77
|
+
Consider MELCHIOR's judgment as reference, but make your own independent assessment.
|
|
70
78
|
|
|
71
79
|
## Output Format
|
|
72
80
|
|
|
@@ -83,34 +91,33 @@ steps:
|
|
|
83
91
|
|
|
84
92
|
Reason: {Reason for approval}
|
|
85
93
|
```
|
|
86
|
-
instruction_template: |
|
|
87
|
-
# MAGI System Continuing
|
|
88
|
-
|
|
89
|
-
## Matter for Deliberation
|
|
90
|
-
{task}
|
|
91
|
-
|
|
92
|
-
## MELCHIOR-1's Judgment
|
|
93
|
-
{previous_response}
|
|
94
|
-
|
|
95
|
-
## Instructions
|
|
96
|
-
You are BALTHASAR-2 of the MAGI System.
|
|
97
|
-
Analyze the above from the perspective of a nurturer and render your judgment.
|
|
98
|
-
Consider MELCHIOR's judgment as reference, but make your own independent assessment.
|
|
99
94
|
pass_previous_response: true
|
|
100
|
-
|
|
101
|
-
- condition:
|
|
102
|
-
|
|
95
|
+
rules:
|
|
96
|
+
- condition: Judgment completed
|
|
97
|
+
next: casper
|
|
103
98
|
|
|
104
99
|
- name: casper
|
|
105
|
-
agent:
|
|
100
|
+
agent: ../agents/magi/casper.md
|
|
106
101
|
allowed_tools:
|
|
107
102
|
- Read
|
|
108
103
|
- Glob
|
|
109
104
|
- Grep
|
|
110
105
|
- WebSearch
|
|
111
106
|
- WebFetch
|
|
112
|
-
|
|
107
|
+
instruction_template: |
|
|
108
|
+
# MAGI System Final Deliberation
|
|
109
|
+
|
|
110
|
+
## Matter for Deliberation
|
|
111
|
+
{task}
|
|
112
|
+
|
|
113
|
+
## Previous Judgments
|
|
114
|
+
{previous_response}
|
|
115
|
+
|
|
116
|
+
## Instructions
|
|
117
|
+
You are CASPER-3 of the MAGI System.
|
|
118
|
+
Analyze the above from a practical/realistic perspective and render your judgment.
|
|
113
119
|
|
|
120
|
+
**Finally, tally the judgments from all three and provide the final conclusion.**
|
|
114
121
|
|
|
115
122
|
## Output Format
|
|
116
123
|
|
|
@@ -137,21 +144,7 @@ steps:
|
|
|
137
144
|
|
|
138
145
|
[Reasoning/Summary]
|
|
139
146
|
```
|
|
140
|
-
instruction_template: |
|
|
141
|
-
# MAGI System Final Deliberation
|
|
142
|
-
|
|
143
|
-
## Matter for Deliberation
|
|
144
|
-
{task}
|
|
145
|
-
|
|
146
|
-
## Previous Judgments
|
|
147
|
-
{previous_response}
|
|
148
|
-
|
|
149
|
-
## Instructions
|
|
150
|
-
You are CASPER-3 of the MAGI System.
|
|
151
|
-
Analyze the above from a practical/realistic perspective and render your judgment.
|
|
152
|
-
|
|
153
|
-
**Finally, tally the judgments from all three and provide the final conclusion.**
|
|
154
147
|
pass_previous_response: true
|
|
155
|
-
|
|
156
|
-
- condition:
|
|
157
|
-
|
|
148
|
+
rules:
|
|
149
|
+
- condition: Final judgment completed
|
|
150
|
+
next: COMPLETE
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
# {step_iteration} - Per-step iteration count (how many times THIS step has been executed)
|
|
13
13
|
# {task} - Original user request
|
|
14
14
|
# {previous_response} - Output from the previous step
|
|
15
|
-
# {git_diff} - Current uncommitted changes (git diff)
|
|
16
15
|
# {user_inputs} - Accumulated user inputs during workflow
|
|
17
16
|
# {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
18
17
|
|
|
@@ -23,37 +22,13 @@ max_iterations: 10
|
|
|
23
22
|
|
|
24
23
|
steps:
|
|
25
24
|
- name: plan
|
|
26
|
-
agent:
|
|
25
|
+
agent: ../agents/research/planner.md
|
|
27
26
|
allowed_tools:
|
|
28
27
|
- Read
|
|
29
28
|
- Glob
|
|
30
29
|
- Grep
|
|
31
30
|
- WebSearch
|
|
32
31
|
- WebFetch
|
|
33
|
-
status_rules_prompt: |
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## Output Format
|
|
37
|
-
|
|
38
|
-
| Situation | Tag |
|
|
39
|
-
|-----------|-----|
|
|
40
|
-
| Plan complete | `[PLANNER:DONE]` |
|
|
41
|
-
| Insufficient info | `[PLANNER:BLOCKED]` |
|
|
42
|
-
|
|
43
|
-
### Output Examples
|
|
44
|
-
|
|
45
|
-
**DONE case:**
|
|
46
|
-
```
|
|
47
|
-
[PLANNER:DONE]
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**BLOCKED case:**
|
|
51
|
-
```
|
|
52
|
-
[PLANNER:BLOCKED]
|
|
53
|
-
|
|
54
|
-
Clarifications needed:
|
|
55
|
-
- {Question 1}
|
|
56
|
-
```
|
|
57
32
|
instruction_template: |
|
|
58
33
|
## Workflow Status
|
|
59
34
|
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
@@ -77,43 +52,20 @@ steps:
|
|
|
77
52
|
- If multiple interpretations exist, include all in the research scope
|
|
78
53
|
- If there is feedback from Supervisor, incorporate it into the plan
|
|
79
54
|
pass_previous_response: true
|
|
80
|
-
|
|
81
|
-
- condition:
|
|
82
|
-
|
|
83
|
-
- condition:
|
|
84
|
-
|
|
55
|
+
rules:
|
|
56
|
+
- condition: Planning is complete
|
|
57
|
+
next: dig
|
|
58
|
+
- condition: Insufficient information to create a plan
|
|
59
|
+
next: ABORT
|
|
85
60
|
|
|
86
61
|
- name: dig
|
|
87
|
-
agent:
|
|
62
|
+
agent: ../agents/research/digger.md
|
|
88
63
|
allowed_tools:
|
|
89
64
|
- Read
|
|
90
65
|
- Glob
|
|
91
66
|
- Grep
|
|
92
67
|
- WebSearch
|
|
93
68
|
- WebFetch
|
|
94
|
-
status_rules_prompt: |
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## Output Format
|
|
98
|
-
|
|
99
|
-
| Situation | Tag |
|
|
100
|
-
|-----------|-----|
|
|
101
|
-
| Research complete | `[DIGGER:DONE]` |
|
|
102
|
-
| Unable to research | `[DIGGER:BLOCKED]` |
|
|
103
|
-
|
|
104
|
-
### Output Examples
|
|
105
|
-
|
|
106
|
-
**DONE case:**
|
|
107
|
-
```
|
|
108
|
-
[DIGGER:DONE]
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**BLOCKED case:**
|
|
112
|
-
```
|
|
113
|
-
[DIGGER:BLOCKED]
|
|
114
|
-
|
|
115
|
-
Reason: {Why research was not possible}
|
|
116
|
-
```
|
|
117
69
|
instruction_template: |
|
|
118
70
|
## Workflow Status
|
|
119
71
|
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
@@ -142,53 +94,20 @@ steps:
|
|
|
142
94
|
- Codebase search
|
|
143
95
|
- File reading
|
|
144
96
|
pass_previous_response: true
|
|
145
|
-
|
|
146
|
-
- condition:
|
|
147
|
-
|
|
148
|
-
- condition:
|
|
149
|
-
|
|
97
|
+
rules:
|
|
98
|
+
- condition: Research is complete
|
|
99
|
+
next: supervise
|
|
100
|
+
- condition: Unable to conduct research
|
|
101
|
+
next: ABORT
|
|
150
102
|
|
|
151
103
|
- name: supervise
|
|
152
|
-
agent:
|
|
104
|
+
agent: ../agents/research/supervisor.md
|
|
153
105
|
allowed_tools:
|
|
154
106
|
- Read
|
|
155
107
|
- Glob
|
|
156
108
|
- Grep
|
|
157
109
|
- WebSearch
|
|
158
110
|
- WebFetch
|
|
159
|
-
status_rules_prompt: |
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
## Judgment Criteria
|
|
163
|
-
|
|
164
|
-
| Situation | Judgment |
|
|
165
|
-
|-----------|----------|
|
|
166
|
-
| Research results sufficient | APPROVE |
|
|
167
|
-
| Research results insufficient | REJECT |
|
|
168
|
-
|
|
169
|
-
## Output Format
|
|
170
|
-
|
|
171
|
-
| Situation | Tag |
|
|
172
|
-
|-----------|-----|
|
|
173
|
-
| Research complete, results sufficient | `[SUPERVISOR:APPROVE]` |
|
|
174
|
-
| Insufficient, restart from planning | `[SUPERVISOR:REJECT]` |
|
|
175
|
-
|
|
176
|
-
### Output Examples
|
|
177
|
-
|
|
178
|
-
**APPROVE case:**
|
|
179
|
-
```
|
|
180
|
-
[SUPERVISOR:APPROVE]
|
|
181
|
-
|
|
182
|
-
Research results adequately answer the original request.
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
**REJECT case:**
|
|
186
|
-
```
|
|
187
|
-
[SUPERVISOR:REJECT]
|
|
188
|
-
|
|
189
|
-
Missing:
|
|
190
|
-
- {Specific missing items}
|
|
191
|
-
```
|
|
192
111
|
instruction_template: |
|
|
193
112
|
## Workflow Status
|
|
194
113
|
- Iteration: {iteration}/{max_iterations} (workflow-wide)
|
|
@@ -206,10 +125,10 @@ steps:
|
|
|
206
125
|
|
|
207
126
|
**Important**: If there are issues, include specific instructions for the Planner.
|
|
208
127
|
pass_previous_response: true
|
|
209
|
-
|
|
210
|
-
- condition:
|
|
211
|
-
|
|
212
|
-
- condition:
|
|
213
|
-
|
|
128
|
+
rules:
|
|
129
|
+
- condition: Research results adequately answer the original request
|
|
130
|
+
next: COMPLETE
|
|
131
|
+
- condition: Research results are insufficient and replanning is needed
|
|
132
|
+
next: plan
|
|
214
133
|
|
|
215
134
|
initial_step: plan
|