@crustjs/skills 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -230,12 +230,13 @@ async function loadBundleFiles(sourceDir) {
230
230
  const collected = await collectBundleEntries(canonicalRoot, canonicalRoot, "", /* @__PURE__ */ new Set([canonicalRoot]));
231
231
  const skillMd = collected.find((f) => f.relPath === SKILL_MD);
232
232
  if (!skillMd) throw new Error(`Extra skill directory is missing SKILL.md at its root "${canonicalRoot}". Every extra skill directory must contain a top-level SKILL.md file.`);
233
+ const files = await Promise.all(collected.map(async (entry) => ({
234
+ path: entry.relPath,
235
+ content: await readFile(entry.absPath)
236
+ })));
233
237
  return {
234
- files: await Promise.all(collected.map(async (entry) => ({
235
- path: entry.relPath,
236
- content: await readFile(entry.absPath)
237
- }))),
238
- frontmatter: requireSkillFrontmatter(probeFrontmatter(await readFile(skillMd.absPath, "utf-8")), `Extra skill SKILL.md at "${join(canonicalRoot, SKILL_MD)}"`)
238
+ files,
239
+ frontmatter: requireSkillFrontmatter(probeFrontmatter(files[collected.indexOf(skillMd)].content.toString("utf-8")), `Extra skill SKILL.md at "${join(canonicalRoot, SKILL_MD)}"`)
239
240
  };
240
241
  }
241
242
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crustjs/skills",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Package and install agent skills for AI coding assistants.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -47,18 +47,18 @@
47
47
  "dependencies": {
48
48
  "@crustjs/progress": "^0.1.1",
49
49
  "@crustjs/prompts": "^0.2.2",
50
- "@crustjs/style": "^0.3.2"
50
+ "@crustjs/style": "^0.3.3"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@crustjs/config": "0.0.0",
54
- "@crustjs/core": "0.3.0",
55
- "@crustjs/extensions": "0.3.0",
54
+ "@crustjs/core": "0.3.1",
55
+ "@crustjs/extensions": "0.3.1",
56
56
  "@crustjs/testing": "0.1.2",
57
57
  "@crustjs/utils": "0.0.0",
58
58
  "tsdown": "^0.23.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@crustjs/core": "^0.3.0",
61
+ "@crustjs/core": "^0.3.1",
62
62
  "typescript": "^7.0.0"
63
63
  },
64
64
  "peerDependenciesMeta": {