skillbox 0.2.0 → 0.2.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.
@@ -80,18 +80,18 @@ const importGlobalSkills = async (options) => {
80
80
  const discovered = await discoverSkills(paths);
81
81
  const index = await loadIndex();
82
82
  const seen = new Set(index.skills.map((skill) => skill.name));
83
- const imported = [];
84
- const skipped = [];
83
+ const imported = new Set();
84
+ const skipped = new Set();
85
85
  for (const skill of discovered) {
86
86
  if (seen.has(skill.name)) {
87
- skipped.push(skill.name);
87
+ skipped.add(skill.name);
88
88
  continue;
89
89
  }
90
90
  const markdown = await fs.readFile(skill.skillFile, "utf8");
91
91
  const parsed = parseSkillMarkdown(markdown);
92
92
  const metadata = buildMetadata(parsed, { type: "local" });
93
93
  if (!parsed.description) {
94
- skipped.push(skill.name);
94
+ skipped.add(skill.name);
95
95
  continue;
96
96
  }
97
97
  await ensureSkillsDir();
@@ -110,11 +110,11 @@ const importGlobalSkills = async (options) => {
110
110
  ],
111
111
  });
112
112
  index.skills = next.skills;
113
- imported.push(metadata.name);
113
+ imported.add(metadata.name);
114
114
  }
115
115
  await saveIndex(sortIndex(index));
116
116
  return {
117
- imported: imported.sort(),
118
- skipped: skipped.sort(),
117
+ imported: Array.from(imported).sort(),
118
+ skipped: Array.from(skipped).sort(),
119
119
  };
120
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillbox",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Local-first, agent-agnostic skills manager",
5
5
  "license": "MIT",
6
6
  "author": "Christian Anagnostou",