From fa6db250a4614fa03c7f09cb3d80139ac292819c Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Thu, 29 Jan 2026 14:11:05 +1100 Subject: [PATCH] Fixing validation script --- eng/validate-collections.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eng/validate-collections.mjs b/eng/validate-collections.mjs index cb95657f..e85c1b87 100644 --- a/eng/validate-collections.mjs +++ b/eng/validate-collections.mjs @@ -2,12 +2,12 @@ import fs from "fs"; import path from "path"; -import { parseCollectionYaml, parseFrontmatter } from "./yaml-parser.mjs"; import { - ROOT_FOLDER, COLLECTIONS_DIR, MAX_COLLECTION_ITEMS, + ROOT_FOLDER, } from "./constants.mjs"; +import { parseCollectionYaml, parseFrontmatter } from "./yaml-parser.mjs"; // Validation functions function validateCollectionId(id) { @@ -177,10 +177,10 @@ function validateCollectionItems(items) { if (!item.kind || typeof item.kind !== "string") { return `Item ${i + 1} must have a kind string`; } - if (!["prompt", "instruction", "agent"].includes(item.kind)) { + if (!["prompt", "instruction", "agent", "skill"].includes(item.kind)) { return `Item ${ i + 1 - } kind must be one of: prompt, instruction, agent`; + } kind must be one of: prompt, instruction, agent, skill`; } // Validate file path exists @@ -365,4 +365,3 @@ try { console.error(`Error during validation: ${error.message}`); process.exit(1); } -