@harness-engineering/core 0.26.0 → 0.26.2

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.
@@ -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
- file: string;
13
12
  id: string;
14
- severity: "error" | "warning";
13
+ file: string;
15
14
  detail: string;
16
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
15
+ severity: "error" | "warning";
16
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
17
17
  }, {
18
- file: string;
19
18
  id: string;
20
- severity: "error" | "warning";
19
+ file: string;
21
20
  detail: string;
22
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
21
+ severity: "error" | "warning";
22
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- file: string;
37
36
  id: string;
38
- severity: "error" | "warning";
37
+ file: string;
39
38
  detail: string;
40
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
39
+ severity: "error" | "warning";
40
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
41
41
  }, {
42
- file: string;
43
42
  id: string;
44
- severity: "error" | "warning";
43
+ file: string;
45
44
  detail: string;
46
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
45
+ severity: "error" | "warning";
46
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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";
51
52
  scope: string;
52
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
53
53
  violations: {
54
- file: string;
55
54
  id: string;
56
- severity: "error" | "warning";
55
+ file: string;
57
56
  detail: string;
58
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
57
+ severity: "error" | "warning";
58
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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";
63
64
  scope: string;
64
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
65
65
  violations: {
66
- file: string;
67
66
  id: string;
68
- severity: "error" | "warning";
67
+ file: string;
69
68
  detail: string;
70
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
69
+ severity: "error" | "warning";
70
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
104
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "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<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", {
112
+ metrics: Partial<Record<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "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: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
124
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
125
125
  baselineValue: number;
126
126
  currentValue: number;
127
127
  delta: number;
128
128
  }, {
129
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
129
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- file: string;
145
144
  id: string;
146
- severity: "error" | "warning";
145
+ file: string;
147
146
  detail: string;
148
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
147
+ severity: "error" | "warning";
148
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
149
149
  }, {
150
- file: string;
151
150
  id: string;
152
- severity: "error" | "warning";
151
+ file: string;
153
152
  detail: string;
154
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
153
+ severity: "error" | "warning";
154
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
164
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
165
165
  baselineValue: number;
166
166
  currentValue: number;
167
167
  delta: number;
168
168
  }, {
169
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
169
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- file: string;
178
177
  id: string;
179
- severity: "error" | "warning";
178
+ file: string;
180
179
  detail: string;
181
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
180
+ severity: "error" | "warning";
181
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
182
182
  }[];
183
183
  resolvedViolations: string[];
184
184
  preExisting: string[];
185
185
  regressions: {
186
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
186
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- file: string;
195
194
  id: string;
196
- severity: "error" | "warning";
195
+ file: string;
197
196
  detail: string;
198
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
197
+ severity: "error" | "warning";
198
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
199
199
  }[];
200
200
  resolvedViolations: string[];
201
201
  preExisting: string[];
202
202
  regressions: {
203
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
203
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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>>>>;
221
219
  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;
226
224
  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
- id: string;
236
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
237
237
  scope: string;
238
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
238
+ id: string;
239
239
  description: string;
240
240
  targets?: string[] | undefined;
241
241
  }, {
242
- id: string;
242
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
243
243
  scope: string;
244
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
244
+ id: string;
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
- file: string;
259
258
  id: string;
260
- severity: "error" | "warning";
259
+ file: string;
261
260
  detail: string;
262
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
261
+ severity: "error" | "warning";
262
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
263
263
  }, {
264
- file: string;
265
264
  id: string;
266
- severity: "error" | "warning";
265
+ file: string;
267
266
  detail: string;
268
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
267
+ severity: "error" | "warning";
268
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
269
269
  }>, "many">;
270
270
  }, "strip", z.ZodTypeAny, {
271
- timestamp: string;
272
271
  violations: {
273
- file: string;
274
272
  id: string;
275
- severity: "error" | "warning";
273
+ file: string;
276
274
  detail: string;
277
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
275
+ severity: "error" | "warning";
276
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
278
277
  }[];
279
- }, {
280
278
  timestamp: string;
279
+ }, {
281
280
  violations: {
282
- file: string;
283
281
  id: string;
284
- severity: "error" | "warning";
282
+ file: string;
285
283
  detail: string;
286
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
284
+ severity: "error" | "warning";
285
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
287
286
  }[];
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
- file: string;
302
301
  id: string;
303
- severity: "error" | "warning";
302
+ file: string;
304
303
  detail: string;
305
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
304
+ severity: "error" | "warning";
305
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
306
306
  }, {
307
- file: string;
308
307
  id: string;
309
- severity: "error" | "warning";
308
+ file: string;
310
309
  detail: string;
311
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
310
+ severity: "error" | "warning";
311
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
312
312
  }>, "many">;
313
313
  }, "strip", z.ZodTypeAny, {
314
- timestamp: string;
315
314
  violations: {
316
- file: string;
317
315
  id: string;
318
- severity: "error" | "warning";
316
+ file: string;
319
317
  detail: string;
320
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
318
+ severity: "error" | "warning";
319
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
321
320
  }[];
322
- }, {
323
321
  timestamp: string;
322
+ }, {
324
323
  violations: {
325
- file: string;
326
324
  id: string;
327
- severity: "error" | "warning";
325
+ file: string;
328
326
  detail: string;
329
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
327
+ severity: "error" | "warning";
328
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
330
329
  }[];
330
+ timestamp: string;
331
331
  }>, "many">;
332
332
  }, "strip", z.ZodTypeAny, {
333
333
  version: 1;
334
334
  snapshots: {
335
- timestamp: string;
336
335
  violations: {
337
- file: string;
338
336
  id: string;
339
- severity: "error" | "warning";
337
+ file: string;
340
338
  detail: string;
341
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
339
+ severity: "error" | "warning";
340
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
342
341
  }[];
342
+ timestamp: string;
343
343
  }[];
344
344
  }, {
345
345
  version: 1;
346
346
  snapshots: {
347
- timestamp: string;
348
347
  violations: {
349
- file: string;
350
348
  id: string;
351
- severity: "error" | "warning";
349
+ file: string;
352
350
  detail: string;
353
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
351
+ severity: "error" | "warning";
352
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
354
353
  }[];
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
- id: string;
368
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
369
369
  scope: string;
370
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
370
+ id: string;
371
371
  description: string;
372
372
  targets?: string[] | undefined;
373
373
  }, {
374
- id: string;
374
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
375
375
  scope: string;
376
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
376
+ id: string;
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
- file: string;
392
391
  id: string;
393
- severity: "error" | "warning";
392
+ file: string;
394
393
  detail: string;
395
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
394
+ severity: "error" | "warning";
395
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
396
396
  }, {
397
- file: string;
398
397
  id: string;
399
- severity: "error" | "warning";
398
+ file: string;
400
399
  detail: string;
401
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
400
+ severity: "error" | "warning";
401
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- id: string;
407
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
408
408
  scope: string;
409
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
409
+ id: string;
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
- file: string;
418
417
  id: string;
419
- severity: "error" | "warning";
418
+ file: string;
420
419
  detail: string;
421
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
420
+ severity: "error" | "warning";
421
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
422
422
  }[];
423
423
  rationale: string;
424
424
  }, {
425
425
  pattern: string;
426
426
  suggestedRule: {
427
- id: string;
427
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
428
428
  scope: string;
429
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
429
+ id: string;
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
- file: string;
438
437
  id: string;
439
- severity: "error" | "warning";
438
+ file: string;
440
439
  detail: string;
441
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
440
+ severity: "error" | "warning";
441
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- id: string;
455
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
456
456
  scope: string;
457
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
457
+ id: string;
458
458
  description: string;
459
459
  targets?: string[] | undefined;
460
460
  }, {
461
- id: string;
461
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
462
462
  scope: string;
463
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
463
+ id: string;
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
- file: string;
479
478
  id: string;
480
- severity: "error" | "warning";
479
+ file: string;
481
480
  detail: string;
482
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
481
+ severity: "error" | "warning";
482
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
483
483
  }, {
484
- file: string;
485
484
  id: string;
486
- severity: "error" | "warning";
485
+ file: string;
487
486
  detail: string;
488
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
487
+ severity: "error" | "warning";
488
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- id: string;
494
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
495
495
  scope: string;
496
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
496
+ id: string;
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
- file: string;
505
504
  id: string;
506
- severity: "error" | "warning";
505
+ file: string;
507
506
  detail: string;
508
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
507
+ severity: "error" | "warning";
508
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
509
509
  }[];
510
510
  rationale: string;
511
511
  }, {
512
512
  pattern: string;
513
513
  suggestedRule: {
514
- id: string;
514
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
515
515
  scope: string;
516
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
516
+ id: string;
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
- file: string;
525
524
  id: string;
526
- severity: "error" | "warning";
525
+ file: string;
527
526
  detail: string;
528
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
527
+ severity: "error" | "warning";
528
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- id: string;
539
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
540
540
  scope: string;
541
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
541
+ id: string;
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
- file: string;
550
549
  id: string;
551
- severity: "error" | "warning";
550
+ file: string;
552
551
  detail: string;
553
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
552
+ severity: "error" | "warning";
553
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "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
- id: string;
564
+ category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
565
565
  scope: string;
566
- category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
566
+ id: string;
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
- file: string;
575
574
  id: string;
576
- severity: "error" | "warning";
575
+ file: string;
577
576
  detail: string;
578
- category?: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
577
+ severity: "error" | "warning";
578
+ category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
579
579
  }[];
580
580
  rationale: string;
581
581
  }[];