@agent-teams/engineering-foundation 1.10.2 → 2.0.0
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/assets/windows-managed-process/bootstrap.ps1 +2 -2
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.d.ts.map +1 -1
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.js +16 -1
- package/dist/capabilities/quality-gate-runner/adapters/outbound/pnpm/pnpm-package-script-executor.js.map +1 -1
- package/dist/capabilities/quality-gate-runner/application/policies/quality-gate-input.js +1 -1
- package/dist/capabilities/quality-gate-runner/application/policies/quality-gate-input.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/check-changed-command.d.ts +6 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/check-changed-command.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/check-changed-command.js +9 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/cli/check-changed-command.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy-v2.d.ts +7 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy-v2.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy-v2.js +9 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-agent-workflow-policy-v2.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-versioned-agent-workflow-policy.d.ts +20 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-versioned-agent-workflow-policy.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-versioned-agent-workflow-policy.js +23 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/load-versioned-agent-workflow-policy.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy-v2.d.ts +3 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy-v2.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy-v2.js +110 -0
- package/dist/capabilities/repository-agent-workflow/adapters/inbound/configuration/parse-agent-workflow-policy-v2.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/mutable-check-input-custody.d.ts +8 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/mutable-check-input-custody.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/mutable-check-input-custody.js +154 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/filesystem/mutable-check-input-custody.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/mutable-pnpm-check-runner.d.ts +9 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/mutable-pnpm-check-runner.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/mutable-pnpm-check-runner.js +72 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/mutable-pnpm-check-runner.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.js +23 -6
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/pnpm-package-script-runner.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/qualified-pnpm-check-runner.d.ts +44 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/qualified-pnpm-check-runner.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/qualified-pnpm-check-runner.js +279 -0
- package/dist/capabilities/repository-agent-workflow/adapters/outbound/pnpm/qualified-pnpm-check-runner.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/check-changed.d.ts +102 -0
- package/dist/capabilities/repository-agent-workflow/application/model/check-changed.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/model/check-changed.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/model/check-changed.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-cancellation.d.ts +4 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-cancellation.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-cancellation.js +6 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-cancellation.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-coverage.d.ts +10 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-coverage.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-coverage.js +38 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/check-coverage.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts +5 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js +20 -4
- package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/policies/test-dispatch-observation.d.ts +3 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/test-dispatch-observation.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/test-dispatch-observation.js +40 -0
- package/dist/capabilities/repository-agent-workflow/application/policies/test-dispatch-observation.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/check-changed.d.ts +53 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/check-changed.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/check-changed.js +27 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/check-changed.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/contained-file-reader.d.ts +11 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/contained-file-reader.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/contained-file-reader.js +2 -0
- package/dist/capabilities/repository-agent-workflow/application/ports/contained-file-reader.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.d.ts +6 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.js +5 -1
- package/dist/capabilities/repository-agent-workflow/application/use-cases/analyze-repository-agent-workflow.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-check-changed-agent-workflow.d.ts +12 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-check-changed-agent-workflow.d.ts.map +1 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-check-changed-agent-workflow.js +182 -0
- package/dist/capabilities/repository-agent-workflow/application/use-cases/run-check-changed-agent-workflow.js.map +1 -0
- package/dist/capabilities/repository-agent-workflow/composition/node-commands.d.ts +5 -2
- package/dist/capabilities/repository-agent-workflow/composition/node-commands.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/composition/node-commands.js +48 -23
- package/dist/capabilities/repository-agent-workflow/composition/node-commands.js.map +1 -1
- package/dist/capabilities/repository-agent-workflow/module.d.ts +2 -2
- package/dist/capabilities/repository-agent-workflow/module.d.ts.map +1 -1
- package/dist/capabilities/repository-agent-workflow/module.js +24 -10
- package/dist/capabilities/repository-agent-workflow/module.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js +4 -2
- package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.d.ts.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js +3 -2
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.d.ts.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js +17 -11
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js.map +1 -1
- package/dist/features/command-host/application/command-services.d.ts +4 -0
- package/dist/features/command-host/application/command-services.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/repository-agent-workflow/v2.schema.json +258 -18
|
@@ -1,41 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.agent-teams.ai/engineering-foundation/repository-agent-workflow/v2",
|
|
4
|
-
"title": "Explicit package-manager repository agent workflow policy",
|
|
4
|
+
"title": "Explicit package-manager repository agent workflow policy with explicit changed-check coverage",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": [
|
|
8
8
|
"schemaVersion",
|
|
9
9
|
"packageManager",
|
|
10
10
|
"instructions",
|
|
11
|
-
"scripts"
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
"scripts"
|
|
12
|
+
],
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"required": [
|
|
16
|
+
"changedChecks",
|
|
17
|
+
"fullScanPaths"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"changedChecks": {
|
|
21
|
+
"$ref": "#/properties/changedChecks"
|
|
22
|
+
},
|
|
23
|
+
"fullScanPaths": {
|
|
24
|
+
"$ref": "#/properties/fullScanPaths"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"required": [
|
|
30
|
+
"scopes",
|
|
31
|
+
"checks",
|
|
32
|
+
"exclusions",
|
|
33
|
+
"escalationCheck"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"scopes": {
|
|
37
|
+
"$ref": "#/properties/scopes"
|
|
38
|
+
},
|
|
39
|
+
"checks": {
|
|
40
|
+
"$ref": "#/properties/checks"
|
|
41
|
+
},
|
|
42
|
+
"exclusions": {
|
|
43
|
+
"$ref": "#/properties/exclusions"
|
|
44
|
+
},
|
|
45
|
+
"escalationCheck": {
|
|
46
|
+
"$ref": "#/properties/escalationCheck"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
14
50
|
],
|
|
15
51
|
"properties": {
|
|
16
52
|
"schemaVersion": {
|
|
17
53
|
"const": 2
|
|
18
54
|
},
|
|
19
|
-
"packageManager": {
|
|
55
|
+
"packageManager": {
|
|
56
|
+
"enum": [
|
|
57
|
+
"bun",
|
|
58
|
+
"pnpm"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
20
61
|
"instructions": {
|
|
21
62
|
"type": "object",
|
|
22
63
|
"additionalProperties": false,
|
|
23
|
-
"required": [
|
|
64
|
+
"required": [
|
|
65
|
+
"canonical",
|
|
66
|
+
"claude",
|
|
67
|
+
"gemini",
|
|
68
|
+
"copilot"
|
|
69
|
+
],
|
|
24
70
|
"properties": {
|
|
25
|
-
"canonical": {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
71
|
+
"canonical": {
|
|
72
|
+
"$ref": "#/$defs/repositoryPath"
|
|
73
|
+
},
|
|
74
|
+
"claude": {
|
|
75
|
+
"$ref": "#/$defs/repositoryPath"
|
|
76
|
+
},
|
|
77
|
+
"gemini": {
|
|
78
|
+
"$ref": "#/$defs/repositoryPath"
|
|
79
|
+
},
|
|
80
|
+
"copilot": {
|
|
81
|
+
"$ref": "#/$defs/repositoryPath"
|
|
82
|
+
}
|
|
29
83
|
}
|
|
30
84
|
},
|
|
31
85
|
"scripts": {
|
|
32
86
|
"type": "object",
|
|
33
87
|
"additionalProperties": false,
|
|
34
|
-
"required": [
|
|
88
|
+
"required": [
|
|
89
|
+
"changed",
|
|
90
|
+
"fast",
|
|
91
|
+
"full"
|
|
92
|
+
],
|
|
35
93
|
"properties": {
|
|
36
|
-
"changed": {
|
|
37
|
-
|
|
38
|
-
|
|
94
|
+
"changed": {
|
|
95
|
+
"$ref": "#/$defs/scriptName"
|
|
96
|
+
},
|
|
97
|
+
"fast": {
|
|
98
|
+
"$ref": "#/$defs/scriptName"
|
|
99
|
+
},
|
|
100
|
+
"full": {
|
|
101
|
+
"$ref": "#/$defs/scriptName"
|
|
102
|
+
}
|
|
39
103
|
}
|
|
40
104
|
},
|
|
41
105
|
"changedChecks": {
|
|
@@ -45,13 +109,19 @@
|
|
|
45
109
|
"items": {
|
|
46
110
|
"type": "object",
|
|
47
111
|
"additionalProperties": false,
|
|
48
|
-
"required": [
|
|
112
|
+
"required": [
|
|
113
|
+
"id",
|
|
114
|
+
"script",
|
|
115
|
+
"extensions"
|
|
116
|
+
],
|
|
49
117
|
"properties": {
|
|
50
118
|
"id": {
|
|
51
119
|
"type": "string",
|
|
52
120
|
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
53
121
|
},
|
|
54
|
-
"script": {
|
|
122
|
+
"script": {
|
|
123
|
+
"$ref": "#/$defs/scriptName"
|
|
124
|
+
},
|
|
55
125
|
"extensions": {
|
|
56
126
|
"type": "array",
|
|
57
127
|
"minItems": 1,
|
|
@@ -74,7 +144,177 @@
|
|
|
74
144
|
"minItems": 1,
|
|
75
145
|
"maxItems": 64,
|
|
76
146
|
"uniqueItems": true,
|
|
77
|
-
"items": {
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "#/$defs/repositoryPath"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"scopes": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"minItems": 1,
|
|
154
|
+
"maxItems": 64,
|
|
155
|
+
"uniqueItems": true,
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"required": [
|
|
160
|
+
"id",
|
|
161
|
+
"roots",
|
|
162
|
+
"requiredFacets",
|
|
163
|
+
"checks"
|
|
164
|
+
],
|
|
165
|
+
"properties": {
|
|
166
|
+
"id": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
169
|
+
},
|
|
170
|
+
"roots": {
|
|
171
|
+
"type": "array",
|
|
172
|
+
"minItems": 1,
|
|
173
|
+
"maxItems": 64,
|
|
174
|
+
"uniqueItems": true,
|
|
175
|
+
"items": {
|
|
176
|
+
"anyOf": [
|
|
177
|
+
{
|
|
178
|
+
"const": "*"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"$ref": "#/$defs/repositoryPath"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"requiredFacets": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"minItems": 1,
|
|
189
|
+
"maxItems": 5,
|
|
190
|
+
"uniqueItems": true,
|
|
191
|
+
"items": {
|
|
192
|
+
"enum": [
|
|
193
|
+
"lint",
|
|
194
|
+
"typecheck",
|
|
195
|
+
"tests",
|
|
196
|
+
"standards",
|
|
197
|
+
"architecture"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"checks": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"minItems": 1,
|
|
204
|
+
"maxItems": 64,
|
|
205
|
+
"uniqueItems": true,
|
|
206
|
+
"items": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"checks": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"minItems": 1,
|
|
217
|
+
"maxItems": 16,
|
|
218
|
+
"uniqueItems": true,
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"required": [
|
|
223
|
+
"id",
|
|
224
|
+
"script",
|
|
225
|
+
"prerequisites",
|
|
226
|
+
"supplies",
|
|
227
|
+
"observation"
|
|
228
|
+
],
|
|
229
|
+
"properties": {
|
|
230
|
+
"id": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
233
|
+
},
|
|
234
|
+
"script": {
|
|
235
|
+
"$ref": "#/$defs/scriptName"
|
|
236
|
+
},
|
|
237
|
+
"prerequisites": {
|
|
238
|
+
"type": "array",
|
|
239
|
+
"minItems": 0,
|
|
240
|
+
"maxItems": 64,
|
|
241
|
+
"uniqueItems": true,
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "#/$defs/scriptName"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"supplies": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"minItems": 1,
|
|
249
|
+
"maxItems": 5,
|
|
250
|
+
"uniqueItems": true,
|
|
251
|
+
"items": {
|
|
252
|
+
"enum": [
|
|
253
|
+
"lint",
|
|
254
|
+
"typecheck",
|
|
255
|
+
"tests",
|
|
256
|
+
"standards",
|
|
257
|
+
"architecture"
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"observation": {
|
|
262
|
+
"enum": [
|
|
263
|
+
"command",
|
|
264
|
+
"test-dispatch/v1"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"allOf": [
|
|
269
|
+
{
|
|
270
|
+
"if": {
|
|
271
|
+
"properties": {
|
|
272
|
+
"supplies": {
|
|
273
|
+
"type": "array",
|
|
274
|
+
"contains": {
|
|
275
|
+
"const": "tests"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"then": {
|
|
281
|
+
"properties": {
|
|
282
|
+
"observation": {
|
|
283
|
+
"const": "test-dispatch/v1"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"exclusions": {
|
|
292
|
+
"type": "array",
|
|
293
|
+
"minItems": 0,
|
|
294
|
+
"maxItems": 64,
|
|
295
|
+
"uniqueItems": true,
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"additionalProperties": false,
|
|
299
|
+
"required": [
|
|
300
|
+
"path",
|
|
301
|
+
"reason"
|
|
302
|
+
],
|
|
303
|
+
"properties": {
|
|
304
|
+
"path": {
|
|
305
|
+
"$ref": "#/$defs/repositoryPath"
|
|
306
|
+
},
|
|
307
|
+
"reason": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"minLength": 1,
|
|
310
|
+
"maxLength": 240
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"escalationCheck": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
78
318
|
}
|
|
79
319
|
},
|
|
80
320
|
"$defs": {
|
|
@@ -82,7 +322,7 @@
|
|
|
82
322
|
"type": "string",
|
|
83
323
|
"minLength": 1,
|
|
84
324
|
"maxLength": 240,
|
|
85
|
-
"pattern": "^(?!/)(?!.*\\\\)(
|
|
325
|
+
"pattern": "^(?!/)(?!.*\\\\)(?!(?:[^/]+/)*(?:\\.\\.?)(?:/|$))[^/\\\\\\u0000]+(?:/[^/\\\\\\u0000]+)*$"
|
|
86
326
|
},
|
|
87
327
|
"scriptName": {
|
|
88
328
|
"type": "string",
|