agentweaver 0.1.10 → 0.1.12

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 (110) hide show
  1. package/README.md +218 -224
  2. package/dist/artifacts.js +109 -55
  3. package/dist/executors/{codex-local-executor.js → codex-executor.js} +6 -5
  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/jira-fetch-executor.js +1 -0
  11. package/dist/executors/opencode-executor.js +22 -11
  12. package/dist/executors/process-executor.js +3 -0
  13. package/dist/executors/telegram-notifier-executor.js +54 -0
  14. package/dist/flow-state.js +46 -1
  15. package/dist/gitlab.js +13 -8
  16. package/dist/index.js +477 -514
  17. package/dist/interactive-ui.js +609 -88
  18. package/dist/jira.js +109 -5
  19. package/dist/pipeline/auto-flow.js +6 -6
  20. package/dist/pipeline/context.js +1 -0
  21. package/dist/pipeline/flow-catalog.js +34 -4
  22. package/dist/pipeline/flow-model-settings.js +77 -0
  23. package/dist/pipeline/flow-specs/auto-common.json +446 -0
  24. package/dist/pipeline/flow-specs/auto-golang.json +563 -0
  25. package/dist/pipeline/flow-specs/{bug-analyze.json → bugz/bug-analyze.json} +43 -25
  26. package/dist/pipeline/flow-specs/{bug-fix.json → bugz/bug-fix.json} +5 -4
  27. package/dist/pipeline/flow-specs/git-commit.json +196 -0
  28. package/dist/pipeline/flow-specs/{gitlab-diff-review.json → gitlab/gitlab-diff-review.json} +20 -50
  29. package/dist/pipeline/flow-specs/{gitlab-review.json → gitlab/gitlab-review.json} +65 -133
  30. package/dist/pipeline/flow-specs/{mr-description.json → gitlab/mr-description.json} +17 -10
  31. package/dist/pipeline/flow-specs/{run-go-linter-loop.json → go/run-go-linter-loop.json} +40 -14
  32. package/dist/pipeline/flow-specs/{run-go-tests-loop.json → go/run-go-tests-loop.json} +40 -14
  33. package/dist/pipeline/flow-specs/implement.json +5 -4
  34. package/dist/pipeline/flow-specs/plan.json +40 -148
  35. package/dist/pipeline/flow-specs/{review-fix.json → review/review-fix.json} +74 -13
  36. package/dist/pipeline/flow-specs/review/review-loop.json +282 -0
  37. package/dist/pipeline/flow-specs/review/review-project.json +87 -0
  38. package/dist/pipeline/flow-specs/review/review.json +126 -0
  39. package/dist/pipeline/flow-specs/task-describe.json +252 -11
  40. package/dist/pipeline/launch-profile-config.js +38 -0
  41. package/dist/pipeline/node-registry.js +75 -45
  42. package/dist/pipeline/nodes/build-failure-summary-node.js +16 -29
  43. package/dist/pipeline/nodes/build-review-fix-prompt-node.js +36 -0
  44. package/dist/pipeline/nodes/codex-prompt-node.js +41 -0
  45. package/dist/pipeline/nodes/commit-message-form-node.js +79 -0
  46. package/dist/pipeline/nodes/git-commit-form-node.js +138 -0
  47. package/dist/pipeline/nodes/git-commit-node.js +28 -0
  48. package/dist/pipeline/nodes/git-status-node.js +221 -0
  49. package/dist/pipeline/nodes/gitlab-review-artifacts-node.js +10 -6
  50. package/dist/pipeline/nodes/jira-context-node.js +10 -0
  51. package/dist/pipeline/nodes/jira-fetch-node.js +3 -0
  52. package/dist/pipeline/nodes/llm-prompt-node.js +62 -0
  53. package/dist/pipeline/nodes/plan-codex-node.js +1 -1
  54. package/dist/pipeline/nodes/read-file-node.js +11 -0
  55. package/dist/pipeline/nodes/review-findings-form-node.js +48 -14
  56. package/dist/pipeline/nodes/select-files-form-node.js +72 -0
  57. package/dist/pipeline/nodes/telegram-notifier-node.js +28 -0
  58. package/dist/pipeline/nodes/user-input-node.js +43 -8
  59. package/dist/pipeline/nodes/write-selection-file-node.js +46 -0
  60. package/dist/pipeline/prompt-registry.js +3 -4
  61. package/dist/pipeline/prompt-runtime.js +13 -3
  62. package/dist/pipeline/registry.js +6 -8
  63. package/dist/pipeline/spec-compiler.js +5 -0
  64. package/dist/pipeline/spec-types.js +9 -3
  65. package/dist/pipeline/spec-validator.js +4 -0
  66. package/dist/pipeline/types.js +1 -0
  67. package/dist/pipeline/value-resolver.js +50 -38
  68. package/dist/prompts.js +119 -110
  69. package/dist/runtime/agentweaver-home.js +8 -0
  70. package/dist/runtime/command-resolution.js +0 -38
  71. package/dist/runtime/env-loader.js +43 -0
  72. package/dist/runtime/process-runner.js +9 -3
  73. package/dist/structured-artifact-schema-registry.js +54 -0
  74. package/dist/structured-artifact-schemas.json +22 -20
  75. package/dist/structured-artifacts.js +3 -43
  76. package/dist/user-input.js +38 -3
  77. package/package.json +2 -6
  78. package/Dockerfile.codex +0 -56
  79. package/dist/executors/claude-executor.js +0 -46
  80. package/dist/executors/codex-docker-executor.js +0 -27
  81. package/dist/executors/configs/claude-config.js +0 -12
  82. package/dist/executors/configs/codex-docker-config.js +0 -10
  83. package/dist/executors/configs/verify-build-config.js +0 -7
  84. package/dist/executors/verify-build-executor.js +0 -123
  85. package/dist/pipeline/flow-specs/auto.json +0 -979
  86. package/dist/pipeline/flow-specs/opencode/auto-opencode.json +0 -1365
  87. package/dist/pipeline/flow-specs/opencode/bugz/bug-analyze-opencode.json +0 -382
  88. package/dist/pipeline/flow-specs/opencode/bugz/bug-fix-opencode.json +0 -56
  89. package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-diff-review-opencode.json +0 -308
  90. package/dist/pipeline/flow-specs/opencode/gitlab/gitlab-review-opencode.json +0 -437
  91. package/dist/pipeline/flow-specs/opencode/gitlab/mr-description-opencode.json +0 -117
  92. package/dist/pipeline/flow-specs/opencode/go/run-go-linter-loop-opencode.json +0 -321
  93. package/dist/pipeline/flow-specs/opencode/go/run-go-tests-loop-opencode.json +0 -321
  94. package/dist/pipeline/flow-specs/opencode/implement-opencode.json +0 -64
  95. package/dist/pipeline/flow-specs/opencode/plan-opencode.json +0 -603
  96. package/dist/pipeline/flow-specs/opencode/review/review-fix-opencode.json +0 -209
  97. package/dist/pipeline/flow-specs/opencode/review/review-opencode.json +0 -452
  98. package/dist/pipeline/flow-specs/opencode/task-describe-opencode.json +0 -148
  99. package/dist/pipeline/flow-specs/review-project.json +0 -243
  100. package/dist/pipeline/flow-specs/review.json +0 -312
  101. package/dist/pipeline/flows/preflight-flow.js +0 -19
  102. package/dist/pipeline/nodes/claude-prompt-node.js +0 -54
  103. package/dist/pipeline/nodes/codex-docker-prompt-node.js +0 -32
  104. package/dist/pipeline/nodes/codex-local-prompt-node.js +0 -32
  105. package/dist/pipeline/nodes/review-claude-node.js +0 -38
  106. package/dist/pipeline/nodes/review-reply-codex-node.js +0 -40
  107. package/dist/pipeline/nodes/verify-build-node.js +0 -15
  108. package/dist/runtime/docker-runtime.js +0 -51
  109. package/docker-compose.yml +0 -445
  110. package/verify_build.sh +0 -105
@@ -1,148 +0,0 @@
1
- {
2
- "kind": "task-describe-flow",
3
- "version": 1,
4
- "phases": [
5
- {
6
- "id": "task_describe",
7
- "steps": [
8
- {
9
- "id": "fetch_jira",
10
- "node": "jira-fetch",
11
- "params": {
12
- "jiraApiUrl": {
13
- "ref": "params.jiraApiUrl"
14
- },
15
- "outputFile": {
16
- "artifact": {
17
- "kind": "jira-task-file",
18
- "taskKey": {
19
- "ref": "params.taskKey"
20
- }
21
- }
22
- }
23
- },
24
- "expect": [
25
- {
26
- "kind": "require-file",
27
- "path": {
28
- "artifact": {
29
- "kind": "jira-task-file",
30
- "taskKey": {
31
- "ref": "params.taskKey"
32
- }
33
- }
34
- },
35
- "message": "Jira fetch node did not produce the Jira task file."
36
- }
37
- ]
38
- },
39
- {
40
- "id": "run_codex_task_describe",
41
- "node": "opencode-prompt",
42
- "prompt": {
43
- "templateRef": "task-describe",
44
- "vars": {
45
- "jira_task_file": {
46
- "artifact": {
47
- "kind": "jira-task-file",
48
- "taskKey": {
49
- "ref": "params.taskKey"
50
- }
51
- }
52
- },
53
- "jira_description_file": {
54
- "artifact": {
55
- "kind": "jira-description-file",
56
- "taskKey": {
57
- "ref": "params.taskKey"
58
- }
59
- }
60
- },
61
- "jira_description_json_file": {
62
- "artifact": {
63
- "kind": "jira-description-json-file",
64
- "taskKey": {
65
- "ref": "params.taskKey"
66
- }
67
- }
68
- }
69
- },
70
- "extraPrompt": {
71
- "ref": "params.extraPrompt"
72
- },
73
- "format": "task-prompt"
74
- },
75
- "params": {
76
- "labelText": {
77
- "const": "Running OpenCode task description mode"
78
- },
79
- "model": {
80
- "const": "minimax-coding-plan/MiniMax-M2.7"
81
- },
82
- "requiredArtifacts": {
83
- "list": [
84
- {
85
- "artifact": {
86
- "kind": "jira-description-file",
87
- "taskKey": {
88
- "ref": "params.taskKey"
89
- }
90
- }
91
- },
92
- {
93
- "artifact": {
94
- "kind": "jira-description-json-file",
95
- "taskKey": {
96
- "ref": "params.taskKey"
97
- }
98
- }
99
- }
100
- ]
101
- }
102
- },
103
- "expect": [
104
- {
105
- "kind": "require-file",
106
- "when": {
107
- "not": {
108
- "ref": "context.dryRun"
109
- }
110
- },
111
- "path": {
112
- "artifact": {
113
- "kind": "jira-description-file",
114
- "taskKey": {
115
- "ref": "params.taskKey"
116
- }
117
- }
118
- },
119
- "message": "Task describe mode did not produce the Jira description artifact."
120
- },
121
- {
122
- "kind": "require-structured-artifacts",
123
- "when": {
124
- "not": {
125
- "ref": "context.dryRun"
126
- }
127
- },
128
- "items": [
129
- {
130
- "path": {
131
- "artifact": {
132
- "kind": "jira-description-json-file",
133
- "taskKey": {
134
- "ref": "params.taskKey"
135
- }
136
- }
137
- },
138
- "schemaId": "jira-description/v1"
139
- }
140
- ],
141
- "message": "Task describe mode produced invalid structured artifacts."
142
- }
143
- ]
144
- }
145
- ]
146
- }
147
- ]
148
- }
@@ -1,243 +0,0 @@
1
- {
2
- "kind": "review-project-flow",
3
- "version": 1,
4
- "phases": [
5
- {
6
- "id": "review",
7
- "steps": [
8
- {
9
- "id": "run_claude_review",
10
- "node": "claude-prompt",
11
- "prompt": {
12
- "templateRef": "review-project",
13
- "vars": {
14
- "review_file": {
15
- "artifact": {
16
- "kind": "review-file",
17
- "taskKey": { "ref": "params.taskKey" },
18
- "iteration": { "ref": "params.iteration" }
19
- }
20
- },
21
- "review_json_file": {
22
- "artifact": {
23
- "kind": "review-json-file",
24
- "taskKey": { "ref": "params.taskKey" },
25
- "iteration": { "ref": "params.iteration" }
26
- }
27
- },
28
- "ready_to_merge_file": {
29
- "artifact": {
30
- "kind": "ready-to-merge-file",
31
- "taskKey": { "ref": "params.taskKey" }
32
- }
33
- }
34
- },
35
- "extraPrompt": { "ref": "params.extraPrompt" },
36
- "format": "task-prompt"
37
- },
38
- "params": {
39
- "labelText": {
40
- "template": "Running Claude project review mode (iteration {iteration})",
41
- "vars": {
42
- "iteration": { "ref": "params.iteration" }
43
- }
44
- },
45
- "model": { "const": "opus" }
46
- },
47
- "expect": [
48
- {
49
- "kind": "require-artifacts",
50
- "when": { "not": { "ref": "context.dryRun" } },
51
- "paths": {
52
- "list": [
53
- {
54
- "artifact": {
55
- "kind": "review-file",
56
- "taskKey": { "ref": "params.taskKey" },
57
- "iteration": { "ref": "params.iteration" }
58
- }
59
- }
60
- ]
61
- },
62
- "message": "Claude project review did not produce the required review artifact."
63
- },
64
- {
65
- "kind": "require-structured-artifacts",
66
- "when": { "not": { "ref": "context.dryRun" } },
67
- "items": [
68
- {
69
- "path": {
70
- "artifact": {
71
- "kind": "review-json-file",
72
- "taskKey": { "ref": "params.taskKey" },
73
- "iteration": { "ref": "params.iteration" }
74
- }
75
- },
76
- "schemaId": "review-findings/v1"
77
- }
78
- ],
79
- "message": "Claude project review produced invalid structured artifacts."
80
- }
81
- ]
82
- },
83
- {
84
- "id": "summarize_review",
85
- "when": { "not": { "ref": "context.dryRun" } },
86
- "node": "claude-prompt",
87
- "prompt": {
88
- "templateRef": "review-summary",
89
- "vars": {
90
- "review_file": {
91
- "artifact": {
92
- "kind": "review-file",
93
- "taskKey": { "ref": "params.taskKey" },
94
- "iteration": { "ref": "params.iteration" }
95
- }
96
- },
97
- "review_summary_file": {
98
- "artifact": {
99
- "kind": "review-summary-file",
100
- "taskKey": { "ref": "params.taskKey" },
101
- "iteration": { "ref": "params.iteration" }
102
- }
103
- }
104
- },
105
- "format": "plain"
106
- },
107
- "params": {
108
- "labelText": { "const": "Preparing project review summary" },
109
- "summaryTitle": { "const": "Project Review Comments" },
110
- "model": { "const": "haiku" },
111
- "outputFile": {
112
- "artifact": {
113
- "kind": "review-summary-file",
114
- "taskKey": { "ref": "params.taskKey" },
115
- "iteration": { "ref": "params.iteration" }
116
- }
117
- }
118
- }
119
- },
120
- {
121
- "id": "run_codex_review_reply",
122
- "node": "codex-local-prompt",
123
- "prompt": {
124
- "templateRef": "review-reply-project",
125
- "vars": {
126
- "review_file": {
127
- "artifact": {
128
- "kind": "review-file",
129
- "taskKey": { "ref": "params.taskKey" },
130
- "iteration": { "ref": "params.iteration" }
131
- }
132
- },
133
- "review_json_file": {
134
- "artifact": {
135
- "kind": "review-json-file",
136
- "taskKey": { "ref": "params.taskKey" },
137
- "iteration": { "ref": "params.iteration" }
138
- }
139
- },
140
- "review_reply_file": {
141
- "artifact": {
142
- "kind": "review-reply-file",
143
- "taskKey": { "ref": "params.taskKey" },
144
- "iteration": { "ref": "params.iteration" }
145
- }
146
- },
147
- "review_reply_json_file": {
148
- "artifact": {
149
- "kind": "review-reply-json-file",
150
- "taskKey": { "ref": "params.taskKey" },
151
- "iteration": { "ref": "params.iteration" }
152
- }
153
- }
154
- },
155
- "extraPrompt": { "ref": "params.extraPrompt" },
156
- "format": "task-prompt"
157
- },
158
- "params": {
159
- "labelText": {
160
- "template": "Running Codex project review reply mode (iteration {iteration})",
161
- "vars": {
162
- "iteration": { "ref": "params.iteration" }
163
- }
164
- },
165
- "model": { "const": "gpt-5.4" }
166
- },
167
- "expect": [
168
- {
169
- "kind": "require-artifacts",
170
- "when": { "not": { "ref": "context.dryRun" } },
171
- "paths": {
172
- "list": [
173
- {
174
- "artifact": {
175
- "kind": "review-reply-file",
176
- "taskKey": { "ref": "params.taskKey" },
177
- "iteration": { "ref": "params.iteration" }
178
- }
179
- }
180
- ]
181
- },
182
- "message": "Codex project review reply did not produce the required review-reply artifact."
183
- },
184
- {
185
- "kind": "require-structured-artifacts",
186
- "when": { "not": { "ref": "context.dryRun" } },
187
- "items": [
188
- {
189
- "path": {
190
- "artifact": {
191
- "kind": "review-reply-json-file",
192
- "taskKey": { "ref": "params.taskKey" },
193
- "iteration": { "ref": "params.iteration" }
194
- }
195
- },
196
- "schemaId": "review-reply/v1"
197
- }
198
- ],
199
- "message": "Codex project review reply produced invalid structured artifacts."
200
- }
201
- ]
202
- },
203
- {
204
- "id": "summarize_review_reply",
205
- "when": { "not": { "ref": "context.dryRun" } },
206
- "node": "claude-prompt",
207
- "prompt": {
208
- "templateRef": "review-reply-summary",
209
- "vars": {
210
- "review_reply_file": {
211
- "artifact": {
212
- "kind": "review-reply-file",
213
- "taskKey": { "ref": "params.taskKey" },
214
- "iteration": { "ref": "params.iteration" }
215
- }
216
- },
217
- "review_reply_summary_file": {
218
- "artifact": {
219
- "kind": "review-reply-summary-file",
220
- "taskKey": { "ref": "params.taskKey" },
221
- "iteration": { "ref": "params.iteration" }
222
- }
223
- }
224
- },
225
- "format": "plain"
226
- },
227
- "params": {
228
- "labelText": { "const": "Preparing project review reply summary" },
229
- "summaryTitle": { "const": "Project Review Reply" },
230
- "model": { "const": "haiku" },
231
- "outputFile": {
232
- "artifact": {
233
- "kind": "review-reply-summary-file",
234
- "taskKey": { "ref": "params.taskKey" },
235
- "iteration": { "ref": "params.iteration" }
236
- }
237
- }
238
- }
239
- }
240
- ]
241
- }
242
- ]
243
- }