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,437 +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": {
13
- "const": "gitlab-review-input"
14
- },
15
- "title": {
16
- "const": "GitLab Review"
17
- },
18
- "description": {
19
- "const": "Укажи ссылку на GitLab merge request, чтобы загрузить комментарии код-ревью."
20
- },
21
- "fields": {
22
- "const": [
23
- {
24
- "id": "merge_request_url",
25
- "type": "text",
26
- "label": "GitLab MR URL",
27
- "help": "Например: https://gitlab.example.com/group/project/-/merge_requests/123",
28
- "required": true,
29
- "placeholder": "https://gitlab.example.com/group/project/-/merge_requests/123"
30
- }
31
- ]
32
- },
33
- "outputFile": {
34
- "artifact": {
35
- "kind": "gitlab-review-input-json-file",
36
- "taskKey": {
37
- "ref": "params.taskKey"
38
- }
39
- }
40
- }
41
- },
42
- "expect": [
43
- {
44
- "kind": "require-structured-artifacts",
45
- "items": [
46
- {
47
- "path": {
48
- "artifact": {
49
- "kind": "gitlab-review-input-json-file",
50
- "taskKey": {
51
- "ref": "params.taskKey"
52
- }
53
- }
54
- },
55
- "schemaId": "user-input/v1"
56
- }
57
- ],
58
- "message": "GitLab review input form produced invalid structured artifacts."
59
- }
60
- ]
61
- },
62
- {
63
- "id": "fetch_gitlab_review",
64
- "node": "fetch-gitlab-review",
65
- "params": {
66
- "mergeRequestUrl": {
67
- "ref": "steps.gitlab_review.collect_merge_request_url.value.values.merge_request_url"
68
- },
69
- "outputFile": {
70
- "artifact": {
71
- "kind": "gitlab-review-file",
72
- "taskKey": {
73
- "ref": "params.taskKey"
74
- }
75
- }
76
- },
77
- "outputJsonFile": {
78
- "artifact": {
79
- "kind": "gitlab-review-json-file",
80
- "taskKey": {
81
- "ref": "params.taskKey"
82
- }
83
- }
84
- }
85
- },
86
- "expect": [
87
- {
88
- "kind": "require-file",
89
- "path": {
90
- "artifact": {
91
- "kind": "gitlab-review-file",
92
- "taskKey": {
93
- "ref": "params.taskKey"
94
- }
95
- }
96
- },
97
- "message": "Fetch GitLab review node did not produce the markdown artifact."
98
- },
99
- {
100
- "kind": "require-structured-artifacts",
101
- "items": [
102
- {
103
- "path": {
104
- "artifact": {
105
- "kind": "gitlab-review-json-file",
106
- "taskKey": {
107
- "ref": "params.taskKey"
108
- }
109
- }
110
- },
111
- "schemaId": "gitlab-review/v1"
112
- }
113
- ],
114
- "message": "Fetch GitLab review node produced invalid structured artifacts."
115
- }
116
- ]
117
- },
118
- {
119
- "id": "materialize_review_artifacts",
120
- "node": "gitlab-review-artifacts",
121
- "params": {
122
- "gitlabReviewJsonFile": {
123
- "artifact": {
124
- "kind": "gitlab-review-json-file",
125
- "taskKey": {
126
- "ref": "params.taskKey"
127
- }
128
- }
129
- },
130
- "reviewFile": {
131
- "artifact": {
132
- "kind": "review-file",
133
- "taskKey": {
134
- "ref": "params.taskKey"
135
- },
136
- "iteration": {
137
- "ref": "params.iteration"
138
- }
139
- }
140
- },
141
- "reviewJsonFile": {
142
- "artifact": {
143
- "kind": "review-json-file",
144
- "taskKey": {
145
- "ref": "params.taskKey"
146
- },
147
- "iteration": {
148
- "ref": "params.iteration"
149
- }
150
- }
151
- }
152
- },
153
- "expect": [
154
- {
155
- "kind": "require-artifacts",
156
- "paths": {
157
- "list": [
158
- {
159
- "artifact": {
160
- "kind": "review-file",
161
- "taskKey": {
162
- "ref": "params.taskKey"
163
- },
164
- "iteration": {
165
- "ref": "params.iteration"
166
- }
167
- }
168
- }
169
- ]
170
- },
171
- "message": "GitLab review materialization did not produce the required review artifact."
172
- },
173
- {
174
- "kind": "require-structured-artifacts",
175
- "items": [
176
- {
177
- "path": {
178
- "artifact": {
179
- "kind": "review-json-file",
180
- "taskKey": {
181
- "ref": "params.taskKey"
182
- },
183
- "iteration": {
184
- "ref": "params.iteration"
185
- }
186
- }
187
- },
188
- "schemaId": "review-findings/v1"
189
- }
190
- ],
191
- "message": "GitLab review materialization produced invalid structured review artifacts."
192
- }
193
- ]
194
- },
195
- {
196
- "id": "summarize_review",
197
- "when": {
198
- "not": {
199
- "ref": "context.dryRun"
200
- }
201
- },
202
- "node": "opencode-prompt",
203
- "prompt": {
204
- "templateRef": "review-summary",
205
- "vars": {
206
- "review_file": {
207
- "artifact": {
208
- "kind": "review-file",
209
- "taskKey": {
210
- "ref": "params.taskKey"
211
- },
212
- "iteration": {
213
- "ref": "params.iteration"
214
- }
215
- }
216
- },
217
- "review_summary_file": {
218
- "artifact": {
219
- "kind": "review-summary-file",
220
- "taskKey": {
221
- "ref": "params.taskKey"
222
- },
223
- "iteration": {
224
- "ref": "params.iteration"
225
- }
226
- }
227
- }
228
- },
229
- "format": "plain"
230
- },
231
- "params": {
232
- "labelText": {
233
- "const": "Preparing imported review summary"
234
- },
235
- "summaryTitle": {
236
- "const": "Imported GitLab Comments"
237
- },
238
- "model": {
239
- "const": "minimax-coding-plan/MiniMax-M2.7"
240
- },
241
- "outputFile": {
242
- "artifact": {
243
- "kind": "review-summary-file",
244
- "taskKey": {
245
- "ref": "params.taskKey"
246
- },
247
- "iteration": {
248
- "ref": "params.iteration"
249
- }
250
- }
251
- }
252
- }
253
- },
254
- {
255
- "id": "run_codex_review_reply",
256
- "node": "opencode-prompt",
257
- "prompt": {
258
- "templateRef": "review-reply-project",
259
- "vars": {
260
- "review_file": {
261
- "artifact": {
262
- "kind": "review-file",
263
- "taskKey": {
264
- "ref": "params.taskKey"
265
- },
266
- "iteration": {
267
- "ref": "params.iteration"
268
- }
269
- }
270
- },
271
- "review_json_file": {
272
- "artifact": {
273
- "kind": "review-json-file",
274
- "taskKey": {
275
- "ref": "params.taskKey"
276
- },
277
- "iteration": {
278
- "ref": "params.iteration"
279
- }
280
- }
281
- },
282
- "review_reply_file": {
283
- "artifact": {
284
- "kind": "review-reply-file",
285
- "taskKey": {
286
- "ref": "params.taskKey"
287
- },
288
- "iteration": {
289
- "ref": "params.iteration"
290
- }
291
- }
292
- },
293
- "review_reply_json_file": {
294
- "artifact": {
295
- "kind": "review-reply-json-file",
296
- "taskKey": {
297
- "ref": "params.taskKey"
298
- },
299
- "iteration": {
300
- "ref": "params.iteration"
301
- }
302
- }
303
- }
304
- },
305
- "extraPrompt": {
306
- "ref": "params.extraPrompt"
307
- },
308
- "format": "task-prompt"
309
- },
310
- "params": {
311
- "labelText": {
312
- "template": "Running OpenCode review reply mode for imported GitLab review (iteration {iteration})",
313
- "vars": {
314
- "iteration": {
315
- "ref": "params.iteration"
316
- }
317
- }
318
- },
319
- "model": {
320
- "const": "minimax-coding-plan/MiniMax-M2.7"
321
- }
322
- },
323
- "expect": [
324
- {
325
- "kind": "require-artifacts",
326
- "when": {
327
- "not": {
328
- "ref": "context.dryRun"
329
- }
330
- },
331
- "paths": {
332
- "list": [
333
- {
334
- "artifact": {
335
- "kind": "review-reply-file",
336
- "taskKey": {
337
- "ref": "params.taskKey"
338
- },
339
- "iteration": {
340
- "ref": "params.iteration"
341
- }
342
- }
343
- }
344
- ]
345
- },
346
- "message": "Codex review reply did not produce the required review-reply artifact."
347
- },
348
- {
349
- "kind": "require-structured-artifacts",
350
- "when": {
351
- "not": {
352
- "ref": "context.dryRun"
353
- }
354
- },
355
- "items": [
356
- {
357
- "path": {
358
- "artifact": {
359
- "kind": "review-reply-json-file",
360
- "taskKey": {
361
- "ref": "params.taskKey"
362
- },
363
- "iteration": {
364
- "ref": "params.iteration"
365
- }
366
- }
367
- },
368
- "schemaId": "review-reply/v1"
369
- }
370
- ],
371
- "message": "Codex review reply produced invalid structured artifacts."
372
- }
373
- ]
374
- },
375
- {
376
- "id": "summarize_review_reply",
377
- "when": {
378
- "not": {
379
- "ref": "context.dryRun"
380
- }
381
- },
382
- "node": "opencode-prompt",
383
- "prompt": {
384
- "templateRef": "review-reply-summary",
385
- "vars": {
386
- "review_reply_file": {
387
- "artifact": {
388
- "kind": "review-reply-file",
389
- "taskKey": {
390
- "ref": "params.taskKey"
391
- },
392
- "iteration": {
393
- "ref": "params.iteration"
394
- }
395
- }
396
- },
397
- "review_reply_summary_file": {
398
- "artifact": {
399
- "kind": "review-reply-summary-file",
400
- "taskKey": {
401
- "ref": "params.taskKey"
402
- },
403
- "iteration": {
404
- "ref": "params.iteration"
405
- }
406
- }
407
- }
408
- },
409
- "format": "plain"
410
- },
411
- "params": {
412
- "labelText": {
413
- "const": "Preparing OpenCode reply summary"
414
- },
415
- "summaryTitle": {
416
- "const": "OpenCode Reply Summary"
417
- },
418
- "model": {
419
- "const": "minimax-coding-plan/MiniMax-M2.7"
420
- },
421
- "outputFile": {
422
- "artifact": {
423
- "kind": "review-reply-summary-file",
424
- "taskKey": {
425
- "ref": "params.taskKey"
426
- },
427
- "iteration": {
428
- "ref": "params.iteration"
429
- }
430
- }
431
- }
432
- }
433
- }
434
- ]
435
- }
436
- ]
437
- }
@@ -1,117 +0,0 @@
1
- {
2
- "kind": "mr-description-flow",
3
- "version": 1,
4
- "phases": [
5
- {
6
- "id": "mr_description",
7
- "steps": [
8
- {
9
- "id": "run_codex_mr_description",
10
- "node": "opencode-prompt",
11
- "prompt": {
12
- "templateRef": "mr-description",
13
- "vars": {
14
- "jira_task_file": {
15
- "artifact": {
16
- "kind": "jira-task-file",
17
- "taskKey": {
18
- "ref": "params.taskKey"
19
- }
20
- }
21
- },
22
- "mr_description_file": {
23
- "artifact": {
24
- "kind": "mr-description-file",
25
- "taskKey": {
26
- "ref": "params.taskKey"
27
- }
28
- }
29
- },
30
- "mr_description_json_file": {
31
- "artifact": {
32
- "kind": "mr-description-json-file",
33
- "taskKey": {
34
- "ref": "params.taskKey"
35
- }
36
- }
37
- }
38
- },
39
- "extraPrompt": {
40
- "ref": "params.extraPrompt"
41
- },
42
- "format": "task-prompt"
43
- },
44
- "params": {
45
- "labelText": {
46
- "const": "Running OpenCode MR description mode"
47
- },
48
- "model": {
49
- "const": "minimax-coding-plan/MiniMax-M2.7"
50
- },
51
- "requiredArtifacts": {
52
- "list": [
53
- {
54
- "artifact": {
55
- "kind": "mr-description-file",
56
- "taskKey": {
57
- "ref": "params.taskKey"
58
- }
59
- }
60
- },
61
- {
62
- "artifact": {
63
- "kind": "mr-description-json-file",
64
- "taskKey": {
65
- "ref": "params.taskKey"
66
- }
67
- }
68
- }
69
- ]
70
- }
71
- },
72
- "expect": [
73
- {
74
- "kind": "require-file",
75
- "when": {
76
- "not": {
77
- "ref": "context.dryRun"
78
- }
79
- },
80
- "path": {
81
- "artifact": {
82
- "kind": "mr-description-file",
83
- "taskKey": {
84
- "ref": "params.taskKey"
85
- }
86
- }
87
- },
88
- "message": "MR description mode did not produce the MR description artifact."
89
- },
90
- {
91
- "kind": "require-structured-artifacts",
92
- "when": {
93
- "not": {
94
- "ref": "context.dryRun"
95
- }
96
- },
97
- "items": [
98
- {
99
- "path": {
100
- "artifact": {
101
- "kind": "mr-description-json-file",
102
- "taskKey": {
103
- "ref": "params.taskKey"
104
- }
105
- }
106
- },
107
- "schemaId": "mr-description/v1"
108
- }
109
- ],
110
- "message": "MR description mode produced invalid structured artifacts."
111
- }
112
- ]
113
- }
114
- ]
115
- }
116
- ]
117
- }