@agentic-sdlc-kit/contracts 0.9.1 → 1.1.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/dist/agent/events.d.ts +18 -18
- package/dist/agent/execution.d.ts +22 -22
- package/dist/agent-tools/index.d.ts +85 -0
- package/dist/agent-tools/index.d.ts.map +1 -0
- package/dist/agent-tools/index.js +60 -0
- package/dist/agent-tools/index.js.map +1 -0
- package/dist/application/application-context.d.ts +194 -60
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +276 -114
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +18 -18
- package/dist/architecture/api-contract.d.ts +18 -18
- package/dist/architecture/architecture-options.d.ts +6 -6
- package/dist/architecture/component-map.d.ts +6 -6
- package/dist/architecture/data-model.d.ts +6 -6
- package/dist/architecture/operational-design.d.ts +6 -6
- package/dist/benchmark/bench.d.ts +330 -0
- package/dist/benchmark/bench.d.ts.map +1 -0
- package/dist/benchmark/bench.js +69 -0
- package/dist/benchmark/bench.js.map +1 -0
- package/dist/benchmark/index.d.ts +2 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +2 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/constitution/cli-output.d.ts +706 -0
- package/dist/constitution/cli-output.d.ts.map +1 -0
- package/dist/constitution/cli-output.js +37 -0
- package/dist/constitution/cli-output.js.map +1 -0
- package/dist/constitution/index.d.ts +4 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +4 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/result.d.ts +112 -0
- package/dist/constitution/result.d.ts.map +1 -0
- package/dist/constitution/result.js +67 -0
- package/dist/constitution/result.js.map +1 -0
- package/dist/constitution/rule.d.ts +488 -0
- package/dist/constitution/rule.d.ts.map +1 -0
- package/dist/constitution/rule.js +164 -0
- package/dist/constitution/rule.js.map +1 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/project-context.d.ts +275 -0
- package/dist/context/project-context.d.ts.map +1 -0
- package/dist/context/project-context.js +56 -0
- package/dist/context/project-context.js.map +1 -0
- package/dist/evaluation/benchmark.d.ts +12 -12
- package/dist/evaluation/metrics.d.ts +4 -4
- package/dist/evolution/improvement-hypothesis.d.ts +10 -10
- package/dist/execution/execution-profile.d.ts +130 -0
- package/dist/execution/execution-profile.d.ts.map +1 -0
- package/dist/execution/execution-profile.js +44 -0
- package/dist/execution/execution-profile.js.map +1 -0
- package/dist/execution/index.d.ts +2 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +2 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer/install-plan.d.ts +16 -16
- package/dist/installer/ownership-manifest.d.ts +2 -2
- package/dist/installer/package-manifest.d.ts +6 -6
- package/dist/learning/engineering-lesson.d.ts +14 -14
- package/dist/learning/engineering-memory.d.ts +20 -2
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/engineering-memory.js +2 -0
- package/dist/learning/engineering-memory.js.map +1 -1
- package/dist/learning/experience-episode.d.ts +14 -14
- package/dist/learning/experience.d.ts +8 -8
- package/dist/learning/index.d.ts +1 -0
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/learning-event.d.ts +78 -0
- package/dist/learning/learning-event.d.ts.map +1 -0
- package/dist/learning/learning-event.js +37 -0
- package/dist/learning/learning-event.js.map +1 -0
- package/dist/learning/memory.d.ts +2 -2
- package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
- package/dist/maintenance/bug-report.d.ts +6 -6
- package/dist/maintenance/refactor-contract.d.ts +8 -8
- package/dist/maintenance/refactor-workflow.d.ts +4 -4
- package/dist/observer/event-schema.d.ts +6 -6
- package/dist/observer/journal.d.ts +10 -10
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +7 -0
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/run-summary.d.ts +12 -12
- package/dist/onboard/index.d.ts +2 -0
- package/dist/onboard/index.d.ts.map +1 -0
- package/dist/onboard/index.js +2 -0
- package/dist/onboard/index.js.map +1 -0
- package/dist/onboard/onboard-report.d.ts +349 -0
- package/dist/onboard/onboard-report.d.ts.map +1 -0
- package/dist/onboard/onboard-report.js +96 -0
- package/dist/onboard/onboard-report.js.map +1 -0
- package/dist/patterns/pattern.d.ts +2 -2
- package/dist/planning/task.d.ts +36 -36
- package/dist/policy/policy.d.ts +8 -8
- package/dist/product/product-brief.d.ts +6 -6
- package/dist/product/requirements.d.ts +48 -48
- package/dist/project/project-profile.d.ts +113 -2
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/project-profile.js +17 -2
- package/dist/project/project-profile.js.map +1 -1
- package/dist/routing/index.d.ts +1 -0
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -0
- package/dist/routing/index.js.map +1 -1
- package/dist/routing/measured-routing.d.ts +41 -0
- package/dist/routing/measured-routing.d.ts.map +1 -0
- package/dist/routing/measured-routing.js +24 -0
- package/dist/routing/measured-routing.js.map +1 -0
- package/dist/routing/routing-policy.d.ts +20 -20
- package/dist/routing/routing-request.d.ts +2 -2
- package/dist/runtime-guard/action-classification.d.ts +2 -2
- package/dist/runtime-guard/audit-event.d.ts +8 -8
- package/dist/runtime-guard/policy-schema.d.ts +4 -4
- package/dist/scaffolding/scaffold-contract.d.ts +59 -59
- package/dist/scaffolding/template-manifest.d.ts +15 -15
- package/dist/secret-guard/detection-rule.d.ts +4 -4
- package/dist/secret-guard/finding.d.ts +10 -10
- package/dist/secret-guard/scanner-failure.d.ts +4 -4
- package/dist/specification/specification.d.ts +8 -8
- package/dist/stack-pack/manifest.d.ts +33 -4
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/stack-pack/manifest.js +22 -2
- package/dist/stack-pack/manifest.js.map +1 -1
- package/dist/verification/index.d.ts +1 -0
- package/dist/verification/index.d.ts.map +1 -1
- package/dist/verification/index.js +1 -0
- package/dist/verification/index.js.map +1 -1
- package/dist/verification/report.d.ts +118 -12
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/report.js +4 -0
- package/dist/verification/report.js.map +1 -1
- package/dist/verification/strength.d.ts +270 -0
- package/dist/verification/strength.d.ts.map +1 -0
- package/dist/verification/strength.js +168 -0
- package/dist/verification/strength.js.map +1 -0
- package/dist/workflow/next-action.d.ts +67 -6
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/next-action.js +23 -0
- package/dist/workflow/next-action.js.map +1 -1
- package/dist/workflow/workflow.d.ts +9 -8
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agent-tools/index.ts +81 -0
- package/src/benchmark/bench.ts +83 -0
- package/src/benchmark/index.ts +1 -0
- package/src/constitution/cli-output.ts +44 -0
- package/src/constitution/index.ts +3 -0
- package/src/constitution/result.test.ts +69 -0
- package/src/constitution/result.ts +74 -0
- package/src/constitution/rule-origin.test.ts +36 -0
- package/src/constitution/rule-path.test.ts +15 -0
- package/src/constitution/rule.test.ts +209 -0
- package/src/constitution/rule.ts +192 -0
- package/src/context/index.ts +1 -0
- package/src/context/project-context.ts +63 -0
- package/src/execution/execution-profile.ts +50 -0
- package/src/execution/index.ts +1 -0
- package/src/index.ts +16 -0
- package/src/learning/engineering-memory.ts +2 -0
- package/src/learning/index.ts +1 -0
- package/src/learning/learning-event.ts +42 -0
- package/src/observer/journal.ts +7 -0
- package/src/onboard/index.ts +1 -0
- package/src/onboard/onboard-report.test.ts +92 -0
- package/src/onboard/onboard-report.ts +115 -0
- package/src/project/project-profile.ts +19 -2
- package/src/routing/index.ts +1 -0
- package/src/routing/measured-routing.ts +27 -0
- package/src/stack-pack/manifest.test.ts +45 -0
- package/src/stack-pack/manifest.ts +24 -2
- package/src/verification/index.ts +1 -0
- package/src/verification/report.ts +4 -0
- package/src/verification/strength.test.ts +160 -0
- package/src/verification/strength.ts +189 -0
- package/src/workflow/next-action.test.ts +25 -0
- package/src/workflow/next-action.ts +25 -0
- package/src/workflow/workflow.ts +1 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PROJECT_CONTEXT_SCHEMA_VERSION: 1;
|
|
3
|
+
export declare const ContextRuleSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
statement: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<["proposed", "active", "deprecated", "retired"]>;
|
|
8
|
+
mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
|
|
9
|
+
matchedFiles: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
statement: string;
|
|
15
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
16
|
+
matchedFiles: string[];
|
|
17
|
+
}, {
|
|
18
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
statement: string;
|
|
22
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
23
|
+
matchedFiles: string[];
|
|
24
|
+
}>;
|
|
25
|
+
export declare const ContextPatternSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
problem: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
name: string;
|
|
31
|
+
id: string;
|
|
32
|
+
problem: string;
|
|
33
|
+
}, {
|
|
34
|
+
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
problem: string;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const ContextDecisionSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
path: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
path: string;
|
|
44
|
+
id: string;
|
|
45
|
+
title: string;
|
|
46
|
+
}, {
|
|
47
|
+
path: string;
|
|
48
|
+
id: string;
|
|
49
|
+
title: string;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const ContextVerificationSchema: z.ZodObject<{
|
|
52
|
+
runId: z.ZodString;
|
|
53
|
+
status: z.ZodEnum<["passed", "failed", "blocked"]>;
|
|
54
|
+
recordedAt: z.ZodString;
|
|
55
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
status: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
status: string;
|
|
60
|
+
id: string;
|
|
61
|
+
}, {
|
|
62
|
+
status: string;
|
|
63
|
+
id: string;
|
|
64
|
+
}>, "many">;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
status: "passed" | "failed" | "blocked";
|
|
67
|
+
runId: string;
|
|
68
|
+
checks: {
|
|
69
|
+
status: string;
|
|
70
|
+
id: string;
|
|
71
|
+
}[];
|
|
72
|
+
recordedAt: string;
|
|
73
|
+
}, {
|
|
74
|
+
status: "passed" | "failed" | "blocked";
|
|
75
|
+
runId: string;
|
|
76
|
+
checks: {
|
|
77
|
+
status: string;
|
|
78
|
+
id: string;
|
|
79
|
+
}[];
|
|
80
|
+
recordedAt: string;
|
|
81
|
+
}>;
|
|
82
|
+
export declare const ProjectContextSchema: z.ZodObject<{
|
|
83
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
84
|
+
project: z.ZodObject<{
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
stacks: z.ZodArray<z.ZodString, "many">;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
name: string;
|
|
89
|
+
stacks: string[];
|
|
90
|
+
}, {
|
|
91
|
+
name: string;
|
|
92
|
+
stacks: string[];
|
|
93
|
+
}>;
|
|
94
|
+
constitution: z.ZodObject<{
|
|
95
|
+
present: z.ZodBoolean;
|
|
96
|
+
required: z.ZodBoolean;
|
|
97
|
+
ruleCount: z.ZodNumber;
|
|
98
|
+
gate: z.ZodNullable<z.ZodEnum<["passed", "failed", "blocked"]>>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
required: boolean;
|
|
101
|
+
present: boolean;
|
|
102
|
+
ruleCount: number;
|
|
103
|
+
gate: "passed" | "failed" | "blocked" | null;
|
|
104
|
+
}, {
|
|
105
|
+
required: boolean;
|
|
106
|
+
present: boolean;
|
|
107
|
+
ruleCount: number;
|
|
108
|
+
gate: "passed" | "failed" | "blocked" | null;
|
|
109
|
+
}>;
|
|
110
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
111
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
title: z.ZodString;
|
|
114
|
+
statement: z.ZodString;
|
|
115
|
+
status: z.ZodEnum<["proposed", "active", "deprecated", "retired"]>;
|
|
116
|
+
mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
|
|
117
|
+
matchedFiles: z.ZodArray<z.ZodString, "many">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
120
|
+
id: string;
|
|
121
|
+
title: string;
|
|
122
|
+
statement: string;
|
|
123
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
124
|
+
matchedFiles: string[];
|
|
125
|
+
}, {
|
|
126
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
127
|
+
id: string;
|
|
128
|
+
title: string;
|
|
129
|
+
statement: string;
|
|
130
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
131
|
+
matchedFiles: string[];
|
|
132
|
+
}>, "many">;
|
|
133
|
+
patterns: z.ZodArray<z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
problem: z.ZodString;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
name: string;
|
|
139
|
+
id: string;
|
|
140
|
+
problem: string;
|
|
141
|
+
}, {
|
|
142
|
+
name: string;
|
|
143
|
+
id: string;
|
|
144
|
+
problem: string;
|
|
145
|
+
}>, "many">;
|
|
146
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
title: z.ZodString;
|
|
149
|
+
path: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
path: string;
|
|
152
|
+
id: string;
|
|
153
|
+
title: string;
|
|
154
|
+
}, {
|
|
155
|
+
path: string;
|
|
156
|
+
id: string;
|
|
157
|
+
title: string;
|
|
158
|
+
}>, "many">;
|
|
159
|
+
verification: z.ZodNullable<z.ZodObject<{
|
|
160
|
+
runId: z.ZodString;
|
|
161
|
+
status: z.ZodEnum<["passed", "failed", "blocked"]>;
|
|
162
|
+
recordedAt: z.ZodString;
|
|
163
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
status: z.ZodString;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
status: string;
|
|
168
|
+
id: string;
|
|
169
|
+
}, {
|
|
170
|
+
status: string;
|
|
171
|
+
id: string;
|
|
172
|
+
}>, "many">;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
status: "passed" | "failed" | "blocked";
|
|
175
|
+
runId: string;
|
|
176
|
+
checks: {
|
|
177
|
+
status: string;
|
|
178
|
+
id: string;
|
|
179
|
+
}[];
|
|
180
|
+
recordedAt: string;
|
|
181
|
+
}, {
|
|
182
|
+
status: "passed" | "failed" | "blocked";
|
|
183
|
+
runId: string;
|
|
184
|
+
checks: {
|
|
185
|
+
status: string;
|
|
186
|
+
id: string;
|
|
187
|
+
}[];
|
|
188
|
+
recordedAt: string;
|
|
189
|
+
}>>;
|
|
190
|
+
notes: z.ZodArray<z.ZodString, "many">;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
schemaVersion: 1;
|
|
193
|
+
verification: {
|
|
194
|
+
status: "passed" | "failed" | "blocked";
|
|
195
|
+
runId: string;
|
|
196
|
+
checks: {
|
|
197
|
+
status: string;
|
|
198
|
+
id: string;
|
|
199
|
+
}[];
|
|
200
|
+
recordedAt: string;
|
|
201
|
+
} | null;
|
|
202
|
+
constitution: {
|
|
203
|
+
required: boolean;
|
|
204
|
+
present: boolean;
|
|
205
|
+
ruleCount: number;
|
|
206
|
+
gate: "passed" | "failed" | "blocked" | null;
|
|
207
|
+
};
|
|
208
|
+
rules: {
|
|
209
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
210
|
+
id: string;
|
|
211
|
+
title: string;
|
|
212
|
+
statement: string;
|
|
213
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
214
|
+
matchedFiles: string[];
|
|
215
|
+
}[];
|
|
216
|
+
files: string[];
|
|
217
|
+
project: {
|
|
218
|
+
name: string;
|
|
219
|
+
stacks: string[];
|
|
220
|
+
};
|
|
221
|
+
decisions: {
|
|
222
|
+
path: string;
|
|
223
|
+
id: string;
|
|
224
|
+
title: string;
|
|
225
|
+
}[];
|
|
226
|
+
notes: string[];
|
|
227
|
+
patterns: {
|
|
228
|
+
name: string;
|
|
229
|
+
id: string;
|
|
230
|
+
problem: string;
|
|
231
|
+
}[];
|
|
232
|
+
}, {
|
|
233
|
+
schemaVersion: 1;
|
|
234
|
+
verification: {
|
|
235
|
+
status: "passed" | "failed" | "blocked";
|
|
236
|
+
runId: string;
|
|
237
|
+
checks: {
|
|
238
|
+
status: string;
|
|
239
|
+
id: string;
|
|
240
|
+
}[];
|
|
241
|
+
recordedAt: string;
|
|
242
|
+
} | null;
|
|
243
|
+
constitution: {
|
|
244
|
+
required: boolean;
|
|
245
|
+
present: boolean;
|
|
246
|
+
ruleCount: number;
|
|
247
|
+
gate: "passed" | "failed" | "blocked" | null;
|
|
248
|
+
};
|
|
249
|
+
rules: {
|
|
250
|
+
status: "proposed" | "active" | "deprecated" | "retired";
|
|
251
|
+
id: string;
|
|
252
|
+
title: string;
|
|
253
|
+
statement: string;
|
|
254
|
+
mode: "off" | "shadow" | "advisory" | "blocking";
|
|
255
|
+
matchedFiles: string[];
|
|
256
|
+
}[];
|
|
257
|
+
files: string[];
|
|
258
|
+
project: {
|
|
259
|
+
name: string;
|
|
260
|
+
stacks: string[];
|
|
261
|
+
};
|
|
262
|
+
decisions: {
|
|
263
|
+
path: string;
|
|
264
|
+
id: string;
|
|
265
|
+
title: string;
|
|
266
|
+
}[];
|
|
267
|
+
notes: string[];
|
|
268
|
+
patterns: {
|
|
269
|
+
name: string;
|
|
270
|
+
id: string;
|
|
271
|
+
problem: string;
|
|
272
|
+
}[];
|
|
273
|
+
}>;
|
|
274
|
+
export type ProjectContext = z.infer<typeof ProjectContextSchema>;
|
|
275
|
+
//# sourceMappingURL=project-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-context.d.ts","sourceRoot":"","sources":["../../src/context/project-context.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AAEzD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// packages/contracts/src/context/project-context.ts
|
|
2
|
+
//
|
|
3
|
+
// Task-scoped project context (platform roadmap Phase 3). Returned by
|
|
4
|
+
// `kit context --json`, `kit_project_context` over MCP, and consumed by the
|
|
5
|
+
// agentic-mods kit-bridge. It carries only what a task needs: applicable rules
|
|
6
|
+
// for the given files, patterns, decision titles and the last verification.
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { EnforcementModeSchema, RuleStatusSchema } from '../constitution/rule.js';
|
|
9
|
+
import { GateStatusSchema } from '../constitution/result.js';
|
|
10
|
+
export const PROJECT_CONTEXT_SCHEMA_VERSION = 1;
|
|
11
|
+
export const ContextRuleSchema = z.object({
|
|
12
|
+
id: z.string().min(1),
|
|
13
|
+
title: z.string().min(1),
|
|
14
|
+
statement: z.string().min(1),
|
|
15
|
+
status: RuleStatusSchema,
|
|
16
|
+
mode: EnforcementModeSchema,
|
|
17
|
+
matchedFiles: z.array(z.string()),
|
|
18
|
+
});
|
|
19
|
+
export const ContextPatternSchema = z.object({
|
|
20
|
+
id: z.string().min(1),
|
|
21
|
+
name: z.string().min(1),
|
|
22
|
+
problem: z.string().min(1),
|
|
23
|
+
});
|
|
24
|
+
export const ContextDecisionSchema = z.object({
|
|
25
|
+
id: z.string().min(1),
|
|
26
|
+
title: z.string().min(1),
|
|
27
|
+
path: z.string().min(1),
|
|
28
|
+
});
|
|
29
|
+
export const ContextVerificationSchema = z.object({
|
|
30
|
+
runId: z.string().min(1),
|
|
31
|
+
status: z.enum(['passed', 'failed', 'blocked']),
|
|
32
|
+
recordedAt: z.string().min(1),
|
|
33
|
+
checks: z.array(z.object({ id: z.string().min(1), status: z.string().min(1) })),
|
|
34
|
+
});
|
|
35
|
+
export const ProjectContextSchema = z.object({
|
|
36
|
+
schemaVersion: z.literal(PROJECT_CONTEXT_SCHEMA_VERSION),
|
|
37
|
+
project: z.object({ name: z.string().min(1), stacks: z.array(z.string()) }),
|
|
38
|
+
constitution: z.object({
|
|
39
|
+
present: z.boolean(),
|
|
40
|
+
// Mirrors constitution.required in project.yml. When true, an unavailable or
|
|
41
|
+
// failing constitution must never be reported as passing.
|
|
42
|
+
required: z.boolean(),
|
|
43
|
+
ruleCount: z.number().int().nonnegative(),
|
|
44
|
+
// Null when no files were given, or no constitution exists: the gate was not evaluated.
|
|
45
|
+
gate: GateStatusSchema.nullable(),
|
|
46
|
+
}),
|
|
47
|
+
// The files this context was computed for. Empty means no task-scoped rules.
|
|
48
|
+
files: z.array(z.string()),
|
|
49
|
+
rules: z.array(ContextRuleSchema),
|
|
50
|
+
patterns: z.array(ContextPatternSchema),
|
|
51
|
+
decisions: z.array(ContextDecisionSchema),
|
|
52
|
+
// Null when no verification has been recorded in this checkout.
|
|
53
|
+
verification: ContextVerificationSchema.nullable(),
|
|
54
|
+
notes: z.array(z.string()),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=project-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-context.js","sourceRoot":"","sources":["../../src/context/project-context.ts"],"names":[],"mappings":"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"}
|
|
@@ -10,18 +10,18 @@ export declare const BenchmarkCaseSchema: z.ZodObject<{
|
|
|
10
10
|
acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
|
|
11
11
|
heldOut: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
13
14
|
id: string;
|
|
14
|
-
acceptanceCriteria: string[];
|
|
15
15
|
title: string;
|
|
16
|
-
|
|
16
|
+
acceptanceCriteria: string[];
|
|
17
17
|
fixture: string;
|
|
18
18
|
taskPrompt: string;
|
|
19
19
|
heldOut: boolean;
|
|
20
20
|
}, {
|
|
21
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
21
22
|
id: string;
|
|
22
|
-
acceptanceCriteria: string[];
|
|
23
23
|
title: string;
|
|
24
|
-
|
|
24
|
+
acceptanceCriteria: string[];
|
|
25
25
|
fixture: string;
|
|
26
26
|
taskPrompt: string;
|
|
27
27
|
heldOut?: boolean | undefined;
|
|
@@ -39,18 +39,18 @@ export declare const BenchmarkSuiteSchema: z.ZodObject<{
|
|
|
39
39
|
acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
|
|
40
40
|
heldOut: z.ZodDefault<z.ZodBoolean>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
42
43
|
id: string;
|
|
43
|
-
acceptanceCriteria: string[];
|
|
44
44
|
title: string;
|
|
45
|
-
|
|
45
|
+
acceptanceCriteria: string[];
|
|
46
46
|
fixture: string;
|
|
47
47
|
taskPrompt: string;
|
|
48
48
|
heldOut: boolean;
|
|
49
49
|
}, {
|
|
50
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
50
51
|
id: string;
|
|
51
|
-
acceptanceCriteria: string[];
|
|
52
52
|
title: string;
|
|
53
|
-
|
|
53
|
+
acceptanceCriteria: string[];
|
|
54
54
|
fixture: string;
|
|
55
55
|
taskPrompt: string;
|
|
56
56
|
heldOut?: boolean | undefined;
|
|
@@ -60,10 +60,10 @@ export declare const BenchmarkSuiteSchema: z.ZodObject<{
|
|
|
60
60
|
id: string;
|
|
61
61
|
version: string;
|
|
62
62
|
cases: {
|
|
63
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
63
64
|
id: string;
|
|
64
|
-
acceptanceCriteria: string[];
|
|
65
65
|
title: string;
|
|
66
|
-
|
|
66
|
+
acceptanceCriteria: string[];
|
|
67
67
|
fixture: string;
|
|
68
68
|
taskPrompt: string;
|
|
69
69
|
heldOut: boolean;
|
|
@@ -73,10 +73,10 @@ export declare const BenchmarkSuiteSchema: z.ZodObject<{
|
|
|
73
73
|
id: string;
|
|
74
74
|
version: string;
|
|
75
75
|
cases: {
|
|
76
|
+
kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
|
|
76
77
|
id: string;
|
|
77
|
-
acceptanceCriteria: string[];
|
|
78
78
|
title: string;
|
|
79
|
-
|
|
79
|
+
acceptanceCriteria: string[];
|
|
80
80
|
fixture: string;
|
|
81
81
|
taskPrompt: string;
|
|
82
82
|
heldOut?: boolean | undefined;
|
|
@@ -51,14 +51,14 @@ export declare const EvaluationReportSchema: z.ZodObject<{
|
|
|
51
51
|
severity: z.ZodEnum<["high", "critical"]>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
value: number;
|
|
54
|
+
threshold: number;
|
|
54
55
|
severity: "high" | "critical";
|
|
55
56
|
metric: string;
|
|
56
|
-
threshold: number;
|
|
57
57
|
}, {
|
|
58
58
|
value: number;
|
|
59
|
+
threshold: number;
|
|
59
60
|
severity: "high" | "critical";
|
|
60
61
|
metric: string;
|
|
61
|
-
threshold: number;
|
|
62
62
|
}>, "many">>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
schemaVersion: 1;
|
|
@@ -76,9 +76,9 @@ export declare const EvaluationReportSchema: z.ZodObject<{
|
|
|
76
76
|
passesReleaseGates: boolean;
|
|
77
77
|
blockingFailures: {
|
|
78
78
|
value: number;
|
|
79
|
+
threshold: number;
|
|
79
80
|
severity: "high" | "critical";
|
|
80
81
|
metric: string;
|
|
81
|
-
threshold: number;
|
|
82
82
|
}[];
|
|
83
83
|
}, {
|
|
84
84
|
schemaVersion: 1;
|
|
@@ -96,9 +96,9 @@ export declare const EvaluationReportSchema: z.ZodObject<{
|
|
|
96
96
|
passesReleaseGates: boolean;
|
|
97
97
|
blockingFailures?: {
|
|
98
98
|
value: number;
|
|
99
|
+
threshold: number;
|
|
99
100
|
severity: "high" | "critical";
|
|
100
101
|
metric: string;
|
|
101
|
-
threshold: number;
|
|
102
102
|
}[] | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
export type MetricSnapshot = z.infer<typeof MetricSnapshotSchema>;
|
|
@@ -15,26 +15,26 @@ export declare const ImprovementHypothesisSchema: z.ZodObject<{
|
|
|
15
15
|
threshold: z.ZodNumber;
|
|
16
16
|
direction: z.ZodEnum<["higher-is-better", "lower-is-better"]>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
threshold: number;
|
|
18
19
|
metric: string;
|
|
19
20
|
direction: "lower-is-better" | "higher-is-better";
|
|
20
|
-
threshold: number;
|
|
21
21
|
}, {
|
|
22
|
+
threshold: number;
|
|
22
23
|
metric: string;
|
|
23
24
|
direction: "lower-is-better" | "higher-is-better";
|
|
24
|
-
threshold: number;
|
|
25
25
|
}>;
|
|
26
26
|
guardrails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
27
27
|
metric: z.ZodString;
|
|
28
28
|
threshold: z.ZodNumber;
|
|
29
29
|
direction: z.ZodEnum<["higher-is-better", "lower-is-better"]>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
threshold: number;
|
|
31
32
|
metric: string;
|
|
32
33
|
direction: "lower-is-better" | "higher-is-better";
|
|
33
|
-
threshold: number;
|
|
34
34
|
}, {
|
|
35
|
+
threshold: number;
|
|
35
36
|
metric: string;
|
|
36
37
|
direction: "lower-is-better" | "higher-is-better";
|
|
37
|
-
threshold: number;
|
|
38
38
|
}>, "many">>;
|
|
39
39
|
estimatedImpact: z.ZodEnum<["low", "medium", "high"]>;
|
|
40
40
|
estimatedCost: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -43,7 +43,7 @@ export declare const ImprovementHypothesisSchema: z.ZodObject<{
|
|
|
43
43
|
status: z.ZodDefault<z.ZodEnum<["proposed", "experimenting", "approved", "rejected", "needs-revision"]>>;
|
|
44
44
|
createdAt: z.ZodString;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
status: "rejected" | "approved" | "needs-revision" | "
|
|
46
|
+
status: "proposed" | "rejected" | "approved" | "needs-revision" | "experimenting";
|
|
47
47
|
schemaVersion: 1;
|
|
48
48
|
id: string;
|
|
49
49
|
title: string;
|
|
@@ -54,14 +54,14 @@ export declare const ImprovementHypothesisSchema: z.ZodObject<{
|
|
|
54
54
|
observedProblem: string;
|
|
55
55
|
evidenceEpisodeIds: string[];
|
|
56
56
|
successMetric: {
|
|
57
|
+
threshold: number;
|
|
57
58
|
metric: string;
|
|
58
59
|
direction: "lower-is-better" | "higher-is-better";
|
|
59
|
-
threshold: number;
|
|
60
60
|
};
|
|
61
61
|
guardrails: {
|
|
62
|
+
threshold: number;
|
|
62
63
|
metric: string;
|
|
63
64
|
direction: "lower-is-better" | "higher-is-better";
|
|
64
|
-
threshold: number;
|
|
65
65
|
}[];
|
|
66
66
|
estimatedImpact: "low" | "medium" | "high";
|
|
67
67
|
estimatedCost: "low" | "medium" | "high";
|
|
@@ -78,19 +78,19 @@ export declare const ImprovementHypothesisSchema: z.ZodObject<{
|
|
|
78
78
|
observedProblem: string;
|
|
79
79
|
evidenceEpisodeIds: string[];
|
|
80
80
|
successMetric: {
|
|
81
|
+
threshold: number;
|
|
81
82
|
metric: string;
|
|
82
83
|
direction: "lower-is-better" | "higher-is-better";
|
|
83
|
-
threshold: number;
|
|
84
84
|
};
|
|
85
85
|
estimatedImpact: "low" | "medium" | "high";
|
|
86
86
|
estimatedCost: "low" | "medium" | "high";
|
|
87
87
|
estimatedRisk: "low" | "medium" | "high";
|
|
88
88
|
priorityScore: number;
|
|
89
|
-
status?: "rejected" | "approved" | "needs-revision" | "
|
|
89
|
+
status?: "proposed" | "rejected" | "approved" | "needs-revision" | "experimenting" | undefined;
|
|
90
90
|
guardrails?: {
|
|
91
|
+
threshold: number;
|
|
91
92
|
metric: string;
|
|
92
93
|
direction: "lower-is-better" | "higher-is-better";
|
|
93
|
-
threshold: number;
|
|
94
94
|
}[] | undefined;
|
|
95
95
|
}>;
|
|
96
96
|
export type ImprovementCategory = z.infer<typeof ImprovementCategorySchema>;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EXECUTION_PROFILE_SCHEMA_VERSION: 1;
|
|
3
|
+
export declare const ContainerIsolationSchema: z.ZodEffects<z.ZodObject<{
|
|
4
|
+
runtime: z.ZodEnum<["docker", "podman"]>;
|
|
5
|
+
image: z.ZodString;
|
|
6
|
+
network: z.ZodEnum<["none", "allowlist"]>;
|
|
7
|
+
allowedHosts: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
cpus: z.ZodNumber;
|
|
9
|
+
memoryMb: z.ZodNumber;
|
|
10
|
+
timeoutSeconds: z.ZodNumber;
|
|
11
|
+
}, "strict", z.ZodTypeAny, {
|
|
12
|
+
runtime: "docker" | "podman";
|
|
13
|
+
image: string;
|
|
14
|
+
network: "none" | "allowlist";
|
|
15
|
+
allowedHosts: string[];
|
|
16
|
+
cpus: number;
|
|
17
|
+
memoryMb: number;
|
|
18
|
+
timeoutSeconds: number;
|
|
19
|
+
}, {
|
|
20
|
+
runtime: "docker" | "podman";
|
|
21
|
+
image: string;
|
|
22
|
+
network: "none" | "allowlist";
|
|
23
|
+
allowedHosts: string[];
|
|
24
|
+
cpus: number;
|
|
25
|
+
memoryMb: number;
|
|
26
|
+
timeoutSeconds: number;
|
|
27
|
+
}>, {
|
|
28
|
+
runtime: "docker" | "podman";
|
|
29
|
+
image: string;
|
|
30
|
+
network: "none" | "allowlist";
|
|
31
|
+
allowedHosts: string[];
|
|
32
|
+
cpus: number;
|
|
33
|
+
memoryMb: number;
|
|
34
|
+
timeoutSeconds: number;
|
|
35
|
+
}, {
|
|
36
|
+
runtime: "docker" | "podman";
|
|
37
|
+
image: string;
|
|
38
|
+
network: "none" | "allowlist";
|
|
39
|
+
allowedHosts: string[];
|
|
40
|
+
cpus: number;
|
|
41
|
+
memoryMb: number;
|
|
42
|
+
timeoutSeconds: number;
|
|
43
|
+
}>;
|
|
44
|
+
export type ContainerIsolation = z.infer<typeof ContainerIsolationSchema>;
|
|
45
|
+
export declare const ExecutionProfileSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
47
|
+
kind: z.ZodLiteral<"host">;
|
|
48
|
+
requireIsolation: z.ZodLiteral<false>;
|
|
49
|
+
}, "strict", z.ZodTypeAny, {
|
|
50
|
+
schemaVersion: 1;
|
|
51
|
+
kind: "host";
|
|
52
|
+
requireIsolation: false;
|
|
53
|
+
}, {
|
|
54
|
+
schemaVersion: 1;
|
|
55
|
+
kind: "host";
|
|
56
|
+
requireIsolation: false;
|
|
57
|
+
}>, z.ZodObject<{
|
|
58
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
59
|
+
kind: z.ZodLiteral<"container">;
|
|
60
|
+
requireIsolation: z.ZodBoolean;
|
|
61
|
+
container: z.ZodEffects<z.ZodObject<{
|
|
62
|
+
runtime: z.ZodEnum<["docker", "podman"]>;
|
|
63
|
+
image: z.ZodString;
|
|
64
|
+
network: z.ZodEnum<["none", "allowlist"]>;
|
|
65
|
+
allowedHosts: z.ZodArray<z.ZodString, "many">;
|
|
66
|
+
cpus: z.ZodNumber;
|
|
67
|
+
memoryMb: z.ZodNumber;
|
|
68
|
+
timeoutSeconds: z.ZodNumber;
|
|
69
|
+
}, "strict", z.ZodTypeAny, {
|
|
70
|
+
runtime: "docker" | "podman";
|
|
71
|
+
image: string;
|
|
72
|
+
network: "none" | "allowlist";
|
|
73
|
+
allowedHosts: string[];
|
|
74
|
+
cpus: number;
|
|
75
|
+
memoryMb: number;
|
|
76
|
+
timeoutSeconds: number;
|
|
77
|
+
}, {
|
|
78
|
+
runtime: "docker" | "podman";
|
|
79
|
+
image: string;
|
|
80
|
+
network: "none" | "allowlist";
|
|
81
|
+
allowedHosts: string[];
|
|
82
|
+
cpus: number;
|
|
83
|
+
memoryMb: number;
|
|
84
|
+
timeoutSeconds: number;
|
|
85
|
+
}>, {
|
|
86
|
+
runtime: "docker" | "podman";
|
|
87
|
+
image: string;
|
|
88
|
+
network: "none" | "allowlist";
|
|
89
|
+
allowedHosts: string[];
|
|
90
|
+
cpus: number;
|
|
91
|
+
memoryMb: number;
|
|
92
|
+
timeoutSeconds: number;
|
|
93
|
+
}, {
|
|
94
|
+
runtime: "docker" | "podman";
|
|
95
|
+
image: string;
|
|
96
|
+
network: "none" | "allowlist";
|
|
97
|
+
allowedHosts: string[];
|
|
98
|
+
cpus: number;
|
|
99
|
+
memoryMb: number;
|
|
100
|
+
timeoutSeconds: number;
|
|
101
|
+
}>;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
schemaVersion: 1;
|
|
104
|
+
kind: "container";
|
|
105
|
+
container: {
|
|
106
|
+
runtime: "docker" | "podman";
|
|
107
|
+
image: string;
|
|
108
|
+
network: "none" | "allowlist";
|
|
109
|
+
allowedHosts: string[];
|
|
110
|
+
cpus: number;
|
|
111
|
+
memoryMb: number;
|
|
112
|
+
timeoutSeconds: number;
|
|
113
|
+
};
|
|
114
|
+
requireIsolation: boolean;
|
|
115
|
+
}, {
|
|
116
|
+
schemaVersion: 1;
|
|
117
|
+
kind: "container";
|
|
118
|
+
container: {
|
|
119
|
+
runtime: "docker" | "podman";
|
|
120
|
+
image: string;
|
|
121
|
+
network: "none" | "allowlist";
|
|
122
|
+
allowedHosts: string[];
|
|
123
|
+
cpus: number;
|
|
124
|
+
memoryMb: number;
|
|
125
|
+
timeoutSeconds: number;
|
|
126
|
+
};
|
|
127
|
+
requireIsolation: boolean;
|
|
128
|
+
}>]>;
|
|
129
|
+
export type ExecutionProfile = z.infer<typeof ExecutionProfileSchema>;
|
|
130
|
+
//# sourceMappingURL=execution-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-profile.d.ts","sourceRoot":"","sources":["../../src/execution/execution-profile.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC,EAAG,CAAU,CAAC;AAM3D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|