@standards-kit/conform 0.2.0 → 0.3.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/dist/{chunk-YGDEM6K5.js → chunk-FJZMUGYW.js} +13 -10
- package/dist/chunk-FJZMUGYW.js.map +1 -0
- package/dist/{chunk-NADY2H35.js → chunk-YKKWXHYS.js} +2 -2
- package/dist/{chunk-NADY2H35.js.map → chunk-YKKWXHYS.js.map} +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/process.d.ts +2 -0
- package/dist/cli/utils.d.ts +19 -0
- package/dist/cli/validate.d.ts +2 -0
- package/dist/cli.js +3892 -3873
- package/dist/cli.js.map +1 -1
- package/dist/core/schema.d.ts +167 -1709
- package/dist/{core-QRFGIQ42.js → core-LFX2BFLG.js} +2 -2
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/infra/schemas.d.ts +41 -533
- package/dist/{infra-TO54IUSC.js → infra-RFEWGWPW.js} +2 -2
- package/dist/mcp/standards/parser.d.ts +2 -14
- package/dist/{mcp-73FZXT3P.js → mcp-T2JFU4E2.js} +3 -3
- package/dist/{registry-JRCQAIHR.js → registry-J2LVW3M2.js} +2 -2
- package/dist/{scan-RHQWHASY.js → scan-BZH5IR3Z.js} +3 -3
- package/dist/scan-BZH5IR3Z.js.map +1 -0
- package/dist/{standards-XAZKTKYJ.js → standards-ALMA4VIU.js} +2 -2
- package/dist/{sync-P3UZECLW.js → sync-EGJ2CSYK.js} +2 -2
- package/dist/sync-EGJ2CSYK.js.map +1 -0
- package/dist/{validate-J5E336GX.js → validate-X4K2SHYT.js} +4 -4
- package/dist/{validate-J5E336GX.js.map → validate-X4K2SHYT.js.map} +1 -1
- package/package.json +10 -6
- package/dist/chunk-YGDEM6K5.js.map +0 -1
- package/dist/scan-RHQWHASY.js.map +0 -1
- package/dist/sync-P3UZECLW.js.map +0 -1
- /package/dist/{core-QRFGIQ42.js.map → core-LFX2BFLG.js.map} +0 -0
- /package/dist/{infra-TO54IUSC.js.map → infra-RFEWGWPW.js.map} +0 -0
- /package/dist/{mcp-73FZXT3P.js.map → mcp-T2JFU4E2.js.map} +0 -0
- /package/dist/{registry-JRCQAIHR.js.map → registry-J2LVW3M2.js.map} +0 -0
- /package/dist/{standards-XAZKTKYJ.js.map → standards-ALMA4VIU.js.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
mergeConfigs,
|
|
21
21
|
parseRegistryUrl,
|
|
22
22
|
resolveExtends
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FJZMUGYW.js";
|
|
24
24
|
import "./chunk-RHM53NLG.js";
|
|
25
25
|
export {
|
|
26
26
|
CONFIG_FILE_NAME,
|
|
@@ -43,4 +43,4 @@ export {
|
|
|
43
43
|
parseRegistryUrl,
|
|
44
44
|
resolveExtends
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=core-
|
|
46
|
+
//# sourceMappingURL=core-LFX2BFLG.js.map
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
getProjectRoot,
|
|
27
27
|
loadConfig,
|
|
28
28
|
loadConfigAsync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FJZMUGYW.js";
|
|
30
30
|
import {
|
|
31
31
|
AccountIdSchema,
|
|
32
32
|
AccountKeySchema,
|
|
@@ -5585,7 +5585,6 @@ var RepoRunner = class extends BaseProcessToolRunner {
|
|
|
5585
5585
|
violations.push(...this.checkBypassActorsSettings(ruleset, bpConfig, branch));
|
|
5586
5586
|
return violations;
|
|
5587
5587
|
}
|
|
5588
|
-
// eslint-disable-next-line complexity
|
|
5589
5588
|
checkPullRequestRuleSettings(prRule, bpConfig, branch) {
|
|
5590
5589
|
const violations = [];
|
|
5591
5590
|
const params = prRule?.parameters;
|
|
@@ -5622,7 +5621,6 @@ var RepoRunner = class extends BaseProcessToolRunner {
|
|
|
5622
5621
|
}
|
|
5623
5622
|
return violations;
|
|
5624
5623
|
}
|
|
5625
|
-
// eslint-disable-next-line complexity
|
|
5626
5624
|
checkStatusChecksRuleSettings(statusRule, bpConfig, branch) {
|
|
5627
5625
|
const violations = [];
|
|
5628
5626
|
const params = statusRule?.parameters;
|
|
@@ -6665,7 +6663,7 @@ async function scanRepository(repo, config) {
|
|
|
6665
6663
|
return aggregateResults(repoInfo, [rulesetsResult, filesResult]);
|
|
6666
6664
|
}
|
|
6667
6665
|
async function validateProcess(options) {
|
|
6668
|
-
const { loadConfigAsync: loadConfigAsync2 } = await import("./core-
|
|
6666
|
+
const { loadConfigAsync: loadConfigAsync2 } = await import("./core-LFX2BFLG.js");
|
|
6669
6667
|
const { config } = await loadConfigAsync2(options.config);
|
|
6670
6668
|
const result = await scanRepository(options.repo, config);
|
|
6671
6669
|
const fs22 = await import("fs");
|
|
@@ -7118,7 +7116,7 @@ function parseGuideline(fileContent, filename) {
|
|
|
7118
7116
|
const { data, content } = matter2(fileContent);
|
|
7119
7117
|
const result = frontmatterSchema.safeParse(data);
|
|
7120
7118
|
if (!result.success) {
|
|
7121
|
-
const errors = result.error.
|
|
7119
|
+
const errors = result.error.issues.map((e) => `${e.path.join(".")}: ${e.message}`).join(", ");
|
|
7122
7120
|
throw new StandardsError(`Invalid frontmatter in ${filename}: ${errors}`);
|
|
7123
7121
|
}
|
|
7124
7122
|
return {
|