popeye-cli 1.10.0 → 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/CHANGELOG.md +59 -0
- package/CONTRIBUTING.md +15 -1
- package/README.md +57 -0
- package/dist/pipeline/artifact-manager.d.ts +47 -0
- package/dist/pipeline/artifact-manager.d.ts.map +1 -0
- package/dist/pipeline/artifact-manager.js +251 -0
- package/dist/pipeline/artifact-manager.js.map +1 -0
- package/dist/pipeline/artifact-validators.d.ts +29 -0
- package/dist/pipeline/artifact-validators.d.ts.map +1 -0
- package/dist/pipeline/artifact-validators.js +173 -0
- package/dist/pipeline/artifact-validators.js.map +1 -0
- package/dist/pipeline/change-request.d.ts +47 -0
- package/dist/pipeline/change-request.d.ts.map +1 -0
- package/dist/pipeline/change-request.js +91 -0
- package/dist/pipeline/change-request.js.map +1 -0
- package/dist/pipeline/check-runner.d.ts +47 -0
- package/dist/pipeline/check-runner.d.ts.map +1 -0
- package/dist/pipeline/check-runner.js +417 -0
- package/dist/pipeline/check-runner.js.map +1 -0
- package/dist/pipeline/command-resolver.d.ts +9 -0
- package/dist/pipeline/command-resolver.d.ts.map +1 -0
- package/dist/pipeline/command-resolver.js +140 -0
- package/dist/pipeline/command-resolver.js.map +1 -0
- package/dist/pipeline/consensus/consensus-runner.d.ts +44 -0
- package/dist/pipeline/consensus/consensus-runner.d.ts.map +1 -0
- package/dist/pipeline/consensus/consensus-runner.js +212 -0
- package/dist/pipeline/consensus/consensus-runner.js.map +1 -0
- package/dist/pipeline/constitution.d.ts +45 -0
- package/dist/pipeline/constitution.d.ts.map +1 -0
- package/dist/pipeline/constitution.js +82 -0
- package/dist/pipeline/constitution.js.map +1 -0
- package/dist/pipeline/gate-engine.d.ts +55 -0
- package/dist/pipeline/gate-engine.d.ts.map +1 -0
- package/dist/pipeline/gate-engine.js +270 -0
- package/dist/pipeline/gate-engine.js.map +1 -0
- package/dist/pipeline/index.d.ts +26 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/index.js +35 -0
- package/dist/pipeline/index.js.map +1 -0
- package/dist/pipeline/migration.d.ts +15 -0
- package/dist/pipeline/migration.d.ts.map +1 -0
- package/dist/pipeline/migration.js +76 -0
- package/dist/pipeline/migration.js.map +1 -0
- package/dist/pipeline/orchestrator.d.ts +28 -0
- package/dist/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/pipeline/orchestrator.js +238 -0
- package/dist/pipeline/orchestrator.js.map +1 -0
- package/dist/pipeline/packets/audit-report-builder.d.ts +11 -0
- package/dist/pipeline/packets/audit-report-builder.d.ts.map +1 -0
- package/dist/pipeline/packets/audit-report-builder.js +32 -0
- package/dist/pipeline/packets/audit-report-builder.js.map +1 -0
- package/dist/pipeline/packets/consensus-packet-builder.d.ts +35 -0
- package/dist/pipeline/packets/consensus-packet-builder.d.ts.map +1 -0
- package/dist/pipeline/packets/consensus-packet-builder.js +80 -0
- package/dist/pipeline/packets/consensus-packet-builder.js.map +1 -0
- package/dist/pipeline/packets/index.d.ts +12 -0
- package/dist/pipeline/packets/index.d.ts.map +1 -0
- package/dist/pipeline/packets/index.js +8 -0
- package/dist/pipeline/packets/index.js.map +1 -0
- package/dist/pipeline/packets/plan-packet-builder.d.ts +21 -0
- package/dist/pipeline/packets/plan-packet-builder.d.ts.map +1 -0
- package/dist/pipeline/packets/plan-packet-builder.js +27 -0
- package/dist/pipeline/packets/plan-packet-builder.js.map +1 -0
- package/dist/pipeline/packets/rca-packet-builder.d.ts +19 -0
- package/dist/pipeline/packets/rca-packet-builder.d.ts.map +1 -0
- package/dist/pipeline/packets/rca-packet-builder.js +22 -0
- package/dist/pipeline/packets/rca-packet-builder.js.map +1 -0
- package/dist/pipeline/phases/architecture.d.ts +7 -0
- package/dist/pipeline/phases/architecture.d.ts.map +1 -0
- package/dist/pipeline/phases/architecture.js +60 -0
- package/dist/pipeline/phases/architecture.js.map +1 -0
- package/dist/pipeline/phases/audit.d.ts +8 -0
- package/dist/pipeline/phases/audit.d.ts.map +1 -0
- package/dist/pipeline/phases/audit.js +144 -0
- package/dist/pipeline/phases/audit.js.map +1 -0
- package/dist/pipeline/phases/consensus-architecture.d.ts +7 -0
- package/dist/pipeline/phases/consensus-architecture.d.ts.map +1 -0
- package/dist/pipeline/phases/consensus-architecture.js +84 -0
- package/dist/pipeline/phases/consensus-architecture.js.map +1 -0
- package/dist/pipeline/phases/consensus-master-plan.d.ts +7 -0
- package/dist/pipeline/phases/consensus-master-plan.d.ts.map +1 -0
- package/dist/pipeline/phases/consensus-master-plan.js +81 -0
- package/dist/pipeline/phases/consensus-master-plan.js.map +1 -0
- package/dist/pipeline/phases/consensus-role-plans.d.ts +7 -0
- package/dist/pipeline/phases/consensus-role-plans.d.ts.map +1 -0
- package/dist/pipeline/phases/consensus-role-plans.js +85 -0
- package/dist/pipeline/phases/consensus-role-plans.js.map +1 -0
- package/dist/pipeline/phases/done.d.ts +7 -0
- package/dist/pipeline/phases/done.d.ts.map +1 -0
- package/dist/pipeline/phases/done.js +45 -0
- package/dist/pipeline/phases/done.js.map +1 -0
- package/dist/pipeline/phases/implementation.d.ts +8 -0
- package/dist/pipeline/phases/implementation.d.ts.map +1 -0
- package/dist/pipeline/phases/implementation.js +42 -0
- package/dist/pipeline/phases/implementation.js.map +1 -0
- package/dist/pipeline/phases/index.d.ts +20 -0
- package/dist/pipeline/phases/index.d.ts.map +1 -0
- package/dist/pipeline/phases/index.js +19 -0
- package/dist/pipeline/phases/index.js.map +1 -0
- package/dist/pipeline/phases/intake.d.ts +8 -0
- package/dist/pipeline/phases/intake.d.ts.map +1 -0
- package/dist/pipeline/phases/intake.js +40 -0
- package/dist/pipeline/phases/intake.js.map +1 -0
- package/dist/pipeline/phases/phase-context.d.ts +30 -0
- package/dist/pipeline/phases/phase-context.d.ts.map +1 -0
- package/dist/pipeline/phases/phase-context.js +33 -0
- package/dist/pipeline/phases/phase-context.js.map +1 -0
- package/dist/pipeline/phases/production-gate.d.ts +8 -0
- package/dist/pipeline/phases/production-gate.d.ts.map +1 -0
- package/dist/pipeline/phases/production-gate.js +84 -0
- package/dist/pipeline/phases/production-gate.js.map +1 -0
- package/dist/pipeline/phases/qa-validation.d.ts +7 -0
- package/dist/pipeline/phases/qa-validation.d.ts.map +1 -0
- package/dist/pipeline/phases/qa-validation.js +50 -0
- package/dist/pipeline/phases/qa-validation.js.map +1 -0
- package/dist/pipeline/phases/recovery-loop.d.ts +7 -0
- package/dist/pipeline/phases/recovery-loop.d.ts.map +1 -0
- package/dist/pipeline/phases/recovery-loop.js +91 -0
- package/dist/pipeline/phases/recovery-loop.js.map +1 -0
- package/dist/pipeline/phases/review.d.ts +8 -0
- package/dist/pipeline/phases/review.d.ts.map +1 -0
- package/dist/pipeline/phases/review.js +127 -0
- package/dist/pipeline/phases/review.js.map +1 -0
- package/dist/pipeline/phases/role-planning.d.ts +7 -0
- package/dist/pipeline/phases/role-planning.d.ts.map +1 -0
- package/dist/pipeline/phases/role-planning.js +75 -0
- package/dist/pipeline/phases/role-planning.js.map +1 -0
- package/dist/pipeline/phases/stuck.d.ts +7 -0
- package/dist/pipeline/phases/stuck.d.ts.map +1 -0
- package/dist/pipeline/phases/stuck.js +51 -0
- package/dist/pipeline/phases/stuck.js.map +1 -0
- package/dist/pipeline/repo-snapshot.d.ts +24 -0
- package/dist/pipeline/repo-snapshot.d.ts.map +1 -0
- package/dist/pipeline/repo-snapshot.js +343 -0
- package/dist/pipeline/repo-snapshot.js.map +1 -0
- package/dist/pipeline/role-execution-adapter.d.ts +59 -0
- package/dist/pipeline/role-execution-adapter.d.ts.map +1 -0
- package/dist/pipeline/role-execution-adapter.js +159 -0
- package/dist/pipeline/role-execution-adapter.js.map +1 -0
- package/dist/pipeline/skill-loader.d.ts +34 -0
- package/dist/pipeline/skill-loader.d.ts.map +1 -0
- package/dist/pipeline/skill-loader.js +156 -0
- package/dist/pipeline/skill-loader.js.map +1 -0
- package/dist/pipeline/skills/defaults.d.ts +16 -0
- package/dist/pipeline/skills/defaults.d.ts.map +1 -0
- package/dist/pipeline/skills/defaults.js +189 -0
- package/dist/pipeline/skills/defaults.js.map +1 -0
- package/dist/pipeline/type-defs/artifacts.d.ts +202 -0
- package/dist/pipeline/type-defs/artifacts.d.ts.map +1 -0
- package/dist/pipeline/type-defs/artifacts.js +66 -0
- package/dist/pipeline/type-defs/artifacts.js.map +1 -0
- package/dist/pipeline/type-defs/audit.d.ts +256 -0
- package/dist/pipeline/type-defs/audit.d.ts.map +1 -0
- package/dist/pipeline/type-defs/audit.js +54 -0
- package/dist/pipeline/type-defs/audit.js.map +1 -0
- package/dist/pipeline/type-defs/checks.d.ts +81 -0
- package/dist/pipeline/type-defs/checks.d.ts.map +1 -0
- package/dist/pipeline/type-defs/checks.js +38 -0
- package/dist/pipeline/type-defs/checks.js.map +1 -0
- package/dist/pipeline/type-defs/enums.d.ts +43 -0
- package/dist/pipeline/type-defs/enums.d.ts.map +1 -0
- package/dist/pipeline/type-defs/enums.js +55 -0
- package/dist/pipeline/type-defs/enums.js.map +1 -0
- package/dist/pipeline/type-defs/index.d.ts +12 -0
- package/dist/pipeline/type-defs/index.d.ts.map +1 -0
- package/dist/pipeline/type-defs/index.js +12 -0
- package/dist/pipeline/type-defs/index.js.map +1 -0
- package/dist/pipeline/type-defs/packets.d.ts +806 -0
- package/dist/pipeline/type-defs/packets.d.ts.map +1 -0
- package/dist/pipeline/type-defs/packets.js +109 -0
- package/dist/pipeline/type-defs/packets.js.map +1 -0
- package/dist/pipeline/type-defs/snapshot.d.ts +52 -0
- package/dist/pipeline/type-defs/snapshot.d.ts.map +1 -0
- package/dist/pipeline/type-defs/snapshot.js +35 -0
- package/dist/pipeline/type-defs/snapshot.js.map +1 -0
- package/dist/pipeline/type-defs/state.d.ts +449 -0
- package/dist/pipeline/type-defs/state.d.ts.map +1 -0
- package/dist/pipeline/type-defs/state.js +88 -0
- package/dist/pipeline/type-defs/state.js.map +1 -0
- package/dist/pipeline/types.d.ts +16 -0
- package/dist/pipeline/types.d.ts.map +1 -0
- package/dist/pipeline/types.js +16 -0
- package/dist/pipeline/types.js.map +1 -0
- package/dist/types/audit.d.ts +6 -6
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +48 -0
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/PHASE_GATE_ENGINE_SPEC.md +113 -20
- package/skills/POPEYE_FULL_AUTONOMY_PIPELINE.md +66 -13
- package/src/pipeline/artifact-manager.ts +339 -0
- package/src/pipeline/artifact-validators.ts +224 -0
- package/src/pipeline/change-request.ts +119 -0
- package/src/pipeline/check-runner.ts +504 -0
- package/src/pipeline/command-resolver.ts +168 -0
- package/src/pipeline/consensus/consensus-runner.ts +317 -0
- package/src/pipeline/constitution.ts +109 -0
- package/src/pipeline/gate-engine.ts +347 -0
- package/src/pipeline/index.ts +82 -0
- package/src/pipeline/migration.ts +91 -0
- package/src/pipeline/orchestrator.ts +314 -0
- package/src/pipeline/packets/audit-report-builder.ts +47 -0
- package/src/pipeline/packets/consensus-packet-builder.ts +112 -0
- package/src/pipeline/packets/index.ts +15 -0
- package/src/pipeline/packets/plan-packet-builder.ts +52 -0
- package/src/pipeline/packets/rca-packet-builder.ts +38 -0
- package/src/pipeline/phases/architecture.ts +73 -0
- package/src/pipeline/phases/audit.ts +193 -0
- package/src/pipeline/phases/consensus-architecture.ts +104 -0
- package/src/pipeline/phases/consensus-master-plan.ts +100 -0
- package/src/pipeline/phases/consensus-role-plans.ts +105 -0
- package/src/pipeline/phases/done.ts +68 -0
- package/src/pipeline/phases/implementation.ts +48 -0
- package/src/pipeline/phases/index.ts +21 -0
- package/src/pipeline/phases/intake.ts +54 -0
- package/src/pipeline/phases/phase-context.ts +86 -0
- package/src/pipeline/phases/production-gate.ts +113 -0
- package/src/pipeline/phases/qa-validation.ts +63 -0
- package/src/pipeline/phases/recovery-loop.ts +118 -0
- package/src/pipeline/phases/review.ts +149 -0
- package/src/pipeline/phases/role-planning.ts +92 -0
- package/src/pipeline/phases/stuck.ts +62 -0
- package/src/pipeline/repo-snapshot.ts +395 -0
- package/src/pipeline/role-execution-adapter.ts +238 -0
- package/src/pipeline/skill-loader.ts +192 -0
- package/src/pipeline/skills/defaults.ts +215 -0
- package/src/pipeline/type-defs/artifacts.ts +81 -0
- package/src/pipeline/type-defs/audit.ts +67 -0
- package/src/pipeline/type-defs/checks.ts +47 -0
- package/src/pipeline/type-defs/enums.ts +62 -0
- package/src/pipeline/type-defs/index.ts +12 -0
- package/src/pipeline/type-defs/packets.ts +131 -0
- package/src/pipeline/type-defs/snapshot.ts +55 -0
- package/src/pipeline/type-defs/state.ts +165 -0
- package/src/pipeline/types.ts +16 -0
- package/src/workflow/index.ts +48 -0
- package/tests/pipeline/artifact-manager.test.ts +183 -0
- package/tests/pipeline/artifact-validators.test.ts +207 -0
- package/tests/pipeline/change-request.test.ts +180 -0
- package/tests/pipeline/check-runner.test.ts +157 -0
- package/tests/pipeline/command-resolver.test.ts +159 -0
- package/tests/pipeline/consensus-runner.test.ts +206 -0
- package/tests/pipeline/consensus-scoring.test.ts +163 -0
- package/tests/pipeline/constitution.test.ts +122 -0
- package/tests/pipeline/gate-engine.test.ts +195 -0
- package/tests/pipeline/migration.test.ts +133 -0
- package/tests/pipeline/orchestrator.test.ts +614 -0
- package/tests/pipeline/packets/builders.test.ts +347 -0
- package/tests/pipeline/repo-snapshot.test.ts +189 -0
- package/tests/pipeline/role-execution-adapter.test.ts +299 -0
- package/tests/pipeline/skill-loader.test.ts +186 -0
- package/tests/pipeline/start-env-checks.test.ts +123 -0
- package/tests/pipeline/types.test.ts +156 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Artifact system types — artifact types, refs, entries, dependency edges.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const ArtifactTypeSchema: z.ZodEnum<{
|
|
6
|
+
consensus: "consensus";
|
|
7
|
+
arbitration: "arbitration";
|
|
8
|
+
master_plan: "master_plan";
|
|
9
|
+
architecture: "architecture";
|
|
10
|
+
role_plan: "role_plan";
|
|
11
|
+
audit_report: "audit_report";
|
|
12
|
+
rca_report: "rca_report";
|
|
13
|
+
production_readiness: "production_readiness";
|
|
14
|
+
release_notes: "release_notes";
|
|
15
|
+
deployment: "deployment";
|
|
16
|
+
rollback: "rollback";
|
|
17
|
+
repo_snapshot: "repo_snapshot";
|
|
18
|
+
build_check: "build_check";
|
|
19
|
+
test_check: "test_check";
|
|
20
|
+
lint_check: "lint_check";
|
|
21
|
+
typecheck_check: "typecheck_check";
|
|
22
|
+
placeholder_scan: "placeholder_scan";
|
|
23
|
+
qa_validation: "qa_validation";
|
|
24
|
+
review_decision: "review_decision";
|
|
25
|
+
stuck_report: "stuck_report";
|
|
26
|
+
journalist_trace: "journalist_trace";
|
|
27
|
+
resolved_commands: "resolved_commands";
|
|
28
|
+
constitution: "constitution";
|
|
29
|
+
change_request: "change_request";
|
|
30
|
+
}>;
|
|
31
|
+
export type ArtifactType = z.infer<typeof ArtifactTypeSchema>;
|
|
32
|
+
export declare const ContentTypeSchema: z.ZodEnum<{
|
|
33
|
+
markdown: "markdown";
|
|
34
|
+
json: "json";
|
|
35
|
+
}>;
|
|
36
|
+
export type ContentType = z.infer<typeof ContentTypeSchema>;
|
|
37
|
+
/** Universal pointer between packets and artifacts */
|
|
38
|
+
export declare const ArtifactRefSchema: z.ZodObject<{
|
|
39
|
+
artifact_id: z.ZodString;
|
|
40
|
+
path: z.ZodString;
|
|
41
|
+
sha256: z.ZodString;
|
|
42
|
+
version: z.ZodNumber;
|
|
43
|
+
type: z.ZodEnum<{
|
|
44
|
+
consensus: "consensus";
|
|
45
|
+
arbitration: "arbitration";
|
|
46
|
+
master_plan: "master_plan";
|
|
47
|
+
architecture: "architecture";
|
|
48
|
+
role_plan: "role_plan";
|
|
49
|
+
audit_report: "audit_report";
|
|
50
|
+
rca_report: "rca_report";
|
|
51
|
+
production_readiness: "production_readiness";
|
|
52
|
+
release_notes: "release_notes";
|
|
53
|
+
deployment: "deployment";
|
|
54
|
+
rollback: "rollback";
|
|
55
|
+
repo_snapshot: "repo_snapshot";
|
|
56
|
+
build_check: "build_check";
|
|
57
|
+
test_check: "test_check";
|
|
58
|
+
lint_check: "lint_check";
|
|
59
|
+
typecheck_check: "typecheck_check";
|
|
60
|
+
placeholder_scan: "placeholder_scan";
|
|
61
|
+
qa_validation: "qa_validation";
|
|
62
|
+
review_decision: "review_decision";
|
|
63
|
+
stuck_report: "stuck_report";
|
|
64
|
+
journalist_trace: "journalist_trace";
|
|
65
|
+
resolved_commands: "resolved_commands";
|
|
66
|
+
constitution: "constitution";
|
|
67
|
+
change_request: "change_request";
|
|
68
|
+
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type ArtifactRef = z.infer<typeof ArtifactRefSchema>;
|
|
71
|
+
/** Immutable artifact entry stored in pipeline state */
|
|
72
|
+
export declare const ArtifactEntrySchema: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
type: z.ZodEnum<{
|
|
75
|
+
consensus: "consensus";
|
|
76
|
+
arbitration: "arbitration";
|
|
77
|
+
master_plan: "master_plan";
|
|
78
|
+
architecture: "architecture";
|
|
79
|
+
role_plan: "role_plan";
|
|
80
|
+
audit_report: "audit_report";
|
|
81
|
+
rca_report: "rca_report";
|
|
82
|
+
production_readiness: "production_readiness";
|
|
83
|
+
release_notes: "release_notes";
|
|
84
|
+
deployment: "deployment";
|
|
85
|
+
rollback: "rollback";
|
|
86
|
+
repo_snapshot: "repo_snapshot";
|
|
87
|
+
build_check: "build_check";
|
|
88
|
+
test_check: "test_check";
|
|
89
|
+
lint_check: "lint_check";
|
|
90
|
+
typecheck_check: "typecheck_check";
|
|
91
|
+
placeholder_scan: "placeholder_scan";
|
|
92
|
+
qa_validation: "qa_validation";
|
|
93
|
+
review_decision: "review_decision";
|
|
94
|
+
stuck_report: "stuck_report";
|
|
95
|
+
journalist_trace: "journalist_trace";
|
|
96
|
+
resolved_commands: "resolved_commands";
|
|
97
|
+
constitution: "constitution";
|
|
98
|
+
change_request: "change_request";
|
|
99
|
+
}>;
|
|
100
|
+
phase: z.ZodEnum<{
|
|
101
|
+
INTAKE: "INTAKE";
|
|
102
|
+
CONSENSUS_MASTER_PLAN: "CONSENSUS_MASTER_PLAN";
|
|
103
|
+
ARCHITECTURE: "ARCHITECTURE";
|
|
104
|
+
CONSENSUS_ARCHITECTURE: "CONSENSUS_ARCHITECTURE";
|
|
105
|
+
ROLE_PLANNING: "ROLE_PLANNING";
|
|
106
|
+
CONSENSUS_ROLE_PLANS: "CONSENSUS_ROLE_PLANS";
|
|
107
|
+
IMPLEMENTATION: "IMPLEMENTATION";
|
|
108
|
+
QA_VALIDATION: "QA_VALIDATION";
|
|
109
|
+
REVIEW: "REVIEW";
|
|
110
|
+
AUDIT: "AUDIT";
|
|
111
|
+
PRODUCTION_GATE: "PRODUCTION_GATE";
|
|
112
|
+
RECOVERY_LOOP: "RECOVERY_LOOP";
|
|
113
|
+
DONE: "DONE";
|
|
114
|
+
STUCK: "STUCK";
|
|
115
|
+
}>;
|
|
116
|
+
version: z.ZodNumber;
|
|
117
|
+
path: z.ZodString;
|
|
118
|
+
sha256: z.ZodString;
|
|
119
|
+
timestamp: z.ZodString;
|
|
120
|
+
immutable: z.ZodLiteral<true>;
|
|
121
|
+
content_type: z.ZodEnum<{
|
|
122
|
+
markdown: "markdown";
|
|
123
|
+
json: "json";
|
|
124
|
+
}>;
|
|
125
|
+
group_id: z.ZodString;
|
|
126
|
+
previous_id: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type ArtifactEntry = z.infer<typeof ArtifactEntrySchema>;
|
|
129
|
+
/** Dependency edge between artifacts */
|
|
130
|
+
export declare const DependencyEdgeSchema: z.ZodObject<{
|
|
131
|
+
from: z.ZodObject<{
|
|
132
|
+
artifact_id: z.ZodString;
|
|
133
|
+
path: z.ZodString;
|
|
134
|
+
sha256: z.ZodString;
|
|
135
|
+
version: z.ZodNumber;
|
|
136
|
+
type: z.ZodEnum<{
|
|
137
|
+
consensus: "consensus";
|
|
138
|
+
arbitration: "arbitration";
|
|
139
|
+
master_plan: "master_plan";
|
|
140
|
+
architecture: "architecture";
|
|
141
|
+
role_plan: "role_plan";
|
|
142
|
+
audit_report: "audit_report";
|
|
143
|
+
rca_report: "rca_report";
|
|
144
|
+
production_readiness: "production_readiness";
|
|
145
|
+
release_notes: "release_notes";
|
|
146
|
+
deployment: "deployment";
|
|
147
|
+
rollback: "rollback";
|
|
148
|
+
repo_snapshot: "repo_snapshot";
|
|
149
|
+
build_check: "build_check";
|
|
150
|
+
test_check: "test_check";
|
|
151
|
+
lint_check: "lint_check";
|
|
152
|
+
typecheck_check: "typecheck_check";
|
|
153
|
+
placeholder_scan: "placeholder_scan";
|
|
154
|
+
qa_validation: "qa_validation";
|
|
155
|
+
review_decision: "review_decision";
|
|
156
|
+
stuck_report: "stuck_report";
|
|
157
|
+
journalist_trace: "journalist_trace";
|
|
158
|
+
resolved_commands: "resolved_commands";
|
|
159
|
+
constitution: "constitution";
|
|
160
|
+
change_request: "change_request";
|
|
161
|
+
}>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
to: z.ZodObject<{
|
|
164
|
+
artifact_id: z.ZodString;
|
|
165
|
+
path: z.ZodString;
|
|
166
|
+
sha256: z.ZodString;
|
|
167
|
+
version: z.ZodNumber;
|
|
168
|
+
type: z.ZodEnum<{
|
|
169
|
+
consensus: "consensus";
|
|
170
|
+
arbitration: "arbitration";
|
|
171
|
+
master_plan: "master_plan";
|
|
172
|
+
architecture: "architecture";
|
|
173
|
+
role_plan: "role_plan";
|
|
174
|
+
audit_report: "audit_report";
|
|
175
|
+
rca_report: "rca_report";
|
|
176
|
+
production_readiness: "production_readiness";
|
|
177
|
+
release_notes: "release_notes";
|
|
178
|
+
deployment: "deployment";
|
|
179
|
+
rollback: "rollback";
|
|
180
|
+
repo_snapshot: "repo_snapshot";
|
|
181
|
+
build_check: "build_check";
|
|
182
|
+
test_check: "test_check";
|
|
183
|
+
lint_check: "lint_check";
|
|
184
|
+
typecheck_check: "typecheck_check";
|
|
185
|
+
placeholder_scan: "placeholder_scan";
|
|
186
|
+
qa_validation: "qa_validation";
|
|
187
|
+
review_decision: "review_decision";
|
|
188
|
+
stuck_report: "stuck_report";
|
|
189
|
+
journalist_trace: "journalist_trace";
|
|
190
|
+
resolved_commands: "resolved_commands";
|
|
191
|
+
constitution: "constitution";
|
|
192
|
+
change_request: "change_request";
|
|
193
|
+
}>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
relationship: z.ZodEnum<{
|
|
196
|
+
depends_on: "depends_on";
|
|
197
|
+
supersedes: "supersedes";
|
|
198
|
+
references: "references";
|
|
199
|
+
}>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export type DependencyEdge = z.infer<typeof DependencyEdgeSchema>;
|
|
202
|
+
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/pipeline/type-defs/artifacts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;EAyB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,eAAO,MAAM,iBAAiB;;;EAA+B,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,sDAAsD;AACtD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,wDAAwD;AACxD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,wCAAwC;AACxC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Artifact system types — artifact types, refs, entries, dependency edges.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { PipelinePhaseSchema } from './enums.js';
|
|
6
|
+
// ─── Artifact Types ──────────────────────────────────────
|
|
7
|
+
export const ArtifactTypeSchema = z.enum([
|
|
8
|
+
'master_plan',
|
|
9
|
+
'architecture',
|
|
10
|
+
'role_plan',
|
|
11
|
+
'consensus',
|
|
12
|
+
'arbitration',
|
|
13
|
+
'audit_report',
|
|
14
|
+
'rca_report',
|
|
15
|
+
'production_readiness',
|
|
16
|
+
'release_notes',
|
|
17
|
+
'deployment',
|
|
18
|
+
'rollback',
|
|
19
|
+
'repo_snapshot',
|
|
20
|
+
'build_check',
|
|
21
|
+
'test_check',
|
|
22
|
+
'lint_check',
|
|
23
|
+
'typecheck_check',
|
|
24
|
+
'placeholder_scan',
|
|
25
|
+
'qa_validation',
|
|
26
|
+
'review_decision',
|
|
27
|
+
'stuck_report',
|
|
28
|
+
'journalist_trace',
|
|
29
|
+
'resolved_commands',
|
|
30
|
+
'constitution',
|
|
31
|
+
'change_request',
|
|
32
|
+
]);
|
|
33
|
+
// ─── Content Type ────────────────────────────────────────
|
|
34
|
+
export const ContentTypeSchema = z.enum(['markdown', 'json']);
|
|
35
|
+
// ─── Artifact Reference ──────────────────────────────────
|
|
36
|
+
/** Universal pointer between packets and artifacts */
|
|
37
|
+
export const ArtifactRefSchema = z.object({
|
|
38
|
+
artifact_id: z.string(),
|
|
39
|
+
path: z.string(),
|
|
40
|
+
sha256: z.string(),
|
|
41
|
+
version: z.number().int().positive(),
|
|
42
|
+
type: ArtifactTypeSchema,
|
|
43
|
+
});
|
|
44
|
+
// ─── Artifact Entry ──────────────────────────────────────
|
|
45
|
+
/** Immutable artifact entry stored in pipeline state */
|
|
46
|
+
export const ArtifactEntrySchema = z.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
type: ArtifactTypeSchema,
|
|
49
|
+
phase: PipelinePhaseSchema,
|
|
50
|
+
version: z.number().int().positive(),
|
|
51
|
+
path: z.string(),
|
|
52
|
+
sha256: z.string(),
|
|
53
|
+
timestamp: z.string(),
|
|
54
|
+
immutable: z.literal(true),
|
|
55
|
+
content_type: ContentTypeSchema,
|
|
56
|
+
group_id: z.string(),
|
|
57
|
+
previous_id: z.string().optional(),
|
|
58
|
+
});
|
|
59
|
+
// ─── Dependency Edge ─────────────────────────────────────
|
|
60
|
+
/** Dependency edge between artifacts */
|
|
61
|
+
export const DependencyEdgeSchema = z.object({
|
|
62
|
+
from: ArtifactRefSchema,
|
|
63
|
+
to: ArtifactRefSchema,
|
|
64
|
+
relationship: z.enum(['depends_on', 'supersedes', 'references']),
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=artifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/pipeline/type-defs/artifacts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,4DAA4D;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,aAAa;IACb,cAAc;IACd,WAAW;IACX,WAAW;IACX,aAAa;IACb,cAAc;IACd,YAAY;IACZ,sBAAsB;IACtB,eAAe;IACf,YAAY;IACZ,UAAU;IACV,eAAe;IACf,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,gBAAgB;CACjB,CAAC,CAAC;AAGH,4DAA4D;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAG9D,4DAA4D;AAE5D,sDAAsD;AACtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC;AAGH,4DAA4D;AAE5D,wDAAwD;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1B,YAAY,EAAE,iBAAiB;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,4DAA4D;AAE5D,wCAAwC;AACxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,iBAAiB;IACrB,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;CACjE,CAAC,CAAC"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit types — findings, reports, severity classifications.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const AuditSeveritySchema: z.ZodEnum<{
|
|
6
|
+
P0: "P0";
|
|
7
|
+
P1: "P1";
|
|
8
|
+
P2: "P2";
|
|
9
|
+
P3: "P3";
|
|
10
|
+
}>;
|
|
11
|
+
export type AuditSeverity = z.infer<typeof AuditSeveritySchema>;
|
|
12
|
+
export declare const AuditCategorySchema: z.ZodEnum<{
|
|
13
|
+
tests: "tests";
|
|
14
|
+
integration: "integration";
|
|
15
|
+
config: "config";
|
|
16
|
+
schema: "schema";
|
|
17
|
+
deployment: "deployment";
|
|
18
|
+
security: "security";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const AuditFindingSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
severity: z.ZodEnum<{
|
|
23
|
+
P0: "P0";
|
|
24
|
+
P1: "P1";
|
|
25
|
+
P2: "P2";
|
|
26
|
+
P3: "P3";
|
|
27
|
+
}>;
|
|
28
|
+
category: z.ZodEnum<{
|
|
29
|
+
tests: "tests";
|
|
30
|
+
integration: "integration";
|
|
31
|
+
config: "config";
|
|
32
|
+
schema: "schema";
|
|
33
|
+
deployment: "deployment";
|
|
34
|
+
security: "security";
|
|
35
|
+
}>;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
38
|
+
artifact_id: z.ZodString;
|
|
39
|
+
path: z.ZodString;
|
|
40
|
+
sha256: z.ZodString;
|
|
41
|
+
version: z.ZodNumber;
|
|
42
|
+
type: z.ZodEnum<{
|
|
43
|
+
consensus: "consensus";
|
|
44
|
+
arbitration: "arbitration";
|
|
45
|
+
master_plan: "master_plan";
|
|
46
|
+
architecture: "architecture";
|
|
47
|
+
role_plan: "role_plan";
|
|
48
|
+
audit_report: "audit_report";
|
|
49
|
+
rca_report: "rca_report";
|
|
50
|
+
production_readiness: "production_readiness";
|
|
51
|
+
release_notes: "release_notes";
|
|
52
|
+
deployment: "deployment";
|
|
53
|
+
rollback: "rollback";
|
|
54
|
+
repo_snapshot: "repo_snapshot";
|
|
55
|
+
build_check: "build_check";
|
|
56
|
+
test_check: "test_check";
|
|
57
|
+
lint_check: "lint_check";
|
|
58
|
+
typecheck_check: "typecheck_check";
|
|
59
|
+
placeholder_scan: "placeholder_scan";
|
|
60
|
+
qa_validation: "qa_validation";
|
|
61
|
+
review_decision: "review_decision";
|
|
62
|
+
stuck_report: "stuck_report";
|
|
63
|
+
journalist_trace: "journalist_trace";
|
|
64
|
+
resolved_commands: "resolved_commands";
|
|
65
|
+
constitution: "constitution";
|
|
66
|
+
change_request: "change_request";
|
|
67
|
+
}>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
file_path: z.ZodOptional<z.ZodString>;
|
|
70
|
+
line_number: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
suggested_owner: z.ZodEnum<{
|
|
72
|
+
DISPATCHER: "DISPATCHER";
|
|
73
|
+
ARCHITECT: "ARCHITECT";
|
|
74
|
+
DB_EXPERT: "DB_EXPERT";
|
|
75
|
+
BACKEND_PROGRAMMER: "BACKEND_PROGRAMMER";
|
|
76
|
+
FRONTEND_PROGRAMMER: "FRONTEND_PROGRAMMER";
|
|
77
|
+
WEBSITE_PROGRAMMER: "WEBSITE_PROGRAMMER";
|
|
78
|
+
QA_TESTER: "QA_TESTER";
|
|
79
|
+
REVIEWER: "REVIEWER";
|
|
80
|
+
ARBITRATOR: "ARBITRATOR";
|
|
81
|
+
DEBUGGER: "DEBUGGER";
|
|
82
|
+
AUDITOR: "AUDITOR";
|
|
83
|
+
JOURNALIST: "JOURNALIST";
|
|
84
|
+
RELEASE_MANAGER: "RELEASE_MANAGER";
|
|
85
|
+
MARKETING_EXPERT: "MARKETING_EXPERT";
|
|
86
|
+
SOCIAL_EXPERT: "SOCIAL_EXPERT";
|
|
87
|
+
UI_UX_SPECIALIST: "UI_UX_SPECIALIST";
|
|
88
|
+
}>;
|
|
89
|
+
blocking: z.ZodBoolean;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type AuditFinding = z.infer<typeof AuditFindingSchema>;
|
|
92
|
+
export declare const AuditReportSchema: z.ZodObject<{
|
|
93
|
+
audit_id: z.ZodString;
|
|
94
|
+
timestamp: z.ZodString;
|
|
95
|
+
repo_snapshot: z.ZodObject<{
|
|
96
|
+
artifact_id: z.ZodString;
|
|
97
|
+
path: z.ZodString;
|
|
98
|
+
sha256: z.ZodString;
|
|
99
|
+
version: z.ZodNumber;
|
|
100
|
+
type: z.ZodEnum<{
|
|
101
|
+
consensus: "consensus";
|
|
102
|
+
arbitration: "arbitration";
|
|
103
|
+
master_plan: "master_plan";
|
|
104
|
+
architecture: "architecture";
|
|
105
|
+
role_plan: "role_plan";
|
|
106
|
+
audit_report: "audit_report";
|
|
107
|
+
rca_report: "rca_report";
|
|
108
|
+
production_readiness: "production_readiness";
|
|
109
|
+
release_notes: "release_notes";
|
|
110
|
+
deployment: "deployment";
|
|
111
|
+
rollback: "rollback";
|
|
112
|
+
repo_snapshot: "repo_snapshot";
|
|
113
|
+
build_check: "build_check";
|
|
114
|
+
test_check: "test_check";
|
|
115
|
+
lint_check: "lint_check";
|
|
116
|
+
typecheck_check: "typecheck_check";
|
|
117
|
+
placeholder_scan: "placeholder_scan";
|
|
118
|
+
qa_validation: "qa_validation";
|
|
119
|
+
review_decision: "review_decision";
|
|
120
|
+
stuck_report: "stuck_report";
|
|
121
|
+
journalist_trace: "journalist_trace";
|
|
122
|
+
resolved_commands: "resolved_commands";
|
|
123
|
+
constitution: "constitution";
|
|
124
|
+
change_request: "change_request";
|
|
125
|
+
}>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
overall_status: z.ZodEnum<{
|
|
128
|
+
PASS: "PASS";
|
|
129
|
+
FAIL: "FAIL";
|
|
130
|
+
}>;
|
|
131
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
severity: z.ZodEnum<{
|
|
134
|
+
P0: "P0";
|
|
135
|
+
P1: "P1";
|
|
136
|
+
P2: "P2";
|
|
137
|
+
P3: "P3";
|
|
138
|
+
}>;
|
|
139
|
+
category: z.ZodEnum<{
|
|
140
|
+
tests: "tests";
|
|
141
|
+
integration: "integration";
|
|
142
|
+
config: "config";
|
|
143
|
+
schema: "schema";
|
|
144
|
+
deployment: "deployment";
|
|
145
|
+
security: "security";
|
|
146
|
+
}>;
|
|
147
|
+
description: z.ZodString;
|
|
148
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
149
|
+
artifact_id: z.ZodString;
|
|
150
|
+
path: z.ZodString;
|
|
151
|
+
sha256: z.ZodString;
|
|
152
|
+
version: z.ZodNumber;
|
|
153
|
+
type: z.ZodEnum<{
|
|
154
|
+
consensus: "consensus";
|
|
155
|
+
arbitration: "arbitration";
|
|
156
|
+
master_plan: "master_plan";
|
|
157
|
+
architecture: "architecture";
|
|
158
|
+
role_plan: "role_plan";
|
|
159
|
+
audit_report: "audit_report";
|
|
160
|
+
rca_report: "rca_report";
|
|
161
|
+
production_readiness: "production_readiness";
|
|
162
|
+
release_notes: "release_notes";
|
|
163
|
+
deployment: "deployment";
|
|
164
|
+
rollback: "rollback";
|
|
165
|
+
repo_snapshot: "repo_snapshot";
|
|
166
|
+
build_check: "build_check";
|
|
167
|
+
test_check: "test_check";
|
|
168
|
+
lint_check: "lint_check";
|
|
169
|
+
typecheck_check: "typecheck_check";
|
|
170
|
+
placeholder_scan: "placeholder_scan";
|
|
171
|
+
qa_validation: "qa_validation";
|
|
172
|
+
review_decision: "review_decision";
|
|
173
|
+
stuck_report: "stuck_report";
|
|
174
|
+
journalist_trace: "journalist_trace";
|
|
175
|
+
resolved_commands: "resolved_commands";
|
|
176
|
+
constitution: "constitution";
|
|
177
|
+
change_request: "change_request";
|
|
178
|
+
}>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
file_path: z.ZodOptional<z.ZodString>;
|
|
181
|
+
line_number: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
suggested_owner: z.ZodEnum<{
|
|
183
|
+
DISPATCHER: "DISPATCHER";
|
|
184
|
+
ARCHITECT: "ARCHITECT";
|
|
185
|
+
DB_EXPERT: "DB_EXPERT";
|
|
186
|
+
BACKEND_PROGRAMMER: "BACKEND_PROGRAMMER";
|
|
187
|
+
FRONTEND_PROGRAMMER: "FRONTEND_PROGRAMMER";
|
|
188
|
+
WEBSITE_PROGRAMMER: "WEBSITE_PROGRAMMER";
|
|
189
|
+
QA_TESTER: "QA_TESTER";
|
|
190
|
+
REVIEWER: "REVIEWER";
|
|
191
|
+
ARBITRATOR: "ARBITRATOR";
|
|
192
|
+
DEBUGGER: "DEBUGGER";
|
|
193
|
+
AUDITOR: "AUDITOR";
|
|
194
|
+
JOURNALIST: "JOURNALIST";
|
|
195
|
+
RELEASE_MANAGER: "RELEASE_MANAGER";
|
|
196
|
+
MARKETING_EXPERT: "MARKETING_EXPERT";
|
|
197
|
+
SOCIAL_EXPERT: "SOCIAL_EXPERT";
|
|
198
|
+
UI_UX_SPECIALIST: "UI_UX_SPECIALIST";
|
|
199
|
+
}>;
|
|
200
|
+
blocking: z.ZodBoolean;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
system_risk_score: z.ZodNumber;
|
|
203
|
+
recovery_required: z.ZodBoolean;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type AuditReport = z.infer<typeof AuditReportSchema>;
|
|
206
|
+
export declare const ProductionReadinessSchema: z.ZodObject<{
|
|
207
|
+
production_id: z.ZodString;
|
|
208
|
+
timestamp: z.ZodString;
|
|
209
|
+
build_status: z.ZodEnum<{
|
|
210
|
+
fail: "fail";
|
|
211
|
+
pass: "pass";
|
|
212
|
+
skip: "skip";
|
|
213
|
+
}>;
|
|
214
|
+
test_status: z.ZodEnum<{
|
|
215
|
+
fail: "fail";
|
|
216
|
+
pass: "pass";
|
|
217
|
+
skip: "skip";
|
|
218
|
+
}>;
|
|
219
|
+
lint_status: z.ZodEnum<{
|
|
220
|
+
fail: "fail";
|
|
221
|
+
pass: "pass";
|
|
222
|
+
skip: "skip";
|
|
223
|
+
}>;
|
|
224
|
+
typecheck_status: z.ZodEnum<{
|
|
225
|
+
fail: "fail";
|
|
226
|
+
pass: "pass";
|
|
227
|
+
skip: "skip";
|
|
228
|
+
}>;
|
|
229
|
+
migration_status: z.ZodEnum<{
|
|
230
|
+
fail: "fail";
|
|
231
|
+
pass: "pass";
|
|
232
|
+
skip: "skip";
|
|
233
|
+
"n/a": "n/a";
|
|
234
|
+
}>;
|
|
235
|
+
audit_status: z.ZodEnum<{
|
|
236
|
+
PASS: "PASS";
|
|
237
|
+
FAIL: "FAIL";
|
|
238
|
+
}>;
|
|
239
|
+
placeholder_scan_status: z.ZodEnum<{
|
|
240
|
+
fail: "fail";
|
|
241
|
+
pass: "pass";
|
|
242
|
+
skip: "skip";
|
|
243
|
+
}>;
|
|
244
|
+
security_status: z.ZodEnum<{
|
|
245
|
+
fail: "fail";
|
|
246
|
+
pass: "pass";
|
|
247
|
+
skip: "skip";
|
|
248
|
+
}>;
|
|
249
|
+
unresolved_blockers: z.ZodArray<z.ZodString>;
|
|
250
|
+
final_verdict: z.ZodEnum<{
|
|
251
|
+
PASS: "PASS";
|
|
252
|
+
FAIL: "FAIL";
|
|
253
|
+
}>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type ProductionReadiness = z.infer<typeof ProductionReadinessSchema>;
|
|
256
|
+
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/pipeline/type-defs/audit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;EAAmC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;EAO9B,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAapC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit types — findings, reports, severity classifications.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { PipelineRoleSchema } from './enums.js';
|
|
6
|
+
import { ArtifactRefSchema } from './artifacts.js';
|
|
7
|
+
// ─── Audit Severity & Category ───────────────────────────
|
|
8
|
+
export const AuditSeveritySchema = z.enum(['P0', 'P1', 'P2', 'P3']);
|
|
9
|
+
export const AuditCategorySchema = z.enum([
|
|
10
|
+
'integration',
|
|
11
|
+
'config',
|
|
12
|
+
'tests',
|
|
13
|
+
'schema',
|
|
14
|
+
'security',
|
|
15
|
+
'deployment',
|
|
16
|
+
]);
|
|
17
|
+
// ─── Audit Finding ───────────────────────────────────────
|
|
18
|
+
export const AuditFindingSchema = z.object({
|
|
19
|
+
id: z.string(),
|
|
20
|
+
severity: AuditSeveritySchema,
|
|
21
|
+
category: AuditCategorySchema,
|
|
22
|
+
description: z.string(),
|
|
23
|
+
evidence: z.array(ArtifactRefSchema),
|
|
24
|
+
file_path: z.string().optional(),
|
|
25
|
+
line_number: z.number().int().optional(),
|
|
26
|
+
suggested_owner: PipelineRoleSchema,
|
|
27
|
+
blocking: z.boolean(),
|
|
28
|
+
});
|
|
29
|
+
// ─── Audit Report ────────────────────────────────────────
|
|
30
|
+
export const AuditReportSchema = z.object({
|
|
31
|
+
audit_id: z.string(),
|
|
32
|
+
timestamp: z.string(),
|
|
33
|
+
repo_snapshot: ArtifactRefSchema,
|
|
34
|
+
overall_status: z.enum(['PASS', 'FAIL']),
|
|
35
|
+
findings: z.array(AuditFindingSchema),
|
|
36
|
+
system_risk_score: z.number().min(0).max(100),
|
|
37
|
+
recovery_required: z.boolean(),
|
|
38
|
+
});
|
|
39
|
+
// ─── Production Readiness ────────────────────────────────
|
|
40
|
+
export const ProductionReadinessSchema = z.object({
|
|
41
|
+
production_id: z.string(),
|
|
42
|
+
timestamp: z.string(),
|
|
43
|
+
build_status: z.enum(['pass', 'fail', 'skip']),
|
|
44
|
+
test_status: z.enum(['pass', 'fail', 'skip']),
|
|
45
|
+
lint_status: z.enum(['pass', 'fail', 'skip']),
|
|
46
|
+
typecheck_status: z.enum(['pass', 'fail', 'skip']),
|
|
47
|
+
migration_status: z.enum(['pass', 'fail', 'skip', 'n/a']),
|
|
48
|
+
audit_status: z.enum(['PASS', 'FAIL']),
|
|
49
|
+
placeholder_scan_status: z.enum(['pass', 'fail', 'skip']),
|
|
50
|
+
security_status: z.enum(['pass', 'fail', 'skip']),
|
|
51
|
+
unresolved_blockers: z.array(z.string()),
|
|
52
|
+
final_verdict: z.enum(['PASS', 'FAIL']),
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../src/pipeline/type-defs/audit.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gate check types — check definitions and results.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const GateCheckTypeSchema: z.ZodEnum<{
|
|
6
|
+
test: "test";
|
|
7
|
+
build: "build";
|
|
8
|
+
migration: "migration";
|
|
9
|
+
placeholder_scan: "placeholder_scan";
|
|
10
|
+
lint: "lint";
|
|
11
|
+
typecheck: "typecheck";
|
|
12
|
+
start: "start";
|
|
13
|
+
env_check: "env_check";
|
|
14
|
+
}>;
|
|
15
|
+
export type GateCheckType = z.infer<typeof GateCheckTypeSchema>;
|
|
16
|
+
export declare const GateCheckResultSchema: z.ZodObject<{
|
|
17
|
+
check_type: z.ZodEnum<{
|
|
18
|
+
test: "test";
|
|
19
|
+
build: "build";
|
|
20
|
+
migration: "migration";
|
|
21
|
+
placeholder_scan: "placeholder_scan";
|
|
22
|
+
lint: "lint";
|
|
23
|
+
typecheck: "typecheck";
|
|
24
|
+
start: "start";
|
|
25
|
+
env_check: "env_check";
|
|
26
|
+
}>;
|
|
27
|
+
status: z.ZodEnum<{
|
|
28
|
+
fail: "fail";
|
|
29
|
+
pass: "pass";
|
|
30
|
+
skip: "skip";
|
|
31
|
+
}>;
|
|
32
|
+
command: z.ZodString;
|
|
33
|
+
exit_code: z.ZodNumber;
|
|
34
|
+
stdout_artifact: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
artifact_id: z.ZodString;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
sha256: z.ZodString;
|
|
38
|
+
version: z.ZodNumber;
|
|
39
|
+
type: z.ZodEnum<{
|
|
40
|
+
consensus: "consensus";
|
|
41
|
+
arbitration: "arbitration";
|
|
42
|
+
master_plan: "master_plan";
|
|
43
|
+
architecture: "architecture";
|
|
44
|
+
role_plan: "role_plan";
|
|
45
|
+
audit_report: "audit_report";
|
|
46
|
+
rca_report: "rca_report";
|
|
47
|
+
production_readiness: "production_readiness";
|
|
48
|
+
release_notes: "release_notes";
|
|
49
|
+
deployment: "deployment";
|
|
50
|
+
rollback: "rollback";
|
|
51
|
+
repo_snapshot: "repo_snapshot";
|
|
52
|
+
build_check: "build_check";
|
|
53
|
+
test_check: "test_check";
|
|
54
|
+
lint_check: "lint_check";
|
|
55
|
+
typecheck_check: "typecheck_check";
|
|
56
|
+
placeholder_scan: "placeholder_scan";
|
|
57
|
+
qa_validation: "qa_validation";
|
|
58
|
+
review_decision: "review_decision";
|
|
59
|
+
stuck_report: "stuck_report";
|
|
60
|
+
journalist_trace: "journalist_trace";
|
|
61
|
+
resolved_commands: "resolved_commands";
|
|
62
|
+
constitution: "constitution";
|
|
63
|
+
change_request: "change_request";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
stderr_summary: z.ZodOptional<z.ZodString>;
|
|
67
|
+
duration_ms: z.ZodNumber;
|
|
68
|
+
timestamp: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type GateCheckResult = z.infer<typeof GateCheckResultSchema>;
|
|
71
|
+
export declare const ResolvedCommandsSchema: z.ZodObject<{
|
|
72
|
+
build: z.ZodOptional<z.ZodString>;
|
|
73
|
+
test: z.ZodOptional<z.ZodString>;
|
|
74
|
+
lint: z.ZodOptional<z.ZodString>;
|
|
75
|
+
typecheck: z.ZodOptional<z.ZodString>;
|
|
76
|
+
migrations: z.ZodOptional<z.ZodString>;
|
|
77
|
+
start: z.ZodOptional<z.ZodString>;
|
|
78
|
+
resolved_from: z.ZodString;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type ResolvedCommands = z.infer<typeof ResolvedCommandsSchema>;
|
|
81
|
+
//# sourceMappingURL=checks.d.ts.map
|