@harness-engineering/core 0.26.2 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/architecture/matchers.d.mts +1 -1
- package/dist/architecture/matchers.d.ts +1 -1
- package/dist/architecture/matchers.js +12 -2
- package/dist/architecture/matchers.mjs +1 -1
- package/dist/{chunk-4UI65RLE.mjs → chunk-JIOBXIVB.mjs} +12 -2
- package/dist/index.d.mts +194 -194
- package/dist/index.d.ts +194 -194
- package/dist/index.js +17 -3
- package/dist/index.mjs +6 -2
- package/dist/{matchers-XHMrK1kB.d.mts → matchers-DSibUtbV.d.mts} +134 -134
- package/dist/{matchers-XHMrK1kB.d.ts → matchers-DSibUtbV.d.ts} +134 -134
- package/package.json +1 -1
|
@@ -9,17 +9,17 @@ declare const ViolationSchema: z.ZodObject<{
|
|
|
9
9
|
detail: z.ZodString;
|
|
10
10
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
id: string;
|
|
13
12
|
file: string;
|
|
14
|
-
|
|
13
|
+
id: string;
|
|
15
14
|
severity: "error" | "warning";
|
|
16
|
-
|
|
15
|
+
detail: string;
|
|
16
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
id: string;
|
|
19
18
|
file: string;
|
|
20
|
-
|
|
19
|
+
id: string;
|
|
21
20
|
severity: "error" | "warning";
|
|
22
|
-
|
|
21
|
+
detail: string;
|
|
22
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
type Violation = z.infer<typeof ViolationSchema>;
|
|
25
25
|
declare const MetricResultSchema: z.ZodObject<{
|
|
@@ -33,41 +33,41 @@ declare const MetricResultSchema: z.ZodObject<{
|
|
|
33
33
|
detail: z.ZodString;
|
|
34
34
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
id: string;
|
|
37
36
|
file: string;
|
|
38
|
-
|
|
37
|
+
id: string;
|
|
39
38
|
severity: "error" | "warning";
|
|
40
|
-
|
|
39
|
+
detail: string;
|
|
40
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
id: string;
|
|
43
42
|
file: string;
|
|
44
|
-
|
|
43
|
+
id: string;
|
|
45
44
|
severity: "error" | "warning";
|
|
46
|
-
|
|
45
|
+
detail: string;
|
|
46
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
47
47
|
}>, "many">;
|
|
48
48
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
value: number;
|
|
51
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
52
51
|
scope: string;
|
|
52
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
53
53
|
violations: {
|
|
54
|
-
id: string;
|
|
55
54
|
file: string;
|
|
56
|
-
|
|
55
|
+
id: string;
|
|
57
56
|
severity: "error" | "warning";
|
|
58
|
-
|
|
57
|
+
detail: string;
|
|
58
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
59
59
|
}[];
|
|
60
60
|
metadata?: Record<string, unknown> | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
value: number;
|
|
63
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
64
63
|
scope: string;
|
|
64
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
65
65
|
violations: {
|
|
66
|
-
id: string;
|
|
67
66
|
file: string;
|
|
68
|
-
|
|
67
|
+
id: string;
|
|
69
68
|
severity: "error" | "warning";
|
|
70
|
-
|
|
69
|
+
detail: string;
|
|
70
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
71
71
|
}[];
|
|
72
72
|
metadata?: Record<string, unknown> | undefined;
|
|
73
73
|
}>;
|
|
@@ -101,7 +101,7 @@ declare const ArchBaselineSchema: z.ZodObject<{
|
|
|
101
101
|
version: 1;
|
|
102
102
|
updatedAt: string;
|
|
103
103
|
updatedFrom: string;
|
|
104
|
-
metrics: Partial<Record<"
|
|
104
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
105
105
|
value: number;
|
|
106
106
|
violationIds: string[];
|
|
107
107
|
}>>;
|
|
@@ -109,7 +109,7 @@ declare const ArchBaselineSchema: z.ZodObject<{
|
|
|
109
109
|
version: 1;
|
|
110
110
|
updatedAt: string;
|
|
111
111
|
updatedFrom: string;
|
|
112
|
-
metrics: Partial<Record<"
|
|
112
|
+
metrics: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
|
|
113
113
|
value: number;
|
|
114
114
|
violationIds: string[];
|
|
115
115
|
}>>;
|
|
@@ -121,12 +121,12 @@ declare const CategoryRegressionSchema: z.ZodObject<{
|
|
|
121
121
|
currentValue: z.ZodNumber;
|
|
122
122
|
delta: z.ZodNumber;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
category: "
|
|
124
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
125
125
|
baselineValue: number;
|
|
126
126
|
currentValue: number;
|
|
127
127
|
delta: number;
|
|
128
128
|
}, {
|
|
129
|
-
category: "
|
|
129
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
130
130
|
baselineValue: number;
|
|
131
131
|
currentValue: number;
|
|
132
132
|
delta: number;
|
|
@@ -141,17 +141,17 @@ declare const ArchDiffResultSchema: z.ZodObject<{
|
|
|
141
141
|
detail: z.ZodString;
|
|
142
142
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
|
-
id: string;
|
|
145
144
|
file: string;
|
|
146
|
-
|
|
145
|
+
id: string;
|
|
147
146
|
severity: "error" | "warning";
|
|
148
|
-
|
|
147
|
+
detail: string;
|
|
148
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
149
149
|
}, {
|
|
150
|
-
id: string;
|
|
151
150
|
file: string;
|
|
152
|
-
|
|
151
|
+
id: string;
|
|
153
152
|
severity: "error" | "warning";
|
|
154
|
-
|
|
153
|
+
detail: string;
|
|
154
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
155
155
|
}>, "many">;
|
|
156
156
|
resolvedViolations: z.ZodArray<z.ZodString, "many">;
|
|
157
157
|
preExisting: z.ZodArray<z.ZodString, "many">;
|
|
@@ -161,12 +161,12 @@ declare const ArchDiffResultSchema: z.ZodObject<{
|
|
|
161
161
|
currentValue: z.ZodNumber;
|
|
162
162
|
delta: z.ZodNumber;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
category: "
|
|
164
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
165
165
|
baselineValue: number;
|
|
166
166
|
currentValue: number;
|
|
167
167
|
delta: number;
|
|
168
168
|
}, {
|
|
169
|
-
category: "
|
|
169
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
170
170
|
baselineValue: number;
|
|
171
171
|
currentValue: number;
|
|
172
172
|
delta: number;
|
|
@@ -174,16 +174,16 @@ declare const ArchDiffResultSchema: z.ZodObject<{
|
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
175
|
passed: boolean;
|
|
176
176
|
newViolations: {
|
|
177
|
-
id: string;
|
|
178
177
|
file: string;
|
|
179
|
-
|
|
178
|
+
id: string;
|
|
180
179
|
severity: "error" | "warning";
|
|
181
|
-
|
|
180
|
+
detail: string;
|
|
181
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
182
182
|
}[];
|
|
183
183
|
resolvedViolations: string[];
|
|
184
184
|
preExisting: string[];
|
|
185
185
|
regressions: {
|
|
186
|
-
category: "
|
|
186
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
187
187
|
baselineValue: number;
|
|
188
188
|
currentValue: number;
|
|
189
189
|
delta: number;
|
|
@@ -191,16 +191,16 @@ declare const ArchDiffResultSchema: z.ZodObject<{
|
|
|
191
191
|
}, {
|
|
192
192
|
passed: boolean;
|
|
193
193
|
newViolations: {
|
|
194
|
-
id: string;
|
|
195
194
|
file: string;
|
|
196
|
-
|
|
195
|
+
id: string;
|
|
197
196
|
severity: "error" | "warning";
|
|
198
|
-
|
|
197
|
+
detail: string;
|
|
198
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
199
199
|
}[];
|
|
200
200
|
resolvedViolations: string[];
|
|
201
201
|
preExisting: string[];
|
|
202
202
|
regressions: {
|
|
203
|
-
category: "
|
|
203
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
204
204
|
baselineValue: number;
|
|
205
205
|
currentValue: number;
|
|
206
206
|
delta: number;
|
|
@@ -216,14 +216,14 @@ declare const ArchConfigSchema: z.ZodObject<{
|
|
|
216
216
|
modules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<["circular-deps", "layer-violations", "complexity", "coupling", "forbidden-imports", "module-size", "dependency-depth"]>, z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>>>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
218
|
enabled: boolean;
|
|
219
|
+
thresholds: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>;
|
|
220
|
+
modules: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>>;
|
|
219
221
|
baselinePath: string;
|
|
220
|
-
thresholds: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>;
|
|
221
|
-
modules: Record<string, Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>>;
|
|
222
222
|
}, {
|
|
223
223
|
enabled?: boolean | undefined;
|
|
224
|
+
thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>> | undefined;
|
|
225
|
+
modules?: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>> | undefined;
|
|
224
226
|
baselinePath?: string | undefined;
|
|
225
|
-
thresholds?: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>> | undefined;
|
|
226
|
-
modules?: Record<string, Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>> | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type ArchConfig = z.infer<typeof ArchConfigSchema>;
|
|
229
229
|
declare const ConstraintRuleSchema: z.ZodObject<{
|
|
@@ -233,15 +233,15 @@ declare const ConstraintRuleSchema: z.ZodObject<{
|
|
|
233
233
|
scope: z.ZodString;
|
|
234
234
|
targets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
237
|
-
scope: string;
|
|
238
236
|
id: string;
|
|
237
|
+
scope: string;
|
|
238
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
239
239
|
description: string;
|
|
240
240
|
targets?: string[] | undefined;
|
|
241
241
|
}, {
|
|
242
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
243
|
-
scope: string;
|
|
244
242
|
id: string;
|
|
243
|
+
scope: string;
|
|
244
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
245
245
|
description: string;
|
|
246
246
|
targets?: string[] | undefined;
|
|
247
247
|
}>;
|
|
@@ -255,36 +255,36 @@ declare const ViolationSnapshotSchema: z.ZodObject<{
|
|
|
255
255
|
detail: z.ZodString;
|
|
256
256
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
id: string;
|
|
259
258
|
file: string;
|
|
260
|
-
|
|
259
|
+
id: string;
|
|
261
260
|
severity: "error" | "warning";
|
|
262
|
-
|
|
261
|
+
detail: string;
|
|
262
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
263
263
|
}, {
|
|
264
|
-
id: string;
|
|
265
264
|
file: string;
|
|
266
|
-
|
|
265
|
+
id: string;
|
|
267
266
|
severity: "error" | "warning";
|
|
268
|
-
|
|
267
|
+
detail: string;
|
|
268
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
269
269
|
}>, "many">;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
timestamp: string;
|
|
271
272
|
violations: {
|
|
272
|
-
id: string;
|
|
273
273
|
file: string;
|
|
274
|
-
|
|
274
|
+
id: string;
|
|
275
275
|
severity: "error" | "warning";
|
|
276
|
-
|
|
276
|
+
detail: string;
|
|
277
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
277
278
|
}[];
|
|
278
|
-
timestamp: string;
|
|
279
279
|
}, {
|
|
280
|
+
timestamp: string;
|
|
280
281
|
violations: {
|
|
281
|
-
id: string;
|
|
282
282
|
file: string;
|
|
283
|
-
|
|
283
|
+
id: string;
|
|
284
284
|
severity: "error" | "warning";
|
|
285
|
-
|
|
285
|
+
detail: string;
|
|
286
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
286
287
|
}[];
|
|
287
|
-
timestamp: string;
|
|
288
288
|
}>;
|
|
289
289
|
type ViolationSnapshot = z.infer<typeof ViolationSnapshotSchema>;
|
|
290
290
|
declare const ViolationHistorySchema: z.ZodObject<{
|
|
@@ -298,60 +298,60 @@ declare const ViolationHistorySchema: z.ZodObject<{
|
|
|
298
298
|
detail: z.ZodString;
|
|
299
299
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
id: string;
|
|
302
301
|
file: string;
|
|
303
|
-
|
|
302
|
+
id: string;
|
|
304
303
|
severity: "error" | "warning";
|
|
305
|
-
|
|
304
|
+
detail: string;
|
|
305
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
306
306
|
}, {
|
|
307
|
-
id: string;
|
|
308
307
|
file: string;
|
|
309
|
-
|
|
308
|
+
id: string;
|
|
310
309
|
severity: "error" | "warning";
|
|
311
|
-
|
|
310
|
+
detail: string;
|
|
311
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
312
312
|
}>, "many">;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
timestamp: string;
|
|
314
315
|
violations: {
|
|
315
|
-
id: string;
|
|
316
316
|
file: string;
|
|
317
|
-
|
|
317
|
+
id: string;
|
|
318
318
|
severity: "error" | "warning";
|
|
319
|
-
|
|
319
|
+
detail: string;
|
|
320
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
320
321
|
}[];
|
|
321
|
-
timestamp: string;
|
|
322
322
|
}, {
|
|
323
|
+
timestamp: string;
|
|
323
324
|
violations: {
|
|
324
|
-
id: string;
|
|
325
325
|
file: string;
|
|
326
|
-
|
|
326
|
+
id: string;
|
|
327
327
|
severity: "error" | "warning";
|
|
328
|
-
|
|
328
|
+
detail: string;
|
|
329
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
329
330
|
}[];
|
|
330
|
-
timestamp: string;
|
|
331
331
|
}>, "many">;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
version: 1;
|
|
334
334
|
snapshots: {
|
|
335
|
+
timestamp: string;
|
|
335
336
|
violations: {
|
|
336
|
-
id: string;
|
|
337
337
|
file: string;
|
|
338
|
-
|
|
338
|
+
id: string;
|
|
339
339
|
severity: "error" | "warning";
|
|
340
|
-
|
|
340
|
+
detail: string;
|
|
341
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
341
342
|
}[];
|
|
342
|
-
timestamp: string;
|
|
343
343
|
}[];
|
|
344
344
|
}, {
|
|
345
345
|
version: 1;
|
|
346
346
|
snapshots: {
|
|
347
|
+
timestamp: string;
|
|
347
348
|
violations: {
|
|
348
|
-
id: string;
|
|
349
349
|
file: string;
|
|
350
|
-
|
|
350
|
+
id: string;
|
|
351
351
|
severity: "error" | "warning";
|
|
352
|
-
|
|
352
|
+
detail: string;
|
|
353
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
353
354
|
}[];
|
|
354
|
-
timestamp: string;
|
|
355
355
|
}[];
|
|
356
356
|
}>;
|
|
357
357
|
type ViolationHistory = z.infer<typeof ViolationHistorySchema>;
|
|
@@ -365,15 +365,15 @@ declare const EmergentConstraintSuggestionSchema: z.ZodObject<{
|
|
|
365
365
|
scope: z.ZodString;
|
|
366
366
|
targets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
369
|
-
scope: string;
|
|
370
368
|
id: string;
|
|
369
|
+
scope: string;
|
|
370
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
371
371
|
description: string;
|
|
372
372
|
targets?: string[] | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
375
|
-
scope: string;
|
|
376
374
|
id: string;
|
|
375
|
+
scope: string;
|
|
376
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
377
377
|
description: string;
|
|
378
378
|
targets?: string[] | undefined;
|
|
379
379
|
}>;
|
|
@@ -388,25 +388,25 @@ declare const EmergentConstraintSuggestionSchema: z.ZodObject<{
|
|
|
388
388
|
detail: z.ZodString;
|
|
389
389
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
id: string;
|
|
392
391
|
file: string;
|
|
393
|
-
|
|
392
|
+
id: string;
|
|
394
393
|
severity: "error" | "warning";
|
|
395
|
-
|
|
394
|
+
detail: string;
|
|
395
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
396
396
|
}, {
|
|
397
|
-
id: string;
|
|
398
397
|
file: string;
|
|
399
|
-
|
|
398
|
+
id: string;
|
|
400
399
|
severity: "error" | "warning";
|
|
401
|
-
|
|
400
|
+
detail: string;
|
|
401
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
402
402
|
}>, "many">;
|
|
403
403
|
rationale: z.ZodString;
|
|
404
404
|
}, "strip", z.ZodTypeAny, {
|
|
405
405
|
pattern: string;
|
|
406
406
|
suggestedRule: {
|
|
407
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
408
|
-
scope: string;
|
|
409
407
|
id: string;
|
|
408
|
+
scope: string;
|
|
409
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
410
410
|
description: string;
|
|
411
411
|
targets?: string[] | undefined;
|
|
412
412
|
};
|
|
@@ -414,19 +414,19 @@ declare const EmergentConstraintSuggestionSchema: z.ZodObject<{
|
|
|
414
414
|
occurrences: number;
|
|
415
415
|
uniqueFiles: number;
|
|
416
416
|
sampleViolations: {
|
|
417
|
-
id: string;
|
|
418
417
|
file: string;
|
|
419
|
-
|
|
418
|
+
id: string;
|
|
420
419
|
severity: "error" | "warning";
|
|
421
|
-
|
|
420
|
+
detail: string;
|
|
421
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
422
422
|
}[];
|
|
423
423
|
rationale: string;
|
|
424
424
|
}, {
|
|
425
425
|
pattern: string;
|
|
426
426
|
suggestedRule: {
|
|
427
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
428
|
-
scope: string;
|
|
429
427
|
id: string;
|
|
428
|
+
scope: string;
|
|
429
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
430
430
|
description: string;
|
|
431
431
|
targets?: string[] | undefined;
|
|
432
432
|
};
|
|
@@ -434,11 +434,11 @@ declare const EmergentConstraintSuggestionSchema: z.ZodObject<{
|
|
|
434
434
|
occurrences: number;
|
|
435
435
|
uniqueFiles: number;
|
|
436
436
|
sampleViolations: {
|
|
437
|
-
id: string;
|
|
438
437
|
file: string;
|
|
439
|
-
|
|
438
|
+
id: string;
|
|
440
439
|
severity: "error" | "warning";
|
|
441
|
-
|
|
440
|
+
detail: string;
|
|
441
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
442
442
|
}[];
|
|
443
443
|
rationale: string;
|
|
444
444
|
}>;
|
|
@@ -452,15 +452,15 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
452
452
|
scope: z.ZodString;
|
|
453
453
|
targets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
454
454
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
456
|
-
scope: string;
|
|
457
455
|
id: string;
|
|
456
|
+
scope: string;
|
|
457
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
458
458
|
description: string;
|
|
459
459
|
targets?: string[] | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
462
|
-
scope: string;
|
|
463
461
|
id: string;
|
|
462
|
+
scope: string;
|
|
463
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
464
464
|
description: string;
|
|
465
465
|
targets?: string[] | undefined;
|
|
466
466
|
}>;
|
|
@@ -475,25 +475,25 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
475
475
|
detail: z.ZodString;
|
|
476
476
|
severity: z.ZodEnum<["error", "warning"]>;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
id: string;
|
|
479
478
|
file: string;
|
|
480
|
-
|
|
479
|
+
id: string;
|
|
481
480
|
severity: "error" | "warning";
|
|
482
|
-
|
|
481
|
+
detail: string;
|
|
482
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
483
483
|
}, {
|
|
484
|
-
id: string;
|
|
485
484
|
file: string;
|
|
486
|
-
|
|
485
|
+
id: string;
|
|
487
486
|
severity: "error" | "warning";
|
|
488
|
-
|
|
487
|
+
detail: string;
|
|
488
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
489
489
|
}>, "many">;
|
|
490
490
|
rationale: z.ZodString;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
492
|
pattern: string;
|
|
493
493
|
suggestedRule: {
|
|
494
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
495
|
-
scope: string;
|
|
496
494
|
id: string;
|
|
495
|
+
scope: string;
|
|
496
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
497
497
|
description: string;
|
|
498
498
|
targets?: string[] | undefined;
|
|
499
499
|
};
|
|
@@ -501,19 +501,19 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
501
501
|
occurrences: number;
|
|
502
502
|
uniqueFiles: number;
|
|
503
503
|
sampleViolations: {
|
|
504
|
-
id: string;
|
|
505
504
|
file: string;
|
|
506
|
-
|
|
505
|
+
id: string;
|
|
507
506
|
severity: "error" | "warning";
|
|
508
|
-
|
|
507
|
+
detail: string;
|
|
508
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
509
509
|
}[];
|
|
510
510
|
rationale: string;
|
|
511
511
|
}, {
|
|
512
512
|
pattern: string;
|
|
513
513
|
suggestedRule: {
|
|
514
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
515
|
-
scope: string;
|
|
516
514
|
id: string;
|
|
515
|
+
scope: string;
|
|
516
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
517
517
|
description: string;
|
|
518
518
|
targets?: string[] | undefined;
|
|
519
519
|
};
|
|
@@ -521,11 +521,11 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
521
521
|
occurrences: number;
|
|
522
522
|
uniqueFiles: number;
|
|
523
523
|
sampleViolations: {
|
|
524
|
-
id: string;
|
|
525
524
|
file: string;
|
|
526
|
-
|
|
525
|
+
id: string;
|
|
527
526
|
severity: "error" | "warning";
|
|
528
|
-
|
|
527
|
+
detail: string;
|
|
528
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
529
529
|
}[];
|
|
530
530
|
rationale: string;
|
|
531
531
|
}>, "many">;
|
|
@@ -536,9 +536,9 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
536
536
|
suggestions: {
|
|
537
537
|
pattern: string;
|
|
538
538
|
suggestedRule: {
|
|
539
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
540
|
-
scope: string;
|
|
541
539
|
id: string;
|
|
540
|
+
scope: string;
|
|
541
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
542
542
|
description: string;
|
|
543
543
|
targets?: string[] | undefined;
|
|
544
544
|
};
|
|
@@ -546,11 +546,11 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
546
546
|
occurrences: number;
|
|
547
547
|
uniqueFiles: number;
|
|
548
548
|
sampleViolations: {
|
|
549
|
-
id: string;
|
|
550
549
|
file: string;
|
|
551
|
-
|
|
550
|
+
id: string;
|
|
552
551
|
severity: "error" | "warning";
|
|
553
|
-
|
|
552
|
+
detail: string;
|
|
553
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
554
554
|
}[];
|
|
555
555
|
rationale: string;
|
|
556
556
|
}[];
|
|
@@ -561,9 +561,9 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
561
561
|
suggestions: {
|
|
562
562
|
pattern: string;
|
|
563
563
|
suggestedRule: {
|
|
564
|
-
category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
565
|
-
scope: string;
|
|
566
564
|
id: string;
|
|
565
|
+
scope: string;
|
|
566
|
+
category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
|
|
567
567
|
description: string;
|
|
568
568
|
targets?: string[] | undefined;
|
|
569
569
|
};
|
|
@@ -571,11 +571,11 @@ declare const EmergenceResultSchema: z.ZodObject<{
|
|
|
571
571
|
occurrences: number;
|
|
572
572
|
uniqueFiles: number;
|
|
573
573
|
sampleViolations: {
|
|
574
|
-
id: string;
|
|
575
574
|
file: string;
|
|
576
|
-
|
|
575
|
+
id: string;
|
|
577
576
|
severity: "error" | "warning";
|
|
578
|
-
|
|
577
|
+
detail: string;
|
|
578
|
+
category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
|
|
579
579
|
}[];
|
|
580
580
|
rationale: string;
|
|
581
581
|
}[];
|