@code-pushup/models 0.8.0 → 0.8.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // packages/models/src/lib/category-config.ts
1
+ // packages/models/src/lib/audit.ts
2
2
  import { z as z2 } from "zod";
3
3
 
4
4
  // packages/models/src/lib/implementation/schemas.ts
@@ -138,13 +138,107 @@ function hasWeightedRefsInCategories(categoryRefs) {
138
138
  return categoryRefs.reduce((acc, { weight }) => weight + acc, 0) !== 0;
139
139
  }
140
140
 
141
+ // packages/models/src/lib/audit.ts
142
+ var auditSchema = z2.object({
143
+ slug: slugSchema("ID (unique within plugin)")
144
+ }).merge(
145
+ metaSchema({
146
+ titleDescription: "Descriptive name",
147
+ descriptionDescription: "Description (markdown)",
148
+ docsUrlDescription: "Link to documentation (rationale)",
149
+ description: "List of scorable metrics for the given plugin"
150
+ })
151
+ );
152
+ var pluginAuditsSchema = z2.array(auditSchema, {
153
+ description: "List of audits maintained in a plugin"
154
+ }).refine(
155
+ (auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
156
+ (auditMetadata) => ({
157
+ message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
158
+ })
159
+ );
160
+ function duplicateSlugsInAuditsErrorMsg(audits) {
161
+ const duplicateRefs = getDuplicateSlugsInAudits(audits);
162
+ return `In plugin audits the slugs are not unique: ${errorItems(
163
+ duplicateRefs
164
+ )}`;
165
+ }
166
+ function getDuplicateSlugsInAudits(audits) {
167
+ return hasDuplicateStrings(audits.map(({ slug }) => slug));
168
+ }
169
+
170
+ // packages/models/src/lib/audit-issue.ts
171
+ import { z as z3 } from "zod";
172
+ var sourceFileLocationSchema = z3.object(
173
+ {
174
+ file: filePathSchema("Relative path to source file in Git repo"),
175
+ position: z3.object(
176
+ {
177
+ startLine: positiveIntSchema("Start line"),
178
+ startColumn: positiveIntSchema("Start column").optional(),
179
+ endLine: positiveIntSchema("End line").optional(),
180
+ endColumn: positiveIntSchema("End column").optional()
181
+ },
182
+ { description: "Location in file" }
183
+ ).optional()
184
+ },
185
+ { description: "Source file location" }
186
+ );
187
+ var issueSeveritySchema = z3.enum(["info", "warning", "error"], {
188
+ description: "Severity level"
189
+ });
190
+ var issueSchema = z3.object(
191
+ {
192
+ message: z3.string({ description: "Descriptive error message" }).max(512),
193
+ severity: issueSeveritySchema,
194
+ source: sourceFileLocationSchema.optional()
195
+ },
196
+ { description: "Issue information" }
197
+ );
198
+
199
+ // packages/models/src/lib/audit-output.ts
200
+ import { z as z4 } from "zod";
201
+ var auditOutputSchema = z4.object(
202
+ {
203
+ slug: slugSchema("Reference to audit"),
204
+ displayValue: z4.string({ description: "Formatted value (e.g. '0.9 s', '2.1 MB')" }).optional(),
205
+ value: positiveIntSchema("Raw numeric value"),
206
+ score: z4.number({
207
+ description: "Value between 0 and 1"
208
+ }).min(0).max(1),
209
+ details: z4.object(
210
+ {
211
+ issues: z4.array(issueSchema, { description: "List of findings" })
212
+ },
213
+ { description: "Detailed information" }
214
+ ).optional()
215
+ },
216
+ { description: "Audit information" }
217
+ );
218
+ var auditOutputsSchema = z4.array(auditOutputSchema, {
219
+ description: "List of JSON formatted audit output emitted by the runner process of a plugin"
220
+ }).refine(
221
+ (audits) => !getDuplicateSlugsInAudits2(audits),
222
+ (audits) => ({ message: duplicateSlugsInAuditsErrorMsg2(audits) })
223
+ );
224
+ function duplicateSlugsInAuditsErrorMsg2(audits) {
225
+ const duplicateRefs = getDuplicateSlugsInAudits2(audits);
226
+ return `In plugin audits the slugs are not unique: ${errorItems(
227
+ duplicateRefs
228
+ )}`;
229
+ }
230
+ function getDuplicateSlugsInAudits2(audits) {
231
+ return hasDuplicateStrings(audits.map(({ slug }) => slug));
232
+ }
233
+
141
234
  // packages/models/src/lib/category-config.ts
235
+ import { z as z5 } from "zod";
142
236
  var categoryRefSchema = weightedRefSchema(
143
237
  "Weighted references to audits and/or groups for the category",
144
238
  "Slug of an audit or group (depending on `type`)"
145
239
  ).merge(
146
- z2.object({
147
- type: z2.enum(["audit", "group"], {
240
+ z5.object({
241
+ type: z5.enum(["audit", "group"], {
148
242
  description: "Discriminant for reference kind, affects where `slug` is looked up"
149
243
  }),
150
244
  plugin: slugSchema(
@@ -165,8 +259,8 @@ var categoryConfigSchema = scorableSchema(
165
259
  description: "Meta info for category"
166
260
  })
167
261
  ).merge(
168
- z2.object({
169
- isBinary: z2.boolean({
262
+ z5.object({
263
+ isBinary: z5.boolean({
170
264
  description: 'Is this a binary category (i.e. only a perfect score considered a "pass")?'
171
265
  }).optional()
172
266
  })
@@ -182,7 +276,7 @@ function getDuplicateRefsInCategoryMetrics(metrics) {
182
276
  metrics.map(({ slug, type, plugin }) => `${type} :: ${plugin} / ${slug}`)
183
277
  );
184
278
  }
185
- var categoriesSchema = z2.array(categoryConfigSchema, {
279
+ var categoriesSchema = z5.array(categoryConfigSchema, {
186
280
  description: "Categorization of individual audits"
187
281
  }).min(1).refine(
188
282
  (categoryCfg) => !getDuplicateSlugCategories(categoryCfg),
@@ -204,68 +298,38 @@ function getDuplicateSlugCategories(categories) {
204
298
  import { z as z11 } from "zod";
205
299
 
206
300
  // packages/models/src/lib/persist-config.ts
207
- import { z as z3 } from "zod";
208
- var formatSchema = z3.enum(["json", "md"]);
209
- var persistConfigSchema = z3.object({
301
+ import { z as z6 } from "zod";
302
+ var formatSchema = z6.enum(["json", "md"]);
303
+ var persistConfigSchema = z6.object({
210
304
  outputDir: filePathSchema("Artifacts folder").optional(),
211
305
  filename: fileNameSchema(
212
306
  "Artifacts file name (without extension)"
213
307
  ).optional(),
214
- format: z3.array(formatSchema).optional()
308
+ format: z6.array(formatSchema).optional()
215
309
  });
216
310
 
217
311
  // packages/models/src/lib/plugin-config.ts
218
312
  import { z as z9 } from "zod";
219
313
 
220
- // packages/models/src/lib/plugin-config-audits.ts
221
- import { z as z4 } from "zod";
222
- var auditSchema = z4.object({
223
- slug: slugSchema("ID (unique within plugin)")
224
- }).merge(
225
- metaSchema({
226
- titleDescription: "Descriptive name",
227
- descriptionDescription: "Description (markdown)",
228
- docsUrlDescription: "Link to documentation (rationale)",
229
- description: "List of scorable metrics for the given plugin"
230
- })
231
- );
232
- var pluginAuditsSchema = z4.array(auditSchema, {
233
- description: "List of audits maintained in a plugin"
234
- }).refine(
235
- (auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
236
- (auditMetadata) => ({
237
- message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
238
- })
239
- );
240
- function duplicateSlugsInAuditsErrorMsg(audits) {
241
- const duplicateRefs = getDuplicateSlugsInAudits(audits);
242
- return `In plugin audits the slugs are not unique: ${errorItems(
243
- duplicateRefs
244
- )}`;
245
- }
246
- function getDuplicateSlugsInAudits(audits) {
247
- return hasDuplicateStrings(audits.map(({ slug }) => slug));
248
- }
249
-
250
- // packages/models/src/lib/plugin-config-groups.ts
251
- import { z as z5 } from "zod";
252
- var auditGroupRefSchema = weightedRefSchema(
253
- "Weighted references to audits",
254
- "Reference slug to an audit within this plugin (e.g. 'max-lines')"
314
+ // packages/models/src/lib/group.ts
315
+ import { z as z7 } from "zod";
316
+ var groupRefSchema = weightedRefSchema(
317
+ "Weighted reference to a group",
318
+ "Reference slug to a group within this plugin (e.g. 'max-lines')"
255
319
  );
256
- var auditGroupMetaSchema = metaSchema({
320
+ var groupMetaSchema = metaSchema({
257
321
  titleDescription: "Descriptive name for the group",
258
322
  descriptionDescription: "Description of the group (markdown)",
259
323
  docsUrlDescription: "Group documentation site",
260
324
  description: "Group metadata"
261
325
  });
262
- var auditGroupSchema = scorableSchema(
263
- 'An audit group aggregates a set of audits into a single score which can be referenced from a category. E.g. the group slug "performance" groups audits and can be referenced in a category',
264
- auditGroupRefSchema,
326
+ var groupSchema = scorableSchema(
327
+ 'A group aggregates a set of audits into a single score which can be referenced from a category. E.g. the group slug "performance" groups audits and can be referenced in a category',
328
+ groupRefSchema,
265
329
  getDuplicateRefsInGroups,
266
330
  duplicateRefsInGroupsErrorMsg
267
- ).merge(auditGroupMetaSchema);
268
- var auditGroupsSchema = z5.array(auditGroupSchema, {
331
+ ).merge(groupMetaSchema);
332
+ var groupsSchema = z7.array(groupSchema, {
269
333
  description: "List of groups"
270
334
  }).optional().refine(
271
335
  (groups) => !getDuplicateSlugsInGroups(groups),
@@ -273,16 +337,14 @@ var auditGroupsSchema = z5.array(auditGroupSchema, {
273
337
  message: duplicateSlugsInGroupsErrorMsg(groups)
274
338
  })
275
339
  );
276
- function duplicateRefsInGroupsErrorMsg(groupAudits) {
277
- const duplicateRefs = getDuplicateRefsInGroups(groupAudits);
278
- return `In plugin groups the audit refs are not unique: ${errorItems(
340
+ function duplicateRefsInGroupsErrorMsg(groups) {
341
+ const duplicateRefs = getDuplicateRefsInGroups(groups);
342
+ return `In plugin groups the following references are not unique: ${errorItems(
279
343
  duplicateRefs
280
344
  )}`;
281
345
  }
282
- function getDuplicateRefsInGroups(groupAudits) {
283
- return hasDuplicateStrings(
284
- groupAudits.map(({ slug: ref }) => ref).filter(exists)
285
- );
346
+ function getDuplicateRefsInGroups(groups) {
347
+ return hasDuplicateStrings(groups.map(({ slug: ref }) => ref).filter(exists));
286
348
  }
287
349
  function duplicateSlugsInGroupsErrorMsg(groups) {
288
350
  const duplicateRefs = getDuplicateSlugsInGroups(groups);
@@ -292,76 +354,8 @@ function getDuplicateSlugsInGroups(groups) {
292
354
  return Array.isArray(groups) ? hasDuplicateStrings(groups.map(({ slug }) => slug)) : false;
293
355
  }
294
356
 
295
- // packages/models/src/lib/plugin-config-runner.ts
357
+ // packages/models/src/lib/runner-config.ts
296
358
  import { z as z8 } from "zod";
297
-
298
- // packages/models/src/lib/plugin-process-output.ts
299
- import { z as z7 } from "zod";
300
-
301
- // packages/models/src/lib/plugin-process-output-audit-issue.ts
302
- import { z as z6 } from "zod";
303
- var sourceFileLocationSchema = z6.object(
304
- {
305
- file: filePathSchema("Relative path to source file in Git repo"),
306
- position: z6.object(
307
- {
308
- startLine: positiveIntSchema("Start line"),
309
- startColumn: positiveIntSchema("Start column").optional(),
310
- endLine: positiveIntSchema("End line").optional(),
311
- endColumn: positiveIntSchema("End column").optional()
312
- },
313
- { description: "Location in file" }
314
- ).optional()
315
- },
316
- { description: "Source file location" }
317
- );
318
- var issueSeveritySchema = z6.enum(["info", "warning", "error"], {
319
- description: "Severity level"
320
- });
321
- var issueSchema = z6.object(
322
- {
323
- message: z6.string({ description: "Descriptive error message" }).max(512),
324
- severity: issueSeveritySchema,
325
- source: sourceFileLocationSchema.optional()
326
- },
327
- { description: "Issue information" }
328
- );
329
-
330
- // packages/models/src/lib/plugin-process-output.ts
331
- var auditOutputSchema = z7.object(
332
- {
333
- slug: slugSchema("Reference to audit"),
334
- displayValue: z7.string({ description: "Formatted value (e.g. '0.9 s', '2.1 MB')" }).optional(),
335
- value: positiveIntSchema("Raw numeric value"),
336
- score: z7.number({
337
- description: "Value between 0 and 1"
338
- }).min(0).max(1),
339
- details: z7.object(
340
- {
341
- issues: z7.array(issueSchema, { description: "List of findings" })
342
- },
343
- { description: "Detailed information" }
344
- ).optional()
345
- },
346
- { description: "Audit information" }
347
- );
348
- var auditOutputsSchema = z7.array(auditOutputSchema, {
349
- description: "List of JSON formatted audit output emitted by the runner process of a plugin"
350
- }).refine(
351
- (audits) => !getDuplicateSlugsInAudits2(audits),
352
- (audits) => ({ message: duplicateSlugsInAuditsErrorMsg2(audits) })
353
- );
354
- function duplicateSlugsInAuditsErrorMsg2(audits) {
355
- const duplicateRefs = getDuplicateSlugsInAudits2(audits);
356
- return `In plugin audits the slugs are not unique: ${errorItems(
357
- duplicateRefs
358
- )}`;
359
- }
360
- function getDuplicateSlugsInAudits2(audits) {
361
- return hasDuplicateStrings(audits.map(({ slug }) => slug));
362
- }
363
-
364
- // packages/models/src/lib/plugin-config-runner.ts
365
359
  var outputTransformSchema = z8.function().args(z8.unknown()).returns(z8.union([auditOutputsSchema, z8.promise(auditOutputsSchema)]));
366
360
  var runnerConfigSchema = z8.object(
367
361
  {
@@ -398,7 +392,7 @@ var pluginMetaSchema = packageVersionSchema({
398
392
  var pluginDataSchema = z9.object({
399
393
  runner: z9.union([runnerConfigSchema, runnerFunctionSchema]),
400
394
  audits: pluginAuditsSchema,
401
- groups: auditGroupsSchema
395
+ groups: groupsSchema
402
396
  });
403
397
  var pluginConfigSchema = pluginMetaSchema.merge(pluginDataSchema).refine(
404
398
  (pluginCfg) => !getMissingRefsFromGroups(pluginCfg),
@@ -516,7 +510,7 @@ var pluginReportSchema = pluginMetaSchema.merge(
516
510
  ).merge(
517
511
  z12.object({
518
512
  audits: z12.array(auditReportSchema),
519
- groups: z12.array(auditGroupSchema).optional()
513
+ groups: z12.array(groupSchema).optional()
520
514
  })
521
515
  );
522
516
  var reportSchema = packageVersionSchema({
@@ -542,7 +536,6 @@ export {
542
536
  PERSIST_FILENAME,
543
537
  PERSIST_FORMAT,
544
538
  PERSIST_OUTPUT_DIR,
545
- auditGroupSchema,
546
539
  auditOutputsSchema,
547
540
  auditReportSchema,
548
541
  auditSchema,
@@ -552,6 +545,7 @@ export {
552
545
  fileNameSchema,
553
546
  filePathSchema,
554
547
  formatSchema,
548
+ groupSchema,
555
549
  materialIconSchema,
556
550
  onProgressSchema,
557
551
  persistConfigSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "dependencies": {
5
5
  "zod": "^3.22.1",
6
6
  "@code-pushup/portal-client": "^0.3.0"
package/src/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
+ export { Audit, auditSchema, pluginAuditsSchema } from './lib/audit';
2
+ export { Issue, IssueSeverity } from './lib/audit-issue';
3
+ export { AuditOutput, AuditOutputs, auditOutputsSchema, } from './lib/audit-output';
1
4
  export { CategoryConfig, CategoryRef, categoryConfigSchema, categoryRefSchema, } from './lib/category-config';
2
5
  export { CoreConfig, coreConfigSchema, refineCoreConfig, unrefinedCoreConfigSchema, } from './lib/core-config';
6
+ export { Group, GroupRef, groupSchema } from './lib/group';
7
+ export { PERSIST_FILENAME, PERSIST_FORMAT, PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
3
8
  export { MAX_DESCRIPTION_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';
4
- export { PERSIST_FILENAME, PERSIST_OUTPUT_DIR, PERSIST_FORMAT, } from './lib/implementation/constants';
5
- export { materialIconSchema, filePathSchema, fileNameSchema, urlSchema, } from './lib/implementation/schemas';
9
+ export { fileNameSchema, filePathSchema, materialIconSchema, urlSchema, } from './lib/implementation/schemas';
6
10
  export { Format, PersistConfig, formatSchema, persistConfigSchema, } from './lib/persist-config';
7
- export { PluginConfig, pluginConfigSchema, PluginMeta, } from './lib/plugin-config';
8
- export { Audit, auditSchema, pluginAuditsSchema, } from './lib/plugin-config-audits';
9
- export { AuditGroup, AuditGroupRef, auditGroupSchema, } from './lib/plugin-config-groups';
10
- export { OnProgress, RunnerConfig, RunnerFunction, onProgressSchema, runnerConfigSchema, } from './lib/plugin-config-runner';
11
- export { AuditOutput, AuditOutputs, auditOutputsSchema, } from './lib/plugin-process-output';
12
- export { Issue, IssueSeverity } from './lib/plugin-process-output-audit-issue';
11
+ export { PluginConfig, PluginMeta, pluginConfigSchema, } from './lib/plugin-config';
13
12
  export { AuditReport, PluginReport, Report, auditReportSchema, pluginReportSchema, reportSchema, } from './lib/report';
13
+ export { OnProgress, RunnerConfig, RunnerFunction, onProgressSchema, runnerConfigSchema, } from './lib/runner-config';
14
14
  export { UploadConfig, uploadConfigSchema } from './lib/upload-config';
@@ -11,12 +11,12 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
11
11
  runner: z.ZodUnion<[z.ZodObject<{
12
12
  command: z.ZodString;
13
13
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- outputFile: z.ZodString;
14
+ outputFile: z.ZodString; /** portal configuration for uploading results */
15
15
  outputTransform: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodObject<{
16
16
  slug: z.ZodString;
17
17
  displayValue: z.ZodOptional<z.ZodString>;
18
18
  value: z.ZodNumber;
19
- score: z.ZodNumber; /** portal configuration for uploading results */
19
+ score: z.ZodNumber;
20
20
  details: z.ZodOptional<z.ZodObject<{
21
21
  issues: z.ZodArray<z.ZodObject<{
22
22
  message: z.ZodString;
@@ -194,7 +194,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
194
194
  slug: z.ZodString;
195
195
  displayValue: z.ZodOptional<z.ZodString>;
196
196
  value: z.ZodNumber;
197
- score: z.ZodNumber; /** portal configuration for uploading results */
197
+ score: z.ZodNumber;
198
198
  details: z.ZodOptional<z.ZodObject<{
199
199
  issues: z.ZodArray<z.ZodObject<{
200
200
  message: z.ZodString;
@@ -463,7 +463,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
463
463
  slug: z.ZodString;
464
464
  displayValue: z.ZodOptional<z.ZodString>;
465
465
  value: z.ZodNumber;
466
- score: z.ZodNumber; /** portal configuration for uploading results */
466
+ score: z.ZodNumber;
467
467
  details: z.ZodOptional<z.ZodObject<{
468
468
  issues: z.ZodArray<z.ZodObject<{
469
469
  message: z.ZodString;
@@ -641,7 +641,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
641
641
  slug: z.ZodString;
642
642
  displayValue: z.ZodOptional<z.ZodString>;
643
643
  value: z.ZodNumber;
644
- score: z.ZodNumber; /** portal configuration for uploading results */
644
+ score: z.ZodNumber;
645
645
  details: z.ZodOptional<z.ZodObject<{
646
646
  issues: z.ZodArray<z.ZodObject<{
647
647
  message: z.ZodString;
@@ -2264,12 +2264,12 @@ export declare const coreConfigSchema: z.ZodObject<{
2264
2264
  runner: z.ZodUnion<[z.ZodObject<{
2265
2265
  command: z.ZodString;
2266
2266
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2267
- outputFile: z.ZodString;
2267
+ outputFile: z.ZodString; /** portal configuration for uploading results */
2268
2268
  outputTransform: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodObject<{
2269
2269
  slug: z.ZodString;
2270
2270
  displayValue: z.ZodOptional<z.ZodString>;
2271
2271
  value: z.ZodNumber;
2272
- score: z.ZodNumber; /** portal configuration for uploading results */
2272
+ score: z.ZodNumber;
2273
2273
  details: z.ZodOptional<z.ZodObject<{
2274
2274
  issues: z.ZodArray<z.ZodObject<{
2275
2275
  message: z.ZodString;
@@ -2447,7 +2447,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2447
2447
  slug: z.ZodString;
2448
2448
  displayValue: z.ZodOptional<z.ZodString>;
2449
2449
  value: z.ZodNumber;
2450
- score: z.ZodNumber; /** portal configuration for uploading results */
2450
+ score: z.ZodNumber;
2451
2451
  details: z.ZodOptional<z.ZodObject<{
2452
2452
  issues: z.ZodArray<z.ZodObject<{
2453
2453
  message: z.ZodString;
@@ -2716,7 +2716,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2716
2716
  slug: z.ZodString;
2717
2717
  displayValue: z.ZodOptional<z.ZodString>;
2718
2718
  value: z.ZodNumber;
2719
- score: z.ZodNumber; /** portal configuration for uploading results */
2719
+ score: z.ZodNumber;
2720
2720
  details: z.ZodOptional<z.ZodObject<{
2721
2721
  issues: z.ZodArray<z.ZodObject<{
2722
2722
  message: z.ZodString;
@@ -2894,7 +2894,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2894
2894
  slug: z.ZodString;
2895
2895
  displayValue: z.ZodOptional<z.ZodString>;
2896
2896
  value: z.ZodNumber;
2897
- score: z.ZodNumber; /** portal configuration for uploading results */
2897
+ score: z.ZodNumber;
2898
2898
  details: z.ZodOptional<z.ZodObject<{
2899
2899
  issues: z.ZodArray<z.ZodObject<{
2900
2900
  message: z.ZodString;
@@ -4522,12 +4522,12 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
4522
4522
  runner: z.ZodUnion<[z.ZodObject<{
4523
4523
  command: z.ZodString;
4524
4524
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4525
- outputFile: z.ZodString;
4525
+ outputFile: z.ZodString; /** portal configuration for uploading results */
4526
4526
  outputTransform: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodObject<{
4527
4527
  slug: z.ZodString;
4528
4528
  displayValue: z.ZodOptional<z.ZodString>;
4529
4529
  value: z.ZodNumber;
4530
- score: z.ZodNumber; /** portal configuration for uploading results */
4530
+ score: z.ZodNumber;
4531
4531
  details: z.ZodOptional<z.ZodObject<{
4532
4532
  issues: z.ZodArray<z.ZodObject<{
4533
4533
  message: z.ZodString;
@@ -4705,7 +4705,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
4705
4705
  slug: z.ZodString;
4706
4706
  displayValue: z.ZodOptional<z.ZodString>;
4707
4707
  value: z.ZodNumber;
4708
- score: z.ZodNumber; /** portal configuration for uploading results */
4708
+ score: z.ZodNumber;
4709
4709
  details: z.ZodOptional<z.ZodObject<{
4710
4710
  issues: z.ZodArray<z.ZodObject<{
4711
4711
  message: z.ZodString;
@@ -4974,7 +4974,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
4974
4974
  slug: z.ZodString;
4975
4975
  displayValue: z.ZodOptional<z.ZodString>;
4976
4976
  value: z.ZodNumber;
4977
- score: z.ZodNumber; /** portal configuration for uploading results */
4977
+ score: z.ZodNumber;
4978
4978
  details: z.ZodOptional<z.ZodObject<{
4979
4979
  issues: z.ZodArray<z.ZodObject<{
4980
4980
  message: z.ZodString;
@@ -5152,7 +5152,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
5152
5152
  slug: z.ZodString;
5153
5153
  displayValue: z.ZodOptional<z.ZodString>;
5154
5154
  value: z.ZodNumber;
5155
- score: z.ZodNumber; /** portal configuration for uploading results */
5155
+ score: z.ZodNumber;
5156
5156
  details: z.ZodOptional<z.ZodObject<{
5157
5157
  issues: z.ZodArray<z.ZodObject<{
5158
5158
  message: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const auditGroupRefSchema: z.ZodObject<{
2
+ export declare const groupRefSchema: z.ZodObject<{
3
3
  slug: z.ZodString;
4
4
  weight: z.ZodNumber;
5
5
  }, "strip", z.ZodTypeAny, {
@@ -9,8 +9,8 @@ export declare const auditGroupRefSchema: z.ZodObject<{
9
9
  slug: string;
10
10
  weight: number;
11
11
  }>;
12
- export type AuditGroupRef = z.infer<typeof auditGroupRefSchema>;
13
- export declare const auditGroupMetaSchema: z.ZodObject<{
12
+ export type GroupRef = z.infer<typeof groupRefSchema>;
13
+ export declare const groupMetaSchema: z.ZodObject<{
14
14
  title: z.ZodString;
15
15
  description: z.ZodOptional<z.ZodString>;
16
16
  docsUrl: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
@@ -23,8 +23,8 @@ export declare const auditGroupMetaSchema: z.ZodObject<{
23
23
  description?: string | undefined;
24
24
  docsUrl?: string | undefined;
25
25
  }>;
26
- export type AuditGroupMeta = z.infer<typeof auditGroupMetaSchema>;
27
- export declare const auditGroupSchema: z.ZodObject<{
26
+ export type GroupMeta = z.infer<typeof groupMetaSchema>;
27
+ export declare const groupSchema: z.ZodObject<{
28
28
  slug: z.ZodString;
29
29
  refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
30
30
  slug: z.ZodString;
@@ -70,8 +70,8 @@ export declare const auditGroupSchema: z.ZodObject<{
70
70
  description?: string | undefined;
71
71
  docsUrl?: string | undefined;
72
72
  }>;
73
- export type AuditGroup = z.infer<typeof auditGroupSchema>;
74
- export declare const auditGroupsSchema: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ export type Group = z.infer<typeof groupSchema>;
74
+ export declare const groupsSchema: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
75
75
  slug: z.ZodString;
76
76
  refs: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
77
77
  slug: z.ZodString;