@code-pushup/models 0.74.1 → 0.76.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.74.1",
3
+ "version": "0.76.0",
4
4
  "license": "MIT",
5
5
  "description": "Model definitions and validators for the Code PushUp CLI",
6
6
  "homepage": "https://github.com/code-pushup/cli/tree/main/packages/models#readme",
package/src/index.d.ts CHANGED
@@ -2,23 +2,23 @@ export { tableCellValueSchema, type TableCellValue, } from './lib/implementation
2
2
  export { sourceFileLocationSchema, type SourceFileLocation, } from './lib/source.js';
3
3
  export { auditDetailsSchema, auditOutputSchema, auditOutputsSchema, type AuditDetails, type AuditOutput, type AuditOutputs, } from './lib/audit-output.js';
4
4
  export { auditSchema, type Audit } from './lib/audit.js';
5
- export { cacheConfigSchema, type CacheConfig, cacheConfigObjectSchema, type CacheConfigObject, cacheConfigShorthandSchema, type CacheConfigShorthand, } from './lib/cache-config.js';
5
+ export { cacheConfigObjectSchema, cacheConfigSchema, cacheConfigShorthandSchema, type CacheConfig, type CacheConfigObject, type CacheConfigShorthand, } from './lib/cache-config.js';
6
6
  export { categoryConfigSchema, categoryRefSchema, type CategoryConfig, type CategoryRef, } from './lib/category-config.js';
7
7
  export { commitSchema, type Commit } from './lib/commit.js';
8
+ export { artifactGenerationCommandSchema, pluginArtifactOptionsSchema, } from './lib/configuration.js';
8
9
  export { coreConfigSchema, type CoreConfig } from './lib/core-config.js';
9
10
  export { groupRefSchema, groupSchema, type Group, type GroupMeta, type GroupRef, } from './lib/group.js';
10
11
  export { CONFIG_FILE_NAME, SUPPORTED_CONFIG_FILE_FORMATS, } from './lib/implementation/configuration.js';
11
- export { DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants.js';
12
+ export { DEFAULT_PERSIST_CONFIG, DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants.js';
12
13
  export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits.js';
13
- export { fileNameSchema, filePathSchema, materialIconSchema, type MaterialIcon, } from './lib/implementation/schemas.js';
14
+ export { fileNameSchema, filePathSchema, materialIconSchema, scoreSchema, slugSchema, type MaterialIcon, } from './lib/implementation/schemas.js';
14
15
  export { exists } from './lib/implementation/utils.js';
15
16
  export { issueSchema, issueSeveritySchema, type Issue, type IssueSeverity, } from './lib/issue.js';
16
17
  export { formatSchema, persistConfigSchema, type Format, type PersistConfig, } from './lib/persist-config.js';
17
- export { pluginConfigSchema, pluginContextSchema, pluginMetaSchema, type PluginConfig, type PluginContext, type PluginMeta, } from './lib/plugin-config.js';
18
+ export { pluginConfigSchema, pluginContextSchema, pluginMetaSchema, type PluginConfig, type PluginContext, type PluginMeta, type PluginScoreTargets, } from './lib/plugin-config.js';
18
19
  export { auditReportSchema, pluginReportSchema, reportSchema, type AuditReport, type PluginReport, type Report, } from './lib/report.js';
19
20
  export { auditDiffSchema, auditResultSchema, categoryDiffSchema, categoryResultSchema, groupDiffSchema, groupResultSchema, reportsDiffSchema, type AuditDiff, type AuditResult, type CategoryDiff, type CategoryResult, type GroupDiff, type GroupResult, type ReportsDiff, } from './lib/reports-diff.js';
20
21
  export { runnerConfigSchema, runnerFilesPathsSchema, runnerFunctionSchema, type RunnerConfig, type RunnerFilesPaths, type RunnerFunction, } from './lib/runner-config.js';
21
22
  export { tableAlignmentSchema, tableColumnObjectSchema, tableColumnPrimitiveSchema, tableRowObjectSchema, tableRowPrimitiveSchema, tableSchema, type Table, type TableAlignment, type TableColumnObject, type TableColumnPrimitive, type TableRowObject, type TableRowPrimitive, } from './lib/table.js';
22
23
  export { basicTreeNodeSchema, basicTreeSchema, coverageTreeMissingLOCSchema, coverageTreeNodeSchema, coverageTreeSchema, treeSchema, type BasicTree, type BasicTreeNode, type CoverageTree, type CoverageTreeMissingLOC, type CoverageTreeNode, type Tree, } from './lib/tree.js';
23
24
  export { uploadConfigSchema, type UploadConfig } from './lib/upload-config.js';
24
- export { artifactGenerationCommandSchema, pluginArtifactOptionsSchema, } from './lib/configuration.js';
package/src/index.js CHANGED
@@ -2,15 +2,16 @@ export { tableCellValueSchema, } from './lib/implementation/schemas.js';
2
2
  export { sourceFileLocationSchema, } from './lib/source.js';
3
3
  export { auditDetailsSchema, auditOutputSchema, auditOutputsSchema, } from './lib/audit-output.js';
4
4
  export { auditSchema } from './lib/audit.js';
5
- export { cacheConfigSchema, cacheConfigObjectSchema, cacheConfigShorthandSchema, } from './lib/cache-config.js';
5
+ export { cacheConfigObjectSchema, cacheConfigSchema, cacheConfigShorthandSchema, } from './lib/cache-config.js';
6
6
  export { categoryConfigSchema, categoryRefSchema, } from './lib/category-config.js';
7
7
  export { commitSchema } from './lib/commit.js';
8
+ export { artifactGenerationCommandSchema, pluginArtifactOptionsSchema, } from './lib/configuration.js';
8
9
  export { coreConfigSchema } from './lib/core-config.js';
9
10
  export { groupRefSchema, groupSchema, } from './lib/group.js';
10
11
  export { CONFIG_FILE_NAME, SUPPORTED_CONFIG_FILE_FORMATS, } from './lib/implementation/configuration.js';
11
- export { DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants.js';
12
+ export { DEFAULT_PERSIST_CONFIG, DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants.js';
12
13
  export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits.js';
13
- export { fileNameSchema, filePathSchema, materialIconSchema, } from './lib/implementation/schemas.js';
14
+ export { fileNameSchema, filePathSchema, materialIconSchema, scoreSchema, slugSchema, } from './lib/implementation/schemas.js';
14
15
  export { exists } from './lib/implementation/utils.js';
15
16
  export { issueSchema, issueSeveritySchema, } from './lib/issue.js';
16
17
  export { formatSchema, persistConfigSchema, } from './lib/persist-config.js';
@@ -21,5 +22,4 @@ export { runnerConfigSchema, runnerFilesPathsSchema, runnerFunctionSchema, } fro
21
22
  export { tableAlignmentSchema, tableColumnObjectSchema, tableColumnPrimitiveSchema, tableRowObjectSchema, tableRowPrimitiveSchema, tableSchema, } from './lib/table.js';
22
23
  export { basicTreeNodeSchema, basicTreeSchema, coverageTreeMissingLOCSchema, coverageTreeNodeSchema, coverageTreeSchema, treeSchema, } from './lib/tree.js';
23
24
  export { uploadConfigSchema } from './lib/upload-config.js';
24
- export { artifactGenerationCommandSchema, pluginArtifactOptionsSchema, } from './lib/configuration.js';
25
25
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,GAErB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GAInB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAc,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,iBAAiB,EAEjB,uBAAuB,EAEvB,0BAA0B,GAE3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAmB,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACL,cAAc,EACd,WAAW,GAIZ,MAAM,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yB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,GAKjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GAIb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,GAQlB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GAIrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,GAOZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,GAOX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAqB,MAAM,wBAAwB,CAAC"}
@@ -68,6 +68,7 @@ export declare const auditOutputSchema: z.ZodObject<{
68
68
  displayValue: z.ZodOptional<z.ZodString>;
69
69
  value: z.ZodNumber;
70
70
  score: z.ZodNumber;
71
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
71
72
  details: z.ZodOptional<z.ZodObject<{
72
73
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
74
  message: z.ZodString;
@@ -136,6 +137,7 @@ export declare const auditOutputsSchema: z.ZodArray<z.ZodObject<{
136
137
  displayValue: z.ZodOptional<z.ZodString>;
137
138
  value: z.ZodNumber;
138
139
  score: z.ZodNumber;
140
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
139
141
  details: z.ZodOptional<z.ZodObject<{
140
142
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
143
  message: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { createDuplicateSlugsCheck } from './implementation/checks.js';
3
- import { nonnegativeNumberSchema, scoreSchema, slugSchema, } from './implementation/schemas.js';
3
+ import { nonnegativeNumberSchema, scoreSchema, scoreTargetSchema, slugSchema, } from './implementation/schemas.js';
4
4
  import { issueSchema } from './issue.js';
5
5
  import { tableSchema } from './table.js';
6
6
  import { treeSchema } from './tree.js';
@@ -25,6 +25,7 @@ export const auditOutputSchema = z
25
25
  displayValue: auditDisplayValueSchema,
26
26
  value: auditValueSchema,
27
27
  score: scoreSchema,
28
+ scoreTarget: scoreTargetSchema,
28
29
  details: auditDetailsSchema.optional(),
29
30
  })
30
31
  .describe('Audit information');
@@ -1 +1 @@
1
- {"version":3,"file":"audit-output.js","sourceRoot":"","sources":["../../../src/lib/audit-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,UAAU,GACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,CAAC,MAAM,gBAAgB,GAC3B,uBAAuB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CAAC,0CAA0C,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IACpE,KAAK,EAAE,WAAW,CAAC,2BA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V,QAAQ,CAAC,0CAA0C,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IACpE,KAAK,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IAC1D,KAAK,EAAE,CAAC;SACL,KAAK,CAAC,UAAU,CAAC;SACjB,QAAQ,CAAC,4BAA4B,CAAC;SACtC,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAGpC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,YAAY,EAAE,uBAAuB;IACrC,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACvC,CAAC;KACD,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAIjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,KAAK,CAAC,iBAAiB,CAAC;KACxB,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;KACzC,QAAQ,CACP,+EAA+E,CAChF,CAAC"}
package/src/lib/audit.js CHANGED
@@ -5,13 +5,13 @@ export const auditSchema = z
5
5
  .object({
6
6
  slug: slugSchema.describe('ID (unique within plugin)'),
7
7
  })
8
- .merge(metaSchema({
8
+ .extend(metaSchema({
9
9
  titleDescription: 'Descriptive name',
10
10
  descriptionDescription: 'Description (markdown)',
11
11
  docsUrlDescription: 'Link to documentation (rationale)',
12
12
  description: 'List of scorable metrics for the given plugin',
13
13
  isSkippedDescription: 'Indicates whether the audit is skipped',
14
- }));
14
+ }).shape);
15
15
  export const pluginAuditsSchema = z
16
16
  .array(auditSchema)
17
17
  .min(1)
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../src/lib/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACvD,CAAC;KACD,KAAK,CACJ,UAAU,CAAC;IACT,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,kBAAkB,EAAE,mCAAmC;IACvD,WAAW,EAAE,+CAA+C;IAC5D,oBAAoB,EAAE,wCAAwC;CAC/D,CAAC,CACH,CAAC;AAGJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,KAAK,CAAC,WAAW,CAAC;KAClB,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;KACzC,QAAQ,CAAC,uCAAuC,CAAC,CAAC"}
1
+ {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../src/lib/audit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACvD,CAAC;KACD,MAAM,CACL,UAAU,CAAC;IACT,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,kBAAkB,EAAE,mCAAmC;IACvD,WAAW,EAAE,+CAA+C;IAC5D,oBAAoB,EAAE,wCAAwC;CAC/D,CAAC,CAAC,KAAK,CACT,CAAC;AAGJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,KAAK,CAAC,WAAW,CAAC;KAClB,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;KACzC,QAAQ,CAAC,uCAAuC,CAAC,CAAC"}
@@ -32,7 +32,7 @@ export declare const categoryConfigSchema: z.ZodObject<{
32
32
  description: z.ZodOptional<z.ZodString>;
33
33
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
34
34
  isSkipped: z.ZodOptional<z.ZodBoolean>;
35
- isBinary: z.ZodOptional<z.ZodBoolean>;
35
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
36
36
  }, z.core.$strip>;
37
37
  /**
38
38
  * Type Definition: `CategoryConfig`
@@ -58,5 +58,5 @@ export declare const categoriesSchema: z.ZodArray<z.ZodObject<{
58
58
  description: z.ZodOptional<z.ZodString>;
59
59
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
60
60
  isSkipped: z.ZodOptional<z.ZodBoolean>;
61
- isBinary: z.ZodOptional<z.ZodBoolean>;
61
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
62
62
  }, z.core.$strip>>;
@@ -1,26 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  import { createDuplicateSlugsCheck, createDuplicatesCheck, } from './implementation/checks.js';
3
- import { metaSchema, scorableSchema, slugSchema, weightedRefSchema, } from './implementation/schemas.js';
3
+ import { metaSchema, scorableSchema, scoreTargetSchema, slugSchema, weightedRefSchema, } from './implementation/schemas.js';
4
4
  import { formatRef } from './implementation/utils.js';
5
- export const categoryRefSchema = weightedRefSchema('Weighted references to audits and/or groups for the category', 'Slug of an audit or group (depending on `type`)').merge(z.object({
5
+ export const categoryRefSchema = weightedRefSchema('Weighted references to audits and/or groups for the category', 'Slug of an audit or group (depending on `type`)').extend({
6
6
  type: z
7
7
  .enum(['audit', 'group'])
8
8
  .describe('Discriminant for reference kind, affects where `slug` is looked up'),
9
9
  plugin: slugSchema.describe('Plugin slug (plugin should contain referenced audit or group)'),
10
- }));
10
+ });
11
11
  export const categoryConfigSchema = scorableSchema('Category with a score calculated from audits and groups from various plugins', categoryRefSchema, createDuplicatesCheck(serializeCategoryRefTarget, duplicates => `Category has duplicate references: ${formatSerializedCategoryRefTargets(duplicates)}`))
12
- .merge(metaSchema({
12
+ .extend(metaSchema({
13
13
  titleDescription: 'Category Title',
14
14
  docsUrlDescription: 'Category docs URL',
15
15
  descriptionDescription: 'Category description',
16
16
  description: 'Meta info for category',
17
- }))
18
- .merge(z.object({
19
- isBinary: z
20
- .boolean()
21
- .describe('Is this a binary category (i.e. only a perfect score considered a "pass")?')
22
- .optional(),
23
- }));
17
+ }).shape)
18
+ .extend({ scoreTarget: scoreTargetSchema });
24
19
  const CATEGORY_REF_SEP = '||';
25
20
  function serializeCategoryRefTarget(ref) {
26
21
  return [ref.type, ref.plugin, ref.slug].join(CATEGORY_REF_SEP);
@@ -1 +1 @@
1
- {"version":3,"file":"category-config.js","sourceRoot":"","sources":["../../../src/lib/category-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,UAAU,EACV,cAAc,EACd,UAAU,EACV,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAChD,8DAA8D,EAC9D,iDA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AAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,KAAK,CAAC,oBAAoB,CAAC;KAC3B,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;KAC5C,QAAQ,CAAC,qCAAqC,CAAC,CAAC"}
1
+ {"version":3,"file":"category-config.js","sourceRoot":"","sources":["../../../src/lib/category-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAChD,8DAA8D,EAC9D,iDAAiD,CAClD,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;IACH,MAAM,EAAE,UAAU,CAAC,QAAQ,CACzB,+DAA+D,CAChE;CACF,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAChD,8EAA8E,EAC9E,iBAAiB,EACjB,qBAAqB,CACnB,0BAA0B,EAC1B,UAAU,CAAC,EAAE,CACX,sCAAsC,kCAAkC,CAAC,UAAU,CAAC,EAAE,CACzF,CACF;KACE,MAAM,CACL,UAAU,CAAC;IACT,gBAAgB,EAAE,gBAAgB;IAClC,kBAAkB,EAAE,mBAAmB;IACvC,sBAAsB,EAAE,sBAAsB;IAC9C,WAAW,EAAE,wBAAwB;CACtC,CAAC,CAAC,KAAK,CACT;KACA,MAAM,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAI9C,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAE9B,SAAS,0BAA0B,CAAC,GAAgB;IAClD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AACjE,CAAC;AAED,SAAS,kCAAkC,CAAC,IAAc;IACxD,OAAO,IAAI;SACR,GAAG,CAAC,GAAG,CAAC,EAAE;QACT,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAItD,CAAC;QACF,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,KAAK,CAAC,oBAAoB,CAAC;KAC3B,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;KAC5C,QAAQ,CAAC,qCAAqC,CAAC,CAAC"}
@@ -877,6 +877,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
877
877
  displayValue: z.ZodOptional<z.ZodString>;
878
878
  value: z.ZodNumber;
879
879
  score: z.ZodNumber;
880
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
880
881
  details: z.ZodOptional<z.ZodObject<{
881
882
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
883
  message: z.ZodString;
@@ -935,6 +936,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
935
936
  displayValue: z.ZodOptional<z.ZodString>;
936
937
  value: z.ZodNumber;
937
938
  score: z.ZodNumber;
939
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
938
940
  details: z.ZodOptional<z.ZodObject<{
939
941
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
940
942
  message: z.ZodString;
@@ -995,6 +997,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
995
997
  displayValue: z.ZodOptional<z.ZodString>;
996
998
  value: z.ZodNumber;
997
999
  score: z.ZodNumber;
1000
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
998
1001
  details: z.ZodOptional<z.ZodObject<{
999
1002
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1000
1003
  message: z.ZodString;
@@ -1053,6 +1056,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1053
1056
  displayValue: z.ZodOptional<z.ZodString>;
1054
1057
  value: z.ZodNumber;
1055
1058
  score: z.ZodNumber;
1059
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1056
1060
  details: z.ZodOptional<z.ZodObject<{
1057
1061
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
1062
  message: z.ZodString;
@@ -1125,6 +1129,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1125
1129
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1126
1130
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1127
1131
  }, z.core.$strip>>>;
1132
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
1128
1133
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1129
1134
  }, z.core.$strip>>;
1130
1135
  persist: z.ZodOptional<z.ZodObject<{
@@ -1158,7 +1163,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1158
1163
  description: z.ZodOptional<z.ZodString>;
1159
1164
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1160
1165
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1161
- isBinary: z.ZodOptional<z.ZodBoolean>;
1166
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1162
1167
  }, z.core.$strip>>>;
1163
1168
  }, z.core.$strip>;
1164
1169
  export declare const coreConfigSchema: z.ZodObject<{
@@ -2039,6 +2044,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2039
2044
  displayValue: z.ZodOptional<z.ZodString>;
2040
2045
  value: z.ZodNumber;
2041
2046
  score: z.ZodNumber;
2047
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2042
2048
  details: z.ZodOptional<z.ZodObject<{
2043
2049
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
2050
  message: z.ZodString;
@@ -2097,6 +2103,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2097
2103
  displayValue: z.ZodOptional<z.ZodString>;
2098
2104
  value: z.ZodNumber;
2099
2105
  score: z.ZodNumber;
2106
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2100
2107
  details: z.ZodOptional<z.ZodObject<{
2101
2108
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2102
2109
  message: z.ZodString;
@@ -2157,6 +2164,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2157
2164
  displayValue: z.ZodOptional<z.ZodString>;
2158
2165
  value: z.ZodNumber;
2159
2166
  score: z.ZodNumber;
2167
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2160
2168
  details: z.ZodOptional<z.ZodObject<{
2161
2169
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2162
2170
  message: z.ZodString;
@@ -2215,6 +2223,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2215
2223
  displayValue: z.ZodOptional<z.ZodString>;
2216
2224
  value: z.ZodNumber;
2217
2225
  score: z.ZodNumber;
2226
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2218
2227
  details: z.ZodOptional<z.ZodObject<{
2219
2228
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2220
2229
  message: z.ZodString;
@@ -2287,6 +2296,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2287
2296
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
2288
2297
  isSkipped: z.ZodOptional<z.ZodBoolean>;
2289
2298
  }, z.core.$strip>>>;
2299
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
2290
2300
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2291
2301
  }, z.core.$strip>>;
2292
2302
  persist: z.ZodOptional<z.ZodObject<{
@@ -2320,7 +2330,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2320
2330
  description: z.ZodOptional<z.ZodString>;
2321
2331
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
2322
2332
  isSkipped: z.ZodOptional<z.ZodBoolean>;
2323
- isBinary: z.ZodOptional<z.ZodBoolean>;
2333
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2324
2334
  }, z.core.$strip>>>;
2325
2335
  }, z.core.$strip>;
2326
2336
  /**
@@ -3206,6 +3216,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3206
3216
  displayValue: z.ZodOptional<z.ZodString>;
3207
3217
  value: z.ZodNumber;
3208
3218
  score: z.ZodNumber;
3219
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3209
3220
  details: z.ZodOptional<z.ZodObject<{
3210
3221
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3211
3222
  message: z.ZodString;
@@ -3264,6 +3275,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3264
3275
  displayValue: z.ZodOptional<z.ZodString>;
3265
3276
  value: z.ZodNumber;
3266
3277
  score: z.ZodNumber;
3278
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3267
3279
  details: z.ZodOptional<z.ZodObject<{
3268
3280
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3269
3281
  message: z.ZodString;
@@ -3324,6 +3336,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3324
3336
  displayValue: z.ZodOptional<z.ZodString>;
3325
3337
  value: z.ZodNumber;
3326
3338
  score: z.ZodNumber;
3339
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3327
3340
  details: z.ZodOptional<z.ZodObject<{
3328
3341
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3329
3342
  message: z.ZodString;
@@ -3382,6 +3395,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3382
3395
  displayValue: z.ZodOptional<z.ZodString>;
3383
3396
  value: z.ZodNumber;
3384
3397
  score: z.ZodNumber;
3398
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3385
3399
  details: z.ZodOptional<z.ZodObject<{
3386
3400
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3387
3401
  message: z.ZodString;
@@ -3454,6 +3468,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3454
3468
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
3455
3469
  isSkipped: z.ZodOptional<z.ZodBoolean>;
3456
3470
  }, z.core.$strip>>>;
3471
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
3457
3472
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3458
3473
  }, z.core.$strip>>;
3459
3474
  persist: z.ZodOptional<z.ZodObject<{
@@ -3487,7 +3502,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3487
3502
  description: z.ZodOptional<z.ZodString>;
3488
3503
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
3489
3504
  isSkipped: z.ZodOptional<z.ZodBoolean>;
3490
- isBinary: z.ZodOptional<z.ZodBoolean>;
3505
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3491
3506
  }, z.core.$strip>>>;
3492
3507
  }, z.core.$strip>;
3493
3508
  /**
@@ -1,4 +1,6 @@
1
- import type { Format } from '../persist-config.js';
1
+ import type { Format, PersistConfig } from '../persist-config.js';
2
2
  export declare const DEFAULT_PERSIST_OUTPUT_DIR = ".code-pushup";
3
3
  export declare const DEFAULT_PERSIST_FILENAME = "report";
4
4
  export declare const DEFAULT_PERSIST_FORMAT: Format[];
5
+ export declare const DEFAULT_PERSIST_SKIP_REPORT = false;
6
+ export declare const DEFAULT_PERSIST_CONFIG: Required<PersistConfig>;
@@ -1,4 +1,11 @@
1
1
  export const DEFAULT_PERSIST_OUTPUT_DIR = '.code-pushup';
2
2
  export const DEFAULT_PERSIST_FILENAME = 'report';
3
3
  export const DEFAULT_PERSIST_FORMAT = ['json', 'md'];
4
+ export const DEFAULT_PERSIST_SKIP_REPORT = false;
5
+ export const DEFAULT_PERSIST_CONFIG = {
6
+ outputDir: DEFAULT_PERSIST_OUTPUT_DIR,
7
+ filename: DEFAULT_PERSIST_FILENAME,
8
+ format: DEFAULT_PERSIST_FORMAT,
9
+ skipReports: DEFAULT_PERSIST_SKIP_REPORT,
10
+ };
4
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/lib/implementation/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AACzD,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/lib/implementation/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AACzD,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D,SAAS,EAAE,0BAA0B;IACrC,QAAQ,EAAE,wBAAwB;IAClC,MAAM,EAAE,sBAAsB;IAC9B,WAAW,EAAE,2BAA2B;CACzC,CAAC"}
@@ -62,6 +62,8 @@ export declare function packageVersionSchema<TRequired extends boolean = false>(
62
62
  packageName: TRequired extends true ? ZodString : ZodOptional<ZodString>;
63
63
  version: TRequired extends true ? ZodString : ZodOptional<ZodString>;
64
64
  }>;
65
+ /** Schema for a binary score threshold */
66
+ export declare const scoreTargetSchema: ZodOptional<z.ZodNumber>;
65
67
  /** Schema for a weight */
66
68
  export declare const weightSchema: z.ZodNumber;
67
69
  export declare function weightedRefSchema(description: string, slugDescription: string): ZodObject<{
@@ -114,6 +114,11 @@ export function packageVersionSchema(options) {
114
114
  })
115
115
  .describe('NPM package name and version of a published package');
116
116
  }
117
+ /** Schema for a binary score threshold */
118
+ export const scoreTargetSchema = nonnegativeNumberSchema
119
+ .max(1)
120
+ .describe('Pass/fail score threshold (0-1)')
121
+ .optional();
117
122
  /** Schema for a weight */
118
123
  export const weightSchema = nonnegativeNumberSchema.describe('Coefficient for the given score (use weight 0 if only for display)');
119
124
  export function weightedRefSchema(description, slugDescription) {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/implementation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,QAAQ,EAKR,CAAC,GACF,MAAM,KAAK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MAAM,CAAC;QACN,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,8CAA8C,CAAC;QACzE,IAAI,EAAE,CAAC;aACJ,KAAK,CAAC,SAAS,CAAC;aAChB,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,CAAC;YACvE,kBAAkB;aACjB,KAAK,CAAC,gBAAgB,CAAC;YACxB,+BAA+B;aAC9B,MAAM,CAAC,qBAAqB,EAAE;YAC7B,KAAK,EAAE,sDAAsD;SAC9D,CAAC;KACL,CAAC;SACD,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,IAAI,CAAC,cAAc,CAAC;KACpB,QAAQ,CAAC,2CAA2C,CAAC,CAAC;AAKzD,SAAS,qBAAqB,CAAC,IAAW;IACxC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,SAAS,EAAE,iBAAiB,CAAC,QAAQ,CAAC,YAAY,CAAC;IACnD,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAClE,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IAC1D,SAAS,EAAE,iBAAiB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC;KACD,QAAQ,CAAC,kBAAkB,CAAC,CAAC"}
@@ -889,6 +889,16 @@ export declare const pluginMetaSchema: z.ZodObject<{
889
889
  * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginmeta}
890
890
  */
891
891
  export type PluginMeta = z.infer<typeof pluginMetaSchema>;
892
+ export declare const pluginScoreTargetsSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
893
+ /**
894
+ * Type Definition: `PluginScoreTargets`
895
+ *
896
+ * This type is derived from a Zod schema and represents
897
+ * the validated structure of `PluginScoreTargets` used within the application.
898
+ *
899
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginscoretargets}
900
+ */
901
+ export type PluginScoreTargets = z.infer<typeof pluginScoreTargetsSchema>;
892
902
  export declare const pluginDataSchema: z.ZodObject<{
893
903
  runner: z.ZodUnion<readonly [z.ZodObject<{
894
904
  command: z.ZodString;
@@ -899,6 +909,7 @@ export declare const pluginDataSchema: z.ZodObject<{
899
909
  displayValue: z.ZodOptional<z.ZodString>;
900
910
  value: z.ZodNumber;
901
911
  score: z.ZodNumber;
912
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
902
913
  details: z.ZodOptional<z.ZodObject<{
903
914
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
904
915
  message: z.ZodString;
@@ -957,6 +968,7 @@ export declare const pluginDataSchema: z.ZodObject<{
957
968
  displayValue: z.ZodOptional<z.ZodString>;
958
969
  value: z.ZodNumber;
959
970
  score: z.ZodNumber;
971
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
960
972
  details: z.ZodOptional<z.ZodObject<{
961
973
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
962
974
  message: z.ZodString;
@@ -1017,6 +1029,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1017
1029
  displayValue: z.ZodOptional<z.ZodString>;
1018
1030
  value: z.ZodNumber;
1019
1031
  score: z.ZodNumber;
1032
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1020
1033
  details: z.ZodOptional<z.ZodObject<{
1021
1034
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1022
1035
  message: z.ZodString;
@@ -1075,6 +1088,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1075
1088
  displayValue: z.ZodOptional<z.ZodString>;
1076
1089
  value: z.ZodNumber;
1077
1090
  score: z.ZodNumber;
1091
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1078
1092
  details: z.ZodOptional<z.ZodObject<{
1079
1093
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1080
1094
  message: z.ZodString;
@@ -1147,6 +1161,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1147
1161
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1148
1162
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1149
1163
  }, z.core.$strip>>>;
1164
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
1150
1165
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1151
1166
  }, z.core.$strip>;
1152
1167
  export declare const pluginConfigSchema: z.ZodObject<{
@@ -2026,6 +2041,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2026
2041
  displayValue: z.ZodOptional<z.ZodString>;
2027
2042
  value: z.ZodNumber;
2028
2043
  score: z.ZodNumber;
2044
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2029
2045
  details: z.ZodOptional<z.ZodObject<{
2030
2046
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2031
2047
  message: z.ZodString;
@@ -2084,6 +2100,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2084
2100
  displayValue: z.ZodOptional<z.ZodString>;
2085
2101
  value: z.ZodNumber;
2086
2102
  score: z.ZodNumber;
2103
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2087
2104
  details: z.ZodOptional<z.ZodObject<{
2088
2105
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2089
2106
  message: z.ZodString;
@@ -2144,6 +2161,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2144
2161
  displayValue: z.ZodOptional<z.ZodString>;
2145
2162
  value: z.ZodNumber;
2146
2163
  score: z.ZodNumber;
2164
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2147
2165
  details: z.ZodOptional<z.ZodObject<{
2148
2166
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2149
2167
  message: z.ZodString;
@@ -2202,6 +2220,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2202
2220
  displayValue: z.ZodOptional<z.ZodString>;
2203
2221
  value: z.ZodNumber;
2204
2222
  score: z.ZodNumber;
2223
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2205
2224
  details: z.ZodOptional<z.ZodObject<{
2206
2225
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2207
2226
  message: z.ZodString;
@@ -2274,6 +2293,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2274
2293
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
2275
2294
  isSkipped: z.ZodOptional<z.ZodBoolean>;
2276
2295
  }, z.core.$strip>>>;
2296
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
2277
2297
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2278
2298
  }, z.core.$strip>;
2279
2299
  /**
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { pluginAuditsSchema } from './audit.js';
3
3
  import { groupsSchema } from './group.js';
4
4
  import { createCheck } from './implementation/checks.js';
5
- import { materialIconSchema, metaSchema, packageVersionSchema, slugSchema, } from './implementation/schemas.js';
5
+ import { materialIconSchema, metaSchema, packageVersionSchema, scoreTargetSchema, slugSchema, } from './implementation/schemas.js';
6
6
  import { formatSlugsList, hasMissingStrings } from './implementation/utils.js';
7
7
  import { runnerConfigSchema, runnerFunctionSchema } from './runner-config.js';
8
8
  export const pluginContextSchema = z
@@ -10,24 +10,32 @@ export const pluginContextSchema = z
10
10
  .optional()
11
11
  .describe('Plugin-specific context data for helpers');
12
12
  export const pluginMetaSchema = packageVersionSchema()
13
- .merge(metaSchema({
13
+ .extend(metaSchema({
14
14
  titleDescription: 'Descriptive name',
15
15
  descriptionDescription: 'Description (markdown)',
16
16
  docsUrlDescription: 'Plugin documentation site',
17
17
  description: 'Plugin metadata',
18
- }))
19
- .merge(z.object({
18
+ }).shape)
19
+ .extend({
20
20
  slug: slugSchema.describe('Unique plugin slug within core config'),
21
21
  icon: materialIconSchema,
22
- }));
22
+ });
23
+ export const pluginScoreTargetsSchema = z
24
+ .union([
25
+ scoreTargetSchema,
26
+ z.record(z.string(), scoreTargetSchema.nonoptional()),
27
+ ])
28
+ .describe('Score targets that trigger a perfect score. Number for all audits or record { slug: target } for specific audits')
29
+ .optional();
23
30
  export const pluginDataSchema = z.object({
24
31
  runner: z.union([runnerConfigSchema, runnerFunctionSchema]),
25
32
  audits: pluginAuditsSchema,
26
33
  groups: groupsSchema,
34
+ scoreTargets: pluginScoreTargetsSchema,
27
35
  context: pluginContextSchema,
28
36
  });
29
37
  export const pluginConfigSchema = pluginMetaSchema
30
- .merge(pluginDataSchema)
38
+ .extend(pluginDataSchema.shape)
31
39
  .check(createCheck(findMissingSlugsInGroupRefs));
32
40
  // every listed group ref points to an audit within the plugin
33
41
  export function findMissingSlugsInGroupRefs({ audits, groups = [] }) {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-config.js","sourceRoot":"","sources":["../../../src/lib/plugin-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAc,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAc,YAAY,EAAE,MAAM,YAAY,CA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;QACd,OAAO,EAAE,6DAA6D,eAAe,CACnF,YAAY,CACb,EAAE;KACJ,CACF,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,MAAe,EAAE,MAAe;IAC/D,OAAO,iBAAiB,CACtB,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAC1D,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAC/B,CAAC;AACJ,CAAC"}
@@ -8,6 +8,7 @@ export declare const auditReportSchema: z.ZodObject<{
8
8
  displayValue: z.ZodOptional<z.ZodString>;
9
9
  value: z.ZodNumber;
10
10
  score: z.ZodNumber;
11
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
11
12
  details: z.ZodOptional<z.ZodObject<{
12
13
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
14
  message: z.ZodString;
@@ -950,6 +951,7 @@ export declare const pluginReportSchema: z.ZodObject<{
950
951
  displayValue: z.ZodOptional<z.ZodString>;
951
952
  value: z.ZodNumber;
952
953
  score: z.ZodNumber;
954
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
953
955
  details: z.ZodOptional<z.ZodObject<{
954
956
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
955
957
  message: z.ZodString;
@@ -1909,6 +1911,7 @@ export declare const reportSchema: z.ZodObject<{
1909
1911
  displayValue: z.ZodOptional<z.ZodString>;
1910
1912
  value: z.ZodNumber;
1911
1913
  score: z.ZodNumber;
1914
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1912
1915
  details: z.ZodOptional<z.ZodObject<{
1913
1916
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1914
1917
  message: z.ZodString;
@@ -1990,7 +1993,7 @@ export declare const reportSchema: z.ZodObject<{
1990
1993
  description: z.ZodOptional<z.ZodString>;
1991
1994
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1992
1995
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1993
- isBinary: z.ZodOptional<z.ZodBoolean>;
1996
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1994
1997
  }, z.core.$strip>>>;
1995
1998
  commit: z.ZodNullable<z.ZodObject<{
1996
1999
  hash: z.ZodString;
@@ -4,6 +4,7 @@ export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unkno
4
4
  displayValue: z.ZodOptional<z.ZodString>;
5
5
  value: z.ZodNumber;
6
6
  score: z.ZodNumber;
7
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
7
8
  details: z.ZodOptional<z.ZodObject<{
8
9
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
10
  message: z.ZodString;
@@ -62,6 +63,7 @@ export declare const outputTransformSchema: z.ZodPipe<z.ZodCustom<unknown, unkno
62
63
  displayValue: z.ZodOptional<z.ZodString>;
63
64
  value: z.ZodNumber;
64
65
  score: z.ZodNumber;
66
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
65
67
  details: z.ZodOptional<z.ZodObject<{
66
68
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
69
  message: z.ZodString;
@@ -134,6 +136,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
134
136
  displayValue: z.ZodOptional<z.ZodString>;
135
137
  value: z.ZodNumber;
136
138
  score: z.ZodNumber;
139
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
137
140
  details: z.ZodOptional<z.ZodObject<{
138
141
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
142
  message: z.ZodString;
@@ -192,6 +195,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
192
195
  displayValue: z.ZodOptional<z.ZodString>;
193
196
  value: z.ZodNumber;
194
197
  score: z.ZodNumber;
198
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
195
199
  details: z.ZodOptional<z.ZodObject<{
196
200
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
201
  message: z.ZodString;
@@ -262,6 +266,7 @@ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknow
262
266
  displayValue: z.ZodOptional<z.ZodString>;
263
267
  value: z.ZodNumber;
264
268
  score: z.ZodNumber;
269
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
265
270
  details: z.ZodOptional<z.ZodObject<{
266
271
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
272
  message: z.ZodString;
@@ -320,6 +325,7 @@ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknow
320
325
  displayValue: z.ZodOptional<z.ZodString>;
321
326
  value: z.ZodNumber;
322
327
  score: z.ZodNumber;
328
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
323
329
  details: z.ZodOptional<z.ZodObject<{
324
330
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
331
  message: z.ZodString;