@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.
Files changed (86) hide show
  1. package/README.md +3 -0
  2. package/dist/artifact-content-registry.d.ts +165 -0
  3. package/dist/artifact-content-registry.js +11 -0
  4. package/dist/artifact-content-registry.js.map +1 -0
  5. package/dist/base/command-evidence.d.ts +30 -0
  6. package/dist/base/command-evidence.js +21 -0
  7. package/dist/base/command-evidence.js.map +1 -0
  8. package/dist/base.d.ts +150 -0
  9. package/dist/base.js +41 -0
  10. package/dist/base.js.map +1 -0
  11. package/dist/catalog/agent-roles.d.ts +1 -0
  12. package/dist/catalog/agent-roles.js +18 -0
  13. package/dist/catalog/agent-roles.js.map +1 -0
  14. package/dist/catalog/artifact-types.d.ts +1 -0
  15. package/dist/catalog/artifact-types.js +27 -0
  16. package/dist/catalog/artifact-types.js.map +1 -0
  17. package/dist/catalog/workflow-stages.d.ts +1 -0
  18. package/dist/catalog/workflow-stages.js +21 -0
  19. package/dist/catalog/workflow-stages.js.map +1 -0
  20. package/dist/catalog.d.ts +9 -0
  21. package/dist/catalog.js +4 -0
  22. package/dist/catalog.js.map +1 -0
  23. package/dist/content/browser-validation.d.ts +54 -0
  24. package/dist/content/browser-validation.js +23 -0
  25. package/dist/content/browser-validation.js.map +1 -0
  26. package/dist/content/build-reports.d.ts +34 -0
  27. package/dist/content/build-reports.js +19 -0
  28. package/dist/content/build-reports.js.map +1 -0
  29. package/dist/content/conflict-report.d.ts +20 -0
  30. package/dist/content/conflict-report.js +12 -0
  31. package/dist/content/conflict-report.js.map +1 -0
  32. package/dist/content/delivery.d.ts +27 -0
  33. package/dist/content/delivery.js +19 -0
  34. package/dist/content/delivery.js.map +1 -0
  35. package/dist/content/failure-report.d.ts +48 -0
  36. package/dist/content/failure-report.js +26 -0
  37. package/dist/content/failure-report.js.map +1 -0
  38. package/dist/content/memory.d.ts +16 -0
  39. package/dist/content/memory.js +15 -0
  40. package/dist/content/memory.js.map +1 -0
  41. package/dist/content/planning.d.ts +113 -0
  42. package/dist/content/planning.js +31 -0
  43. package/dist/content/planning.js.map +1 -0
  44. package/dist/content/registry.d.ts +325 -0
  45. package/dist/content/registry.js +33 -0
  46. package/dist/content/registry.js.map +1 -0
  47. package/dist/content/review.d.ts +40 -0
  48. package/dist/content/review.js +24 -0
  49. package/dist/content/review.js.map +1 -0
  50. package/dist/content/system-verification.d.ts +58 -0
  51. package/dist/content/system-verification.js +33 -0
  52. package/dist/content/system-verification.js.map +1 -0
  53. package/dist/content.d.ts +9 -0
  54. package/dist/content.js +10 -0
  55. package/dist/content.js.map +1 -0
  56. package/dist/dispatch.d.ts +17 -0
  57. package/dist/dispatch.js +24 -0
  58. package/dist/dispatch.js.map +1 -0
  59. package/dist/index.d.ts +7 -0
  60. package/dist/index.js +6 -0
  61. package/dist/index.js.map +1 -0
  62. package/package.json +27 -0
  63. package/schemas/accessibility-review.schema.json +175 -0
  64. package/schemas/adr-record.schema.json +175 -0
  65. package/schemas/browser-validation-report.schema.json +273 -0
  66. package/schemas/client-brief.schema.json +175 -0
  67. package/schemas/client-summary.schema.json +175 -0
  68. package/schemas/conflict-report.schema.json +211 -0
  69. package/schemas/delivery-plan.schema.json +175 -0
  70. package/schemas/deployment-checklist.schema.json +175 -0
  71. package/schemas/discovery-report.schema.json +175 -0
  72. package/schemas/engineering-review.schema.json +175 -0
  73. package/schemas/failure-report.schema.json +252 -0
  74. package/schemas/implementation-report.schema.json +175 -0
  75. package/schemas/memory-candidate-report.schema.json +175 -0
  76. package/schemas/memory-promotion-report.schema.json +175 -0
  77. package/schemas/performance-review.schema.json +175 -0
  78. package/schemas/product-spec.schema.json +175 -0
  79. package/schemas/pull-request-package.schema.json +175 -0
  80. package/schemas/release-package.schema.json +175 -0
  81. package/schemas/security-review.schema.json +175 -0
  82. package/schemas/system-verification-report.schema.json +351 -0
  83. package/schemas/task-breakdown.schema.json +175 -0
  84. package/schemas/technical-design.schema.json +175 -0
  85. package/schemas/test-plan.schema.json +175 -0
  86. package/schemas/test-report.schema.json +175 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @arcfoundry/schemas
2
+
3
+ JSON artifact schemas, schema catalogs, and TypeScript types for Arc Foundry agency workflow artifacts.
@@ -0,0 +1,165 @@
1
+ import { z } from "zod";
2
+ import { type ArtifactType } from "./catalog.js";
3
+ export declare const specializedArtifactContentSchemas: {
4
+ "browser-validation-report": z.ZodObject<{
5
+ environment: z.ZodObject<{
6
+ command: z.ZodString;
7
+ baseUrl: z.ZodString;
8
+ browser: z.ZodEnum<{
9
+ chromium: "chromium";
10
+ firefox: "firefox";
11
+ webkit: "webkit";
12
+ other: "other";
13
+ }>;
14
+ playwrightMode: z.ZodEnum<{
15
+ cli: "cli";
16
+ mcp: "mcp";
17
+ "test-runner": "test-runner";
18
+ }>;
19
+ }, z.core.$strip>;
20
+ scenarios: z.ZodArray<z.ZodObject<{
21
+ name: z.ZodString;
22
+ status: z.ZodEnum<{
23
+ passed: "passed";
24
+ failed: "failed";
25
+ skipped: "skipped";
26
+ }>;
27
+ steps: z.ZodArray<z.ZodString>;
28
+ assertions: z.ZodArray<z.ZodString>;
29
+ consoleErrors: z.ZodArray<z.ZodString>;
30
+ networkErrors: z.ZodArray<z.ZodString>;
31
+ screenshots: z.ZodArray<z.ZodString>;
32
+ trace: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ blockingIssues: z.ZodArray<z.ZodString>;
35
+ recommendation: z.ZodEnum<{
36
+ pass: "pass";
37
+ fail: "fail";
38
+ "needs-human-review": "needs-human-review";
39
+ }>;
40
+ }, z.core.$strip>;
41
+ "system-verification-report": z.ZodObject<{
42
+ verificationRunId: z.ZodString;
43
+ projectType: z.ZodEnum<{
44
+ "simple-ui": "simple-ui";
45
+ "interactive-ui": "interactive-ui";
46
+ "data-driven": "data-driven";
47
+ "auth-sensitive": "auth-sensitive";
48
+ "existing-project": "existing-project";
49
+ "request-driven": "request-driven";
50
+ }>;
51
+ clientRequest: z.ZodString;
52
+ repository: z.ZodObject<{
53
+ path: z.ZodString;
54
+ gitShaBefore: z.ZodNullable<z.ZodString>;
55
+ gitShaAfter: z.ZodNullable<z.ZodString>;
56
+ branch: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>;
58
+ commandsExecuted: z.ZodArray<z.ZodObject<{
59
+ purpose: z.ZodEnum<{
60
+ other: "other";
61
+ format: "format";
62
+ install: "install";
63
+ test: "test";
64
+ build: "build";
65
+ "browser-validation": "browser-validation";
66
+ "agent-stage": "agent-stage";
67
+ lint: "lint";
68
+ "architecture-check": "architecture-check";
69
+ }>;
70
+ command: z.ZodString;
71
+ exitCode: z.ZodNumber;
72
+ durationMs: z.ZodNumber;
73
+ stdoutRef: z.ZodNullable<z.ZodString>;
74
+ stderrRef: z.ZodNullable<z.ZodString>;
75
+ }, z.core.$strip>>;
76
+ browserValidation: z.ZodObject<{
77
+ used: z.ZodBoolean;
78
+ tool: z.ZodEnum<{
79
+ other: "other";
80
+ "playwright-cli": "playwright-cli";
81
+ "playwright-mcp": "playwright-mcp";
82
+ "playwright-test-runner": "playwright-test-runner";
83
+ }>;
84
+ reportRef: z.ZodString;
85
+ }, z.core.$strip>;
86
+ artifactsProduced: z.ZodArray<z.ZodString>;
87
+ testsPassed: z.ZodBoolean;
88
+ blockingIssues: z.ZodArray<z.ZodString>;
89
+ systemWeaknessesDiscovered: z.ZodArray<z.ZodString>;
90
+ improvementsRequired: z.ZodArray<z.ZodString>;
91
+ recommendation: z.ZodEnum<{
92
+ pass: "pass";
93
+ fail: "fail";
94
+ "needs-improvement": "needs-improvement";
95
+ }>;
96
+ }, z.core.$strip>;
97
+ "conflict-report": z.ZodObject<{
98
+ conflictType: z.ZodEnum<{
99
+ adr_violation: "adr_violation";
100
+ missing_decision: "missing_decision";
101
+ supersession_required: "supersession_required";
102
+ }>;
103
+ relatedAdrIds: z.ZodArray<z.ZodString>;
104
+ impact: z.ZodEnum<{
105
+ low: "low";
106
+ medium: "medium";
107
+ high: "high";
108
+ critical: "critical";
109
+ }>;
110
+ options: z.ZodArray<z.ZodObject<{
111
+ option: z.ZodString;
112
+ tradeoffs: z.ZodArray<z.ZodString>;
113
+ requiresApproval: z.ZodBoolean;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>;
116
+ "failure-report": z.ZodObject<{
117
+ stage: z.ZodEnum<{
118
+ "technical-design": "technical-design";
119
+ "security-review": "security-review";
120
+ "accessibility-review": "accessibility-review";
121
+ "performance-review": "performance-review";
122
+ "engineering-review": "engineering-review";
123
+ "browser-validation": "browser-validation";
124
+ intake: "intake";
125
+ discovery: "discovery";
126
+ "product-specification": "product-specification";
127
+ "memory-retrieval": "memory-retrieval";
128
+ "adr-retrieval": "adr-retrieval";
129
+ "delivery-planning": "delivery-planning";
130
+ implementation: "implementation";
131
+ "unit-integration-tests": "unit-integration-tests";
132
+ "delivery-package": "delivery-package";
133
+ "memory-candidate-write": "memory-candidate-write";
134
+ "memory-promotion": "memory-promotion";
135
+ "system-verification": "system-verification";
136
+ }>;
137
+ failureType: z.ZodEnum<{
138
+ browser: "browser";
139
+ unknown: "unknown";
140
+ test: "test";
141
+ implementation: "implementation";
142
+ validation: "validation";
143
+ security: "security";
144
+ accessibility: "accessibility";
145
+ performance: "performance";
146
+ runtime: "runtime";
147
+ governance: "governance";
148
+ memory: "memory";
149
+ }>;
150
+ severity: z.ZodEnum<{
151
+ low: "low";
152
+ medium: "medium";
153
+ high: "high";
154
+ critical: "critical";
155
+ }>;
156
+ summary: z.ZodString;
157
+ details: z.ZodString;
158
+ blocking: z.ZodBoolean;
159
+ recommendedFixes: z.ZodArray<z.ZodString>;
160
+ requiresHumanApproval: z.ZodBoolean;
161
+ artifactsAffected: z.ZodArray<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ };
164
+ export type SpecializedArtifactType = keyof typeof specializedArtifactContentSchemas;
165
+ export declare function contentSchemaForArtifactType(artifactType: ArtifactType): z.ZodType | null;
@@ -0,0 +1,11 @@
1
+ import { browserValidationContentSchema, conflictReportContentSchema, failureReportContentSchema, systemVerificationContentSchema, } from "./content.js";
2
+ export const specializedArtifactContentSchemas = {
3
+ "browser-validation-report": browserValidationContentSchema,
4
+ "system-verification-report": systemVerificationContentSchema,
5
+ "conflict-report": conflictReportContentSchema,
6
+ "failure-report": failureReportContentSchema,
7
+ };
8
+ export function contentSchemaForArtifactType(artifactType) {
9
+ return specializedArtifactContentSchemas[artifactType] ?? null;
10
+ }
11
+ //# sourceMappingURL=artifact-content-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-content-registry.js","sourceRoot":"","sources":["../src/artifact-content-registry.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,2BAA2B,EAAE,8BAA8B;IAC3D,4BAA4B,EAAE,+BAA+B;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,30 @@
1
+ import { z } from "zod";
2
+ export declare const commandPurposeSchema: z.ZodEnum<{
3
+ install: "install";
4
+ test: "test";
5
+ build: "build";
6
+ "browser-validation": "browser-validation";
7
+ "agent-stage": "agent-stage";
8
+ lint: "lint";
9
+ format: "format";
10
+ "architecture-check": "architecture-check";
11
+ other: "other";
12
+ }>;
13
+ export declare const commandEvidenceSchema: z.ZodObject<{
14
+ purpose: z.ZodEnum<{
15
+ install: "install";
16
+ test: "test";
17
+ build: "build";
18
+ "browser-validation": "browser-validation";
19
+ "agent-stage": "agent-stage";
20
+ lint: "lint";
21
+ format: "format";
22
+ "architecture-check": "architecture-check";
23
+ other: "other";
24
+ }>;
25
+ command: z.ZodString;
26
+ exitCode: z.ZodNumber;
27
+ durationMs: z.ZodNumber;
28
+ stdoutRef: z.ZodNullable<z.ZodString>;
29
+ stderrRef: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>;
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export const commandPurposeSchema = z.enum([
3
+ "install",
4
+ "test",
5
+ "build",
6
+ "browser-validation",
7
+ "agent-stage",
8
+ "lint",
9
+ "format",
10
+ "architecture-check",
11
+ "other",
12
+ ]);
13
+ export const commandEvidenceSchema = z.object({
14
+ purpose: commandPurposeSchema,
15
+ command: z.string().min(1),
16
+ exitCode: z.number().int(),
17
+ durationMs: z.number().int().nonnegative(),
18
+ stdoutRef: z.string().nullable(),
19
+ stderrRef: z.string().nullable(),
20
+ });
21
+ //# sourceMappingURL=command-evidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-evidence.js","sourceRoot":"","sources":["../../src/base/command-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,SAAS;IACT,MAAM;IACN,OAAO;IACP,oBAAoB;IACpB,aAAa;IACb,MAAM;IACN,QAAQ;IACR,oBAAoB;IACpB,OAAO;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
package/dist/base.d.ts ADDED
@@ -0,0 +1,150 @@
1
+ import { z } from "zod";
2
+ import { commandEvidenceSchema, commandPurposeSchema } from "./base/command-evidence.js";
3
+ export declare const artifactTypeSchema: z.ZodEnum<{
4
+ "client-brief": "client-brief";
5
+ "discovery-report": "discovery-report";
6
+ "product-spec": "product-spec";
7
+ "technical-design": "technical-design";
8
+ "adr-record": "adr-record";
9
+ "delivery-plan": "delivery-plan";
10
+ "task-breakdown": "task-breakdown";
11
+ "implementation-report": "implementation-report";
12
+ "test-plan": "test-plan";
13
+ "test-report": "test-report";
14
+ "browser-validation-report": "browser-validation-report";
15
+ "security-review": "security-review";
16
+ "accessibility-review": "accessibility-review";
17
+ "performance-review": "performance-review";
18
+ "engineering-review": "engineering-review";
19
+ "pull-request-package": "pull-request-package";
20
+ "release-package": "release-package";
21
+ "deployment-checklist": "deployment-checklist";
22
+ "client-summary": "client-summary";
23
+ "memory-candidate-report": "memory-candidate-report";
24
+ "memory-promotion-report": "memory-promotion-report";
25
+ "system-verification-report": "system-verification-report";
26
+ "conflict-report": "conflict-report";
27
+ "failure-report": "failure-report";
28
+ }>;
29
+ export declare const workflowStageSchema: z.ZodEnum<{
30
+ "browser-validation": "browser-validation";
31
+ "technical-design": "technical-design";
32
+ "security-review": "security-review";
33
+ "accessibility-review": "accessibility-review";
34
+ "performance-review": "performance-review";
35
+ "engineering-review": "engineering-review";
36
+ intake: "intake";
37
+ discovery: "discovery";
38
+ "product-specification": "product-specification";
39
+ "memory-retrieval": "memory-retrieval";
40
+ "adr-retrieval": "adr-retrieval";
41
+ "delivery-planning": "delivery-planning";
42
+ implementation: "implementation";
43
+ "unit-integration-tests": "unit-integration-tests";
44
+ "delivery-package": "delivery-package";
45
+ "memory-candidate-write": "memory-candidate-write";
46
+ "memory-promotion": "memory-promotion";
47
+ "system-verification": "system-verification";
48
+ }>;
49
+ export declare const agentRoleSchema: z.ZodEnum<{
50
+ "Intake Agent": "Intake Agent";
51
+ "Discovery Agent": "Discovery Agent";
52
+ "Product Specification Agent": "Product Specification Agent";
53
+ "Architect Agent": "Architect Agent";
54
+ "Planner Agent": "Planner Agent";
55
+ "Implementer Agent": "Implementer Agent";
56
+ "Test Agent": "Test Agent";
57
+ "Browser Validation Agent": "Browser Validation Agent";
58
+ "Security Agent": "Security Agent";
59
+ "Accessibility Agent": "Accessibility Agent";
60
+ "Performance Agent": "Performance Agent";
61
+ "Reviewer Agent": "Reviewer Agent";
62
+ "Delivery Agent": "Delivery Agent";
63
+ "Memory Curator Agent": "Memory Curator Agent";
64
+ "Verification Agent": "Verification Agent";
65
+ }>;
66
+ export declare const isoTimestampSchema: z.ZodString;
67
+ export declare const createdBySchema: z.ZodObject<{
68
+ agent: z.ZodString;
69
+ model: z.ZodNullable<z.ZodString>;
70
+ runtime: z.ZodEnum<{
71
+ other: "other";
72
+ opencode: "opencode";
73
+ codex: "codex";
74
+ }>;
75
+ }, z.core.$strip>;
76
+ export declare const provenanceSchema: z.ZodObject<{
77
+ sourceRequest: z.ZodNullable<z.ZodString>;
78
+ sourceArtifacts: z.ZodArray<z.ZodString>;
79
+ sourceMemoryIds: z.ZodArray<z.ZodString>;
80
+ sourceAdrIds: z.ZodArray<z.ZodString>;
81
+ gitSha: z.ZodNullable<z.ZodString>;
82
+ branch: z.ZodNullable<z.ZodString>;
83
+ worktreeId: z.ZodNullable<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ export declare const artifactBaseSchema: z.ZodObject<{
86
+ schemaVersion: z.ZodString;
87
+ artifactType: z.ZodEnum<{
88
+ "client-brief": "client-brief";
89
+ "discovery-report": "discovery-report";
90
+ "product-spec": "product-spec";
91
+ "technical-design": "technical-design";
92
+ "adr-record": "adr-record";
93
+ "delivery-plan": "delivery-plan";
94
+ "task-breakdown": "task-breakdown";
95
+ "implementation-report": "implementation-report";
96
+ "test-plan": "test-plan";
97
+ "test-report": "test-report";
98
+ "browser-validation-report": "browser-validation-report";
99
+ "security-review": "security-review";
100
+ "accessibility-review": "accessibility-review";
101
+ "performance-review": "performance-review";
102
+ "engineering-review": "engineering-review";
103
+ "pull-request-package": "pull-request-package";
104
+ "release-package": "release-package";
105
+ "deployment-checklist": "deployment-checklist";
106
+ "client-summary": "client-summary";
107
+ "memory-candidate-report": "memory-candidate-report";
108
+ "memory-promotion-report": "memory-promotion-report";
109
+ "system-verification-report": "system-verification-report";
110
+ "conflict-report": "conflict-report";
111
+ "failure-report": "failure-report";
112
+ }>;
113
+ artifactId: z.ZodString;
114
+ projectId: z.ZodString;
115
+ requestId: z.ZodString;
116
+ createdAt: z.ZodString;
117
+ createdBy: z.ZodObject<{
118
+ agent: z.ZodString;
119
+ model: z.ZodNullable<z.ZodString>;
120
+ runtime: z.ZodEnum<{
121
+ other: "other";
122
+ opencode: "opencode";
123
+ codex: "codex";
124
+ }>;
125
+ }, z.core.$strip>;
126
+ status: z.ZodEnum<{
127
+ draft: "draft";
128
+ candidate: "candidate";
129
+ approved: "approved";
130
+ rejected: "rejected";
131
+ superseded: "superseded";
132
+ }>;
133
+ provenance: z.ZodObject<{
134
+ sourceRequest: z.ZodNullable<z.ZodString>;
135
+ sourceArtifacts: z.ZodArray<z.ZodString>;
136
+ sourceMemoryIds: z.ZodArray<z.ZodString>;
137
+ sourceAdrIds: z.ZodArray<z.ZodString>;
138
+ gitSha: z.ZodNullable<z.ZodString>;
139
+ branch: z.ZodNullable<z.ZodString>;
140
+ worktreeId: z.ZodNullable<z.ZodString>;
141
+ }, z.core.$strip>;
142
+ assumptions: z.ZodArray<z.ZodString>;
143
+ risks: z.ZodArray<z.ZodString>;
144
+ openQuestions: z.ZodArray<z.ZodString>;
145
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
146
+ }, z.core.$strip>;
147
+ export { commandEvidenceSchema, commandPurposeSchema };
148
+ export type AgencyArtifact = z.infer<typeof artifactBaseSchema>;
149
+ export type CommandPurpose = z.infer<typeof commandPurposeSchema>;
150
+ export type CommandEvidence = z.infer<typeof commandEvidenceSchema>;
package/dist/base.js ADDED
@@ -0,0 +1,41 @@
1
+ import { z } from "zod";
2
+ import { commandEvidenceSchema, commandPurposeSchema } from "./base/command-evidence.js";
3
+ import { agentRoles, artifactTypes, workflowStages } from "./catalog.js";
4
+ export const artifactTypeSchema = z.enum(artifactTypes);
5
+ export const workflowStageSchema = z.enum(workflowStages);
6
+ export const agentRoleSchema = z.enum(agentRoles);
7
+ export const isoTimestampSchema = z
8
+ .string()
9
+ .datetime({ offset: true })
10
+ .describe("ISO-8601 timestamp with timezone offset");
11
+ export const createdBySchema = z.object({
12
+ agent: z.string().min(1),
13
+ model: z.string().nullable(),
14
+ runtime: z.enum(["opencode", "codex", "other"]),
15
+ });
16
+ export const provenanceSchema = z.object({
17
+ sourceRequest: z.string().nullable(),
18
+ sourceArtifacts: z.array(z.string()),
19
+ sourceMemoryIds: z.array(z.string()),
20
+ sourceAdrIds: z.array(z.string()),
21
+ gitSha: z.string().nullable(),
22
+ branch: z.string().nullable(),
23
+ worktreeId: z.string().nullable(),
24
+ });
25
+ export const artifactBaseSchema = z.object({
26
+ schemaVersion: z.string().min(1),
27
+ artifactType: artifactTypeSchema,
28
+ artifactId: z.string().min(1),
29
+ projectId: z.string().min(1),
30
+ requestId: z.string().min(1),
31
+ createdAt: isoTimestampSchema,
32
+ createdBy: createdBySchema,
33
+ status: z.enum(["draft", "candidate", "approved", "rejected", "superseded"]),
34
+ provenance: provenanceSchema,
35
+ assumptions: z.array(z.string()),
36
+ risks: z.array(z.string()),
37
+ openQuestions: z.array(z.string()),
38
+ content: z.record(z.string(), z.unknown()),
39
+ });
40
+ export { commandEvidenceSchema, commandPurposeSchema };
41
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAA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agent", "Planner Agent", "Implementer Agent", "Test Agent", "Browser Validation Agent", "Security Agent", "Accessibility Agent", "Performance Agent", "Reviewer Agent", "Delivery Agent", "Memory Curator Agent", "Verification Agent"];
@@ -0,0 +1,18 @@
1
+ export const agentRoles = [
2
+ "Intake Agent",
3
+ "Discovery Agent",
4
+ "Product Specification Agent",
5
+ "Architect Agent",
6
+ "Planner Agent",
7
+ "Implementer Agent",
8
+ "Test Agent",
9
+ "Browser Validation Agent",
10
+ "Security Agent",
11
+ "Accessibility Agent",
12
+ "Performance Agent",
13
+ "Reviewer Agent",
14
+ "Delivery Agent",
15
+ "Memory Curator Agent",
16
+ "Verification Agent",
17
+ ];
18
+ //# sourceMappingURL=agent-roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-roles.js","sourceRoot":"","sources":["../../src/catalog/agent-roles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc;IACd,iBAAiB;IACjB,6BAA6B;IAC7B,iBAAiB;IACjB,eAAe;IACf,mBAAmB;IACnB,YAAY;IACZ,0BAA0B;IAC1B,gBAAgB;IAChB,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,oBAAoB;CACZ,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const artifactTypes: readonly ["client-brief", "discovery-report", "product-spec", "technical-design", "adr-record", "delivery-plan", "task-breakdown", "implementation-report", "test-plan", "test-report", "browser-validation-report", "security-review", "accessibility-review", "performance-review", "engineering-review", "pull-request-package", "release-package", "deployment-checklist", "client-summary", "memory-candidate-report", "memory-promotion-report", "system-verification-report", "conflict-report", "failure-report"];
@@ -0,0 +1,27 @@
1
+ export const artifactTypes = [
2
+ "client-brief",
3
+ "discovery-report",
4
+ "product-spec",
5
+ "technical-design",
6
+ "adr-record",
7
+ "delivery-plan",
8
+ "task-breakdown",
9
+ "implementation-report",
10
+ "test-plan",
11
+ "test-report",
12
+ "browser-validation-report",
13
+ "security-review",
14
+ "accessibility-review",
15
+ "performance-review",
16
+ "engineering-review",
17
+ "pull-request-package",
18
+ "release-package",
19
+ "deployment-checklist",
20
+ "client-summary",
21
+ "memory-candidate-report",
22
+ "memory-promotion-report",
23
+ "system-verification-report",
24
+ "conflict-report",
25
+ "failure-report",
26
+ ];
27
+ //# sourceMappingURL=artifact-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-types.js","sourceRoot":"","sources":["../../src/catalog/artifact-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,uBAAuB;IACvB,WAAW;IACX,aAAa;IACb,2BAA2B;IAC3B,iBAAiB;IACjB,sBAAsB;IACtB,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,yBAAyB;IACzB,yBAAyB;IACzB,4BAA4B;IAC5B,iBAAiB;IACjB,gBAAgB;CACR,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const workflowStages: readonly ["intake", "discovery", "product-specification", "memory-retrieval", "adr-retrieval", "technical-design", "delivery-planning", "implementation", "unit-integration-tests", "browser-validation", "security-review", "accessibility-review", "performance-review", "engineering-review", "delivery-package", "memory-candidate-write", "memory-promotion", "system-verification"];
@@ -0,0 +1,21 @@
1
+ export const workflowStages = [
2
+ "intake",
3
+ "discovery",
4
+ "product-specification",
5
+ "memory-retrieval",
6
+ "adr-retrieval",
7
+ "technical-design",
8
+ "delivery-planning",
9
+ "implementation",
10
+ "unit-integration-tests",
11
+ "browser-validation",
12
+ "security-review",
13
+ "accessibility-review",
14
+ "performance-review",
15
+ "engineering-review",
16
+ "delivery-package",
17
+ "memory-candidate-write",
18
+ "memory-promotion",
19
+ "system-verification",
20
+ ];
21
+ //# sourceMappingURL=workflow-stages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-stages.js","sourceRoot":"","sources":["../../src/catalog/workflow-stages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,QAAQ;IACR,WAAW;IACX,uBAAuB;IACvB,kBAAkB;IAClB,eAAe;IACf,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,wBAAwB;IACxB,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;IACtB,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,wBAAwB;IACxB,kBAAkB;IAClB,qBAAqB;CACb,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { agentRoles } from "./catalog/agent-roles.js";
2
+ export { artifactTypes } from "./catalog/artifact-types.js";
3
+ export { workflowStages } from "./catalog/workflow-stages.js";
4
+ import { agentRoles } from "./catalog/agent-roles.js";
5
+ import { artifactTypes } from "./catalog/artifact-types.js";
6
+ import { workflowStages } from "./catalog/workflow-stages.js";
7
+ export type ArtifactType = (typeof artifactTypes)[number];
8
+ export type WorkflowStage = (typeof workflowStages)[number];
9
+ export type AgentRole = (typeof agentRoles)[number];
@@ -0,0 +1,4 @@
1
+ export { agentRoles } from "./catalog/agent-roles.js";
2
+ export { artifactTypes } from "./catalog/artifact-types.js";
3
+ export { workflowStages } from "./catalog/workflow-stages.js";
4
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { z } from "zod";
2
+ export declare const browserValidationScenarioSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ status: z.ZodEnum<{
5
+ passed: "passed";
6
+ failed: "failed";
7
+ skipped: "skipped";
8
+ }>;
9
+ steps: z.ZodArray<z.ZodString>;
10
+ assertions: z.ZodArray<z.ZodString>;
11
+ consoleErrors: z.ZodArray<z.ZodString>;
12
+ networkErrors: z.ZodArray<z.ZodString>;
13
+ screenshots: z.ZodArray<z.ZodString>;
14
+ trace: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export declare const browserValidationContentSchema: z.ZodObject<{
17
+ environment: z.ZodObject<{
18
+ command: z.ZodString;
19
+ baseUrl: z.ZodString;
20
+ browser: z.ZodEnum<{
21
+ chromium: "chromium";
22
+ firefox: "firefox";
23
+ webkit: "webkit";
24
+ other: "other";
25
+ }>;
26
+ playwrightMode: z.ZodEnum<{
27
+ cli: "cli";
28
+ mcp: "mcp";
29
+ "test-runner": "test-runner";
30
+ }>;
31
+ }, z.core.$strip>;
32
+ scenarios: z.ZodArray<z.ZodObject<{
33
+ name: z.ZodString;
34
+ status: z.ZodEnum<{
35
+ passed: "passed";
36
+ failed: "failed";
37
+ skipped: "skipped";
38
+ }>;
39
+ steps: z.ZodArray<z.ZodString>;
40
+ assertions: z.ZodArray<z.ZodString>;
41
+ consoleErrors: z.ZodArray<z.ZodString>;
42
+ networkErrors: z.ZodArray<z.ZodString>;
43
+ screenshots: z.ZodArray<z.ZodString>;
44
+ trace: z.ZodNullable<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ blockingIssues: z.ZodArray<z.ZodString>;
47
+ recommendation: z.ZodEnum<{
48
+ pass: "pass";
49
+ fail: "fail";
50
+ "needs-human-review": "needs-human-review";
51
+ }>;
52
+ }, z.core.$strip>;
53
+ export type BrowserValidationScenario = z.infer<typeof browserValidationScenarioSchema>;
54
+ export type BrowserValidationContent = z.infer<typeof browserValidationContentSchema>;
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ export const browserValidationScenarioSchema = z.object({
3
+ name: z.string().min(1),
4
+ status: z.enum(["passed", "failed", "skipped"]),
5
+ steps: z.array(z.string()),
6
+ assertions: z.array(z.string()),
7
+ consoleErrors: z.array(z.string()),
8
+ networkErrors: z.array(z.string()),
9
+ screenshots: z.array(z.string()),
10
+ trace: z.string().nullable(),
11
+ });
12
+ export const browserValidationContentSchema = z.object({
13
+ environment: z.object({
14
+ command: z.string(),
15
+ baseUrl: z.string(),
16
+ browser: z.enum(["chromium", "firefox", "webkit", "other"]),
17
+ playwrightMode: z.enum(["cli", "mcp", "test-runner"]),
18
+ }),
19
+ scenarios: z.array(browserValidationScenarioSchema),
20
+ blockingIssues: z.array(z.string()),
21
+ recommendation: z.enum(["pass", "fail", "needs-human-review"]),
22
+ });
23
+ //# sourceMappingURL=browser-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-validation.js","sourceRoot":"","sources":["../../src/content/browser-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EA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