agentweaver 0.1.10 → 0.1.11

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.
Files changed (106) hide show
  1. package/README.md +218 -224
  2. package/dist/artifacts.js +100 -55
  3. package/dist/executors/{codex-local-executor.js → codex-executor.js} +4 -4
  4. package/dist/executors/configs/{codex-local-config.js → codex-config.js} +1 -1
  5. package/dist/executors/configs/jira-fetch-config.js +2 -0
  6. package/dist/executors/configs/telegram-notifier-config.js +3 -0
  7. package/dist/executors/fetch-gitlab-diff-executor.js +1 -1
  8. package/dist/executors/fetch-gitlab-review-executor.js +1 -1
  9. package/dist/executors/git-commit-executor.js +25 -0
  10. package/dist/executors/telegram-notifier-executor.js +54 -0
  11. package/dist/flow-state.js +46 -1
  12. package/dist/gitlab.js +13 -8
  13. package/dist/index.js +469 -514
  14. package/dist/interactive-ui.js +144 -43
  15. package/dist/jira.js +52 -5
  16. package/dist/pipeline/auto-flow.js +6 -6
  17. package/dist/pipeline/context.js +1 -0
  18. package/dist/pipeline/flow-catalog.js +34 -4
  19. package/dist/pipeline/flow-model-settings.js +77 -0
  20. package/dist/pipeline/flow-specs/auto-common.json +446 -0
  21. package/dist/pipeline/flow-specs/auto-golang.json +563 -0
  22. package/dist/pipeline/flow-specs/{bug-analyze.json → bugz/bug-analyze.json} +43 -25
  23. package/dist/pipeline/flow-specs/{bug-fix.json → bugz/bug-fix.json} +5 -4
  24. package/dist/pipeline/flow-specs/git-commit.json +196 -0
  25. package/dist/pipeline/flow-specs/{gitlab-diff-review.json → gitlab/gitlab-diff-review.json} +20 -50
  26. package/dist/pipeline/flow-specs/gitlab/gitlab-review.json +165 -0
  27. package/dist/pipeline/flow-specs/{mr-description.json → gitlab/mr-description.json} +17 -10
  28. package/dist/pipeline/flow-specs/{run-go-linter-loop.json → go/run-go-linter-loop.json} +40 -14
  29. package/dist/pipeline/flow-specs/{run-go-tests-loop.json → go/run-go-tests-loop.json} +40 -14
  30. package/dist/pipeline/flow-specs/implement.json +5 -4
  31. package/dist/pipeline/flow-specs/plan.json +40 -148
  32. package/dist/pipeline/flow-specs/{review-fix.json → review/review-fix.json} +73 -13
  33. package/dist/pipeline/flow-specs/review/review-loop.json +280 -0
  34. package/dist/pipeline/flow-specs/review/review-project.json +87 -0
  35. package/dist/pipeline/flow-specs/review/review.json +126 -0
  36. package/dist/pipeline/flow-specs/task-describe.json +191 -11
  37. package/dist/pipeline/launch-profile-config.js +38 -0
  38. package/dist/pipeline/node-registry.js +75 -45
  39. package/dist/pipeline/nodes/build-failure-summary-node.js +16 -29
  40. package/dist/pipeline/nodes/build-review-fix-prompt-node.js +36 -0
  41. package/dist/pipeline/nodes/codex-prompt-node.js +41 -0
  42. package/dist/pipeline/nodes/commit-message-form-node.js +79 -0
  43. package/dist/pipeline/nodes/git-commit-form-node.js +138 -0
  44. package/dist/pipeline/nodes/git-commit-node.js +28 -0
  45. package/dist/pipeline/nodes/git-status-node.js +221 -0
  46. package/dist/pipeline/nodes/gitlab-review-artifacts-node.js +10 -6
  47. package/dist/pipeline/nodes/jira-context-node.js +10 -0
  48. package/dist/pipeline/nodes/llm-prompt-node.js +62 -0
  49. package/dist/pipeline/nodes/plan-codex-node.js +1 -1
  50. package/dist/pipeline/nodes/read-file-node.js +11 -0
  51. package/dist/pipeline/nodes/review-findings-form-node.js +18 -14
  52. package/dist/pipeline/nodes/select-files-form-node.js +72 -0
  53. package/dist/pipeline/nodes/telegram-notifier-node.js +28 -0
  54. package/dist/pipeline/nodes/user-input-node.js +29 -8
  55. package/dist/pipeline/nodes/write-selection-file-node.js +46 -0
  56. package/dist/pipeline/prompt-registry.js +2 -4
  57. package/dist/pipeline/prompt-runtime.js +13 -3
  58. package/dist/pipeline/registry.js +6 -8
  59. package/dist/pipeline/spec-compiler.js +5 -0
  60. package/dist/pipeline/spec-types.js +7 -3
  61. package/dist/pipeline/spec-validator.js +4 -0
  62. package/dist/pipeline/types.js +1 -0
  63. package/dist/pipeline/value-resolver.js +40 -38
  64. package/dist/prompts.js +104 -110
  65. package/dist/runtime/agentweaver-home.js +8 -0
  66. package/dist/runtime/command-resolution.js +0 -38
  67. package/dist/runtime/env-loader.js +43 -0
  68. package/dist/structured-artifact-schema-registry.js +53 -0
  69. package/dist/structured-artifact-schemas.json +0 -20
  70. package/dist/structured-artifacts.js +3 -43
  71. package/dist/user-input.js +30 -2
  72. package/package.json +2 -6
  73. package/Dockerfile.codex +0 -56
  74. package/dist/executors/claude-executor.js +0 -46
  75. package/dist/executors/codex-docker-executor.js +0 -27
  76. package/dist/executors/configs/claude-config.js +0 -12
  77. package/dist/executors/configs/codex-docker-config.js +0 -10
  78. package/dist/executors/configs/verify-build-config.js +0 -7
  79. package/dist/executors/verify-build-executor.js +0 -123
  80. package/dist/pipeline/flow-specs/auto.json +0 -979
  81. package/dist/pipeline/flow-specs/gitlab-review.json +0 -317
  82. package/dist/pipeline/flow-specs/opencode/auto-opencode.json +0 -1365
  83. package/dist/pipeline/flow-specs/opencode/bugz/bug-analyze-opencode.json +0 -382
  84. package/dist/pipeline/flow-specs/opencode/bugz/bug-fix-opencode.json +0 -56
  85. package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-diff-review-opencode.json +0 -308
  86. package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-review-opencode.json +0 -437
  87. package/dist/pipeline/flow-specs/opencode/gitlab/mr-description-opencode.json +0 -117
  88. package/dist/pipeline/flow-specs/opencode/go/run-go-linter-loop-opencode.json +0 -321
  89. package/dist/pipeline/flow-specs/opencode/go/run-go-tests-loop-opencode.json +0 -321
  90. package/dist/pipeline/flow-specs/opencode/implement-opencode.json +0 -64
  91. package/dist/pipeline/flow-specs/opencode/plan-opencode.json +0 -603
  92. package/dist/pipeline/flow-specs/opencode/review/review-fix-opencode.json +0 -209
  93. package/dist/pipeline/flow-specs/opencode/review/review-opencode.json +0 -452
  94. package/dist/pipeline/flow-specs/opencode/task-describe-opencode.json +0 -148
  95. package/dist/pipeline/flow-specs/review-project.json +0 -243
  96. package/dist/pipeline/flow-specs/review.json +0 -312
  97. package/dist/pipeline/flows/preflight-flow.js +0 -19
  98. package/dist/pipeline/nodes/claude-prompt-node.js +0 -54
  99. package/dist/pipeline/nodes/codex-docker-prompt-node.js +0 -32
  100. package/dist/pipeline/nodes/codex-local-prompt-node.js +0 -32
  101. package/dist/pipeline/nodes/review-claude-node.js +0 -38
  102. package/dist/pipeline/nodes/review-reply-codex-node.js +0 -40
  103. package/dist/pipeline/nodes/verify-build-node.js +0 -15
  104. package/dist/runtime/docker-runtime.js +0 -51
  105. package/docker-compose.yml +0 -445
  106. package/verify_build.sh +0 -105
@@ -1,317 +0,0 @@
1
- {
2
- "kind": "gitlab-review-flow",
3
- "version": 1,
4
- "phases": [
5
- {
6
- "id": "gitlab_review",
7
- "steps": [
8
- {
9
- "id": "collect_merge_request_url",
10
- "node": "user-input",
11
- "params": {
12
- "formId": { "const": "gitlab-review-input" },
13
- "title": { "const": "GitLab Review" },
14
- "description": { "const": "Укажи ссылку на GitLab merge request, чтобы загрузить комментарии код-ревью." },
15
- "fields": {
16
- "const": [
17
- {
18
- "id": "merge_request_url",
19
- "type": "text",
20
- "label": "GitLab MR URL",
21
- "help": "Например: https://gitlab.example.com/group/project/-/merge_requests/123",
22
- "required": true,
23
- "placeholder": "https://gitlab.example.com/group/project/-/merge_requests/123"
24
- }
25
- ]
26
- },
27
- "outputFile": {
28
- "artifact": {
29
- "kind": "gitlab-review-input-json-file",
30
- "taskKey": { "ref": "params.taskKey" }
31
- }
32
- }
33
- },
34
- "expect": [
35
- {
36
- "kind": "require-structured-artifacts",
37
- "items": [
38
- {
39
- "path": {
40
- "artifact": {
41
- "kind": "gitlab-review-input-json-file",
42
- "taskKey": { "ref": "params.taskKey" }
43
- }
44
- },
45
- "schemaId": "user-input/v1"
46
- }
47
- ],
48
- "message": "GitLab review input form produced invalid structured artifacts."
49
- }
50
- ]
51
- },
52
- {
53
- "id": "fetch_gitlab_review",
54
- "node": "fetch-gitlab-review",
55
- "params": {
56
- "mergeRequestUrl": { "ref": "steps.gitlab_review.collect_merge_request_url.value.values.merge_request_url" },
57
- "outputFile": {
58
- "artifact": {
59
- "kind": "gitlab-review-file",
60
- "taskKey": { "ref": "params.taskKey" }
61
- }
62
- },
63
- "outputJsonFile": {
64
- "artifact": {
65
- "kind": "gitlab-review-json-file",
66
- "taskKey": { "ref": "params.taskKey" }
67
- }
68
- }
69
- },
70
- "expect": [
71
- {
72
- "kind": "require-file",
73
- "path": {
74
- "artifact": {
75
- "kind": "gitlab-review-file",
76
- "taskKey": { "ref": "params.taskKey" }
77
- }
78
- },
79
- "message": "Fetch GitLab review node did not produce the markdown artifact."
80
- },
81
- {
82
- "kind": "require-structured-artifacts",
83
- "items": [
84
- {
85
- "path": {
86
- "artifact": {
87
- "kind": "gitlab-review-json-file",
88
- "taskKey": { "ref": "params.taskKey" }
89
- }
90
- },
91
- "schemaId": "gitlab-review/v1"
92
- }
93
- ],
94
- "message": "Fetch GitLab review node produced invalid structured artifacts."
95
- }
96
- ]
97
- },
98
- {
99
- "id": "materialize_review_artifacts",
100
- "node": "gitlab-review-artifacts",
101
- "params": {
102
- "gitlabReviewJsonFile": {
103
- "artifact": {
104
- "kind": "gitlab-review-json-file",
105
- "taskKey": { "ref": "params.taskKey" }
106
- }
107
- },
108
- "reviewFile": {
109
- "artifact": {
110
- "kind": "review-file",
111
- "taskKey": { "ref": "params.taskKey" },
112
- "iteration": { "ref": "params.iteration" }
113
- }
114
- },
115
- "reviewJsonFile": {
116
- "artifact": {
117
- "kind": "review-json-file",
118
- "taskKey": { "ref": "params.taskKey" },
119
- "iteration": { "ref": "params.iteration" }
120
- }
121
- }
122
- },
123
- "expect": [
124
- {
125
- "kind": "require-artifacts",
126
- "paths": {
127
- "list": [
128
- {
129
- "artifact": {
130
- "kind": "review-file",
131
- "taskKey": { "ref": "params.taskKey" },
132
- "iteration": { "ref": "params.iteration" }
133
- }
134
- }
135
- ]
136
- },
137
- "message": "GitLab review materialization did not produce the required review artifact."
138
- },
139
- {
140
- "kind": "require-structured-artifacts",
141
- "items": [
142
- {
143
- "path": {
144
- "artifact": {
145
- "kind": "review-json-file",
146
- "taskKey": { "ref": "params.taskKey" },
147
- "iteration": { "ref": "params.iteration" }
148
- }
149
- },
150
- "schemaId": "review-findings/v1"
151
- }
152
- ],
153
- "message": "GitLab review materialization produced invalid structured review artifacts."
154
- }
155
- ]
156
- },
157
- {
158
- "id": "summarize_review",
159
- "when": { "not": { "ref": "context.dryRun" } },
160
- "node": "claude-prompt",
161
- "prompt": {
162
- "templateRef": "review-summary",
163
- "vars": {
164
- "review_file": {
165
- "artifact": {
166
- "kind": "review-file",
167
- "taskKey": { "ref": "params.taskKey" },
168
- "iteration": { "ref": "params.iteration" }
169
- }
170
- },
171
- "review_summary_file": {
172
- "artifact": {
173
- "kind": "review-summary-file",
174
- "taskKey": { "ref": "params.taskKey" },
175
- "iteration": { "ref": "params.iteration" }
176
- }
177
- }
178
- },
179
- "format": "plain"
180
- },
181
- "params": {
182
- "labelText": { "const": "Preparing imported review summary" },
183
- "summaryTitle": { "const": "Imported GitLab Comments" },
184
- "model": { "const": "haiku" },
185
- "outputFile": {
186
- "artifact": {
187
- "kind": "review-summary-file",
188
- "taskKey": { "ref": "params.taskKey" },
189
- "iteration": { "ref": "params.iteration" }
190
- }
191
- }
192
- }
193
- },
194
- {
195
- "id": "run_codex_review_reply",
196
- "node": "codex-local-prompt",
197
- "prompt": {
198
- "templateRef": "review-reply-project",
199
- "vars": {
200
- "review_file": {
201
- "artifact": {
202
- "kind": "review-file",
203
- "taskKey": { "ref": "params.taskKey" },
204
- "iteration": { "ref": "params.iteration" }
205
- }
206
- },
207
- "review_json_file": {
208
- "artifact": {
209
- "kind": "review-json-file",
210
- "taskKey": { "ref": "params.taskKey" },
211
- "iteration": { "ref": "params.iteration" }
212
- }
213
- },
214
- "review_reply_file": {
215
- "artifact": {
216
- "kind": "review-reply-file",
217
- "taskKey": { "ref": "params.taskKey" },
218
- "iteration": { "ref": "params.iteration" }
219
- }
220
- },
221
- "review_reply_json_file": {
222
- "artifact": {
223
- "kind": "review-reply-json-file",
224
- "taskKey": { "ref": "params.taskKey" },
225
- "iteration": { "ref": "params.iteration" }
226
- }
227
- }
228
- },
229
- "extraPrompt": { "ref": "params.extraPrompt" },
230
- "format": "task-prompt"
231
- },
232
- "params": {
233
- "labelText": {
234
- "template": "Running Codex review reply mode for imported GitLab review (iteration {iteration})",
235
- "vars": {
236
- "iteration": { "ref": "params.iteration" }
237
- }
238
- },
239
- "model": { "const": "gpt-5.4" }
240
- },
241
- "expect": [
242
- {
243
- "kind": "require-artifacts",
244
- "when": { "not": { "ref": "context.dryRun" } },
245
- "paths": {
246
- "list": [
247
- {
248
- "artifact": {
249
- "kind": "review-reply-file",
250
- "taskKey": { "ref": "params.taskKey" },
251
- "iteration": { "ref": "params.iteration" }
252
- }
253
- }
254
- ]
255
- },
256
- "message": "Codex review reply did not produce the required review-reply artifact."
257
- },
258
- {
259
- "kind": "require-structured-artifacts",
260
- "when": { "not": { "ref": "context.dryRun" } },
261
- "items": [
262
- {
263
- "path": {
264
- "artifact": {
265
- "kind": "review-reply-json-file",
266
- "taskKey": { "ref": "params.taskKey" },
267
- "iteration": { "ref": "params.iteration" }
268
- }
269
- },
270
- "schemaId": "review-reply/v1"
271
- }
272
- ],
273
- "message": "Codex review reply produced invalid structured artifacts."
274
- }
275
- ]
276
- },
277
- {
278
- "id": "summarize_review_reply",
279
- "when": { "not": { "ref": "context.dryRun" } },
280
- "node": "claude-prompt",
281
- "prompt": {
282
- "templateRef": "review-reply-summary",
283
- "vars": {
284
- "review_reply_file": {
285
- "artifact": {
286
- "kind": "review-reply-file",
287
- "taskKey": { "ref": "params.taskKey" },
288
- "iteration": { "ref": "params.iteration" }
289
- }
290
- },
291
- "review_reply_summary_file": {
292
- "artifact": {
293
- "kind": "review-reply-summary-file",
294
- "taskKey": { "ref": "params.taskKey" },
295
- "iteration": { "ref": "params.iteration" }
296
- }
297
- }
298
- },
299
- "format": "plain"
300
- },
301
- "params": {
302
- "labelText": { "const": "Preparing Codex reply summary" },
303
- "summaryTitle": { "const": "Codex Reply Summary" },
304
- "model": { "const": "haiku" },
305
- "outputFile": {
306
- "artifact": {
307
- "kind": "review-reply-summary-file",
308
- "taskKey": { "ref": "params.taskKey" },
309
- "iteration": { "ref": "params.iteration" }
310
- }
311
- }
312
- }
313
- }
314
- ]
315
- }
316
- ]
317
- }