agentweaver 0.1.15 → 0.1.17
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 +76 -19
- package/dist/artifact-manifest.js +219 -0
- package/dist/artifacts.js +88 -3
- package/dist/doctor/checks/env-diagnostics.js +25 -0
- package/dist/doctor/checks/executors.js +2 -2
- package/dist/doctor/checks/flow-readiness.js +15 -18
- package/dist/flow-state.js +212 -15
- package/dist/index.js +539 -209
- package/dist/interactive/blessed-session.js +361 -0
- package/dist/interactive/controller.js +1326 -0
- package/dist/interactive/create-interactive-session.js +5 -0
- package/dist/interactive/ink/index.js +597 -0
- package/dist/interactive/progress.js +245 -0
- package/dist/interactive/selectors.js +14 -0
- package/dist/interactive/session.js +1 -0
- package/dist/interactive/state.js +34 -0
- package/dist/interactive/tree.js +155 -0
- package/dist/interactive/types.js +1 -0
- package/dist/interactive/view-model.js +1 -0
- package/dist/interactive-ui.js +159 -194
- package/dist/pipeline/auto-flow.js +9 -6
- package/dist/pipeline/context.js +7 -5
- package/dist/pipeline/declarative-flow-runner.js +212 -6
- package/dist/pipeline/declarative-flows.js +63 -17
- package/dist/pipeline/execution-routing-config.js +15 -0
- package/dist/pipeline/flow-catalog.js +50 -12
- package/dist/pipeline/flow-run-resume.js +29 -0
- package/dist/pipeline/flow-specs/auto-common.json +90 -360
- package/dist/pipeline/flow-specs/auto-golang.json +81 -360
- package/dist/pipeline/flow-specs/auto-simple.json +141 -0
- package/dist/pipeline/flow-specs/bugz/bug-analyze.json +2 -0
- package/dist/pipeline/flow-specs/bugz/bug-fix.json +1 -0
- package/dist/pipeline/flow-specs/design-review/design-review-loop.json +316 -0
- package/dist/pipeline/flow-specs/design-review.json +10 -0
- package/dist/pipeline/flow-specs/gitlab/gitlab-diff-review.json +11 -0
- package/dist/pipeline/flow-specs/gitlab/gitlab-review.json +2 -0
- package/dist/pipeline/flow-specs/gitlab/mr-description.json +1 -0
- package/dist/pipeline/flow-specs/go/run-go-linter-loop.json +2 -0
- package/dist/pipeline/flow-specs/go/run-go-tests-loop.json +2 -0
- package/dist/pipeline/flow-specs/implement.json +13 -6
- package/dist/pipeline/flow-specs/instant-task.json +177 -0
- package/dist/pipeline/flow-specs/normalize-task-source.json +311 -0
- package/dist/pipeline/flow-specs/plan-revise.json +7 -1
- package/dist/pipeline/flow-specs/plan.json +51 -71
- package/dist/pipeline/flow-specs/review/review-fix.json +24 -4
- package/dist/pipeline/flow-specs/review/review-loop.json +351 -45
- package/dist/pipeline/flow-specs/review/review-project-loop.json +590 -0
- package/dist/pipeline/flow-specs/review/review-project.json +12 -0
- package/dist/pipeline/flow-specs/review/review.json +37 -31
- package/dist/pipeline/flow-specs/task-describe.json +2 -0
- package/dist/pipeline/flow-specs/task-source/jira-fetch.json +70 -0
- package/dist/pipeline/flow-specs/task-source/manual-input.json +216 -0
- package/dist/pipeline/launch-profile-config.js +30 -18
- package/dist/pipeline/node-contract.js +1 -0
- package/dist/pipeline/node-registry.js +115 -6
- package/dist/pipeline/node-runner.js +3 -2
- package/dist/pipeline/nodes/build-review-fix-prompt-node.js +5 -1
- package/dist/pipeline/nodes/clear-ready-to-merge-node.js +11 -0
- package/dist/pipeline/nodes/commit-message-form-node.js +8 -0
- package/dist/pipeline/nodes/design-review-verdict-node.js +36 -0
- package/dist/pipeline/nodes/ensure-summary-json-node.js +13 -2
- package/dist/pipeline/nodes/fetch-gitlab-diff-node.js +19 -2
- package/dist/pipeline/nodes/fetch-gitlab-review-node.js +19 -2
- package/dist/pipeline/nodes/flow-run-node.js +242 -8
- package/dist/pipeline/nodes/git-commit-form-node.js +8 -0
- package/dist/pipeline/nodes/gitlab-review-artifacts-node.js +19 -2
- package/dist/pipeline/nodes/jira-fetch-node.js +50 -4
- package/dist/pipeline/nodes/llm-prompt-node.js +38 -36
- package/dist/pipeline/nodes/planning-bundle-node.js +10 -0
- package/dist/pipeline/nodes/review-verdict-node.js +86 -0
- package/dist/pipeline/nodes/select-files-form-node.js +8 -0
- package/dist/pipeline/nodes/structured-summary-node.js +24 -0
- package/dist/pipeline/nodes/user-input-node.js +38 -3
- package/dist/pipeline/nodes/write-selection-file-node.js +20 -4
- package/dist/pipeline/plugin-loader.js +389 -0
- package/dist/pipeline/plugin-types.js +1 -0
- package/dist/pipeline/prompt-registry.js +3 -1
- package/dist/pipeline/prompt-runtime.js +4 -1
- package/dist/pipeline/registry.js +71 -4
- package/dist/pipeline/review-iteration.js +26 -0
- package/dist/pipeline/spec-compiler.js +3 -0
- package/dist/pipeline/spec-loader.js +14 -0
- package/dist/pipeline/spec-types.js +3 -0
- package/dist/pipeline/spec-validator.js +20 -0
- package/dist/pipeline/value-resolver.js +76 -2
- package/dist/plugin-sdk.js +1 -0
- package/dist/prompts.js +36 -14
- package/dist/review-severity.js +45 -0
- package/dist/runtime/artifact-registry.js +405 -0
- package/dist/runtime/design-review-input-contract.js +17 -16
- package/dist/runtime/env-loader.js +3 -0
- package/dist/runtime/execution-routing-store.js +134 -0
- package/dist/runtime/execution-routing.js +233 -0
- package/dist/runtime/interactive-execution-routing.js +471 -0
- package/dist/runtime/plan-revise-input-contract.js +35 -32
- package/dist/runtime/planning-bundle.js +123 -0
- package/dist/runtime/ready-to-merge.js +22 -1
- package/dist/runtime/review-input-contract.js +100 -0
- package/dist/structured-artifact-schema-registry.js +9 -0
- package/dist/structured-artifact-schemas.json +140 -1
- package/dist/structured-artifacts.js +77 -6
- package/dist/user-input.js +70 -3
- package/docs/example/.flows/examples/claude-example.json +50 -0
- package/docs/example/.plugins/claude-example-plugin/index.js +149 -0
- package/docs/example/.plugins/claude-example-plugin/plugin.json +8 -0
- package/docs/examples/.flows/claude-example.json +50 -0
- package/docs/examples/.plugins/claude-example-plugin/index.js +149 -0
- package/docs/examples/.plugins/claude-example-plugin/plugin.json +8 -0
- package/docs/plugin-sdk.md +731 -0
- package/package.json +11 -4
|
@@ -1,396 +1,115 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "auto-flow",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"description": "End-to-end resumable pipeline for Go projects. Runs the full sequence:
|
|
4
|
+
"description": "End-to-end resumable pipeline for Go projects. Runs the full sequence: Jira fetch → task source normalization → plan → design-review loop → implement → linter loop → test loop → review loop → final linter loop → final test loop. Supports --from to restart from a specific phase and auto-status/auto-reset for state management.",
|
|
5
5
|
"constants": {
|
|
6
6
|
"autoReviewFixExtraPrompt": "Fix only blockers, criticals, and important findings"
|
|
7
7
|
},
|
|
8
8
|
"phases": [
|
|
9
9
|
{
|
|
10
|
-
"id": "
|
|
10
|
+
"id": "source",
|
|
11
11
|
"steps": [
|
|
12
12
|
{
|
|
13
|
-
"id": "
|
|
14
|
-
"node": "
|
|
13
|
+
"id": "fetch_jira_source",
|
|
14
|
+
"node": "flow-run",
|
|
15
15
|
"params": {
|
|
16
|
+
"fileName": { "const": "jira-fetch.json" },
|
|
17
|
+
"labelText": { "const": "Fetching Jira task source" },
|
|
16
18
|
"jiraApiUrl": { "ref": "params.jiraApiUrl" },
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"kind": "jira-attachments-manifest-file",
|
|
26
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"attachmentsContextFile": {
|
|
30
|
-
"artifact": {
|
|
31
|
-
"kind": "jira-attachments-context-file",
|
|
32
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"expect": [
|
|
37
|
-
{
|
|
38
|
-
"kind": "require-file",
|
|
39
|
-
"path": {
|
|
40
|
-
"artifact": {
|
|
41
|
-
"kind": "jira-task-file",
|
|
42
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"message": "Jira fetch node did not produce the Jira task file."
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"kind": "require-file",
|
|
49
|
-
"path": {
|
|
50
|
-
"artifact": {
|
|
51
|
-
"kind": "jira-attachments-manifest-file",
|
|
52
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"message": "Jira fetch node did not produce the Jira attachments manifest file."
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"kind": "require-file",
|
|
59
|
-
"path": {
|
|
60
|
-
"artifact": {
|
|
61
|
-
"kind": "jira-attachments-context-file",
|
|
62
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"message": "Jira fetch node did not produce the Jira attachments context file."
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"id": "generate_planning_questions",
|
|
71
|
-
"node": "llm-prompt",
|
|
72
|
-
"prompt": {
|
|
73
|
-
"templateRef": "plan-questions",
|
|
74
|
-
"vars": {
|
|
75
|
-
"jira_task_file": {
|
|
76
|
-
"artifact": {
|
|
77
|
-
"kind": "jira-task-file",
|
|
78
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"jira_attachments_manifest_file": {
|
|
82
|
-
"artifact": {
|
|
83
|
-
"kind": "jira-attachments-manifest-file",
|
|
84
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"jira_attachments_context_file": {
|
|
88
|
-
"artifact": {
|
|
89
|
-
"kind": "jira-attachments-context-file",
|
|
90
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"planning_questions_json_file": {
|
|
94
|
-
"artifact": {
|
|
95
|
-
"kind": "planning-questions-json-file",
|
|
96
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
101
|
-
"format": "task-prompt"
|
|
102
|
-
},
|
|
103
|
-
"params": {
|
|
104
|
-
"labelText": { "const": "Generating planning questions" },
|
|
105
|
-
"model": { "ref": "params.llmModel" },
|
|
106
|
-
"executor": { "ref": "params.llmExecutor" },
|
|
107
|
-
"requiredArtifacts": {
|
|
108
|
-
"list": [
|
|
109
|
-
{
|
|
110
|
-
"artifact": {
|
|
111
|
-
"kind": "planning-questions-json-file",
|
|
112
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"expect": [
|
|
119
|
-
{
|
|
120
|
-
"kind": "require-artifacts",
|
|
121
|
-
"when": { "not": { "ref": "context.dryRun" } },
|
|
122
|
-
"paths": {
|
|
123
|
-
"list": [
|
|
124
|
-
{
|
|
125
|
-
"artifact": {
|
|
126
|
-
"kind": "planning-questions-json-file",
|
|
127
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
"message": "Planning questions step did not produce the questions artifact."
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"kind": "require-structured-artifacts",
|
|
136
|
-
"when": { "not": { "ref": "context.dryRun" } },
|
|
137
|
-
"items": [
|
|
138
|
-
{
|
|
139
|
-
"path": {
|
|
140
|
-
"artifact": {
|
|
141
|
-
"kind": "planning-questions-json-file",
|
|
142
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"schemaId": "planning-questions/v1"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"message": "Planning questions step produced invalid structured artifacts."
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
19
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "normalize",
|
|
26
|
+
"steps": [
|
|
152
27
|
{
|
|
153
|
-
"id": "
|
|
154
|
-
"node": "
|
|
28
|
+
"id": "run_normalize_source",
|
|
29
|
+
"node": "flow-run",
|
|
155
30
|
"params": {
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
"
|
|
163
|
-
"title": { "const": "Planning Questions" },
|
|
164
|
-
"description": {
|
|
165
|
-
"const": "Reply to model questions if they are needed for accurate design and plan. If there are no questions, the step will complete automatically."
|
|
166
|
-
}
|
|
31
|
+
"fileName": { "const": "normalize-task-source.json" },
|
|
32
|
+
"labelText": { "const": "Normalizing task source" },
|
|
33
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
34
|
+
"iteration": { "ref": "params.taskContextIteration" },
|
|
35
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
36
|
+
"llmModel": { "ref": "params.llmModel" },
|
|
37
|
+
"extraPrompt": { "ref": "params.extraPrompt" }
|
|
167
38
|
}
|
|
168
|
-
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "plan",
|
|
44
|
+
"steps": [
|
|
169
45
|
{
|
|
170
|
-
"id": "
|
|
171
|
-
"
|
|
172
|
-
"node": "telegram-notify",
|
|
46
|
+
"id": "run_plan_flow",
|
|
47
|
+
"node": "flow-run",
|
|
173
48
|
"params": {
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
49
|
+
"fileName": { "const": "plan.json" },
|
|
50
|
+
"labelText": { "const": "Running planning flow" },
|
|
51
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
52
|
+
"taskContextIteration": { "ref": "params.taskContextIteration" },
|
|
53
|
+
"designIteration": { "ref": "params.designIteration" },
|
|
54
|
+
"planIteration": { "ref": "params.planIteration" },
|
|
55
|
+
"qaIteration": { "ref": "params.qaIteration" },
|
|
56
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
57
|
+
"llmModel": { "ref": "params.llmModel" },
|
|
58
|
+
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
59
|
+
"mdLang": { "ref": "params.mdLang" }
|
|
180
60
|
}
|
|
181
|
-
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "design_review_loop",
|
|
66
|
+
"steps": [
|
|
182
67
|
{
|
|
183
|
-
"id": "
|
|
184
|
-
"node": "
|
|
68
|
+
"id": "run_design_review_loop",
|
|
69
|
+
"node": "flow-run",
|
|
185
70
|
"params": {
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"expect": [
|
|
199
|
-
{
|
|
200
|
-
"kind": "require-structured-artifacts",
|
|
201
|
-
"items": [
|
|
202
|
-
{
|
|
203
|
-
"path": {
|
|
204
|
-
"artifact": {
|
|
205
|
-
"kind": "planning-answers-json-file",
|
|
206
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"schemaId": "user-input/v1"
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
"message": "Planning answers input is missing or invalid."
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"id": "run_plan",
|
|
218
|
-
"node": "llm-prompt",
|
|
219
|
-
"prompt": {
|
|
220
|
-
"templateRef": "plan",
|
|
221
|
-
"vars": {
|
|
222
|
-
"jira_task_file": {
|
|
223
|
-
"artifact": {
|
|
224
|
-
"kind": "jira-task-file",
|
|
225
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"jira_attachments_manifest_file": {
|
|
229
|
-
"artifact": {
|
|
230
|
-
"kind": "jira-attachments-manifest-file",
|
|
231
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
"jira_attachments_context_file": {
|
|
235
|
-
"artifact": {
|
|
236
|
-
"kind": "jira-attachments-context-file",
|
|
237
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"design_file": {
|
|
241
|
-
"artifact": {
|
|
242
|
-
"kind": "design-file",
|
|
243
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
244
|
-
"iteration": { "ref": "params.designIteration" }
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"design_json_file": {
|
|
248
|
-
"artifact": {
|
|
249
|
-
"kind": "design-json-file",
|
|
250
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
251
|
-
"iteration": { "ref": "params.designIteration" }
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"plan_file": {
|
|
255
|
-
"artifact": {
|
|
256
|
-
"kind": "plan-file",
|
|
257
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
258
|
-
"iteration": { "ref": "params.planIteration" }
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"plan_json_file": {
|
|
262
|
-
"artifact": {
|
|
263
|
-
"kind": "plan-json-file",
|
|
264
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
265
|
-
"iteration": { "ref": "params.planIteration" }
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"qa_file": {
|
|
269
|
-
"artifact": {
|
|
270
|
-
"kind": "qa-file",
|
|
271
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
272
|
-
"iteration": { "ref": "params.qaIteration" }
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
"qa_json_file": {
|
|
276
|
-
"artifact": {
|
|
277
|
-
"kind": "qa-json-file",
|
|
278
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
279
|
-
"iteration": { "ref": "params.qaIteration" }
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
"extraPrompt": {
|
|
284
|
-
"appendPrompt": {
|
|
285
|
-
"base": { "ref": "params.extraPrompt" },
|
|
286
|
-
"suffix": { "ref": "steps.plan.collect_planning_answers.value.promptSuffix" }
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"format": "task-prompt"
|
|
71
|
+
"fileName": { "const": "design-review-loop.json" },
|
|
72
|
+
"labelText": { "const": "Running design-review loop" },
|
|
73
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
74
|
+
"baseIteration": { "ref": "params.designReviewBaseIteration" },
|
|
75
|
+
"workspaceDir": { "ref": "params.workspaceDir" },
|
|
76
|
+
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
77
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
78
|
+
"llmModel": { "ref": "params.llmModel" }
|
|
290
79
|
},
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
80
|
+
"stopFlowIf": {
|
|
81
|
+
"equals": [
|
|
82
|
+
{ "ref": "steps.design_review_loop.run_design_review_loop.value.executionState.terminationOutcome" },
|
|
83
|
+
{ "const": "stopped" }
|
|
84
|
+
]
|
|
295
85
|
},
|
|
296
|
-
"
|
|
297
|
-
{
|
|
298
|
-
"kind": "require-artifacts",
|
|
299
|
-
"when": { "not": { "ref": "context.dryRun" } },
|
|
300
|
-
"paths": {
|
|
301
|
-
"artifactList": {
|
|
302
|
-
"kind": "plan-artifacts",
|
|
303
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
"message": "Plan mode did not produce the required artifacts."
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"kind": "require-structured-artifacts",
|
|
310
|
-
"when": { "not": { "ref": "context.dryRun" } },
|
|
311
|
-
"items": [
|
|
312
|
-
{
|
|
313
|
-
"path": {
|
|
314
|
-
"artifact": {
|
|
315
|
-
"kind": "design-json-file",
|
|
316
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
317
|
-
"iteration": { "ref": "params.designIteration" }
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"schemaId": "implementation-design/v1"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"path": {
|
|
324
|
-
"artifact": {
|
|
325
|
-
"kind": "plan-json-file",
|
|
326
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
327
|
-
"iteration": { "ref": "params.planIteration" }
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
"schemaId": "implementation-plan/v1"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"path": {
|
|
334
|
-
"artifact": {
|
|
335
|
-
"kind": "qa-json-file",
|
|
336
|
-
"taskKey": { "ref": "params.taskKey" },
|
|
337
|
-
"iteration": { "ref": "params.qaIteration" }
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"schemaId": "qa-plan/v1"
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"message": "Plan mode produced invalid structured artifacts."
|
|
344
|
-
}
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"id": "notify_plan_complete",
|
|
349
|
-
"node": "telegram-notify",
|
|
350
|
-
"params": {
|
|
351
|
-
"message": {
|
|
352
|
-
"template": "Plan phase for {taskKey} complete.",
|
|
353
|
-
"vars": {
|
|
354
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
86
|
+
"stopFlowOutcome": "stopped"
|
|
358
87
|
}
|
|
359
88
|
]
|
|
360
89
|
},
|
|
361
90
|
{
|
|
362
91
|
"id": "implement",
|
|
363
92
|
"steps": [
|
|
93
|
+
{
|
|
94
|
+
"id": "resolve_planning_bundle",
|
|
95
|
+
"node": "planning-bundle",
|
|
96
|
+
"params": {
|
|
97
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
98
|
+
}
|
|
99
|
+
},
|
|
364
100
|
{
|
|
365
101
|
"id": "run_implement",
|
|
366
102
|
"node": "llm-prompt",
|
|
103
|
+
"routingGroup": "implementation",
|
|
367
104
|
"prompt": {
|
|
368
105
|
"templateRef": "implement",
|
|
369
106
|
"vars": {
|
|
370
|
-
"design_file": {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
"design_json_file": {
|
|
377
|
-
"artifact": {
|
|
378
|
-
"kind": "design-json-file",
|
|
379
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
"plan_file": {
|
|
383
|
-
"artifact": {
|
|
384
|
-
"kind": "plan-file",
|
|
385
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"plan_json_file": {
|
|
389
|
-
"artifact": {
|
|
390
|
-
"kind": "plan-json-file",
|
|
391
|
-
"taskKey": { "ref": "params.taskKey" }
|
|
392
|
-
}
|
|
393
|
-
}
|
|
107
|
+
"design_file": { "ref": "steps.implement.resolve_planning_bundle.value.designFile" },
|
|
108
|
+
"design_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.designJsonFile" },
|
|
109
|
+
"plan_file": { "ref": "steps.implement.resolve_planning_bundle.value.planFile" },
|
|
110
|
+
"plan_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.planJsonFile" },
|
|
111
|
+
"qa_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaFile" },
|
|
112
|
+
"qa_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaJsonFile" }
|
|
394
113
|
},
|
|
395
114
|
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
396
115
|
"format": "task-prompt"
|
|
@@ -482,9 +201,11 @@
|
|
|
482
201
|
"fileName": { "const": "review-loop.json" },
|
|
483
202
|
"labelText": { "const": "Running review-loop" },
|
|
484
203
|
"taskKey": { "ref": "params.taskKey" },
|
|
204
|
+
"baseIteration": { "ref": "params.baseIteration" },
|
|
485
205
|
"workspaceDir": { "ref": "params.workspaceDir" },
|
|
486
206
|
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
487
207
|
"reviewFixPoints": { "ref": "params.reviewFixPoints" },
|
|
208
|
+
"reviewBlockingSeverities": { "ref": "params.reviewBlockingSeverities" },
|
|
488
209
|
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
489
210
|
"llmModel": { "ref": "params.llmModel" }
|
|
490
211
|
}
|
|
@@ -561,4 +282,4 @@
|
|
|
561
282
|
]
|
|
562
283
|
}
|
|
563
284
|
]
|
|
564
|
-
}
|
|
285
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "auto-flow",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "End-to-end resumable pipeline without language-specific checks. Runs: Jira fetch → task source normalization → plan → implement → review loop. Simplified alternative to auto-golang for projects that do not need Go linter/test loops.",
|
|
5
|
+
"phases": [
|
|
6
|
+
{
|
|
7
|
+
"id": "source",
|
|
8
|
+
"steps": [
|
|
9
|
+
{
|
|
10
|
+
"id": "fetch_jira_source",
|
|
11
|
+
"node": "flow-run",
|
|
12
|
+
"params": {
|
|
13
|
+
"fileName": { "const": "jira-fetch.json" },
|
|
14
|
+
"labelText": { "const": "Fetching Jira task source" },
|
|
15
|
+
"jiraApiUrl": { "ref": "params.jiraApiUrl" },
|
|
16
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "normalize",
|
|
23
|
+
"steps": [
|
|
24
|
+
{
|
|
25
|
+
"id": "run_normalize_source",
|
|
26
|
+
"node": "flow-run",
|
|
27
|
+
"params": {
|
|
28
|
+
"fileName": { "const": "normalize-task-source.json" },
|
|
29
|
+
"labelText": { "const": "Normalizing task source" },
|
|
30
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
31
|
+
"iteration": { "ref": "params.taskContextIteration" },
|
|
32
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
33
|
+
"llmModel": { "ref": "params.llmModel" },
|
|
34
|
+
"extraPrompt": { "ref": "params.extraPrompt" }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "plan",
|
|
41
|
+
"steps": [
|
|
42
|
+
{
|
|
43
|
+
"id": "run_plan_flow",
|
|
44
|
+
"node": "flow-run",
|
|
45
|
+
"params": {
|
|
46
|
+
"fileName": { "const": "plan.json" },
|
|
47
|
+
"labelText": { "const": "Running planning flow" },
|
|
48
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
49
|
+
"taskContextIteration": { "ref": "params.taskContextIteration" },
|
|
50
|
+
"designIteration": { "ref": "params.designIteration" },
|
|
51
|
+
"planIteration": { "ref": "params.planIteration" },
|
|
52
|
+
"qaIteration": { "ref": "params.qaIteration" },
|
|
53
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
54
|
+
"llmModel": { "ref": "params.llmModel" },
|
|
55
|
+
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
56
|
+
"mdLang": { "ref": "params.mdLang" }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "implement",
|
|
63
|
+
"steps": [
|
|
64
|
+
{
|
|
65
|
+
"id": "resolve_planning_bundle",
|
|
66
|
+
"node": "planning-bundle",
|
|
67
|
+
"params": {
|
|
68
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "run_implement",
|
|
73
|
+
"node": "llm-prompt",
|
|
74
|
+
"prompt": {
|
|
75
|
+
"templateRef": "implement",
|
|
76
|
+
"vars": {
|
|
77
|
+
"design_file": { "ref": "steps.implement.resolve_planning_bundle.value.designFile" },
|
|
78
|
+
"design_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.designJsonFile" },
|
|
79
|
+
"plan_file": { "ref": "steps.implement.resolve_planning_bundle.value.planFile" },
|
|
80
|
+
"plan_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.planJsonFile" },
|
|
81
|
+
"qa_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaFile" },
|
|
82
|
+
"qa_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaJsonFile" }
|
|
83
|
+
},
|
|
84
|
+
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
85
|
+
"format": "task-prompt"
|
|
86
|
+
},
|
|
87
|
+
"params": {
|
|
88
|
+
"labelText": { "const": "Running implementation mode locally" },
|
|
89
|
+
"model": { "ref": "params.llmModel" },
|
|
90
|
+
"executor": { "ref": "params.llmExecutor" }
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "notify_implement_complete",
|
|
95
|
+
"node": "telegram-notify",
|
|
96
|
+
"params": {
|
|
97
|
+
"message": {
|
|
98
|
+
"template": "Implementation phase for {taskKey} complete.",
|
|
99
|
+
"vars": {
|
|
100
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "review-loop",
|
|
109
|
+
"steps": [
|
|
110
|
+
{
|
|
111
|
+
"id": "run_review_loop",
|
|
112
|
+
"node": "flow-run",
|
|
113
|
+
"params": {
|
|
114
|
+
"fileName": { "const": "review-loop.json" },
|
|
115
|
+
"labelText": { "const": "Running review-loop" },
|
|
116
|
+
"taskKey": { "ref": "params.taskKey" },
|
|
117
|
+
"baseIteration": { "ref": "params.baseIteration" },
|
|
118
|
+
"workspaceDir": { "ref": "params.workspaceDir" },
|
|
119
|
+
"extraPrompt": { "ref": "params.extraPrompt" },
|
|
120
|
+
"reviewFixPoints": { "ref": "params.reviewFixPoints" },
|
|
121
|
+
"reviewBlockingSeverities": { "ref": "params.reviewBlockingSeverities" },
|
|
122
|
+
"llmExecutor": { "ref": "params.llmExecutor" },
|
|
123
|
+
"llmModel": { "ref": "params.llmModel" }
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "notify_task_complete",
|
|
128
|
+
"node": "telegram-notify",
|
|
129
|
+
"params": {
|
|
130
|
+
"message": {
|
|
131
|
+
"template": "Task {taskKey} complete.",
|
|
132
|
+
"vars": {
|
|
133
|
+
"taskKey": { "ref": "params.taskKey" }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
92
|
"node": "llm-prompt",
|
|
93
|
+
"routingGroup": "planning",
|
|
93
94
|
"prompt": {
|
|
94
95
|
"templateRef": "task-summary",
|
|
95
96
|
"vars": {
|
|
@@ -191,6 +192,7 @@
|
|
|
191
192
|
{
|
|
192
193
|
"id": "run_bug_analyze",
|
|
193
194
|
"node": "llm-prompt",
|
|
195
|
+
"routingGroup": "planning",
|
|
194
196
|
"prompt": {
|
|
195
197
|
"templateRef": "bug-analyze",
|
|
196
198
|
"vars": {
|