diff --git a/lib/skill-check.gen.js b/lib/skill-check.gen.js index caf6f17..c05d28d 100644 --- a/lib/skill-check.gen.js +++ b/lib/skill-check.gen.js @@ -1,7 +1,7 @@ // Generated by scripts/skill-check-bundle.mjs: don't edit, run it again. // The published half of Spacesheep's skill checker (the format: SKILL.md, spacesheep.yaml's // shape, the folder's bytes and the hash), built from spacesheep-dev/spacesheep at -// d657a28cb55409d363f4da068eeb7ce716bcc08a (2026-12-01, the last commit to change these files): +// 90ca8542f34bd5b1bfbfd3af6dc134fa007b07c1 (2026-12-04, the last commit to change these files): // shared/skill-files.ts // shared/skill-format.ts // with yaml 2.9.0, whose licence follows: @@ -6364,6 +6364,7 @@ var SKILL_FORMAT_LIMITS = { bodyLines: 500, /** spacesheep.yaml. */ titleChars: 80, + makesChars: 140, tags: 8, tagChars: 32, settings: 10, @@ -6518,6 +6519,7 @@ function checkSkillFormat(files, opts, readDeclared) { name: md.name, description: md.description, title: extras.title ?? titleFromName(md.name), + ...extras.makes ? { makes: extras.makes } : {}, emoji: extras.emoji ?? "", ...extras.starter ? { starter: extras.starter } : {}, tags: extras.tags, @@ -6854,7 +6856,7 @@ function plain(node) { } return null; } -var YAML_KEYS = ["title", "emoji", "tags", "scopes", "triggers", "tools", "sends_to", "settings", "starter"]; +var YAML_KEYS = ["title", "makes", "emoji", "tags", "scopes", "triggers", "tools", "sends_to", "settings", "starter"]; function readSpacesheepYaml(byPath, readDeclared, problems, warnings) { const extras = { tags: [], settings: [], declares: [] }; if (byPath.has("spacesheep.yml")) warnings.push("spacesheep.yml is read by nobody: Spacesheep reads spacesheep.yaml"); @@ -6896,6 +6898,12 @@ function readSpacesheepYaml(byPath, readDeclared, problems, warnings) { else if (chars(t) > SKILL_FORMAT_LIMITS.titleChars) p(`title is over ${SKILL_FORMAT_LIMITS.titleChars} characters`); else extras.title = t; } + if (has(y, "makes")) { + const t = oneLine(y.makes); + if (t === null || !t) p("makes must be one line of text"); + else if (chars(t) > SKILL_FORMAT_LIMITS.makesChars) p(`makes is over ${SKILL_FORMAT_LIMITS.makesChars} characters`); + else extras.makes = t; + } if (has(y, "emoji")) { const e = typeof y.emoji === "string" ? y.emoji.trim() : null; if (e === null || !isOneEmoji(e)) p("emoji must be one emoji"); @@ -7171,4 +7179,4 @@ function sha256Hex(data) { for (const word of H) hex += word.toString(16).padStart(8, "0"); return hex; } -module.exports.BUILT_FROM = {"repo":"spacesheep-dev/spacesheep","commit":"d657a28cb55409d363f4da068eeb7ce716bcc08a","date":"2026-12-01","files":["shared/skill-files.ts","shared/skill-format.ts"],"yaml":"2.9.0"}; +module.exports.BUILT_FROM = {"repo":"spacesheep-dev/spacesheep","commit":"90ca8542f34bd5b1bfbfd3af6dc134fa007b07c1","date":"2026-12-04","files":["shared/skill-files.ts","shared/skill-format.ts"],"yaml":"2.9.0"}; diff --git a/package.json b/package.json index 20849d4..ed3a5f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "spacesheep", - "version": "1.44.0", + "version": "1.45.0", "description": "Publish web pages to spacesheep.dev from a terminal or CI: `npx spacesheep deploy ./dist`", "bin": { "spacesheep": "./bin/spacesheep.js" diff --git a/test/skill-lint.test.js b/test/skill-lint.test.js index 6a6d822..75eed8c 100644 --- a/test/skill-lint.test.js +++ b/test/skill-lint.test.js @@ -125,6 +125,13 @@ test("docs/ is checked as the Docs tab reads it: SUMMARY.md's dead links and pag ]); }); +test("spacesheep.yaml's makes: is one line of up to 140 characters", () => { + const ok = lint(write({ ...skill(), "my-skill/spacesheep.yaml": "makes: A hello, said back to you\n" })); + assert.strictEqual(ok.ok, true, ok.problems.join("; ")); + const long = lint(write({ ...skill(), "my-skill/spacesheep.yaml": `makes: ${"x".repeat(141)}\n` })); + assert.deepStrictEqual([long.ok, long.problems], [false, ["spacesheep.yaml: makes is over 140 characters"]]); +}); + test("the three refusals are the import's words, and refuse", () => { const none = lint(write({ "README.md": "# Nothing\n", "docs/a.md": "a\n" })); assert.deepStrictEqual([none.ok, none.problems], [false, [SAID.none]]);