@harness-engineering/core 0.21.1 → 0.21.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;
@@ -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>>>>;
220
218
  enabled: boolean;
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
- 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;
225
223
  enabled?: boolean | 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,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";
236
237
  scope: string;
237
238
  id: string;
238
239
  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";
242
243
  scope: string;
243
244
  id: string;
244
245
  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
- 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;
@@ -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>>>>;
220
218
  enabled: boolean;
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
- 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;
225
223
  enabled?: boolean | 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,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";
236
237
  scope: string;
237
238
  id: string;
238
239
  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";
242
243
  scope: string;
243
244
  id: string;
244
245
  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.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "Core library for Harness Engineering toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -49,8 +49,8 @@
49
49
  "tree-sitter-wasms": "0.1.13",
50
50
  "web-tree-sitter": "^0.24.7",
51
51
  "zod": "^3.25.76",
52
- "@harness-engineering/graph": "0.4.1",
53
- "@harness-engineering/types": "0.9.0"
52
+ "@harness-engineering/graph": "0.4.2",
53
+ "@harness-engineering/types": "0.9.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/ejs": "^3.1.5",