@agentic-sdlc-kit/contracts 1.2.0 → 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,489 +4,99 @@ export declare const CommitRefSchema: z.ZodObject<{
4
4
  author: z.ZodString;
5
5
  date: z.ZodString;
6
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
- }>;
7
+ }, z.core.$strip>;
18
8
  export type CommitRef = z.infer<typeof CommitRefSchema>;
19
9
  export declare const RuleExplanationSchema: z.ZodObject<{
20
10
  schemaVersion: z.ZodLiteral<1>;
21
11
  ruleId: z.ZodString;
22
12
  file: z.ZodString;
23
- rule: z.ZodEffects<z.ZodObject<{
13
+ rule: z.ZodObject<{
24
14
  schemaVersion: z.ZodLiteral<1>;
25
15
  id: z.ZodString;
26
16
  title: z.ZodString;
27
17
  statement: z.ZodString;
28
18
  rationale: z.ZodString;
29
19
  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;
20
+ stacks: z.ZodDefault<z.ZodArray<z.ZodString>>;
21
+ paths: z.ZodArray<z.ZodString>;
22
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
23
+ }, z.core.$strip>;
24
+ status: z.ZodEnum<{
25
+ proposed: "proposed";
26
+ active: "active";
27
+ deprecated: "deprecated";
28
+ retired: "retired";
41
29
  }>;
42
- status: z.ZodEnum<["proposed", "active", "deprecated", "retired"]>;
43
- mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
44
- check: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
30
+ mode: z.ZodEnum<{
31
+ off: "off";
32
+ shadow: "shadow";
33
+ advisory: "advisory";
34
+ blocking: "blocking";
35
+ }>;
36
+ check: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
37
  kind: z.ZodLiteral<"import-boundary">;
46
38
  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<{
39
+ allow: z.ZodArray<z.ZodString>;
40
+ deny: z.ZodDefault<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>, z.ZodObject<{
60
42
  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<{
43
+ ruleFile: z.ZodString;
44
+ }, z.core.$strip>, z.ZodObject<{
69
45
  kind: z.ZodLiteral<"linter">;
70
- tool: z.ZodEnum<["eslint", "rubocop", "ruff", "golangci-lint"]>;
46
+ tool: z.ZodEnum<{
47
+ eslint: "eslint";
48
+ rubocop: "rubocop";
49
+ ruff: "ruff";
50
+ "golangci-lint": "golangci-lint";
51
+ }>;
71
52
  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<{
53
+ }, z.core.$strip>, z.ZodObject<{
81
54
  kind: z.ZodLiteral<"command">;
82
55
  commandId: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- kind: "command";
85
- commandId: string;
86
- }, {
87
- kind: "command";
88
- commandId: string;
89
- }>, z.ZodObject<{
56
+ }, z.core.$strip>, z.ZodObject<{
90
57
  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"]>;
58
+ }, z.core.$strip>], "kind">;
59
+ source: z.ZodEnum<{
60
+ declared: "declared";
61
+ detected: "detected";
62
+ human: "human";
63
+ review: "review";
64
+ correction: "correction";
65
+ ci: "ci";
66
+ "stack-default": "stack-default";
67
+ "org-baseline": "org-baseline";
68
+ }>;
97
69
  confidence: z.ZodNumber;
98
70
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
71
  path: z.ZodString;
100
72
  line: z.ZodOptional<z.ZodNumber>;
101
73
  revision: z.ZodString;
102
74
  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">>;
75
+ }, z.core.$strip>>>;
114
76
  owner: z.ZodString;
115
77
  patternId: z.ZodOptional<z.ZodString>;
116
- supersedes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
78
+ supersedes: z.ZodDefault<z.ZodArray<z.ZodString>>;
117
79
  shareable: z.ZodDefault<z.ZodBoolean>;
118
80
  origin: z.ZodOptional<z.ZodObject<{
119
81
  candidateId: z.ZodString;
120
82
  path: z.ZodString;
121
83
  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
- }>;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
324
86
  introducedIn: z.ZodNullable<z.ZodObject<{
325
87
  sha: z.ZodString;
326
88
  author: z.ZodString;
327
89
  date: z.ZodString;
328
90
  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
- }>>;
91
+ }, z.core.$strip>>;
340
92
  lastChangedIn: z.ZodNullable<z.ZodObject<{
341
93
  sha: z.ZodString;
342
94
  author: z.ZodString;
343
95
  date: z.ZodString;
344
96
  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
- }>>;
97
+ }, z.core.$strip>>;
356
98
  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
- }>;
99
+ }, z.core.$strip>;
490
100
  export type RuleExplanation = z.infer<typeof RuleExplanationSchema>;
491
101
  export declare const BaselineChangeSchema: z.ZodObject<{
492
102
  before: z.ZodObject<{
@@ -494,60 +104,14 @@ export declare const BaselineChangeSchema: z.ZodObject<{
494
104
  path: z.ZodString;
495
105
  fingerprint: z.ZodString;
496
106
  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
- }>;
107
+ }, z.core.$strip>;
508
108
  after: z.ZodObject<{
509
109
  ruleId: z.ZodString;
510
110
  path: z.ZodString;
511
111
  fingerprint: z.ZodString;
512
112
  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
- }>;
113
+ }, z.core.$strip>;
114
+ }, z.core.$strip>;
551
115
  export declare const BaselineDiffSchema: z.ZodObject<{
552
116
  schemaVersion: z.ZodLiteral<1>;
553
117
  added: z.ZodArray<z.ZodObject<{
@@ -555,152 +119,28 @@ export declare const BaselineDiffSchema: z.ZodObject<{
555
119
  path: z.ZodString;
556
120
  fingerprint: z.ZodString;
557
121
  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">;
122
+ }, z.core.$strip>>;
569
123
  removed: z.ZodArray<z.ZodObject<{
570
124
  ruleId: z.ZodString;
571
125
  path: z.ZodString;
572
126
  fingerprint: z.ZodString;
573
127
  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">;
128
+ }, z.core.$strip>>;
585
129
  changed: z.ZodArray<z.ZodObject<{
586
130
  before: z.ZodObject<{
587
131
  ruleId: z.ZodString;
588
132
  path: z.ZodString;
589
133
  fingerprint: z.ZodString;
590
134
  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
- }>;
135
+ }, z.core.$strip>;
602
136
  after: z.ZodObject<{
603
137
  ruleId: z.ZodString;
604
138
  path: z.ZodString;
605
139
  fingerprint: z.ZodString;
606
140
  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">;
141
+ }, z.core.$strip>;
142
+ }, z.core.$strip>>;
645
143
  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
- }>;
144
+ }, z.core.$strip>;
705
145
  export type BaselineDiff = z.infer<typeof BaselineDiffSchema>;
706
146
  //# sourceMappingURL=cli-output.d.ts.map