@agentic-sdlc-kit/contracts 0.8.0 → 1.0.1

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 (198) hide show
  1. package/dist/agent/events.d.ts +18 -18
  2. package/dist/agent/execution.d.ts +22 -22
  3. package/dist/agent-tools/index.d.ts +85 -0
  4. package/dist/agent-tools/index.d.ts.map +1 -0
  5. package/dist/agent-tools/index.js +60 -0
  6. package/dist/agent-tools/index.js.map +1 -0
  7. package/dist/application/application-context.d.ts +194 -60
  8. package/dist/application/application-context.d.ts.map +1 -1
  9. package/dist/application/application-persistence.d.ts +276 -114
  10. package/dist/application/application-persistence.d.ts.map +1 -1
  11. package/dist/application/application-state.d.ts +18 -18
  12. package/dist/architecture/api-contract.d.ts +18 -18
  13. package/dist/architecture/architecture-options.d.ts +6 -6
  14. package/dist/architecture/component-map.d.ts +6 -6
  15. package/dist/architecture/data-model.d.ts +6 -6
  16. package/dist/architecture/operational-design.d.ts +6 -6
  17. package/dist/benchmark/bench.d.ts +330 -0
  18. package/dist/benchmark/bench.d.ts.map +1 -0
  19. package/dist/benchmark/bench.js +69 -0
  20. package/dist/benchmark/bench.js.map +1 -0
  21. package/dist/benchmark/index.d.ts +2 -0
  22. package/dist/benchmark/index.d.ts.map +1 -0
  23. package/dist/benchmark/index.js +2 -0
  24. package/dist/benchmark/index.js.map +1 -0
  25. package/dist/constitution/cli-output.d.ts +706 -0
  26. package/dist/constitution/cli-output.d.ts.map +1 -0
  27. package/dist/constitution/cli-output.js +37 -0
  28. package/dist/constitution/cli-output.js.map +1 -0
  29. package/dist/constitution/index.d.ts +4 -0
  30. package/dist/constitution/index.d.ts.map +1 -0
  31. package/dist/constitution/index.js +4 -0
  32. package/dist/constitution/index.js.map +1 -0
  33. package/dist/constitution/result.d.ts +112 -0
  34. package/dist/constitution/result.d.ts.map +1 -0
  35. package/dist/constitution/result.js +67 -0
  36. package/dist/constitution/result.js.map +1 -0
  37. package/dist/constitution/rule.d.ts +488 -0
  38. package/dist/constitution/rule.d.ts.map +1 -0
  39. package/dist/constitution/rule.js +164 -0
  40. package/dist/constitution/rule.js.map +1 -0
  41. package/dist/context/index.d.ts +2 -0
  42. package/dist/context/index.d.ts.map +1 -0
  43. package/dist/context/index.js +2 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/context/project-context.d.ts +275 -0
  46. package/dist/context/project-context.d.ts.map +1 -0
  47. package/dist/context/project-context.js +56 -0
  48. package/dist/context/project-context.js.map +1 -0
  49. package/dist/evaluation/benchmark.d.ts +12 -12
  50. package/dist/evaluation/metrics.d.ts +4 -4
  51. package/dist/evolution/improvement-hypothesis.d.ts +10 -10
  52. package/dist/execution/execution-profile.d.ts +130 -0
  53. package/dist/execution/execution-profile.d.ts.map +1 -0
  54. package/dist/execution/execution-profile.js +44 -0
  55. package/dist/execution/execution-profile.js.map +1 -0
  56. package/dist/execution/index.d.ts +2 -0
  57. package/dist/execution/index.d.ts.map +1 -0
  58. package/dist/execution/index.js +2 -0
  59. package/dist/execution/index.js.map +1 -0
  60. package/dist/index.d.ts +6 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +11 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/installer/install-plan.d.ts +16 -16
  65. package/dist/installer/ownership-manifest.d.ts +10 -2
  66. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  67. package/dist/installer/ownership-manifest.js +4 -0
  68. package/dist/installer/ownership-manifest.js.map +1 -1
  69. package/dist/installer/package-manifest.d.ts +6 -6
  70. package/dist/learning/engineering-lesson.d.ts +14 -14
  71. package/dist/learning/engineering-memory.d.ts +20 -2
  72. package/dist/learning/engineering-memory.d.ts.map +1 -1
  73. package/dist/learning/engineering-memory.js +2 -0
  74. package/dist/learning/engineering-memory.js.map +1 -1
  75. package/dist/learning/experience-episode.d.ts +14 -14
  76. package/dist/learning/experience.d.ts +8 -8
  77. package/dist/learning/index.d.ts +1 -0
  78. package/dist/learning/index.d.ts.map +1 -1
  79. package/dist/learning/index.js +1 -0
  80. package/dist/learning/index.js.map +1 -1
  81. package/dist/learning/learning-event.d.ts +78 -0
  82. package/dist/learning/learning-event.d.ts.map +1 -0
  83. package/dist/learning/learning-event.js +37 -0
  84. package/dist/learning/learning-event.js.map +1 -0
  85. package/dist/learning/memory.d.ts +2 -2
  86. package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
  87. package/dist/maintenance/bug-report.d.ts +6 -6
  88. package/dist/maintenance/refactor-contract.d.ts +8 -8
  89. package/dist/maintenance/refactor-workflow.d.ts +4 -4
  90. package/dist/observer/event-schema.d.ts +6 -6
  91. package/dist/observer/journal.d.ts +10 -10
  92. package/dist/observer/journal.d.ts.map +1 -1
  93. package/dist/observer/journal.js +7 -0
  94. package/dist/observer/journal.js.map +1 -1
  95. package/dist/observer/run-summary.d.ts +12 -12
  96. package/dist/onboard/index.d.ts +2 -0
  97. package/dist/onboard/index.d.ts.map +1 -0
  98. package/dist/onboard/index.js +2 -0
  99. package/dist/onboard/index.js.map +1 -0
  100. package/dist/onboard/onboard-report.d.ts +349 -0
  101. package/dist/onboard/onboard-report.d.ts.map +1 -0
  102. package/dist/onboard/onboard-report.js +96 -0
  103. package/dist/onboard/onboard-report.js.map +1 -0
  104. package/dist/patterns/pattern.d.ts +2 -2
  105. package/dist/planning/task.d.ts +36 -36
  106. package/dist/policy/policy.d.ts +8 -8
  107. package/dist/product/product-brief.d.ts +6 -6
  108. package/dist/product/requirements.d.ts +48 -48
  109. package/dist/project/project-profile.d.ts +113 -2
  110. package/dist/project/project-profile.d.ts.map +1 -1
  111. package/dist/project/project-profile.js +17 -2
  112. package/dist/project/project-profile.js.map +1 -1
  113. package/dist/routing/index.d.ts +1 -0
  114. package/dist/routing/index.d.ts.map +1 -1
  115. package/dist/routing/index.js +1 -0
  116. package/dist/routing/index.js.map +1 -1
  117. package/dist/routing/measured-routing.d.ts +41 -0
  118. package/dist/routing/measured-routing.d.ts.map +1 -0
  119. package/dist/routing/measured-routing.js +24 -0
  120. package/dist/routing/measured-routing.js.map +1 -0
  121. package/dist/routing/routing-policy.d.ts +20 -20
  122. package/dist/routing/routing-request.d.ts +2 -2
  123. package/dist/runtime-guard/action-classification.d.ts +2 -2
  124. package/dist/runtime-guard/audit-event.d.ts +8 -8
  125. package/dist/runtime-guard/policy-schema.d.ts +4 -4
  126. package/dist/scaffolding/scaffold-contract.d.ts +59 -59
  127. package/dist/scaffolding/template-manifest.d.ts +15 -15
  128. package/dist/secret-guard/detection-rule.d.ts +5 -5
  129. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  130. package/dist/secret-guard/detection-rule.js +44 -0
  131. package/dist/secret-guard/detection-rule.js.map +1 -1
  132. package/dist/secret-guard/finding.d.ts +12 -12
  133. package/dist/secret-guard/finding.d.ts.map +1 -1
  134. package/dist/secret-guard/finding.js +2 -0
  135. package/dist/secret-guard/finding.js.map +1 -1
  136. package/dist/secret-guard/scanner-failure.d.ts +4 -4
  137. package/dist/specification/specification.d.ts +8 -8
  138. package/dist/stack-pack/manifest.d.ts +33 -4
  139. package/dist/stack-pack/manifest.d.ts.map +1 -1
  140. package/dist/stack-pack/manifest.js +22 -2
  141. package/dist/stack-pack/manifest.js.map +1 -1
  142. package/dist/verification/index.d.ts +1 -0
  143. package/dist/verification/index.d.ts.map +1 -1
  144. package/dist/verification/index.js +1 -0
  145. package/dist/verification/index.js.map +1 -1
  146. package/dist/verification/report.d.ts +118 -12
  147. package/dist/verification/report.d.ts.map +1 -1
  148. package/dist/verification/report.js +4 -0
  149. package/dist/verification/report.js.map +1 -1
  150. package/dist/verification/strength.d.ts +270 -0
  151. package/dist/verification/strength.d.ts.map +1 -0
  152. package/dist/verification/strength.js +168 -0
  153. package/dist/verification/strength.js.map +1 -0
  154. package/dist/workflow/next-action.d.ts +67 -6
  155. package/dist/workflow/next-action.d.ts.map +1 -1
  156. package/dist/workflow/next-action.js +23 -0
  157. package/dist/workflow/next-action.js.map +1 -1
  158. package/dist/workflow/workflow.d.ts +9 -8
  159. package/dist/workflow/workflow.d.ts.map +1 -1
  160. package/package.json +6 -1
  161. package/src/agent-tools/index.ts +81 -0
  162. package/src/benchmark/bench.ts +83 -0
  163. package/src/benchmark/index.ts +1 -0
  164. package/src/constitution/cli-output.ts +44 -0
  165. package/src/constitution/index.ts +3 -0
  166. package/src/constitution/result.test.ts +69 -0
  167. package/src/constitution/result.ts +74 -0
  168. package/src/constitution/rule-origin.test.ts +36 -0
  169. package/src/constitution/rule-path.test.ts +15 -0
  170. package/src/constitution/rule.test.ts +209 -0
  171. package/src/constitution/rule.ts +192 -0
  172. package/src/context/index.ts +1 -0
  173. package/src/context/project-context.ts +63 -0
  174. package/src/execution/execution-profile.ts +50 -0
  175. package/src/execution/index.ts +1 -0
  176. package/src/index.ts +16 -0
  177. package/src/installer/ownership-manifest.ts +4 -0
  178. package/src/learning/engineering-memory.ts +2 -0
  179. package/src/learning/index.ts +1 -0
  180. package/src/learning/learning-event.ts +42 -0
  181. package/src/observer/journal.ts +7 -0
  182. package/src/onboard/index.ts +1 -0
  183. package/src/onboard/onboard-report.test.ts +92 -0
  184. package/src/onboard/onboard-report.ts +115 -0
  185. package/src/project/project-profile.ts +19 -2
  186. package/src/routing/index.ts +1 -0
  187. package/src/routing/measured-routing.ts +27 -0
  188. package/src/secret-guard/detection-rule.ts +53 -0
  189. package/src/secret-guard/finding.ts +2 -0
  190. package/src/stack-pack/manifest.test.ts +45 -0
  191. package/src/stack-pack/manifest.ts +24 -2
  192. package/src/verification/index.ts +1 -0
  193. package/src/verification/report.ts +4 -0
  194. package/src/verification/strength.test.ts +160 -0
  195. package/src/verification/strength.ts +189 -0
  196. package/src/workflow/next-action.test.ts +25 -0
  197. package/src/workflow/next-action.ts +25 -0
  198. package/src/workflow/workflow.ts +1 -0
@@ -0,0 +1,706 @@
1
+ import { z } from 'zod';
2
+ export declare const CommitRefSchema: z.ZodObject<{
3
+ sha: z.ZodString;
4
+ author: z.ZodString;
5
+ date: z.ZodString;
6
+ subject: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ date: string;
9
+ sha: string;
10
+ author: string;
11
+ subject: string;
12
+ }, {
13
+ date: string;
14
+ sha: string;
15
+ author: string;
16
+ subject: string;
17
+ }>;
18
+ export type CommitRef = z.infer<typeof CommitRefSchema>;
19
+ export declare const RuleExplanationSchema: z.ZodObject<{
20
+ schemaVersion: z.ZodLiteral<1>;
21
+ ruleId: z.ZodString;
22
+ file: z.ZodString;
23
+ rule: z.ZodEffects<z.ZodObject<{
24
+ schemaVersion: z.ZodLiteral<1>;
25
+ id: z.ZodString;
26
+ title: z.ZodString;
27
+ statement: z.ZodString;
28
+ rationale: z.ZodString;
29
+ scope: z.ZodObject<{
30
+ stacks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
31
+ paths: z.ZodArray<z.ZodString, "many">;
32
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ stacks: string[];
35
+ paths: string[];
36
+ exclude: string[];
37
+ }, {
38
+ paths: string[];
39
+ stacks?: string[] | undefined;
40
+ exclude?: string[] | undefined;
41
+ }>;
42
+ status: z.ZodEnum<["proposed", "active", "deprecated", "retired"]>;
43
+ mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
44
+ check: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
45
+ kind: z.ZodLiteral<"import-boundary">;
46
+ from: z.ZodString;
47
+ allow: z.ZodArray<z.ZodString, "many">;
48
+ deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ kind: "import-boundary";
51
+ from: string;
52
+ allow: string[];
53
+ deny: string[];
54
+ }, {
55
+ kind: "import-boundary";
56
+ from: string;
57
+ allow: string[];
58
+ deny?: string[] | undefined;
59
+ }>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"ast-grep">;
61
+ ruleFile: z.ZodEffects<z.ZodString, string, string>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ kind: "ast-grep";
64
+ ruleFile: string;
65
+ }, {
66
+ kind: "ast-grep";
67
+ ruleFile: string;
68
+ }>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"linter">;
70
+ tool: z.ZodEnum<["eslint", "rubocop", "ruff", "golangci-lint"]>;
71
+ ruleId: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
74
+ kind: "linter";
75
+ ruleId: string;
76
+ }, {
77
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
78
+ kind: "linter";
79
+ ruleId: string;
80
+ }>, z.ZodObject<{
81
+ kind: z.ZodLiteral<"command">;
82
+ commandId: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ kind: "command";
85
+ commandId: string;
86
+ }, {
87
+ kind: "command";
88
+ commandId: string;
89
+ }>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"guidance-only">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ kind: "guidance-only";
93
+ }, {
94
+ kind: "guidance-only";
95
+ }>]>;
96
+ source: z.ZodEnum<["declared", "detected", "human", "review", "correction", "ci", "stack-default", "org-baseline"]>;
97
+ confidence: z.ZodNumber;
98
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
+ path: z.ZodString;
100
+ line: z.ZodOptional<z.ZodNumber>;
101
+ revision: z.ZodString;
102
+ note: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ path: string;
105
+ revision: string;
106
+ line?: number | undefined;
107
+ note?: string | undefined;
108
+ }, {
109
+ path: string;
110
+ revision: string;
111
+ line?: number | undefined;
112
+ note?: string | undefined;
113
+ }>, "many">>;
114
+ owner: z.ZodString;
115
+ patternId: z.ZodOptional<z.ZodString>;
116
+ supersedes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
117
+ shareable: z.ZodDefault<z.ZodBoolean>;
118
+ origin: z.ZodOptional<z.ZodObject<{
119
+ candidateId: z.ZodString;
120
+ path: z.ZodString;
121
+ line: z.ZodOptional<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ path: string;
124
+ candidateId: string;
125
+ line?: number | undefined;
126
+ }, {
127
+ path: string;
128
+ candidateId: string;
129
+ line?: number | undefined;
130
+ }>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ status: "proposed" | "active" | "deprecated" | "retired";
133
+ scope: {
134
+ stacks: string[];
135
+ paths: string[];
136
+ exclude: string[];
137
+ };
138
+ schemaVersion: 1;
139
+ id: string;
140
+ title: string;
141
+ statement: string;
142
+ rationale: string;
143
+ mode: "off" | "shadow" | "advisory" | "blocking";
144
+ check: {
145
+ kind: "import-boundary";
146
+ from: string;
147
+ allow: string[];
148
+ deny: string[];
149
+ } | {
150
+ kind: "ast-grep";
151
+ ruleFile: string;
152
+ } | {
153
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
154
+ kind: "linter";
155
+ ruleId: string;
156
+ } | {
157
+ kind: "command";
158
+ commandId: string;
159
+ } | {
160
+ kind: "guidance-only";
161
+ };
162
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
163
+ confidence: number;
164
+ evidence: {
165
+ path: string;
166
+ revision: string;
167
+ line?: number | undefined;
168
+ note?: string | undefined;
169
+ }[];
170
+ owner: string;
171
+ supersedes: string[];
172
+ shareable: boolean;
173
+ patternId?: string | undefined;
174
+ origin?: {
175
+ path: string;
176
+ candidateId: string;
177
+ line?: number | undefined;
178
+ } | undefined;
179
+ }, {
180
+ status: "proposed" | "active" | "deprecated" | "retired";
181
+ scope: {
182
+ paths: string[];
183
+ stacks?: string[] | undefined;
184
+ exclude?: string[] | undefined;
185
+ };
186
+ schemaVersion: 1;
187
+ id: string;
188
+ title: string;
189
+ statement: string;
190
+ rationale: string;
191
+ mode: "off" | "shadow" | "advisory" | "blocking";
192
+ check: {
193
+ kind: "import-boundary";
194
+ from: string;
195
+ allow: string[];
196
+ deny?: string[] | undefined;
197
+ } | {
198
+ kind: "ast-grep";
199
+ ruleFile: string;
200
+ } | {
201
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
202
+ kind: "linter";
203
+ ruleId: string;
204
+ } | {
205
+ kind: "command";
206
+ commandId: string;
207
+ } | {
208
+ kind: "guidance-only";
209
+ };
210
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
211
+ confidence: number;
212
+ owner: string;
213
+ evidence?: {
214
+ path: string;
215
+ revision: string;
216
+ line?: number | undefined;
217
+ note?: string | undefined;
218
+ }[] | undefined;
219
+ patternId?: string | undefined;
220
+ supersedes?: string[] | undefined;
221
+ shareable?: boolean | undefined;
222
+ origin?: {
223
+ path: string;
224
+ candidateId: string;
225
+ line?: number | undefined;
226
+ } | undefined;
227
+ }>, {
228
+ status: "proposed" | "active" | "deprecated" | "retired";
229
+ scope: {
230
+ stacks: string[];
231
+ paths: string[];
232
+ exclude: string[];
233
+ };
234
+ schemaVersion: 1;
235
+ id: string;
236
+ title: string;
237
+ statement: string;
238
+ rationale: string;
239
+ mode: "off" | "shadow" | "advisory" | "blocking";
240
+ check: {
241
+ kind: "import-boundary";
242
+ from: string;
243
+ allow: string[];
244
+ deny: string[];
245
+ } | {
246
+ kind: "ast-grep";
247
+ ruleFile: string;
248
+ } | {
249
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
250
+ kind: "linter";
251
+ ruleId: string;
252
+ } | {
253
+ kind: "command";
254
+ commandId: string;
255
+ } | {
256
+ kind: "guidance-only";
257
+ };
258
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
259
+ confidence: number;
260
+ evidence: {
261
+ path: string;
262
+ revision: string;
263
+ line?: number | undefined;
264
+ note?: string | undefined;
265
+ }[];
266
+ owner: string;
267
+ supersedes: string[];
268
+ shareable: boolean;
269
+ patternId?: string | undefined;
270
+ origin?: {
271
+ path: string;
272
+ candidateId: string;
273
+ line?: number | undefined;
274
+ } | undefined;
275
+ }, {
276
+ status: "proposed" | "active" | "deprecated" | "retired";
277
+ scope: {
278
+ paths: string[];
279
+ stacks?: string[] | undefined;
280
+ exclude?: string[] | undefined;
281
+ };
282
+ schemaVersion: 1;
283
+ id: string;
284
+ title: string;
285
+ statement: string;
286
+ rationale: string;
287
+ mode: "off" | "shadow" | "advisory" | "blocking";
288
+ check: {
289
+ kind: "import-boundary";
290
+ from: string;
291
+ allow: string[];
292
+ deny?: string[] | undefined;
293
+ } | {
294
+ kind: "ast-grep";
295
+ ruleFile: string;
296
+ } | {
297
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
298
+ kind: "linter";
299
+ ruleId: string;
300
+ } | {
301
+ kind: "command";
302
+ commandId: string;
303
+ } | {
304
+ kind: "guidance-only";
305
+ };
306
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
307
+ confidence: number;
308
+ owner: string;
309
+ evidence?: {
310
+ path: string;
311
+ revision: string;
312
+ line?: number | undefined;
313
+ note?: string | undefined;
314
+ }[] | undefined;
315
+ patternId?: string | undefined;
316
+ supersedes?: string[] | undefined;
317
+ shareable?: boolean | undefined;
318
+ origin?: {
319
+ path: string;
320
+ candidateId: string;
321
+ line?: number | undefined;
322
+ } | undefined;
323
+ }>;
324
+ introducedIn: z.ZodNullable<z.ZodObject<{
325
+ sha: z.ZodString;
326
+ author: z.ZodString;
327
+ date: z.ZodString;
328
+ subject: z.ZodString;
329
+ }, "strip", z.ZodTypeAny, {
330
+ date: string;
331
+ sha: string;
332
+ author: string;
333
+ subject: string;
334
+ }, {
335
+ date: string;
336
+ sha: string;
337
+ author: string;
338
+ subject: string;
339
+ }>>;
340
+ lastChangedIn: z.ZodNullable<z.ZodObject<{
341
+ sha: z.ZodString;
342
+ author: z.ZodString;
343
+ date: z.ZodString;
344
+ subject: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ date: string;
347
+ sha: string;
348
+ author: string;
349
+ subject: string;
350
+ }, {
351
+ date: string;
352
+ sha: string;
353
+ author: string;
354
+ subject: string;
355
+ }>>;
356
+ matchedFiles: z.ZodNumber;
357
+ }, "strip", z.ZodTypeAny, {
358
+ schemaVersion: 1;
359
+ ruleId: string;
360
+ file: string;
361
+ rule: {
362
+ status: "proposed" | "active" | "deprecated" | "retired";
363
+ scope: {
364
+ stacks: string[];
365
+ paths: string[];
366
+ exclude: string[];
367
+ };
368
+ schemaVersion: 1;
369
+ id: string;
370
+ title: string;
371
+ statement: string;
372
+ rationale: string;
373
+ mode: "off" | "shadow" | "advisory" | "blocking";
374
+ check: {
375
+ kind: "import-boundary";
376
+ from: string;
377
+ allow: string[];
378
+ deny: string[];
379
+ } | {
380
+ kind: "ast-grep";
381
+ ruleFile: string;
382
+ } | {
383
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
384
+ kind: "linter";
385
+ ruleId: string;
386
+ } | {
387
+ kind: "command";
388
+ commandId: string;
389
+ } | {
390
+ kind: "guidance-only";
391
+ };
392
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
393
+ confidence: number;
394
+ evidence: {
395
+ path: string;
396
+ revision: string;
397
+ line?: number | undefined;
398
+ note?: string | undefined;
399
+ }[];
400
+ owner: string;
401
+ supersedes: string[];
402
+ shareable: boolean;
403
+ patternId?: string | undefined;
404
+ origin?: {
405
+ path: string;
406
+ candidateId: string;
407
+ line?: number | undefined;
408
+ } | undefined;
409
+ };
410
+ introducedIn: {
411
+ date: string;
412
+ sha: string;
413
+ author: string;
414
+ subject: string;
415
+ } | null;
416
+ lastChangedIn: {
417
+ date: string;
418
+ sha: string;
419
+ author: string;
420
+ subject: string;
421
+ } | null;
422
+ matchedFiles: number;
423
+ }, {
424
+ schemaVersion: 1;
425
+ ruleId: string;
426
+ file: string;
427
+ rule: {
428
+ status: "proposed" | "active" | "deprecated" | "retired";
429
+ scope: {
430
+ paths: string[];
431
+ stacks?: string[] | undefined;
432
+ exclude?: string[] | undefined;
433
+ };
434
+ schemaVersion: 1;
435
+ id: string;
436
+ title: string;
437
+ statement: string;
438
+ rationale: string;
439
+ mode: "off" | "shadow" | "advisory" | "blocking";
440
+ check: {
441
+ kind: "import-boundary";
442
+ from: string;
443
+ allow: string[];
444
+ deny?: string[] | undefined;
445
+ } | {
446
+ kind: "ast-grep";
447
+ ruleFile: string;
448
+ } | {
449
+ tool: "eslint" | "rubocop" | "ruff" | "golangci-lint";
450
+ kind: "linter";
451
+ ruleId: string;
452
+ } | {
453
+ kind: "command";
454
+ commandId: string;
455
+ } | {
456
+ kind: "guidance-only";
457
+ };
458
+ source: "declared" | "detected" | "human" | "review" | "correction" | "ci" | "stack-default" | "org-baseline";
459
+ confidence: number;
460
+ owner: string;
461
+ evidence?: {
462
+ path: string;
463
+ revision: string;
464
+ line?: number | undefined;
465
+ note?: string | undefined;
466
+ }[] | undefined;
467
+ patternId?: string | undefined;
468
+ supersedes?: string[] | undefined;
469
+ shareable?: boolean | undefined;
470
+ origin?: {
471
+ path: string;
472
+ candidateId: string;
473
+ line?: number | undefined;
474
+ } | undefined;
475
+ };
476
+ introducedIn: {
477
+ date: string;
478
+ sha: string;
479
+ author: string;
480
+ subject: string;
481
+ } | null;
482
+ lastChangedIn: {
483
+ date: string;
484
+ sha: string;
485
+ author: string;
486
+ subject: string;
487
+ } | null;
488
+ matchedFiles: number;
489
+ }>;
490
+ export type RuleExplanation = z.infer<typeof RuleExplanationSchema>;
491
+ export declare const BaselineChangeSchema: z.ZodObject<{
492
+ before: z.ZodObject<{
493
+ ruleId: z.ZodString;
494
+ path: z.ZodString;
495
+ fingerprint: z.ZodString;
496
+ count: z.ZodDefault<z.ZodNumber>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ path: string;
499
+ ruleId: string;
500
+ fingerprint: string;
501
+ count: number;
502
+ }, {
503
+ path: string;
504
+ ruleId: string;
505
+ fingerprint: string;
506
+ count?: number | undefined;
507
+ }>;
508
+ after: z.ZodObject<{
509
+ ruleId: z.ZodString;
510
+ path: z.ZodString;
511
+ fingerprint: z.ZodString;
512
+ count: z.ZodDefault<z.ZodNumber>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ path: string;
515
+ ruleId: string;
516
+ fingerprint: string;
517
+ count: number;
518
+ }, {
519
+ path: string;
520
+ ruleId: string;
521
+ fingerprint: string;
522
+ count?: number | undefined;
523
+ }>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ before: {
526
+ path: string;
527
+ ruleId: string;
528
+ fingerprint: string;
529
+ count: number;
530
+ };
531
+ after: {
532
+ path: string;
533
+ ruleId: string;
534
+ fingerprint: string;
535
+ count: number;
536
+ };
537
+ }, {
538
+ before: {
539
+ path: string;
540
+ ruleId: string;
541
+ fingerprint: string;
542
+ count?: number | undefined;
543
+ };
544
+ after: {
545
+ path: string;
546
+ ruleId: string;
547
+ fingerprint: string;
548
+ count?: number | undefined;
549
+ };
550
+ }>;
551
+ export declare const BaselineDiffSchema: z.ZodObject<{
552
+ schemaVersion: z.ZodLiteral<1>;
553
+ added: z.ZodArray<z.ZodObject<{
554
+ ruleId: z.ZodString;
555
+ path: z.ZodString;
556
+ fingerprint: z.ZodString;
557
+ count: z.ZodDefault<z.ZodNumber>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ path: string;
560
+ ruleId: string;
561
+ fingerprint: string;
562
+ count: number;
563
+ }, {
564
+ path: string;
565
+ ruleId: string;
566
+ fingerprint: string;
567
+ count?: number | undefined;
568
+ }>, "many">;
569
+ removed: z.ZodArray<z.ZodObject<{
570
+ ruleId: z.ZodString;
571
+ path: z.ZodString;
572
+ fingerprint: z.ZodString;
573
+ count: z.ZodDefault<z.ZodNumber>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ path: string;
576
+ ruleId: string;
577
+ fingerprint: string;
578
+ count: number;
579
+ }, {
580
+ path: string;
581
+ ruleId: string;
582
+ fingerprint: string;
583
+ count?: number | undefined;
584
+ }>, "many">;
585
+ changed: z.ZodArray<z.ZodObject<{
586
+ before: z.ZodObject<{
587
+ ruleId: z.ZodString;
588
+ path: z.ZodString;
589
+ fingerprint: z.ZodString;
590
+ count: z.ZodDefault<z.ZodNumber>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ path: string;
593
+ ruleId: string;
594
+ fingerprint: string;
595
+ count: number;
596
+ }, {
597
+ path: string;
598
+ ruleId: string;
599
+ fingerprint: string;
600
+ count?: number | undefined;
601
+ }>;
602
+ after: z.ZodObject<{
603
+ ruleId: z.ZodString;
604
+ path: z.ZodString;
605
+ fingerprint: z.ZodString;
606
+ count: z.ZodDefault<z.ZodNumber>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ path: string;
609
+ ruleId: string;
610
+ fingerprint: string;
611
+ count: number;
612
+ }, {
613
+ path: string;
614
+ ruleId: string;
615
+ fingerprint: string;
616
+ count?: number | undefined;
617
+ }>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ before: {
620
+ path: string;
621
+ ruleId: string;
622
+ fingerprint: string;
623
+ count: number;
624
+ };
625
+ after: {
626
+ path: string;
627
+ ruleId: string;
628
+ fingerprint: string;
629
+ count: number;
630
+ };
631
+ }, {
632
+ before: {
633
+ path: string;
634
+ ruleId: string;
635
+ fingerprint: string;
636
+ count?: number | undefined;
637
+ };
638
+ after: {
639
+ path: string;
640
+ ruleId: string;
641
+ fingerprint: string;
642
+ count?: number | undefined;
643
+ };
644
+ }>, "many">;
645
+ accepted: z.ZodBoolean;
646
+ }, "strip", z.ZodTypeAny, {
647
+ schemaVersion: 1;
648
+ added: {
649
+ path: string;
650
+ ruleId: string;
651
+ fingerprint: string;
652
+ count: number;
653
+ }[];
654
+ removed: {
655
+ path: string;
656
+ ruleId: string;
657
+ fingerprint: string;
658
+ count: number;
659
+ }[];
660
+ changed: {
661
+ before: {
662
+ path: string;
663
+ ruleId: string;
664
+ fingerprint: string;
665
+ count: number;
666
+ };
667
+ after: {
668
+ path: string;
669
+ ruleId: string;
670
+ fingerprint: string;
671
+ count: number;
672
+ };
673
+ }[];
674
+ accepted: boolean;
675
+ }, {
676
+ schemaVersion: 1;
677
+ added: {
678
+ path: string;
679
+ ruleId: string;
680
+ fingerprint: string;
681
+ count?: number | undefined;
682
+ }[];
683
+ removed: {
684
+ path: string;
685
+ ruleId: string;
686
+ fingerprint: string;
687
+ count?: number | undefined;
688
+ }[];
689
+ changed: {
690
+ before: {
691
+ path: string;
692
+ ruleId: string;
693
+ fingerprint: string;
694
+ count?: number | undefined;
695
+ };
696
+ after: {
697
+ path: string;
698
+ ruleId: string;
699
+ fingerprint: string;
700
+ count?: number | undefined;
701
+ };
702
+ }[];
703
+ accepted: boolean;
704
+ }>;
705
+ export type BaselineDiff = z.infer<typeof BaselineDiffSchema>;
706
+ //# sourceMappingURL=cli-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-output.d.ts","sourceRoot":"","sources":["../../src/constitution/cli-output.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}