@r_masseater/msch 0.61.0 → 0.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +3 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/fix.mjs +36 -2
- package/dist/fix.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -14102,6 +14102,7 @@ const checkPublishedSkills = Effect.fn("checkPublishedSkills")(function* checkPu
|
|
|
14102
14102
|
const RULE$13 = "skill-file";
|
|
14103
14103
|
const SKILL_FILE = /(?:^|\/)SKILL\.md$/u;
|
|
14104
14104
|
const INSTALLED = /(?:^|\/)\.(?:agents|claude|codex)\/skills\//u;
|
|
14105
|
+
const FIXTURE = /(?:^|\/)fixtures\//u;
|
|
14105
14106
|
const MARKDOWN = ".md";
|
|
14106
14107
|
const LICENSE_FILE = /^LICEN[CS]E(?:\.[^/]+)?$/iu;
|
|
14107
14108
|
const FRONTMATTER = /^---\n(?<yaml>[\s\S]*?)\n---\n/u;
|
|
@@ -14127,7 +14128,7 @@ const Frontmatter = Schema.Struct({
|
|
|
14127
14128
|
});
|
|
14128
14129
|
const decodeFrontmatter = Schema.decodeUnknownOption(Frontmatter);
|
|
14129
14130
|
const offsetOf$1 = (source, pattern) => pipe(String$1.search(pattern)(source), Option.getOrElse(() => START$9));
|
|
14130
|
-
const frontmatterOf = (source) => pipe(groupOf$2("yaml")(FRONTMATTER.exec(source)), Option.flatMap((yaml) =>
|
|
14131
|
+
const frontmatterOf = (source) => pipe(groupOf$2("yaml")(FRONTMATTER.exec(source)), Option.flatMap(Option.liftThrowable((yaml) => parse$2(yaml))), Option.flatMap(decodeFrontmatter));
|
|
14131
14132
|
const bodyStartOf = (source) => pipe(Option.fromNullishOr(FRONTMATTER.exec(source)), Option.map((found) => found[START$9].length), Option.getOrElse(() => START$9));
|
|
14132
14133
|
const headingText = (heading) => pipe(heading, Option.map((title) => `"# ${title}"`), Option.getOrElse(() => "missing"));
|
|
14133
14134
|
const nameProblems = ({ source, directory }, name, folder) => {
|
|
@@ -14215,7 +14216,7 @@ const problemsIn$7 = Effect.fn("problemsIn")(function* problemsIn(root, listed,
|
|
|
14215
14216
|
/** @internal */
|
|
14216
14217
|
const checkSkillFiles = Effect.fn("checkSkillFiles")(function* checkSkillFiles(root) {
|
|
14217
14218
|
const listed = yield* (yield* RepositoryFiles).listedFiles(root);
|
|
14218
|
-
const skills = pipe(listed, Array.filter((name) => SKILL_FILE.test(name) && !INSTALLED.test(name)));
|
|
14219
|
+
const skills = pipe(listed, Array.filter((name) => SKILL_FILE.test(name) && !INSTALLED.test(name) && !FIXTURE.test(name)));
|
|
14219
14220
|
const found = yield* Effect.forEach(skills, (name) => problemsIn$7(root, listed, name), { concurrency: READ_CONCURRENCY$4 });
|
|
14220
14221
|
return Array.flatten(found);
|
|
14221
14222
|
});
|