agentweaver 0.1.9 → 0.1.10
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 +60 -28
- package/dist/artifacts.js +1 -1
- package/dist/errors.js +7 -0
- package/dist/index.js +66 -34
- package/dist/interactive-ui.js +351 -44
- package/dist/pipeline/declarative-flows.js +7 -4
- package/dist/pipeline/flow-catalog.js +28 -21
- package/dist/pipeline/flow-specs/opencode/auto-opencode.json +1365 -0
- package/dist/pipeline/flow-specs/opencode/bugz/bug-analyze-opencode.json +382 -0
- package/dist/pipeline/flow-specs/opencode/bugz/bug-fix-opencode.json +56 -0
- package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-diff-review-opencode.json +308 -0
- package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-review-opencode.json +437 -0
- package/dist/pipeline/flow-specs/opencode/gitlab/mr-description-opencode.json +117 -0
- package/dist/pipeline/flow-specs/opencode/go/run-go-linter-loop-opencode.json +321 -0
- package/dist/pipeline/flow-specs/opencode/go/run-go-tests-loop-opencode.json +321 -0
- package/dist/pipeline/flow-specs/opencode/implement-opencode.json +64 -0
- package/dist/pipeline/flow-specs/{plan-opencode.json → opencode/plan-opencode.json} +4 -4
- package/dist/pipeline/flow-specs/opencode/review/review-fix-opencode.json +209 -0
- package/dist/pipeline/flow-specs/opencode/review/review-opencode.json +452 -0
- package/dist/pipeline/flow-specs/opencode/task-describe-opencode.json +148 -0
- package/dist/pipeline/spec-loader.js +18 -7
- package/dist/runtime/process-runner.js +45 -1
- package/package.json +1 -1
- package/dist/pipeline/flow-specs/preflight.json +0 -206
- package/dist/pipeline/flow-specs/run-linter-loop.json +0 -155
- package/dist/pipeline/flow-specs/run-tests-loop.json +0 -155
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "implement-flow",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"phases": [
|
|
5
|
+
{
|
|
6
|
+
"id": "implement",
|
|
7
|
+
"steps": [
|
|
8
|
+
{
|
|
9
|
+
"id": "run_codex_implement",
|
|
10
|
+
"node": "opencode-prompt",
|
|
11
|
+
"prompt": {
|
|
12
|
+
"templateRef": "implement",
|
|
13
|
+
"vars": {
|
|
14
|
+
"design_file": {
|
|
15
|
+
"artifact": {
|
|
16
|
+
"kind": "design-file",
|
|
17
|
+
"taskKey": {
|
|
18
|
+
"ref": "params.taskKey"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"design_json_file": {
|
|
23
|
+
"artifact": {
|
|
24
|
+
"kind": "design-json-file",
|
|
25
|
+
"taskKey": {
|
|
26
|
+
"ref": "params.taskKey"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"plan_file": {
|
|
31
|
+
"artifact": {
|
|
32
|
+
"kind": "plan-file",
|
|
33
|
+
"taskKey": {
|
|
34
|
+
"ref": "params.taskKey"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"plan_json_file": {
|
|
39
|
+
"artifact": {
|
|
40
|
+
"kind": "plan-json-file",
|
|
41
|
+
"taskKey": {
|
|
42
|
+
"ref": "params.taskKey"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"extraPrompt": {
|
|
48
|
+
"ref": "params.extraPrompt"
|
|
49
|
+
},
|
|
50
|
+
"format": "task-prompt"
|
|
51
|
+
},
|
|
52
|
+
"params": {
|
|
53
|
+
"labelText": {
|
|
54
|
+
"const": "Running OpenCode implementation mode locally"
|
|
55
|
+
},
|
|
56
|
+
"model": {
|
|
57
|
+
"const": "minimax-coding-plan/MiniMax-M2.7"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
-
"node": "
|
|
133
|
+
"node": "opencode-prompt",
|
|
134
134
|
"prompt": {
|
|
135
135
|
"templateRef": "task-summary",
|
|
136
136
|
"vars": {
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
]
|
|
187
187
|
},
|
|
188
188
|
"model": {
|
|
189
|
-
"const": "
|
|
189
|
+
"const": "minimax-coding-plan/MiniMax-M2.7"
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
"expect": [
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
"const": "Generating planning questions"
|
|
303
303
|
},
|
|
304
304
|
"model": {
|
|
305
|
-
"const": "
|
|
305
|
+
"const": "minimax-coding-plan/MiniMax-M2.7"
|
|
306
306
|
},
|
|
307
307
|
"requiredArtifacts": {
|
|
308
308
|
"list": [
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
"const": "Running OpenCode planning mode"
|
|
531
531
|
},
|
|
532
532
|
"model": {
|
|
533
|
-
"const": "
|
|
533
|
+
"const": "minimax-coding-plan/MiniMax-M2.7"
|
|
534
534
|
}
|
|
535
535
|
},
|
|
536
536
|
"expect": [
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "review-fix-flow",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"constants": {
|
|
5
|
+
"autoReviewFixExtraPrompt": "Исправлять только блокеры, критикалы и важные"
|
|
6
|
+
},
|
|
7
|
+
"phases": [
|
|
8
|
+
{
|
|
9
|
+
"id": "review-fix",
|
|
10
|
+
"steps": [
|
|
11
|
+
{
|
|
12
|
+
"id": "build_review_fix_selection_form",
|
|
13
|
+
"node": "review-findings-form",
|
|
14
|
+
"params": {
|
|
15
|
+
"reviewReplyJsonFile": {
|
|
16
|
+
"artifact": {
|
|
17
|
+
"kind": "review-reply-json-file",
|
|
18
|
+
"taskKey": {
|
|
19
|
+
"ref": "params.taskKey"
|
|
20
|
+
},
|
|
21
|
+
"iteration": {
|
|
22
|
+
"ref": "params.latestIteration"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"formId": {
|
|
27
|
+
"const": "review-fix-selection"
|
|
28
|
+
},
|
|
29
|
+
"title": {
|
|
30
|
+
"const": "Review-Fix Selection"
|
|
31
|
+
},
|
|
32
|
+
"description": {
|
|
33
|
+
"const": "Отметьте findings, которые нужно исправить в этой итерации review-fix. Можно включить режим исправления всех findings."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "collect_review_fix_selection",
|
|
39
|
+
"node": "user-input",
|
|
40
|
+
"params": {
|
|
41
|
+
"formId": {
|
|
42
|
+
"ref": "steps.review-fix.build_review_fix_selection_form.value.formId"
|
|
43
|
+
},
|
|
44
|
+
"title": {
|
|
45
|
+
"ref": "steps.review-fix.build_review_fix_selection_form.value.title"
|
|
46
|
+
},
|
|
47
|
+
"description": {
|
|
48
|
+
"ref": "steps.review-fix.build_review_fix_selection_form.value.description"
|
|
49
|
+
},
|
|
50
|
+
"submitLabel": {
|
|
51
|
+
"const": "Run review-fix"
|
|
52
|
+
},
|
|
53
|
+
"fields": {
|
|
54
|
+
"ref": "steps.review-fix.build_review_fix_selection_form.value.fields"
|
|
55
|
+
},
|
|
56
|
+
"outputFile": {
|
|
57
|
+
"ref": "params.reviewFixSelectionJsonFile"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"expect": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "require-structured-artifacts",
|
|
63
|
+
"items": [
|
|
64
|
+
{
|
|
65
|
+
"path": {
|
|
66
|
+
"ref": "params.reviewFixSelectionJsonFile"
|
|
67
|
+
},
|
|
68
|
+
"schemaId": "user-input/v1"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"message": "Review-fix selection input is missing or invalid."
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "run_codex_review_fix",
|
|
77
|
+
"node": "opencode-prompt",
|
|
78
|
+
"prompt": {
|
|
79
|
+
"templateRef": "review-fix",
|
|
80
|
+
"vars": {
|
|
81
|
+
"review_reply_file": {
|
|
82
|
+
"artifact": {
|
|
83
|
+
"kind": "review-reply-file",
|
|
84
|
+
"taskKey": {
|
|
85
|
+
"ref": "params.taskKey"
|
|
86
|
+
},
|
|
87
|
+
"iteration": {
|
|
88
|
+
"ref": "params.latestIteration"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"review_reply_json_file": {
|
|
93
|
+
"artifact": {
|
|
94
|
+
"kind": "review-reply-json-file",
|
|
95
|
+
"taskKey": {
|
|
96
|
+
"ref": "params.taskKey"
|
|
97
|
+
},
|
|
98
|
+
"iteration": {
|
|
99
|
+
"ref": "params.latestIteration"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"items": {
|
|
104
|
+
"ref": "params.reviewFixPoints"
|
|
105
|
+
},
|
|
106
|
+
"review_fix_file": {
|
|
107
|
+
"artifact": {
|
|
108
|
+
"kind": "review-fix-file",
|
|
109
|
+
"taskKey": {
|
|
110
|
+
"ref": "params.taskKey"
|
|
111
|
+
},
|
|
112
|
+
"iteration": {
|
|
113
|
+
"ref": "params.latestIteration"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"review_fix_json_file": {
|
|
118
|
+
"artifact": {
|
|
119
|
+
"kind": "review-fix-json-file",
|
|
120
|
+
"taskKey": {
|
|
121
|
+
"ref": "params.taskKey"
|
|
122
|
+
},
|
|
123
|
+
"iteration": {
|
|
124
|
+
"ref": "params.latestIteration"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"extraPrompt": {
|
|
130
|
+
"appendPrompt": {
|
|
131
|
+
"base": {
|
|
132
|
+
"ref": "params.extraPrompt"
|
|
133
|
+
},
|
|
134
|
+
"suffix": {
|
|
135
|
+
"ref": "steps.review-fix.collect_review_fix_selection.value.promptSuffix"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"format": "task-prompt"
|
|
140
|
+
},
|
|
141
|
+
"params": {
|
|
142
|
+
"labelText": {
|
|
143
|
+
"template": "Running OpenCode review-fix mode locally (iteration {iteration})",
|
|
144
|
+
"vars": {
|
|
145
|
+
"iteration": {
|
|
146
|
+
"ref": "params.latestIteration"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"model": {
|
|
151
|
+
"const": "minimax-coding-plan/MiniMax-M2.7"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"expect": [
|
|
155
|
+
{
|
|
156
|
+
"kind": "require-artifacts",
|
|
157
|
+
"when": {
|
|
158
|
+
"not": {
|
|
159
|
+
"ref": "context.dryRun"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"paths": {
|
|
163
|
+
"list": [
|
|
164
|
+
{
|
|
165
|
+
"artifact": {
|
|
166
|
+
"kind": "review-fix-file",
|
|
167
|
+
"taskKey": {
|
|
168
|
+
"ref": "params.taskKey"
|
|
169
|
+
},
|
|
170
|
+
"iteration": {
|
|
171
|
+
"ref": "params.latestIteration"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"message": "Review-fix mode did not produce the required review-fix artifact."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "require-structured-artifacts",
|
|
181
|
+
"when": {
|
|
182
|
+
"not": {
|
|
183
|
+
"ref": "context.dryRun"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"items": [
|
|
187
|
+
{
|
|
188
|
+
"path": {
|
|
189
|
+
"artifact": {
|
|
190
|
+
"kind": "review-fix-json-file",
|
|
191
|
+
"taskKey": {
|
|
192
|
+
"ref": "params.taskKey"
|
|
193
|
+
},
|
|
194
|
+
"iteration": {
|
|
195
|
+
"ref": "params.latestIteration"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"schemaId": "review-fix-report/v1"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"message": "Review-fix mode produced invalid structured artifacts."
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|