harnesstrim 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/cli.mjs +4 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -508,7 +508,9 @@ function listShippedSkills(skillsSourceDir) {
508
508
  }
509
509
  function existingSkillNames(dest) {
510
510
  try {
511
- return fs4.readdirSync(dest, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name);
511
+ return fs4.readdirSync(dest, { withFileTypes: true }).filter(
512
+ (e) => e.isDirectory() && fs4.existsSync(path5.join(dest, e.name, "SKILL.md")) && fs4.statSync(path5.join(dest, e.name, "SKILL.md")).isFile()
513
+ ).map((e) => e.name);
512
514
  } catch {
513
515
  return [];
514
516
  }
@@ -1124,7 +1126,7 @@ function loadMetrics(filePath) {
1124
1126
  // package.json
1125
1127
  var package_default = {
1126
1128
  name: "harnesstrim",
1127
- version: "0.3.0",
1129
+ version: "0.3.1",
1128
1130
  description: "HarnessTrim CLI: doctor (diagnose token waste), install adapters, run benchmarks.",
1129
1131
  license: "MIT",
1130
1132
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harnesstrim",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "HarnessTrim CLI: doctor (diagnose token waste), install adapters, run benchmarks.",
5
5
  "license": "MIT",
6
6
  "type": "module",