@agentic-sdlc-kit/contracts 1.2.1 → 1.3.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.
Files changed (177) hide show
  1. package/dist/agent/capability.d.ts +12 -1
  2. package/dist/agent/capability.d.ts.map +1 -1
  3. package/dist/agent/errors.d.ts +29 -11
  4. package/dist/agent/errors.d.ts.map +1 -1
  5. package/dist/agent/events.d.ts +42 -153
  6. package/dist/agent/events.d.ts.map +1 -1
  7. package/dist/agent/execution.d.ts +151 -415
  8. package/dist/agent/execution.d.ts.map +1 -1
  9. package/dist/agent/policy.d.ts +30 -92
  10. package/dist/agent/policy.d.ts.map +1 -1
  11. package/dist/agent/session.d.ts +1 -7
  12. package/dist/agent/session.d.ts.map +1 -1
  13. package/dist/agent-tools/index.d.ts +20 -58
  14. package/dist/agent-tools/index.d.ts.map +1 -1
  15. package/dist/application/application-context.d.ts +80 -582
  16. package/dist/application/application-context.d.ts.map +1 -1
  17. package/dist/application/application-persistence.d.ts +161 -924
  18. package/dist/application/application-persistence.d.ts.map +1 -1
  19. package/dist/application/application-state.d.ts +94 -70
  20. package/dist/application/application-state.d.ts.map +1 -1
  21. package/dist/architecture/api-contract.d.ts +56 -208
  22. package/dist/architecture/api-contract.d.ts.map +1 -1
  23. package/dist/architecture/architecture-approval.d.ts +2 -26
  24. package/dist/architecture/architecture-approval.d.ts.map +1 -1
  25. package/dist/architecture/architecture-options.d.ts +30 -82
  26. package/dist/architecture/architecture-options.d.ts.map +1 -1
  27. package/dist/architecture/component-map.d.ts +34 -60
  28. package/dist/architecture/component-map.d.ts.map +1 -1
  29. package/dist/architecture/data-model.d.ts +91 -205
  30. package/dist/architecture/data-model.d.ts.map +1 -1
  31. package/dist/architecture/operational-design.d.ts +48 -115
  32. package/dist/architecture/operational-design.d.ts.map +1 -1
  33. package/dist/architecture/security-design.d.ts +40 -90
  34. package/dist/architecture/security-design.d.ts.map +1 -1
  35. package/dist/benchmark/bench.d.ts +44 -263
  36. package/dist/benchmark/bench.d.ts.map +1 -1
  37. package/dist/common/identifier.d.ts +1 -1
  38. package/dist/common/identifier.d.ts.map +1 -1
  39. package/dist/constitution/cli-output.d.ts +58 -618
  40. package/dist/constitution/cli-output.d.ts.map +1 -1
  41. package/dist/constitution/result.d.ts +31 -84
  42. package/dist/constitution/result.d.ts.map +1 -1
  43. package/dist/constitution/rule.d.ts +97 -408
  44. package/dist/constitution/rule.d.ts.map +1 -1
  45. package/dist/context/project-context.d.ts +57 -227
  46. package/dist/context/project-context.d.ts.map +1 -1
  47. package/dist/evaluation/benchmark.d.ts +26 -66
  48. package/dist/evaluation/benchmark.d.ts.map +1 -1
  49. package/dist/evaluation/metrics.d.ts +15 -120
  50. package/dist/evaluation/metrics.d.ts.map +1 -1
  51. package/dist/evolution/experiment.d.ts +29 -51
  52. package/dist/evolution/experiment.d.ts.map +1 -1
  53. package/dist/evolution/improvement-hypothesis.d.ts +56 -78
  54. package/dist/evolution/improvement-hypothesis.d.ts.map +1 -1
  55. package/dist/execution/execution-profile.d.ts +25 -111
  56. package/dist/execution/execution-profile.d.ts.map +1 -1
  57. package/dist/improvement/config.d.ts +3 -17
  58. package/dist/improvement/config.d.ts.map +1 -1
  59. package/dist/improvement/config.js +1 -1
  60. package/dist/improvement/config.js.map +1 -1
  61. package/dist/improvement/finding.d.ts +24 -71
  62. package/dist/improvement/finding.d.ts.map +1 -1
  63. package/dist/improvement/issue.d.ts +10 -39
  64. package/dist/improvement/issue.d.ts.map +1 -1
  65. package/dist/improvement/kit-feedback.d.ts +45 -29
  66. package/dist/improvement/kit-feedback.d.ts.map +1 -1
  67. package/dist/improvement/review.d.ts +22 -28
  68. package/dist/improvement/review.d.ts.map +1 -1
  69. package/dist/installer/install-plan.d.ts +52 -137
  70. package/dist/installer/install-plan.d.ts.map +1 -1
  71. package/dist/installer/ownership-manifest.d.ts +7 -62
  72. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  73. package/dist/installer/package-manifest.d.ts +25 -40
  74. package/dist/installer/package-manifest.d.ts.map +1 -1
  75. package/dist/learning/engineering-lesson.d.ts +19 -65
  76. package/dist/learning/engineering-lesson.d.ts.map +1 -1
  77. package/dist/learning/engineering-memory.d.ts +32 -64
  78. package/dist/learning/engineering-memory.d.ts.map +1 -1
  79. package/dist/learning/experience-episode.d.ts +33 -141
  80. package/dist/learning/experience-episode.d.ts.map +1 -1
  81. package/dist/learning/experience.d.ts +16 -50
  82. package/dist/learning/experience.d.ts.map +1 -1
  83. package/dist/learning/hypothesis.d.ts +14 -39
  84. package/dist/learning/hypothesis.d.ts.map +1 -1
  85. package/dist/learning/learning-event.d.ts +32 -62
  86. package/dist/learning/learning-event.d.ts.map +1 -1
  87. package/dist/learning/memory.d.ts +12 -28
  88. package/dist/learning/memory.d.ts.map +1 -1
  89. package/dist/learning/promotion.d.ts +7 -20
  90. package/dist/learning/promotion.d.ts.map +1 -1
  91. package/dist/maintenance/bug-fix-workflow.d.ts +49 -30
  92. package/dist/maintenance/bug-fix-workflow.d.ts.map +1 -1
  93. package/dist/maintenance/bug-report.d.ts +39 -46
  94. package/dist/maintenance/bug-report.d.ts.map +1 -1
  95. package/dist/maintenance/performance-baseline.d.ts +18 -64
  96. package/dist/maintenance/performance-baseline.d.ts.map +1 -1
  97. package/dist/maintenance/refactor-contract.d.ts +47 -133
  98. package/dist/maintenance/refactor-contract.d.ts.map +1 -1
  99. package/dist/maintenance/refactor-workflow.d.ts +50 -51
  100. package/dist/maintenance/refactor-workflow.d.ts.map +1 -1
  101. package/dist/observer/event-schema.d.ts +31 -31
  102. package/dist/observer/event-schema.d.ts.map +1 -1
  103. package/dist/observer/journal.d.ts +32 -57
  104. package/dist/observer/journal.d.ts.map +1 -1
  105. package/dist/observer/journal.js +1 -1
  106. package/dist/observer/journal.js.map +1 -1
  107. package/dist/observer/retention.d.ts +2 -16
  108. package/dist/observer/retention.d.ts.map +1 -1
  109. package/dist/observer/run-summary.d.ts +45 -213
  110. package/dist/observer/run-summary.d.ts.map +1 -1
  111. package/dist/onboard/onboard-report.d.ts +85 -279
  112. package/dist/onboard/onboard-report.d.ts.map +1 -1
  113. package/dist/patterns/pattern.d.ts +28 -74
  114. package/dist/patterns/pattern.d.ts.map +1 -1
  115. package/dist/planning/task.d.ts +70 -149
  116. package/dist/planning/task.d.ts.map +1 -1
  117. package/dist/policy/policy.d.ts +61 -56
  118. package/dist/policy/policy.d.ts.map +1 -1
  119. package/dist/product/mvp-scope.d.ts +8 -18
  120. package/dist/product/mvp-scope.d.ts.map +1 -1
  121. package/dist/product/product-brief.d.ts +6 -74
  122. package/dist/product/product-brief.d.ts.map +1 -1
  123. package/dist/product/requirements.d.ts +99 -215
  124. package/dist/product/requirements.d.ts.map +1 -1
  125. package/dist/product/traceability.d.ts +7 -39
  126. package/dist/product/traceability.d.ts.map +1 -1
  127. package/dist/project/project-profile.d.ts +34 -146
  128. package/dist/project/project-profile.d.ts.map +1 -1
  129. package/dist/project/repository-scan.d.ts +8 -64
  130. package/dist/project/repository-scan.d.ts.map +1 -1
  131. package/dist/routing/capability-registry.d.ts +15 -67
  132. package/dist/routing/capability-registry.d.ts.map +1 -1
  133. package/dist/routing/escalation.d.ts +10 -17
  134. package/dist/routing/escalation.d.ts.map +1 -1
  135. package/dist/routing/measured-routing.d.ts +18 -28
  136. package/dist/routing/measured-routing.d.ts.map +1 -1
  137. package/dist/routing/routing-policy.d.ts +56 -84
  138. package/dist/routing/routing-policy.d.ts.map +1 -1
  139. package/dist/routing/routing-request.d.ts +50 -46
  140. package/dist/routing/routing-request.d.ts.map +1 -1
  141. package/dist/runtime-guard/action-classification.d.ts +66 -36
  142. package/dist/runtime-guard/action-classification.d.ts.map +1 -1
  143. package/dist/runtime-guard/action-classification.js +1 -1
  144. package/dist/runtime-guard/action-classification.js.map +1 -1
  145. package/dist/runtime-guard/audit-event.d.ts +45 -77
  146. package/dist/runtime-guard/audit-event.d.ts.map +1 -1
  147. package/dist/runtime-guard/policy-schema.d.ts +100 -116
  148. package/dist/runtime-guard/policy-schema.d.ts.map +1 -1
  149. package/dist/scaffolding/scaffold-contract.d.ts +46 -450
  150. package/dist/scaffolding/scaffold-contract.d.ts.map +1 -1
  151. package/dist/scaffolding/template-manifest.d.ts +5 -77
  152. package/dist/scaffolding/template-manifest.d.ts.map +1 -1
  153. package/dist/secret-guard/detection-rule.d.ts +25 -19
  154. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  155. package/dist/secret-guard/finding.d.ts +70 -69
  156. package/dist/secret-guard/finding.d.ts.map +1 -1
  157. package/dist/secret-guard/redaction-policy.d.ts +7 -17
  158. package/dist/secret-guard/redaction-policy.d.ts.map +1 -1
  159. package/dist/secret-guard/scanner-failure.d.ts +17 -45
  160. package/dist/secret-guard/scanner-failure.d.ts.map +1 -1
  161. package/dist/specification/specification.d.ts +48 -184
  162. package/dist/specification/specification.d.ts.map +1 -1
  163. package/dist/stack-pack/manifest.d.ts +19 -90
  164. package/dist/stack-pack/manifest.d.ts.map +1 -1
  165. package/dist/verification/report.d.ts +49 -164
  166. package/dist/verification/report.d.ts.map +1 -1
  167. package/dist/verification/strength.d.ts +62 -188
  168. package/dist/verification/strength.d.ts.map +1 -1
  169. package/dist/workflow/next-action.d.ts +55 -137
  170. package/dist/workflow/next-action.d.ts.map +1 -1
  171. package/dist/workflow/workflow.d.ts +50 -50
  172. package/dist/workflow/workflow.d.ts.map +1 -1
  173. package/package.json +3 -3
  174. package/src/improvement/config.ts +1 -1
  175. package/src/observer/journal.ts +1 -1
  176. package/src/runtime-guard/action-classification.ts +1 -1
  177. package/src/zod-defaults.test.ts +28 -0
@@ -4,272 +4,102 @@ export declare const ContextRuleSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  title: z.ZodString;
6
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
- }>;
7
+ status: z.ZodEnum<{
8
+ proposed: "proposed";
9
+ active: "active";
10
+ deprecated: "deprecated";
11
+ retired: "retired";
12
+ }>;
13
+ mode: z.ZodEnum<{
14
+ off: "off";
15
+ shadow: "shadow";
16
+ advisory: "advisory";
17
+ blocking: "blocking";
18
+ }>;
19
+ matchedFiles: z.ZodArray<z.ZodString>;
20
+ }, z.core.$strip>;
25
21
  export declare const ContextPatternSchema: z.ZodObject<{
26
22
  id: z.ZodString;
27
23
  name: z.ZodString;
28
24
  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
- }>;
25
+ }, z.core.$strip>;
38
26
  export declare const ContextDecisionSchema: z.ZodObject<{
39
27
  id: z.ZodString;
40
28
  title: z.ZodString;
41
29
  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
- }>;
30
+ }, z.core.$strip>;
51
31
  export declare const ContextVerificationSchema: z.ZodObject<{
52
32
  runId: z.ZodString;
53
- status: z.ZodEnum<["passed", "failed", "blocked"]>;
33
+ status: z.ZodEnum<{
34
+ passed: "passed";
35
+ failed: "failed";
36
+ blocked: "blocked";
37
+ }>;
54
38
  recordedAt: z.ZodString;
55
39
  checks: z.ZodArray<z.ZodObject<{
56
40
  id: z.ZodString;
57
41
  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
- }>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>;
82
44
  export declare const ProjectContextSchema: z.ZodObject<{
83
45
  schemaVersion: z.ZodLiteral<1>;
84
46
  project: z.ZodObject<{
85
47
  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
- }>;
48
+ stacks: z.ZodArray<z.ZodString>;
49
+ }, z.core.$strip>;
94
50
  constitution: z.ZodObject<{
95
51
  present: z.ZodBoolean;
96
52
  required: z.ZodBoolean;
97
53
  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">;
54
+ gate: z.ZodNullable<z.ZodEnum<{
55
+ passed: "passed";
56
+ failed: "failed";
57
+ blocked: "blocked";
58
+ }>>;
59
+ }, z.core.$strip>;
60
+ files: z.ZodArray<z.ZodString>;
111
61
  rules: z.ZodArray<z.ZodObject<{
112
62
  id: z.ZodString;
113
63
  title: z.ZodString;
114
64
  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">;
65
+ status: z.ZodEnum<{
66
+ proposed: "proposed";
67
+ active: "active";
68
+ deprecated: "deprecated";
69
+ retired: "retired";
70
+ }>;
71
+ mode: z.ZodEnum<{
72
+ off: "off";
73
+ shadow: "shadow";
74
+ advisory: "advisory";
75
+ blocking: "blocking";
76
+ }>;
77
+ matchedFiles: z.ZodArray<z.ZodString>;
78
+ }, z.core.$strip>>;
133
79
  patterns: z.ZodArray<z.ZodObject<{
134
80
  id: z.ZodString;
135
81
  name: z.ZodString;
136
82
  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">;
83
+ }, z.core.$strip>>;
146
84
  decisions: z.ZodArray<z.ZodObject<{
147
85
  id: z.ZodString;
148
86
  title: z.ZodString;
149
87
  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">;
88
+ }, z.core.$strip>>;
159
89
  verification: z.ZodNullable<z.ZodObject<{
160
90
  runId: z.ZodString;
161
- status: z.ZodEnum<["passed", "failed", "blocked"]>;
91
+ status: z.ZodEnum<{
92
+ passed: "passed";
93
+ failed: "failed";
94
+ blocked: "blocked";
95
+ }>;
162
96
  recordedAt: z.ZodString;
163
97
  checks: z.ZodArray<z.ZodObject<{
164
98
  id: z.ZodString;
165
99
  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
- }>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>>;
102
+ notes: z.ZodArray<z.ZodString>;
103
+ }, z.core.$strip>;
274
104
  export type ProjectContext = z.infer<typeof ProjectContextSchema>;
275
105
  //# sourceMappingURL=project-context.d.ts.map
@@ -1 +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"}
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;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,31 +1,27 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EVALUATION_SCHEMA_VERSION: 1;
3
- export declare const BenchmarkKindSchema: z.ZodEnum<["feature", "bug-fix", "refactor", "greenfield", "security"]>;
3
+ export declare const BenchmarkKindSchema: z.ZodEnum<{
4
+ feature: "feature";
5
+ refactor: "refactor";
6
+ security: "security";
7
+ "bug-fix": "bug-fix";
8
+ greenfield: "greenfield";
9
+ }>;
4
10
  export declare const BenchmarkCaseSchema: z.ZodObject<{
5
11
  id: z.ZodString;
6
12
  title: z.ZodString;
7
- kind: z.ZodEnum<["feature", "bug-fix", "refactor", "greenfield", "security"]>;
13
+ kind: z.ZodEnum<{
14
+ feature: "feature";
15
+ refactor: "refactor";
16
+ security: "security";
17
+ "bug-fix": "bug-fix";
18
+ greenfield: "greenfield";
19
+ }>;
8
20
  fixture: z.ZodString;
9
21
  taskPrompt: z.ZodString;
10
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
22
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
11
23
  heldOut: z.ZodDefault<z.ZodBoolean>;
12
- }, "strip", z.ZodTypeAny, {
13
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
14
- id: string;
15
- title: string;
16
- acceptanceCriteria: string[];
17
- fixture: string;
18
- taskPrompt: string;
19
- heldOut: boolean;
20
- }, {
21
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
22
- id: string;
23
- title: string;
24
- acceptanceCriteria: string[];
25
- fixture: string;
26
- taskPrompt: string;
27
- heldOut?: boolean | undefined;
28
- }>;
24
+ }, z.core.$strip>;
29
25
  export declare const BenchmarkSuiteSchema: z.ZodObject<{
30
26
  schemaVersion: z.ZodLiteral<1>;
31
27
  id: z.ZodString;
@@ -33,55 +29,19 @@ export declare const BenchmarkSuiteSchema: z.ZodObject<{
33
29
  cases: z.ZodArray<z.ZodObject<{
34
30
  id: z.ZodString;
35
31
  title: z.ZodString;
36
- kind: z.ZodEnum<["feature", "bug-fix", "refactor", "greenfield", "security"]>;
32
+ kind: z.ZodEnum<{
33
+ feature: "feature";
34
+ refactor: "refactor";
35
+ security: "security";
36
+ "bug-fix": "bug-fix";
37
+ greenfield: "greenfield";
38
+ }>;
37
39
  fixture: z.ZodString;
38
40
  taskPrompt: z.ZodString;
39
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
41
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
40
42
  heldOut: z.ZodDefault<z.ZodBoolean>;
41
- }, "strip", z.ZodTypeAny, {
42
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
43
- id: string;
44
- title: string;
45
- acceptanceCriteria: string[];
46
- fixture: string;
47
- taskPrompt: string;
48
- heldOut: boolean;
49
- }, {
50
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
51
- id: string;
52
- title: string;
53
- acceptanceCriteria: string[];
54
- fixture: string;
55
- taskPrompt: string;
56
- heldOut?: boolean | undefined;
57
- }>, "many">;
58
- }, "strip", z.ZodTypeAny, {
59
- schemaVersion: 1;
60
- id: string;
61
- version: string;
62
- cases: {
63
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
64
- id: string;
65
- title: string;
66
- acceptanceCriteria: string[];
67
- fixture: string;
68
- taskPrompt: string;
69
- heldOut: boolean;
70
- }[];
71
- }, {
72
- schemaVersion: 1;
73
- id: string;
74
- version: string;
75
- cases: {
76
- kind: "feature" | "refactor" | "security" | "bug-fix" | "greenfield";
77
- id: string;
78
- title: string;
79
- acceptanceCriteria: string[];
80
- fixture: string;
81
- taskPrompt: string;
82
- heldOut?: boolean | undefined;
83
- }[];
84
- }>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
85
45
  export type BenchmarkKind = z.infer<typeof BenchmarkKindSchema>;
86
46
  export type BenchmarkCase = z.infer<typeof BenchmarkCaseSchema>;
87
47
  export type BenchmarkSuite = z.infer<typeof BenchmarkSuiteSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"benchmark.d.ts","sourceRoot":"","sources":["../../src/evaluation/benchmark.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,EAAG,CAAU,CAAC;AAEpD,eAAO,MAAM,mBAAmB,yEAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"benchmark.d.ts","sourceRoot":"","sources":["../../src/evaluation/benchmark.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB,EAAG,CAAU,CAAC;AAEpD,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;iBAY9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -5,19 +5,7 @@ export declare const MetricSnapshotSchema: z.ZodObject<{
5
5
  unit: z.ZodString;
6
6
  sampleSize: z.ZodNumber;
7
7
  blocking: z.ZodDefault<z.ZodBoolean>;
8
- }, "strip", z.ZodTypeAny, {
9
- value: number;
10
- blocking: boolean;
11
- metric: string;
12
- unit: string;
13
- sampleSize: number;
14
- }, {
15
- value: number;
16
- metric: string;
17
- unit: string;
18
- sampleSize: number;
19
- blocking?: boolean | undefined;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export declare const EvaluationReportSchema: z.ZodObject<{
22
10
  schemaVersion: z.ZodLiteral<1>;
23
11
  kitVersion: z.ZodString;
@@ -30,77 +18,18 @@ export declare const EvaluationReportSchema: z.ZodObject<{
30
18
  unit: z.ZodString;
31
19
  sampleSize: z.ZodNumber;
32
20
  blocking: z.ZodDefault<z.ZodBoolean>;
33
- }, "strip", z.ZodTypeAny, {
34
- value: number;
35
- blocking: boolean;
36
- metric: string;
37
- unit: string;
38
- sampleSize: number;
39
- }, {
40
- value: number;
41
- metric: string;
42
- unit: string;
43
- sampleSize: number;
44
- blocking?: boolean | undefined;
45
- }>, "many">;
21
+ }, z.core.$strip>>;
46
22
  passesReleaseGates: z.ZodBoolean;
47
23
  blockingFailures: z.ZodDefault<z.ZodArray<z.ZodObject<{
48
24
  metric: z.ZodString;
49
25
  value: z.ZodNumber;
50
26
  threshold: z.ZodNumber;
51
- severity: z.ZodEnum<["high", "critical"]>;
52
- }, "strip", z.ZodTypeAny, {
53
- value: number;
54
- threshold: number;
55
- severity: "high" | "critical";
56
- metric: string;
57
- }, {
58
- value: number;
59
- threshold: number;
60
- severity: "high" | "critical";
61
- metric: string;
62
- }>, "many">>;
63
- }, "strip", z.ZodTypeAny, {
64
- schemaVersion: 1;
65
- metrics: {
66
- value: number;
67
- blocking: boolean;
68
- metric: string;
69
- unit: string;
70
- sampleSize: number;
71
- }[];
72
- kitVersion: string;
73
- benchmarkSuiteId: string;
74
- benchmarkSuiteVersion: string;
75
- ranAt: string;
76
- passesReleaseGates: boolean;
77
- blockingFailures: {
78
- value: number;
79
- threshold: number;
80
- severity: "high" | "critical";
81
- metric: string;
82
- }[];
83
- }, {
84
- schemaVersion: 1;
85
- metrics: {
86
- value: number;
87
- metric: string;
88
- unit: string;
89
- sampleSize: number;
90
- blocking?: boolean | undefined;
91
- }[];
92
- kitVersion: string;
93
- benchmarkSuiteId: string;
94
- benchmarkSuiteVersion: string;
95
- ranAt: string;
96
- passesReleaseGates: boolean;
97
- blockingFailures?: {
98
- value: number;
99
- threshold: number;
100
- severity: "high" | "critical";
101
- metric: string;
102
- }[] | undefined;
103
- }>;
27
+ severity: z.ZodEnum<{
28
+ high: "high";
29
+ critical: "critical";
30
+ }>;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
104
33
  export type MetricSnapshot = z.infer<typeof MetricSnapshotSchema>;
105
34
  export type EvaluationReport = z.infer<typeof EvaluationReportSchema>;
106
35
  /**
@@ -118,47 +47,13 @@ export declare const ComparisonReportSchema: z.ZodObject<{
118
47
  candidateValue: z.ZodNumber;
119
48
  delta: z.ZodNumber;
120
49
  improved: z.ZodBoolean;
121
- }, "strip", z.ZodTypeAny, {
122
- metric: string;
123
- baselineValue: number;
124
- candidateValue: number;
125
- delta: number;
126
- improved: boolean;
127
- }, {
128
- metric: string;
129
- baselineValue: number;
130
- candidateValue: number;
131
- delta: number;
132
- improved: boolean;
133
- }>, "many">;
134
- verdict: z.ZodEnum<["approved", "rejected", "needs-revision"]>;
50
+ }, z.core.$strip>>;
51
+ verdict: z.ZodEnum<{
52
+ rejected: "rejected";
53
+ approved: "approved";
54
+ "needs-revision": "needs-revision";
55
+ }>;
135
56
  reason: z.ZodString;
136
- }, "strip", z.ZodTypeAny, {
137
- schemaVersion: 1;
138
- reason: string;
139
- verdict: "rejected" | "approved" | "needs-revision";
140
- baseline: string;
141
- candidate: string;
142
- metricDeltas: {
143
- metric: string;
144
- baselineValue: number;
145
- candidateValue: number;
146
- delta: number;
147
- improved: boolean;
148
- }[];
149
- }, {
150
- schemaVersion: 1;
151
- reason: string;
152
- verdict: "rejected" | "approved" | "needs-revision";
153
- baseline: string;
154
- candidate: string;
155
- metricDeltas: {
156
- metric: string;
157
- baselineValue: number;
158
- candidateValue: number;
159
- delta: number;
160
- improved: boolean;
161
- }[];
162
- }>;
57
+ }, z.core.$strip>;
163
58
  export type ComparisonReport = z.infer<typeof ComparisonReportSchema>;
164
59
  //# sourceMappingURL=metrics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/evaluation/metrics.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBjC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/evaluation/metrics.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;iBAY/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;iBAwBjC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAiBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}