@code-pushup/models 0.75.0 → 0.77.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.75.0",
3
+ "version": "0.77.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, type PluginArtifactOptions, } 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, globPathSchema, 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, globPathSchema, 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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ACL,YAAY,EACZ,mBAAmB,GAGpB,MAAM,yBAAyB,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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AC;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,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"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { createDuplicateSlugsCheck, createDuplicatesCheck, } from './implementation/checks.js';
3
- import { metaSchema, nonnegativeNumberSchema, 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
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
@@ -15,12 +15,7 @@ export const categoryConfigSchema = scorableSchema('Category with a score calcul
15
15
  descriptionDescription: 'Category description',
16
16
  description: 'Meta info for category',
17
17
  }).shape)
18
- .extend({
19
- scoreTarget: nonnegativeNumberSchema
20
- .max(1)
21
- .describe('Pass/fail score threshold (0-1)')
22
- .optional(),
23
- });
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,CAA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,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"}
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"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { globPathSchema } from './implementation/schemas.js';
2
3
  /**
3
4
  * Generic schema for a tool command configuration, reusable across plugins.
4
5
  */
@@ -11,6 +12,8 @@ export const artifactGenerationCommandSchema = z.union([
11
12
  ]);
12
13
  export const pluginArtifactOptionsSchema = z.object({
13
14
  generateArtifactsCommand: artifactGenerationCommandSchema.optional(),
14
- artifactsPaths: z.union([z.string(), z.array(z.string()).min(1)]),
15
+ artifactsPaths: z
16
+ .union([globPathSchema, z.array(globPathSchema).min(1)])
17
+ .describe('File paths or glob patterns for artifact files'),
15
18
  });
16
19
  //# sourceMappingURL=configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/lib/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC;IACrD,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAC9D,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACrC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,wBAAwB,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACpE,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;CAClE,CAAC,CAAC"}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/lib/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC;IACrD,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAC9D,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACrC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,wBAAwB,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACpE,cAAc,EAAE,CAAC;SACd,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACvD,QAAQ,CAAC,gDAAgD,CAAC;CAC9D,CAAC,CAAC"}
@@ -15,6 +15,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
15
15
  search: "search";
16
16
  blink: "blink";
17
17
  table: "table";
18
+ json: "json";
18
19
  command: "command";
19
20
  "folder-robot": "folder-robot";
20
21
  "folder-src": "folder-src";
@@ -396,7 +397,6 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
396
397
  css: "css";
397
398
  sass: "sass";
398
399
  less: "less";
399
- json: "json";
400
400
  hjson: "hjson";
401
401
  jinja: "jinja";
402
402
  proto: "proto";
@@ -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;
@@ -990,11 +992,20 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
990
992
  }, z.core.$strip>>;
991
993
  }, z.core.$strip>>>]>>, unknown>>>;
992
994
  configFile: z.ZodOptional<z.ZodString>;
993
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
995
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
996
+ outputDir: z.ZodOptional<z.ZodString>;
997
+ filename: z.ZodOptional<z.ZodString>;
998
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
999
+ json: "json";
1000
+ md: "md";
1001
+ }>>>;
1002
+ skipReports: z.ZodOptional<z.ZodBoolean>;
1003
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
994
1004
  slug: z.ZodString;
995
1005
  displayValue: z.ZodOptional<z.ZodString>;
996
1006
  value: z.ZodNumber;
997
1007
  score: z.ZodNumber;
1008
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
998
1009
  details: z.ZodOptional<z.ZodObject<{
999
1010
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1000
1011
  message: z.ZodString;
@@ -1053,6 +1064,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1053
1064
  displayValue: z.ZodOptional<z.ZodString>;
1054
1065
  value: z.ZodNumber;
1055
1066
  score: z.ZodNumber;
1067
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1056
1068
  details: z.ZodOptional<z.ZodObject<{
1057
1069
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
1070
  message: z.ZodString;
@@ -1125,6 +1137,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1125
1137
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1126
1138
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1127
1139
  }, z.core.$strip>>>;
1140
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
1128
1141
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1129
1142
  }, z.core.$strip>>;
1130
1143
  persist: z.ZodOptional<z.ZodObject<{
@@ -1177,6 +1190,7 @@ export declare const coreConfigSchema: z.ZodObject<{
1177
1190
  search: "search";
1178
1191
  blink: "blink";
1179
1192
  table: "table";
1193
+ json: "json";
1180
1194
  command: "command";
1181
1195
  "folder-robot": "folder-robot";
1182
1196
  "folder-src": "folder-src";
@@ -1558,7 +1572,6 @@ export declare const coreConfigSchema: z.ZodObject<{
1558
1572
  css: "css";
1559
1573
  sass: "sass";
1560
1574
  less: "less";
1561
- json: "json";
1562
1575
  hjson: "hjson";
1563
1576
  jinja: "jinja";
1564
1577
  proto: "proto";
@@ -2039,6 +2052,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2039
2052
  displayValue: z.ZodOptional<z.ZodString>;
2040
2053
  value: z.ZodNumber;
2041
2054
  score: z.ZodNumber;
2055
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2042
2056
  details: z.ZodOptional<z.ZodObject<{
2043
2057
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
2058
  message: z.ZodString;
@@ -2097,6 +2111,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2097
2111
  displayValue: z.ZodOptional<z.ZodString>;
2098
2112
  value: z.ZodNumber;
2099
2113
  score: z.ZodNumber;
2114
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2100
2115
  details: z.ZodOptional<z.ZodObject<{
2101
2116
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2102
2117
  message: z.ZodString;
@@ -2152,11 +2167,20 @@ export declare const coreConfigSchema: z.ZodObject<{
2152
2167
  }, z.core.$strip>>;
2153
2168
  }, z.core.$strip>>>]>>, unknown>>>;
2154
2169
  configFile: z.ZodOptional<z.ZodString>;
2155
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2170
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
2171
+ outputDir: z.ZodOptional<z.ZodString>;
2172
+ filename: z.ZodOptional<z.ZodString>;
2173
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2174
+ json: "json";
2175
+ md: "md";
2176
+ }>>>;
2177
+ skipReports: z.ZodOptional<z.ZodBoolean>;
2178
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2156
2179
  slug: z.ZodString;
2157
2180
  displayValue: z.ZodOptional<z.ZodString>;
2158
2181
  value: z.ZodNumber;
2159
2182
  score: z.ZodNumber;
2183
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2160
2184
  details: z.ZodOptional<z.ZodObject<{
2161
2185
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2162
2186
  message: z.ZodString;
@@ -2215,6 +2239,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2215
2239
  displayValue: z.ZodOptional<z.ZodString>;
2216
2240
  value: z.ZodNumber;
2217
2241
  score: z.ZodNumber;
2242
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2218
2243
  details: z.ZodOptional<z.ZodObject<{
2219
2244
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2220
2245
  message: z.ZodString;
@@ -2287,6 +2312,7 @@ export declare const coreConfigSchema: z.ZodObject<{
2287
2312
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
2288
2313
  isSkipped: z.ZodOptional<z.ZodBoolean>;
2289
2314
  }, z.core.$strip>>>;
2315
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
2290
2316
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2291
2317
  }, z.core.$strip>>;
2292
2318
  persist: z.ZodOptional<z.ZodObject<{
@@ -2344,6 +2370,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
2344
2370
  search: "search";
2345
2371
  blink: "blink";
2346
2372
  table: "table";
2373
+ json: "json";
2347
2374
  command: "command";
2348
2375
  "folder-robot": "folder-robot";
2349
2376
  "folder-src": "folder-src";
@@ -2725,7 +2752,6 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
2725
2752
  css: "css";
2726
2753
  sass: "sass";
2727
2754
  less: "less";
2728
- json: "json";
2729
2755
  hjson: "hjson";
2730
2756
  jinja: "jinja";
2731
2757
  proto: "proto";
@@ -3206,6 +3232,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3206
3232
  displayValue: z.ZodOptional<z.ZodString>;
3207
3233
  value: z.ZodNumber;
3208
3234
  score: z.ZodNumber;
3235
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3209
3236
  details: z.ZodOptional<z.ZodObject<{
3210
3237
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3211
3238
  message: z.ZodString;
@@ -3264,6 +3291,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3264
3291
  displayValue: z.ZodOptional<z.ZodString>;
3265
3292
  value: z.ZodNumber;
3266
3293
  score: z.ZodNumber;
3294
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3267
3295
  details: z.ZodOptional<z.ZodObject<{
3268
3296
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3269
3297
  message: z.ZodString;
@@ -3319,11 +3347,20 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3319
3347
  }, z.core.$strip>>;
3320
3348
  }, z.core.$strip>>>]>>, unknown>>>;
3321
3349
  configFile: z.ZodOptional<z.ZodString>;
3322
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
3350
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
3351
+ outputDir: z.ZodOptional<z.ZodString>;
3352
+ filename: z.ZodOptional<z.ZodString>;
3353
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3354
+ json: "json";
3355
+ md: "md";
3356
+ }>>>;
3357
+ skipReports: z.ZodOptional<z.ZodBoolean>;
3358
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
3323
3359
  slug: z.ZodString;
3324
3360
  displayValue: z.ZodOptional<z.ZodString>;
3325
3361
  value: z.ZodNumber;
3326
3362
  score: z.ZodNumber;
3363
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3327
3364
  details: z.ZodOptional<z.ZodObject<{
3328
3365
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3329
3366
  message: z.ZodString;
@@ -3382,6 +3419,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3382
3419
  displayValue: z.ZodOptional<z.ZodString>;
3383
3420
  value: z.ZodNumber;
3384
3421
  score: z.ZodNumber;
3422
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
3385
3423
  details: z.ZodOptional<z.ZodObject<{
3386
3424
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
3387
3425
  message: z.ZodString;
@@ -3454,6 +3492,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
3454
3492
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
3455
3493
  isSkipped: z.ZodOptional<z.ZodBoolean>;
3456
3494
  }, z.core.$strip>>>;
3495
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
3457
3496
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3458
3497
  }, z.core.$strip>>;
3459
3498
  persist: z.ZodOptional<z.ZodObject<{
@@ -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"}
@@ -50,6 +50,7 @@ export declare function metaSchema(options?: {
50
50
  }, z.core.$strip>;
51
51
  /** Schema for a generalFilePath */
52
52
  export declare const filePathSchema: ZodString;
53
+ export declare const globPathSchema: ZodString;
53
54
  /** Schema for a fileNameSchema */
54
55
  export declare const fileNameSchema: ZodString;
55
56
  /** Schema for a positiveInt */
@@ -62,6 +63,8 @@ export declare function packageVersionSchema<TRequired extends boolean = false>(
62
63
  packageName: TRequired extends true ? ZodString : ZodOptional<ZodString>;
63
64
  version: TRequired extends true ? ZodString : ZodOptional<ZodString>;
64
65
  }>;
66
+ /** Schema for a binary score threshold */
67
+ export declare const scoreTargetSchema: ZodOptional<z.ZodNumber>;
65
68
  /** Schema for a weight */
66
69
  export declare const weightSchema: z.ZodNumber;
67
70
  export declare function weightedRefSchema(description: string, slugDescription: string): ZodObject<{
@@ -88,6 +91,7 @@ export declare const materialIconSchema: z.ZodEnum<{
88
91
  search: "search";
89
92
  blink: "blink";
90
93
  table: "table";
94
+ json: "json";
91
95
  command: "command";
92
96
  "folder-robot": "folder-robot";
93
97
  "folder-src": "folder-src";
@@ -469,7 +473,6 @@ export declare const materialIconSchema: z.ZodEnum<{
469
473
  css: "css";
470
474
  sass: "sass";
471
475
  less: "less";
472
- json: "json";
473
476
  hjson: "hjson";
474
477
  jinja: "jinja";
475
478
  proto: "proto";
@@ -92,6 +92,20 @@ export const filePathSchema = z
92
92
  .string()
93
93
  .trim()
94
94
  .min(1, { message: 'The path is invalid' });
95
+ /**
96
+ * Regex for glob patterns - validates file paths and glob patterns
97
+ * Allows normal paths and paths with glob metacharacters: *, **, {}, [], !, ?
98
+ * Excludes invalid path characters: <>"|
99
+ */
100
+ const globRegex = /^!?[^<>"|]+$/;
101
+ export const globPathSchema = z
102
+ .string()
103
+ .trim()
104
+ .min(1, { message: 'The glob pattern is invalid' })
105
+ .regex(globRegex, {
106
+ message: 'The path must be a valid file path or glob pattern (supports *, **, {}, [], !, ?)',
107
+ })
108
+ .describe('Schema for a glob pattern (supports wildcards like *, **, {}, !, etc.)');
95
109
  /** Schema for a fileNameSchema */
96
110
  export const fileNameSchema = z
97
111
  .string()
@@ -114,6 +128,11 @@ export function packageVersionSchema(options) {
114
128
  })
115
129
  .describe('NPM package name and version of a published package');
116
130
  }
131
+ /** Schema for a binary score threshold */
132
+ export const scoreTargetSchema = nonnegativeNumberSchema
133
+ .max(1)
134
+ .describe('Pass/fail score threshold (0-1)')
135
+ .optional();
117
136
  /** Schema for a weight */
118
137
  export const weightSchema = nonnegativeNumberSchema.describe('Coefficient for the given score (use weight 0 if only for display)');
119
138
  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,CAAC;AACb,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;KACtD,OAAO,CAAC,IAAI,CAAC,CAAC;AAGjB;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAGI;IACF,eAAe,EAAE,+BAA+B;IAChD,mBAAmB,EAAE,0BAA0B;CAChD;IAED,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC;QAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC;KAC3D,CAAC,CAAC;AACL,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,KAAK,CAAC,SAAS,EAAE;IAChB,OAAO,EACL,6GAA6G;CAChH,CAAC;KAC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,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"}
@@ -26,6 +26,7 @@ export declare const pluginMetaSchema: z.ZodObject<{
26
26
  search: "search";
27
27
  blink: "blink";
28
28
  table: "table";
29
+ json: "json";
29
30
  command: "command";
30
31
  "folder-robot": "folder-robot";
31
32
  "folder-src": "folder-src";
@@ -407,7 +408,6 @@ export declare const pluginMetaSchema: z.ZodObject<{
407
408
  css: "css";
408
409
  sass: "sass";
409
410
  less: "less";
410
- json: "json";
411
411
  hjson: "hjson";
412
412
  jinja: "jinja";
413
413
  proto: "proto";
@@ -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;
@@ -1012,11 +1024,20 @@ export declare const pluginDataSchema: z.ZodObject<{
1012
1024
  }, z.core.$strip>>;
1013
1025
  }, z.core.$strip>>>]>>, unknown>>>;
1014
1026
  configFile: z.ZodOptional<z.ZodString>;
1015
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
1027
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
1028
+ outputDir: z.ZodOptional<z.ZodString>;
1029
+ filename: z.ZodOptional<z.ZodString>;
1030
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1031
+ json: "json";
1032
+ md: "md";
1033
+ }>>>;
1034
+ skipReports: z.ZodOptional<z.ZodBoolean>;
1035
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
1016
1036
  slug: z.ZodString;
1017
1037
  displayValue: z.ZodOptional<z.ZodString>;
1018
1038
  value: z.ZodNumber;
1019
1039
  score: z.ZodNumber;
1040
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1020
1041
  details: z.ZodOptional<z.ZodObject<{
1021
1042
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1022
1043
  message: z.ZodString;
@@ -1075,6 +1096,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1075
1096
  displayValue: z.ZodOptional<z.ZodString>;
1076
1097
  value: z.ZodNumber;
1077
1098
  score: z.ZodNumber;
1099
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
1078
1100
  details: z.ZodOptional<z.ZodObject<{
1079
1101
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1080
1102
  message: z.ZodString;
@@ -1147,6 +1169,7 @@ export declare const pluginDataSchema: z.ZodObject<{
1147
1169
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
1148
1170
  isSkipped: z.ZodOptional<z.ZodBoolean>;
1149
1171
  }, z.core.$strip>>>;
1172
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
1150
1173
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1151
1174
  }, z.core.$strip>;
1152
1175
  export declare const pluginConfigSchema: z.ZodObject<{
@@ -1164,6 +1187,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
1164
1187
  search: "search";
1165
1188
  blink: "blink";
1166
1189
  table: "table";
1190
+ json: "json";
1167
1191
  command: "command";
1168
1192
  "folder-robot": "folder-robot";
1169
1193
  "folder-src": "folder-src";
@@ -1545,7 +1569,6 @@ export declare const pluginConfigSchema: z.ZodObject<{
1545
1569
  css: "css";
1546
1570
  sass: "sass";
1547
1571
  less: "less";
1548
- json: "json";
1549
1572
  hjson: "hjson";
1550
1573
  jinja: "jinja";
1551
1574
  proto: "proto";
@@ -2026,6 +2049,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2026
2049
  displayValue: z.ZodOptional<z.ZodString>;
2027
2050
  value: z.ZodNumber;
2028
2051
  score: z.ZodNumber;
2052
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2029
2053
  details: z.ZodOptional<z.ZodObject<{
2030
2054
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2031
2055
  message: z.ZodString;
@@ -2084,6 +2108,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2084
2108
  displayValue: z.ZodOptional<z.ZodString>;
2085
2109
  value: z.ZodNumber;
2086
2110
  score: z.ZodNumber;
2111
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2087
2112
  details: z.ZodOptional<z.ZodObject<{
2088
2113
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2089
2114
  message: z.ZodString;
@@ -2139,11 +2164,20 @@ export declare const pluginConfigSchema: z.ZodObject<{
2139
2164
  }, z.core.$strip>>;
2140
2165
  }, z.core.$strip>>>]>>, unknown>>>;
2141
2166
  configFile: z.ZodOptional<z.ZodString>;
2142
- }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2167
+ }, z.core.$strip>, z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
2168
+ outputDir: z.ZodOptional<z.ZodString>;
2169
+ filename: z.ZodOptional<z.ZodString>;
2170
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2171
+ json: "json";
2172
+ md: "md";
2173
+ }>>>;
2174
+ skipReports: z.ZodOptional<z.ZodBoolean>;
2175
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
2143
2176
  slug: z.ZodString;
2144
2177
  displayValue: z.ZodOptional<z.ZodString>;
2145
2178
  value: z.ZodNumber;
2146
2179
  score: z.ZodNumber;
2180
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2147
2181
  details: z.ZodOptional<z.ZodObject<{
2148
2182
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2149
2183
  message: z.ZodString;
@@ -2202,6 +2236,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2202
2236
  displayValue: z.ZodOptional<z.ZodString>;
2203
2237
  value: z.ZodNumber;
2204
2238
  score: z.ZodNumber;
2239
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
2205
2240
  details: z.ZodOptional<z.ZodObject<{
2206
2241
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
2207
2242
  message: z.ZodString;
@@ -2274,6 +2309,7 @@ export declare const pluginConfigSchema: z.ZodObject<{
2274
2309
  docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
2275
2310
  isSkipped: z.ZodOptional<z.ZodBoolean>;
2276
2311
  }, z.core.$strip>>>;
2312
+ scoreTargets: z.ZodOptional<z.ZodUnion<readonly [z.ZodOptional<z.ZodNumber>, z.ZodRecord<z.ZodString, z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>>]>>;
2277
2313
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2278
2314
  }, z.core.$strip>;
2279
2315
  /**
@@ -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,MAA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EAAE,EAAK;IAC1B,MAAM,YAAY,GAAG,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,CACL,YAAY,IAAI;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;
@@ -86,6 +87,7 @@ export declare const pluginReportSchema: z.ZodObject<{
86
87
  search: "search";
87
88
  blink: "blink";
88
89
  table: "table";
90
+ json: "json";
89
91
  command: "command";
90
92
  "folder-robot": "folder-robot";
91
93
  "folder-src": "folder-src";
@@ -467,7 +469,6 @@ export declare const pluginReportSchema: z.ZodObject<{
467
469
  css: "css";
468
470
  sass: "sass";
469
471
  less: "less";
470
- json: "json";
471
472
  hjson: "hjson";
472
473
  jinja: "jinja";
473
474
  proto: "proto";
@@ -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;
@@ -1045,6 +1047,7 @@ export declare const reportSchema: z.ZodObject<{
1045
1047
  search: "search";
1046
1048
  blink: "blink";
1047
1049
  table: "table";
1050
+ json: "json";
1048
1051
  command: "command";
1049
1052
  "folder-robot": "folder-robot";
1050
1053
  "folder-src": "folder-src";
@@ -1426,7 +1429,6 @@ export declare const reportSchema: z.ZodObject<{
1426
1429
  css: "css";
1427
1430
  sass: "sass";
1428
1431
  less: "less";
1429
- json: "json";
1430
1432
  hjson: "hjson";
1431
1433
  jinja: "jinja";
1432
1434
  proto: "proto";
@@ -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;
@@ -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;
@@ -257,11 +261,20 @@ export declare const runnerConfigSchema: z.ZodObject<{
257
261
  * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerconfig}
258
262
  */
259
263
  export type RunnerConfig = z.infer<typeof runnerConfigSchema>;
260
- export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodFunctionArgs, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
264
+ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknown>, z.ZodTransform<z.core.$InferInnerFunctionTypeAsync<z.core.$ZodTuple<[z.ZodObject<{
265
+ outputDir: z.ZodOptional<z.ZodString>;
266
+ filename: z.ZodOptional<z.ZodString>;
267
+ format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
268
+ json: "json";
269
+ md: "md";
270
+ }>>>;
271
+ skipReports: z.ZodOptional<z.ZodBoolean>;
272
+ }, z.core.$strip>], null>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
261
273
  slug: z.ZodString;
262
274
  displayValue: z.ZodOptional<z.ZodString>;
263
275
  value: z.ZodNumber;
264
276
  score: z.ZodNumber;
277
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
265
278
  details: z.ZodOptional<z.ZodObject<{
266
279
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
280
  message: z.ZodString;
@@ -320,6 +333,7 @@ export declare const runnerFunctionSchema: z.ZodPipe<z.ZodCustom<unknown, unknow
320
333
  displayValue: z.ZodOptional<z.ZodString>;
321
334
  value: z.ZodNumber;
322
335
  score: z.ZodNumber;
336
+ scoreTarget: z.ZodOptional<z.ZodNumber>;
323
337
  details: z.ZodOptional<z.ZodObject<{
324
338
  issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
339
  message: z.ZodString;
@@ -2,6 +2,7 @@ import { z } from 'zod/v4';
2
2
  import { auditOutputsSchema } from './audit-output.js';
3
3
  import { convertAsyncZodFunctionToSchema } from './implementation/function.js';
4
4
  import { filePathSchema } from './implementation/schemas.js';
5
+ import { persistConfigSchema } from './persist-config.js';
5
6
  export const outputTransformSchema = convertAsyncZodFunctionToSchema(z.function({
6
7
  input: [z.unknown()],
7
8
  output: z.union([auditOutputsSchema, z.promise(auditOutputsSchema)]),
@@ -16,6 +17,7 @@ export const runnerConfigSchema = z
16
17
  })
17
18
  .describe('How to execute runner');
18
19
  export const runnerFunctionSchema = convertAsyncZodFunctionToSchema(z.function({
20
+ input: [persistConfigSchema],
19
21
  output: z.union([auditOutputsSchema, z.promise(auditOutputsSchema)]),
20
22
  }));
21
23
  export const runnerFilesPathsSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"runner-config.js","sourceRoot":"","sources":["../../../src/lib/runner-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,M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