@arcfoundry/schemas 0.1.2
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 +3 -0
- package/dist/artifact-content-registry.d.ts +165 -0
- package/dist/artifact-content-registry.js +11 -0
- package/dist/artifact-content-registry.js.map +1 -0
- package/dist/base/command-evidence.d.ts +30 -0
- package/dist/base/command-evidence.js +21 -0
- package/dist/base/command-evidence.js.map +1 -0
- package/dist/base.d.ts +150 -0
- package/dist/base.js +41 -0
- package/dist/base.js.map +1 -0
- package/dist/catalog/agent-roles.d.ts +1 -0
- package/dist/catalog/agent-roles.js +18 -0
- package/dist/catalog/agent-roles.js.map +1 -0
- package/dist/catalog/artifact-types.d.ts +1 -0
- package/dist/catalog/artifact-types.js +27 -0
- package/dist/catalog/artifact-types.js.map +1 -0
- package/dist/catalog/workflow-stages.d.ts +1 -0
- package/dist/catalog/workflow-stages.js +21 -0
- package/dist/catalog/workflow-stages.js.map +1 -0
- package/dist/catalog.d.ts +9 -0
- package/dist/catalog.js +4 -0
- package/dist/catalog.js.map +1 -0
- package/dist/content/browser-validation.d.ts +54 -0
- package/dist/content/browser-validation.js +23 -0
- package/dist/content/browser-validation.js.map +1 -0
- package/dist/content/build-reports.d.ts +34 -0
- package/dist/content/build-reports.js +19 -0
- package/dist/content/build-reports.js.map +1 -0
- package/dist/content/conflict-report.d.ts +20 -0
- package/dist/content/conflict-report.js +12 -0
- package/dist/content/conflict-report.js.map +1 -0
- package/dist/content/delivery.d.ts +27 -0
- package/dist/content/delivery.js +19 -0
- package/dist/content/delivery.js.map +1 -0
- package/dist/content/failure-report.d.ts +48 -0
- package/dist/content/failure-report.js +26 -0
- package/dist/content/failure-report.js.map +1 -0
- package/dist/content/memory.d.ts +16 -0
- package/dist/content/memory.js +15 -0
- package/dist/content/memory.js.map +1 -0
- package/dist/content/planning.d.ts +113 -0
- package/dist/content/planning.js +31 -0
- package/dist/content/planning.js.map +1 -0
- package/dist/content/registry.d.ts +325 -0
- package/dist/content/registry.js +33 -0
- package/dist/content/registry.js.map +1 -0
- package/dist/content/review.d.ts +40 -0
- package/dist/content/review.js +24 -0
- package/dist/content/review.js.map +1 -0
- package/dist/content/system-verification.d.ts +58 -0
- package/dist/content/system-verification.js +33 -0
- package/dist/content/system-verification.js.map +1 -0
- package/dist/content.d.ts +9 -0
- package/dist/content.js +10 -0
- package/dist/content.js.map +1 -0
- package/dist/dispatch.d.ts +17 -0
- package/dist/dispatch.js +24 -0
- package/dist/dispatch.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -0
- package/schemas/accessibility-review.schema.json +175 -0
- package/schemas/adr-record.schema.json +175 -0
- package/schemas/browser-validation-report.schema.json +273 -0
- package/schemas/client-brief.schema.json +175 -0
- package/schemas/client-summary.schema.json +175 -0
- package/schemas/conflict-report.schema.json +211 -0
- package/schemas/delivery-plan.schema.json +175 -0
- package/schemas/deployment-checklist.schema.json +175 -0
- package/schemas/discovery-report.schema.json +175 -0
- package/schemas/engineering-review.schema.json +175 -0
- package/schemas/failure-report.schema.json +252 -0
- package/schemas/implementation-report.schema.json +175 -0
- package/schemas/memory-candidate-report.schema.json +175 -0
- package/schemas/memory-promotion-report.schema.json +175 -0
- package/schemas/performance-review.schema.json +175 -0
- package/schemas/product-spec.schema.json +175 -0
- package/schemas/pull-request-package.schema.json +175 -0
- package/schemas/release-package.schema.json +175 -0
- package/schemas/security-review.schema.json +175 -0
- package/schemas/system-verification-report.schema.json +351 -0
- package/schemas/task-breakdown.schema.json +175 -0
- package/schemas/technical-design.schema.json +175 -0
- package/schemas/test-plan.schema.json +175 -0
- package/schemas/test-report.schema.json +175 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ArtifactType } from "../catalog.js";
|
|
3
|
+
export declare const specializedArtifactContentSchemas: {
|
|
4
|
+
"delivery-plan": z.ZodObject<{
|
|
5
|
+
slices: z.ZodArray<z.ZodString>;
|
|
6
|
+
gates: z.ZodArray<z.ZodString>;
|
|
7
|
+
commandIntents: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
8
|
+
purpose: z.ZodEnum<{
|
|
9
|
+
install: "install";
|
|
10
|
+
test: "test";
|
|
11
|
+
build: "build";
|
|
12
|
+
"browser-validation": "browser-validation";
|
|
13
|
+
"agent-stage": "agent-stage";
|
|
14
|
+
lint: "lint";
|
|
15
|
+
format: "format";
|
|
16
|
+
"architecture-check": "architecture-check";
|
|
17
|
+
other: "other";
|
|
18
|
+
}>;
|
|
19
|
+
intent: z.ZodString;
|
|
20
|
+
preferredCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
equivalentCommandsAllowed: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
"task-breakdown": z.ZodObject<{
|
|
25
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
owner: z.ZodEnum<{
|
|
28
|
+
"Intake Agent": "Intake Agent";
|
|
29
|
+
"Discovery Agent": "Discovery Agent";
|
|
30
|
+
"Product Specification Agent": "Product Specification Agent";
|
|
31
|
+
"Architect Agent": "Architect Agent";
|
|
32
|
+
"Planner Agent": "Planner Agent";
|
|
33
|
+
"Implementer Agent": "Implementer Agent";
|
|
34
|
+
"Test Agent": "Test Agent";
|
|
35
|
+
"Browser Validation Agent": "Browser Validation Agent";
|
|
36
|
+
"Security Agent": "Security Agent";
|
|
37
|
+
"Accessibility Agent": "Accessibility Agent";
|
|
38
|
+
"Performance Agent": "Performance Agent";
|
|
39
|
+
"Reviewer Agent": "Reviewer Agent";
|
|
40
|
+
"Delivery Agent": "Delivery Agent";
|
|
41
|
+
"Memory Curator Agent": "Memory Curator Agent";
|
|
42
|
+
"Verification Agent": "Verification Agent";
|
|
43
|
+
}>;
|
|
44
|
+
description: z.ZodString;
|
|
45
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
|
+
parallelGroup: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
autonomy: z.ZodDefault<z.ZodObject<{
|
|
48
|
+
fileSelection: z.ZodDefault<z.ZodEnum<{
|
|
49
|
+
"agent-decides": "agent-decides";
|
|
50
|
+
restricted: "restricted";
|
|
51
|
+
}>>;
|
|
52
|
+
commandSelection: z.ZodDefault<z.ZodEnum<{
|
|
53
|
+
"agent-decides": "agent-decides";
|
|
54
|
+
"intent-guided": "intent-guided";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
executionMode: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
sequential: "sequential";
|
|
60
|
+
"parallel-by-dependency": "parallel-by-dependency";
|
|
61
|
+
}>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
"browser-validation-report": z.ZodObject<{
|
|
64
|
+
environment: z.ZodObject<{
|
|
65
|
+
command: z.ZodString;
|
|
66
|
+
baseUrl: z.ZodString;
|
|
67
|
+
browser: z.ZodEnum<{
|
|
68
|
+
other: "other";
|
|
69
|
+
chromium: "chromium";
|
|
70
|
+
firefox: "firefox";
|
|
71
|
+
webkit: "webkit";
|
|
72
|
+
}>;
|
|
73
|
+
playwrightMode: z.ZodEnum<{
|
|
74
|
+
cli: "cli";
|
|
75
|
+
mcp: "mcp";
|
|
76
|
+
"test-runner": "test-runner";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
scenarios: z.ZodArray<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
status: z.ZodEnum<{
|
|
82
|
+
passed: "passed";
|
|
83
|
+
failed: "failed";
|
|
84
|
+
skipped: "skipped";
|
|
85
|
+
}>;
|
|
86
|
+
steps: z.ZodArray<z.ZodString>;
|
|
87
|
+
assertions: z.ZodArray<z.ZodString>;
|
|
88
|
+
consoleErrors: z.ZodArray<z.ZodString>;
|
|
89
|
+
networkErrors: z.ZodArray<z.ZodString>;
|
|
90
|
+
screenshots: z.ZodArray<z.ZodString>;
|
|
91
|
+
trace: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
94
|
+
recommendation: z.ZodEnum<{
|
|
95
|
+
pass: "pass";
|
|
96
|
+
fail: "fail";
|
|
97
|
+
"needs-human-review": "needs-human-review";
|
|
98
|
+
}>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
"implementation-report": z.ZodObject<{
|
|
101
|
+
changedPaths: z.ZodArray<z.ZodString>;
|
|
102
|
+
implementationSummary: z.ZodString;
|
|
103
|
+
demoProject: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
packageName: z.ZodString;
|
|
105
|
+
playwrightConfig: z.ZodString;
|
|
106
|
+
changedPaths: z.ZodArray<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
"test-report": z.ZodObject<{
|
|
110
|
+
commandsExecuted: z.ZodArray<z.ZodObject<{
|
|
111
|
+
purpose: z.ZodEnum<{
|
|
112
|
+
install: "install";
|
|
113
|
+
test: "test";
|
|
114
|
+
build: "build";
|
|
115
|
+
"browser-validation": "browser-validation";
|
|
116
|
+
"agent-stage": "agent-stage";
|
|
117
|
+
lint: "lint";
|
|
118
|
+
format: "format";
|
|
119
|
+
"architecture-check": "architecture-check";
|
|
120
|
+
other: "other";
|
|
121
|
+
}>;
|
|
122
|
+
command: z.ZodString;
|
|
123
|
+
exitCode: z.ZodNumber;
|
|
124
|
+
durationMs: z.ZodNumber;
|
|
125
|
+
stdoutRef: z.ZodNullable<z.ZodString>;
|
|
126
|
+
stderrRef: z.ZodNullable<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
testsPassed: z.ZodBoolean;
|
|
129
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
"system-verification-report": z.ZodObject<{
|
|
132
|
+
verificationRunId: z.ZodString;
|
|
133
|
+
projectType: z.ZodEnum<{
|
|
134
|
+
"simple-ui": "simple-ui";
|
|
135
|
+
"interactive-ui": "interactive-ui";
|
|
136
|
+
"data-driven": "data-driven";
|
|
137
|
+
"auth-sensitive": "auth-sensitive";
|
|
138
|
+
"existing-project": "existing-project";
|
|
139
|
+
"request-driven": "request-driven";
|
|
140
|
+
}>;
|
|
141
|
+
clientRequest: z.ZodString;
|
|
142
|
+
repository: z.ZodObject<{
|
|
143
|
+
path: z.ZodString;
|
|
144
|
+
gitShaBefore: z.ZodNullable<z.ZodString>;
|
|
145
|
+
gitShaAfter: z.ZodNullable<z.ZodString>;
|
|
146
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
commandsExecuted: z.ZodArray<z.ZodObject<{
|
|
149
|
+
purpose: z.ZodEnum<{
|
|
150
|
+
install: "install";
|
|
151
|
+
test: "test";
|
|
152
|
+
build: "build";
|
|
153
|
+
"browser-validation": "browser-validation";
|
|
154
|
+
"agent-stage": "agent-stage";
|
|
155
|
+
lint: "lint";
|
|
156
|
+
format: "format";
|
|
157
|
+
"architecture-check": "architecture-check";
|
|
158
|
+
other: "other";
|
|
159
|
+
}>;
|
|
160
|
+
command: z.ZodString;
|
|
161
|
+
exitCode: z.ZodNumber;
|
|
162
|
+
durationMs: z.ZodNumber;
|
|
163
|
+
stdoutRef: z.ZodNullable<z.ZodString>;
|
|
164
|
+
stderrRef: z.ZodNullable<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
browserValidation: z.ZodObject<{
|
|
167
|
+
used: z.ZodBoolean;
|
|
168
|
+
tool: z.ZodEnum<{
|
|
169
|
+
other: "other";
|
|
170
|
+
"playwright-cli": "playwright-cli";
|
|
171
|
+
"playwright-mcp": "playwright-mcp";
|
|
172
|
+
"playwright-test-runner": "playwright-test-runner";
|
|
173
|
+
}>;
|
|
174
|
+
reportRef: z.ZodString;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
artifactsProduced: z.ZodArray<z.ZodString>;
|
|
177
|
+
testsPassed: z.ZodBoolean;
|
|
178
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
179
|
+
systemWeaknessesDiscovered: z.ZodArray<z.ZodString>;
|
|
180
|
+
improvementsRequired: z.ZodArray<z.ZodString>;
|
|
181
|
+
recommendation: z.ZodEnum<{
|
|
182
|
+
pass: "pass";
|
|
183
|
+
fail: "fail";
|
|
184
|
+
"needs-improvement": "needs-improvement";
|
|
185
|
+
}>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
"security-review": z.ZodObject<{
|
|
188
|
+
findings: z.ZodArray<z.ZodString>;
|
|
189
|
+
reviewedConcerns: z.ZodArray<z.ZodString>;
|
|
190
|
+
recommendation: z.ZodEnum<{
|
|
191
|
+
pass: "pass";
|
|
192
|
+
fail: "fail";
|
|
193
|
+
"needs-human-review": "needs-human-review";
|
|
194
|
+
}>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
"accessibility-review": z.ZodObject<{
|
|
197
|
+
checks: z.ZodArray<z.ZodString>;
|
|
198
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
199
|
+
recommendation: z.ZodEnum<{
|
|
200
|
+
pass: "pass";
|
|
201
|
+
fail: "fail";
|
|
202
|
+
"needs-human-review": "needs-human-review";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
"performance-review": z.ZodObject<{
|
|
206
|
+
checks: z.ZodArray<z.ZodString>;
|
|
207
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
208
|
+
recommendation: z.ZodEnum<{
|
|
209
|
+
pass: "pass";
|
|
210
|
+
fail: "fail";
|
|
211
|
+
"needs-human-review": "needs-human-review";
|
|
212
|
+
}>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
"engineering-review": z.ZodObject<{
|
|
215
|
+
reviewInputs: z.ZodObject<{
|
|
216
|
+
testsPassed: z.ZodBoolean;
|
|
217
|
+
browserPassed: z.ZodBoolean;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
passed: z.ZodBoolean;
|
|
220
|
+
residualRisks: z.ZodArray<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
"pull-request-package": z.ZodObject<{
|
|
223
|
+
summary: z.ZodString;
|
|
224
|
+
changedPaths: z.ZodArray<z.ZodString>;
|
|
225
|
+
evidenceDir: z.ZodString;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
"release-package": z.ZodObject<{
|
|
228
|
+
releasable: z.ZodBoolean;
|
|
229
|
+
packageType: z.ZodLiteral<"verification-run">;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
"deployment-checklist": z.ZodObject<{
|
|
232
|
+
items: z.ZodArray<z.ZodObject<{
|
|
233
|
+
item: z.ZodString;
|
|
234
|
+
status: z.ZodEnum<{
|
|
235
|
+
passed: "passed";
|
|
236
|
+
failed: "failed";
|
|
237
|
+
}>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
"client-summary": z.ZodObject<{
|
|
241
|
+
summary: z.ZodString;
|
|
242
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
"memory-candidate-report": z.ZodObject<{
|
|
245
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
246
|
+
scope: z.ZodLiteral<"project">;
|
|
247
|
+
authority: z.ZodLiteral<"candidate">;
|
|
248
|
+
title: z.ZodString;
|
|
249
|
+
sourceArtifacts: z.ZodArray<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
promotion: z.ZodString;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
"memory-promotion-report": z.ZodObject<{
|
|
254
|
+
promoted: z.ZodArray<z.ZodString>;
|
|
255
|
+
skipped: z.ZodArray<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
"conflict-report": z.ZodObject<{
|
|
258
|
+
conflictType: z.ZodEnum<{
|
|
259
|
+
adr_violation: "adr_violation";
|
|
260
|
+
missing_decision: "missing_decision";
|
|
261
|
+
supersession_required: "supersession_required";
|
|
262
|
+
}>;
|
|
263
|
+
relatedAdrIds: z.ZodArray<z.ZodString>;
|
|
264
|
+
impact: z.ZodEnum<{
|
|
265
|
+
low: "low";
|
|
266
|
+
medium: "medium";
|
|
267
|
+
high: "high";
|
|
268
|
+
critical: "critical";
|
|
269
|
+
}>;
|
|
270
|
+
options: z.ZodArray<z.ZodObject<{
|
|
271
|
+
option: z.ZodString;
|
|
272
|
+
tradeoffs: z.ZodArray<z.ZodString>;
|
|
273
|
+
requiresApproval: z.ZodBoolean;
|
|
274
|
+
}, z.core.$strip>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
"failure-report": z.ZodObject<{
|
|
277
|
+
stage: z.ZodEnum<{
|
|
278
|
+
"browser-validation": "browser-validation";
|
|
279
|
+
"technical-design": "technical-design";
|
|
280
|
+
"security-review": "security-review";
|
|
281
|
+
"accessibility-review": "accessibility-review";
|
|
282
|
+
"performance-review": "performance-review";
|
|
283
|
+
"engineering-review": "engineering-review";
|
|
284
|
+
intake: "intake";
|
|
285
|
+
discovery: "discovery";
|
|
286
|
+
"product-specification": "product-specification";
|
|
287
|
+
"memory-retrieval": "memory-retrieval";
|
|
288
|
+
"adr-retrieval": "adr-retrieval";
|
|
289
|
+
"delivery-planning": "delivery-planning";
|
|
290
|
+
implementation: "implementation";
|
|
291
|
+
"unit-integration-tests": "unit-integration-tests";
|
|
292
|
+
"delivery-package": "delivery-package";
|
|
293
|
+
"memory-candidate-write": "memory-candidate-write";
|
|
294
|
+
"memory-promotion": "memory-promotion";
|
|
295
|
+
"system-verification": "system-verification";
|
|
296
|
+
}>;
|
|
297
|
+
failureType: z.ZodEnum<{
|
|
298
|
+
test: "test";
|
|
299
|
+
unknown: "unknown";
|
|
300
|
+
browser: "browser";
|
|
301
|
+
implementation: "implementation";
|
|
302
|
+
validation: "validation";
|
|
303
|
+
security: "security";
|
|
304
|
+
accessibility: "accessibility";
|
|
305
|
+
performance: "performance";
|
|
306
|
+
runtime: "runtime";
|
|
307
|
+
governance: "governance";
|
|
308
|
+
memory: "memory";
|
|
309
|
+
}>;
|
|
310
|
+
severity: z.ZodEnum<{
|
|
311
|
+
low: "low";
|
|
312
|
+
medium: "medium";
|
|
313
|
+
high: "high";
|
|
314
|
+
critical: "critical";
|
|
315
|
+
}>;
|
|
316
|
+
summary: z.ZodString;
|
|
317
|
+
details: z.ZodString;
|
|
318
|
+
blocking: z.ZodBoolean;
|
|
319
|
+
recommendedFixes: z.ZodArray<z.ZodString>;
|
|
320
|
+
requiresHumanApproval: z.ZodBoolean;
|
|
321
|
+
artifactsAffected: z.ZodArray<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
};
|
|
324
|
+
export type SpecializedArtifactType = keyof typeof specializedArtifactContentSchemas;
|
|
325
|
+
export declare function contentSchemaForArtifactType(artifactType: ArtifactType): z.ZodType | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { browserValidationContentSchema } from "./browser-validation.js";
|
|
2
|
+
import { implementationReportContentSchema, testReportContentSchema } from "./build-reports.js";
|
|
3
|
+
import { conflictReportContentSchema } from "./conflict-report.js";
|
|
4
|
+
import { clientSummaryContentSchema, deploymentChecklistContentSchema, pullRequestPackageContentSchema, releasePackageContentSchema, } from "./delivery.js";
|
|
5
|
+
import { failureReportContentSchema } from "./failure-report.js";
|
|
6
|
+
import { memoryCandidateReportContentSchema, memoryPromotionReportContentSchema, } from "./memory.js";
|
|
7
|
+
import { deliveryPlanContentSchema, taskBreakdownContentSchema } from "./planning.js";
|
|
8
|
+
import { accessibilityReviewContentSchema, engineeringReviewContentSchema, performanceReviewContentSchema, securityReviewContentSchema, } from "./review.js";
|
|
9
|
+
import { systemVerificationContentSchema } from "./system-verification.js";
|
|
10
|
+
export const specializedArtifactContentSchemas = {
|
|
11
|
+
"delivery-plan": deliveryPlanContentSchema,
|
|
12
|
+
"task-breakdown": taskBreakdownContentSchema,
|
|
13
|
+
"browser-validation-report": browserValidationContentSchema,
|
|
14
|
+
"implementation-report": implementationReportContentSchema,
|
|
15
|
+
"test-report": testReportContentSchema,
|
|
16
|
+
"system-verification-report": systemVerificationContentSchema,
|
|
17
|
+
"security-review": securityReviewContentSchema,
|
|
18
|
+
"accessibility-review": accessibilityReviewContentSchema,
|
|
19
|
+
"performance-review": performanceReviewContentSchema,
|
|
20
|
+
"engineering-review": engineeringReviewContentSchema,
|
|
21
|
+
"pull-request-package": pullRequestPackageContentSchema,
|
|
22
|
+
"release-package": releasePackageContentSchema,
|
|
23
|
+
"deployment-checklist": deploymentChecklistContentSchema,
|
|
24
|
+
"client-summary": clientSummaryContentSchema,
|
|
25
|
+
"memory-candidate-report": memoryCandidateReportContentSchema,
|
|
26
|
+
"memory-promotion-report": memoryPromotionReportContentSchema,
|
|
27
|
+
"conflict-report": conflictReportContentSchema,
|
|
28
|
+
"failure-report": failureReportContentSchema,
|
|
29
|
+
};
|
|
30
|
+
export function contentSchemaForArtifactType(artifactType) {
|
|
31
|
+
return specializedArtifactContentSchemas[artifactType] ?? null;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/content/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACL,kCAAkC,EAClC,kCAAkC,GACnC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,eAAe,EAAE,yBAAyB;IAC1C,gBAAgB,EAAE,0BAA0B;IAC5C,2BAA2B,EAAE,8BAA8B;IAC3D,uBAAuB,EAAE,iCAAiC;IAC1D,aAAa,EAAE,uBAAuB;IACtC,4BAA4B,EAAE,+BAA+B;IAC7D,iBAAiB,EAAE,2BAA2B;IAC9C,sBAAsB,EAAE,gCAAgC;IACxD,oBAAoB,EAAE,8BAA8B;IACpD,oBAAoB,EAAE,8BAA8B;IACpD,sBAAsB,EAAE,+BAA+B;IACvD,iBAAiB,EAAE,2BAA2B;IAC9C,sBAAsB,EAAE,gCAAgC;IACxD,gBAAgB,EAAE,0BAA0B;IAC5C,yBAAyB,EAAE,kCAAkC;IAC7D,yBAAyB,EAAE,kCAAkC;IAC7D,iBAAiB,EAAE,2BAA2B;IAC9C,gBAAgB,EAAE,0BAA0B;CACM,CAAC;AAIrD,MAAM,UAAU,4BAA4B,CAAC,YAA0B;IACrE,OAAO,iCAAiC,CAAC,YAAuC,CAAC,IAAI,IAAI,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const securityReviewContentSchema: z.ZodObject<{
|
|
3
|
+
findings: z.ZodArray<z.ZodString>;
|
|
4
|
+
reviewedConcerns: z.ZodArray<z.ZodString>;
|
|
5
|
+
recommendation: z.ZodEnum<{
|
|
6
|
+
pass: "pass";
|
|
7
|
+
fail: "fail";
|
|
8
|
+
"needs-human-review": "needs-human-review";
|
|
9
|
+
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const accessibilityReviewContentSchema: z.ZodObject<{
|
|
12
|
+
checks: z.ZodArray<z.ZodString>;
|
|
13
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
14
|
+
recommendation: z.ZodEnum<{
|
|
15
|
+
pass: "pass";
|
|
16
|
+
fail: "fail";
|
|
17
|
+
"needs-human-review": "needs-human-review";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const performanceReviewContentSchema: z.ZodObject<{
|
|
21
|
+
checks: z.ZodArray<z.ZodString>;
|
|
22
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
23
|
+
recommendation: z.ZodEnum<{
|
|
24
|
+
pass: "pass";
|
|
25
|
+
fail: "fail";
|
|
26
|
+
"needs-human-review": "needs-human-review";
|
|
27
|
+
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const engineeringReviewContentSchema: z.ZodObject<{
|
|
30
|
+
reviewInputs: z.ZodObject<{
|
|
31
|
+
testsPassed: z.ZodBoolean;
|
|
32
|
+
browserPassed: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
passed: z.ZodBoolean;
|
|
35
|
+
residualRisks: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type SecurityReviewContent = z.infer<typeof securityReviewContentSchema>;
|
|
38
|
+
export type AccessibilityReviewContent = z.infer<typeof accessibilityReviewContentSchema>;
|
|
39
|
+
export type PerformanceReviewContent = z.infer<typeof performanceReviewContentSchema>;
|
|
40
|
+
export type EngineeringReviewContent = z.infer<typeof engineeringReviewContentSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const recommendationSchema = z.enum(["pass", "fail", "needs-human-review"]);
|
|
3
|
+
const readinessInputSchema = z.object({ testsPassed: z.boolean(), browserPassed: z.boolean() });
|
|
4
|
+
export const securityReviewContentSchema = z.object({
|
|
5
|
+
findings: z.array(z.string()),
|
|
6
|
+
reviewedConcerns: z.array(z.string().min(1)),
|
|
7
|
+
recommendation: recommendationSchema,
|
|
8
|
+
});
|
|
9
|
+
export const accessibilityReviewContentSchema = z.object({
|
|
10
|
+
checks: z.array(z.string().min(1)),
|
|
11
|
+
blockingIssues: z.array(z.string()),
|
|
12
|
+
recommendation: recommendationSchema,
|
|
13
|
+
});
|
|
14
|
+
export const performanceReviewContentSchema = z.object({
|
|
15
|
+
checks: z.array(z.string().min(1)),
|
|
16
|
+
blockingIssues: z.array(z.string()),
|
|
17
|
+
recommendation: recommendationSchema,
|
|
18
|
+
});
|
|
19
|
+
export const engineeringReviewContentSchema = z.object({
|
|
20
|
+
reviewInputs: readinessInputSchema,
|
|
21
|
+
passed: z.boolean(),
|
|
22
|
+
residualRisks: z.array(z.string()),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=review.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/content/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAC5E,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAEhG,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC5C,cAAc,EAAE,oBAAoB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,cAAc,EAAE,oBAAoB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,cAAc,EAAE,oBAAoB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,YAAY,EAAE,oBAAoB;IAClC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const systemVerificationContentSchema: z.ZodObject<{
|
|
3
|
+
verificationRunId: z.ZodString;
|
|
4
|
+
projectType: z.ZodEnum<{
|
|
5
|
+
"simple-ui": "simple-ui";
|
|
6
|
+
"interactive-ui": "interactive-ui";
|
|
7
|
+
"data-driven": "data-driven";
|
|
8
|
+
"auth-sensitive": "auth-sensitive";
|
|
9
|
+
"existing-project": "existing-project";
|
|
10
|
+
"request-driven": "request-driven";
|
|
11
|
+
}>;
|
|
12
|
+
clientRequest: z.ZodString;
|
|
13
|
+
repository: z.ZodObject<{
|
|
14
|
+
path: z.ZodString;
|
|
15
|
+
gitShaBefore: z.ZodNullable<z.ZodString>;
|
|
16
|
+
gitShaAfter: z.ZodNullable<z.ZodString>;
|
|
17
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
commandsExecuted: z.ZodArray<z.ZodObject<{
|
|
20
|
+
purpose: z.ZodEnum<{
|
|
21
|
+
format: "format";
|
|
22
|
+
other: "other";
|
|
23
|
+
install: "install";
|
|
24
|
+
test: "test";
|
|
25
|
+
build: "build";
|
|
26
|
+
"browser-validation": "browser-validation";
|
|
27
|
+
"agent-stage": "agent-stage";
|
|
28
|
+
lint: "lint";
|
|
29
|
+
"architecture-check": "architecture-check";
|
|
30
|
+
}>;
|
|
31
|
+
command: z.ZodString;
|
|
32
|
+
exitCode: z.ZodNumber;
|
|
33
|
+
durationMs: z.ZodNumber;
|
|
34
|
+
stdoutRef: z.ZodNullable<z.ZodString>;
|
|
35
|
+
stderrRef: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
browserValidation: z.ZodObject<{
|
|
38
|
+
used: z.ZodBoolean;
|
|
39
|
+
tool: z.ZodEnum<{
|
|
40
|
+
other: "other";
|
|
41
|
+
"playwright-cli": "playwright-cli";
|
|
42
|
+
"playwright-mcp": "playwright-mcp";
|
|
43
|
+
"playwright-test-runner": "playwright-test-runner";
|
|
44
|
+
}>;
|
|
45
|
+
reportRef: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
artifactsProduced: z.ZodArray<z.ZodString>;
|
|
48
|
+
testsPassed: z.ZodBoolean;
|
|
49
|
+
blockingIssues: z.ZodArray<z.ZodString>;
|
|
50
|
+
systemWeaknessesDiscovered: z.ZodArray<z.ZodString>;
|
|
51
|
+
improvementsRequired: z.ZodArray<z.ZodString>;
|
|
52
|
+
recommendation: z.ZodEnum<{
|
|
53
|
+
pass: "pass";
|
|
54
|
+
fail: "fail";
|
|
55
|
+
"needs-improvement": "needs-improvement";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type SystemVerificationContent = z.infer<typeof systemVerificationContentSchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { commandEvidenceSchema } from "../base.js";
|
|
3
|
+
export const systemVerificationContentSchema = z.object({
|
|
4
|
+
verificationRunId: z.string(),
|
|
5
|
+
projectType: z.enum([
|
|
6
|
+
"simple-ui",
|
|
7
|
+
"interactive-ui",
|
|
8
|
+
"data-driven",
|
|
9
|
+
"auth-sensitive",
|
|
10
|
+
"existing-project",
|
|
11
|
+
"request-driven",
|
|
12
|
+
]),
|
|
13
|
+
clientRequest: z.string(),
|
|
14
|
+
repository: z.object({
|
|
15
|
+
path: z.string(),
|
|
16
|
+
gitShaBefore: z.string().nullable(),
|
|
17
|
+
gitShaAfter: z.string().nullable(),
|
|
18
|
+
branch: z.string().nullable(),
|
|
19
|
+
}),
|
|
20
|
+
commandsExecuted: z.array(commandEvidenceSchema),
|
|
21
|
+
browserValidation: z.object({
|
|
22
|
+
used: z.boolean(),
|
|
23
|
+
tool: z.enum(["playwright-cli", "playwright-mcp", "playwright-test-runner", "other"]),
|
|
24
|
+
reportRef: z.string(),
|
|
25
|
+
}),
|
|
26
|
+
artifactsProduced: z.array(z.string()),
|
|
27
|
+
testsPassed: z.boolean(),
|
|
28
|
+
blockingIssues: z.array(z.string()),
|
|
29
|
+
systemWeaknessesDiscovered: z.array(z.string()),
|
|
30
|
+
improvementsRequired: z.array(z.string()),
|
|
31
|
+
recommendation: z.enum(["pass", "fail", "needs-improvement"]),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=system-verification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-verification.js","sourceRoot":"","sources":["../../src/content/system-verification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC;QAClB,WAAW;QACX,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,kBAAkB;QAClB,gBAAgB;KACjB,CAAC;IACF,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC;IACF,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAChD,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC1B,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;QACjB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;QACrF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACtB,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,0BAA0B,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/C,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;CAC9D,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { commandIntentSchema, deliveryPlanContentSchema, developmentTaskSchema, taskBreakdownContentSchema, type CommandIntent, type DeliveryPlanContent, type DevelopmentTask, type TaskBreakdownContent, } from "./content/planning.js";
|
|
2
|
+
export { browserValidationContentSchema, browserValidationScenarioSchema, type BrowserValidationContent, type BrowserValidationScenario, } from "./content/browser-validation.js";
|
|
3
|
+
export { implementationReportContentSchema, testReportContentSchema, type ImplementationReportContent, type TestReportContent, } from "./content/build-reports.js";
|
|
4
|
+
export { conflictReportContentSchema } from "./content/conflict-report.js";
|
|
5
|
+
export { clientSummaryContentSchema, deploymentChecklistContentSchema, pullRequestPackageContentSchema, releasePackageContentSchema, type ClientSummaryContent, type DeploymentChecklistContent, type PullRequestPackageContent, type ReleasePackageContent, } from "./content/delivery.js";
|
|
6
|
+
export { failureReportContentSchema } from "./content/failure-report.js";
|
|
7
|
+
export { memoryCandidateReportContentSchema, memoryPromotionReportContentSchema, type MemoryCandidateReportContent, type MemoryPromotionReportContent, } from "./content/memory.js";
|
|
8
|
+
export { accessibilityReviewContentSchema, engineeringReviewContentSchema, performanceReviewContentSchema, securityReviewContentSchema, type AccessibilityReviewContent, type EngineeringReviewContent, type PerformanceReviewContent, type SecurityReviewContent, } from "./content/review.js";
|
|
9
|
+
export { systemVerificationContentSchema, type SystemVerificationContent, } from "./content/system-verification.js";
|
package/dist/content.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { commandIntentSchema, deliveryPlanContentSchema, developmentTaskSchema, taskBreakdownContentSchema, } from "./content/planning.js";
|
|
2
|
+
export { browserValidationContentSchema, browserValidationScenarioSchema, } from "./content/browser-validation.js";
|
|
3
|
+
export { implementationReportContentSchema, testReportContentSchema, } from "./content/build-reports.js";
|
|
4
|
+
export { conflictReportContentSchema } from "./content/conflict-report.js";
|
|
5
|
+
export { clientSummaryContentSchema, deploymentChecklistContentSchema, pullRequestPackageContentSchema, releasePackageContentSchema, } from "./content/delivery.js";
|
|
6
|
+
export { failureReportContentSchema } from "./content/failure-report.js";
|
|
7
|
+
export { memoryCandidateReportContentSchema, memoryPromotionReportContentSchema, } from "./content/memory.js";
|
|
8
|
+
export { accessibilityReviewContentSchema, engineeringReviewContentSchema, performanceReviewContentSchema, securityReviewContentSchema, } from "./content/review.js";
|
|
9
|
+
export { systemVerificationContentSchema, } from "./content/system-verification.js";
|
|
10
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,GAK3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,GAGhC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,iCAAiC,EACjC,uBAAuB,GAGxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,EAC/B,2BAA2B,GAK5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,kCAAkC,EAClC,kCAAkC,GAGnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,GAK5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,+BAA+B,GAEhC,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ArtifactType } from "./catalog.js";
|
|
3
|
+
import { contentSchemaForArtifactType } from "./content/registry.js";
|
|
4
|
+
type ContentSchemaLookup = typeof contentSchemaForArtifactType;
|
|
5
|
+
export declare class ArtifactSchemaRegistry {
|
|
6
|
+
private readonly contentSchemas;
|
|
7
|
+
constructor(contentSchemas?: ContentSchemaLookup);
|
|
8
|
+
schemaFor(type: ArtifactType): z.ZodObject<{
|
|
9
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
private extensionFor;
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultArtifactSchemaRegistry: ArtifactSchemaRegistry;
|
|
14
|
+
export declare function artifactSchemaFor(type: ArtifactType): z.ZodObject<{
|
|
15
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export {};
|
package/dist/dispatch.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { artifactBaseSchema } from "./base.js";
|
|
3
|
+
import { contentSchemaForArtifactType } from "./content/registry.js";
|
|
4
|
+
export class ArtifactSchemaRegistry {
|
|
5
|
+
contentSchemas;
|
|
6
|
+
constructor(contentSchemas = contentSchemaForArtifactType) {
|
|
7
|
+
this.contentSchemas = contentSchemas;
|
|
8
|
+
}
|
|
9
|
+
schemaFor(type) {
|
|
10
|
+
return artifactBaseSchema.extend(this.extensionFor(type));
|
|
11
|
+
}
|
|
12
|
+
extensionFor(type) {
|
|
13
|
+
const contentSchema = this.contentSchemas(type);
|
|
14
|
+
return {
|
|
15
|
+
artifactType: z.literal(type),
|
|
16
|
+
...(contentSchema ? { content: contentSchema } : {}),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export const defaultArtifactSchemaRegistry = new ArtifactSchemaRegistry();
|
|
21
|
+
export function artifactSchemaFor(type) {
|
|
22
|
+
return defaultArtifactSchemaRegistry.schemaFor(type);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=dispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAoB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAIrE,MAAM,OAAO,sBAAsB;IAEd;IADnB,YACmB,iBAAsC,4BAA4B;QAAlE,mBAAc,GAAd,cAAc,CAAoD;IAClF,CAAC;IAEJ,SAAS,CAAC,IAAkB;QAC1B,OAAO,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC;IAEO,YAAY,CAAC,IAAkB;QACrC,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhD,OAAO;YACL,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;YAC7B,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACrD,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,sBAAsB,EAAE,CAAC;AAE1E,MAAM,UAAU,iBAAiB,CAAC,IAAkB;IAClD,OAAO,6BAA6B,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { contentSchemaForArtifactType, specializedArtifactContentSchemas, type SpecializedArtifactType, } from "./content/registry.js";
|
|
2
|
+
export { agentRoleSchema, artifactBaseSchema, artifactTypeSchema, commandEvidenceSchema, commandPurposeSchema, createdBySchema, isoTimestampSchema, provenanceSchema, workflowStageSchema, } from "./base.js";
|
|
3
|
+
export type { AgencyArtifact, CommandEvidence, CommandPurpose } from "./base.js";
|
|
4
|
+
export { agentRoles, artifactTypes, workflowStages } from "./catalog.js";
|
|
5
|
+
export type { AgentRole, ArtifactType, WorkflowStage } from "./catalog.js";
|
|
6
|
+
export { browserValidationContentSchema, browserValidationScenarioSchema, clientSummaryContentSchema, commandIntentSchema, conflictReportContentSchema, deploymentChecklistContentSchema, deliveryPlanContentSchema, developmentTaskSchema, engineeringReviewContentSchema, failureReportContentSchema, implementationReportContentSchema, memoryCandidateReportContentSchema, memoryPromotionReportContentSchema, performanceReviewContentSchema, pullRequestPackageContentSchema, releasePackageContentSchema, securityReviewContentSchema, systemVerificationContentSchema, taskBreakdownContentSchema, testReportContentSchema, type AccessibilityReviewContent, type BrowserValidationContent, type BrowserValidationScenario, type ClientSummaryContent, type CommandIntent, type DeploymentChecklistContent, type DeliveryPlanContent, type DevelopmentTask, type EngineeringReviewContent, type ImplementationReportContent, type MemoryCandidateReportContent, type MemoryPromotionReportContent, type PerformanceReviewContent, type PullRequestPackageContent, type ReleasePackageContent, type SecurityReviewContent, type SystemVerificationContent, type TaskBreakdownContent, type TestReportContent, } from "./content.js";
|
|
7
|
+
export { ArtifactSchemaRegistry, artifactSchemaFor } from "./dispatch.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { contentSchemaForArtifactType, specializedArtifactContentSchemas, } from "./content/registry.js";
|
|
2
|
+
export { agentRoleSchema, artifactBaseSchema, artifactTypeSchema, commandEvidenceSchema, commandPurposeSchema, createdBySchema, isoTimestampSchema, provenanceSchema, workflowStageSchema, } from "./base.js";
|
|
3
|
+
export { agentRoles, artifactTypes, workflowStages } from "./catalog.js";
|
|
4
|
+
export { browserValidationContentSchema, browserValidationScenarioSchema, clientSummaryContentSchema, commandIntentSchema, conflictReportContentSchema, deploymentChecklistContentSchema, deliveryPlanContentSchema, developmentTaskSchema, engineeringReviewContentSchema, failureReportContentSchema, implementationReportContentSchema, memoryCandidateReportContentSchema, memoryPromotionReportContentSchema, performanceReviewContentSchema, pullRequestPackageContentSchema, releasePackageContentSchema, securityReviewContentSchema, systemVerificationContentSchema, taskBreakdownContentSchema, testReportContentSchema, } from "./content.js";
|
|
5
|
+
export { ArtifactSchemaRegistry, artifactSchemaFor } from "./dispatch.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,GAElC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,8BAA8B,EAC9B,0BAA0B,EAC1B,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,8BAA8B,EAC9B,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,EAC1B,uBAAuB,GAoBxB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|