@harness-engineering/core 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- detail: string;
13
+ id: string;
15
14
  severity: "error" | "warning";
16
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
19
+ id: string;
21
20
  severity: "error" | "warning";
22
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
37
+ id: string;
39
38
  severity: "error" | "warning";
40
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
43
+ id: string;
45
44
  severity: "error" | "warning";
46
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
55
+ id: string;
57
56
  severity: "error" | "warning";
58
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
67
+ id: string;
69
68
  severity: "error" | "warning";
70
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
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<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
145
+ id: string;
147
146
  severity: "error" | "warning";
148
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
151
+ id: string;
153
152
  severity: "error" | "warning";
154
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
178
+ id: string;
180
179
  severity: "error" | "warning";
181
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
195
+ id: string;
197
196
  severity: "error" | "warning";
198
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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;
@@ -215,15 +215,15 @@ declare const ArchConfigSchema: z.ZodObject<{
215
215
  thresholds: z.ZodDefault<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>]>>>;
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
+ thresholds: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>;
219
+ modules: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>>;
218
220
  enabled: boolean;
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
+ thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>> | undefined;
224
+ modules?: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>> | undefined;
223
225
  enabled?: boolean | 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,16 +233,16 @@ 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
236
  scope: string;
238
237
  id: string;
239
238
  description: string;
239
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
240
240
  targets?: string[] | undefined;
241
241
  }, {
242
- category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
243
242
  scope: string;
244
243
  id: string;
245
244
  description: string;
245
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
246
246
  targets?: string[] | undefined;
247
247
  }>;
248
248
  type ConstraintRule = z.infer<typeof ConstraintRuleSchema>;
@@ -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
- detail: string;
13
+ id: string;
15
14
  severity: "error" | "warning";
16
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
19
+ id: string;
21
20
  severity: "error" | "warning";
22
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
37
+ id: string;
39
38
  severity: "error" | "warning";
40
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
43
+ id: string;
45
44
  severity: "error" | "warning";
46
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
55
+ id: string;
57
56
  severity: "error" | "warning";
58
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
67
+ id: string;
69
68
  severity: "error" | "warning";
70
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
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<"circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth", {
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
145
+ id: string;
147
146
  severity: "error" | "warning";
148
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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
- detail: string;
151
+ id: string;
153
152
  severity: "error" | "warning";
154
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
178
+ id: string;
180
179
  severity: "error" | "warning";
181
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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
- detail: string;
195
+ id: string;
197
196
  severity: "error" | "warning";
198
- category?: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth" | undefined;
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: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
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;
@@ -215,15 +215,15 @@ declare const ArchConfigSchema: z.ZodObject<{
215
215
  thresholds: z.ZodDefault<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>]>>>;
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
+ thresholds: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>;
219
+ modules: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>>;
218
220
  enabled: boolean;
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
+ thresholds?: Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>> | undefined;
224
+ modules?: Record<string, Partial<Record<"complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth", number | Record<string, number>>>> | undefined;
223
225
  enabled?: boolean | 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,16 +233,16 @@ 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
236
  scope: string;
238
237
  id: string;
239
238
  description: string;
239
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
240
240
  targets?: string[] | undefined;
241
241
  }, {
242
- category: "circular-deps" | "layer-violations" | "complexity" | "coupling" | "forbidden-imports" | "module-size" | "dependency-depth";
243
242
  scope: string;
244
243
  id: string;
245
244
  description: string;
245
+ category: "complexity" | "coupling" | "circular-deps" | "layer-violations" | "forbidden-imports" | "module-size" | "dependency-depth";
246
246
  targets?: string[] | undefined;
247
247
  }>;
248
248
  type ConstraintRule = z.infer<typeof ConstraintRuleSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/core",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Core library for Harness Engineering toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -47,8 +47,8 @@
47
47
  "glob": "^11.0.0",
48
48
  "minimatch": "^10.2.4",
49
49
  "zod": "^3.22.0",
50
- "@harness-engineering/types": "0.3.1",
51
- "@harness-engineering/graph": "0.3.2"
50
+ "@harness-engineering/graph": "0.3.2",
51
+ "@harness-engineering/types": "0.3.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/ejs": "^3.1.5",