mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
fix(coding-agent): ignore unknown skill frontmatter fields
This commit is contained in:
parent
fcfbc82ec2
commit
d0679dcfc0
5 changed files with 6 additions and 42 deletions
|
|
@ -65,19 +65,14 @@ describe("skills", () => {
|
|||
expect(diagnostics.some((d: ResourceDiagnostic) => d.message.includes("description is required"))).toBe(true);
|
||||
});
|
||||
|
||||
it("should warn when unknown frontmatter fields are present", () => {
|
||||
it("should ignore unknown frontmatter fields", () => {
|
||||
const { skills, diagnostics } = loadSkillsFromDir({
|
||||
dir: join(fixturesDir, "unknown-field"),
|
||||
source: "test",
|
||||
});
|
||||
|
||||
expect(skills).toHaveLength(1);
|
||||
expect(
|
||||
diagnostics.some((d: ResourceDiagnostic) => d.message.includes('unknown frontmatter field "author"')),
|
||||
).toBe(true);
|
||||
expect(
|
||||
diagnostics.some((d: ResourceDiagnostic) => d.message.includes('unknown frontmatter field "version"')),
|
||||
).toBe(true);
|
||||
expect(diagnostics).toHaveLength(0);
|
||||
});
|
||||
|
||||
it("should load nested skills recursively", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue