@rune-kit/rune 2.4.0 → 2.6.0

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.
@@ -61,7 +61,17 @@ export async function runDoctor({ outputRoot, adapter, config, runeRoot }) {
61
61
  // Check 3: Count skill files
62
62
  const files = await readdir(outputDir);
63
63
  const skillFiles = files.filter((f) => f.startsWith('rune-') && f !== `rune-index${adapter.fileExtension}`);
64
- const expectedSkillCount = 55 - (config.skills?.disabled?.length || 0);
64
+
65
+ // Dynamic expected count: scan source skills/ directory
66
+ const sourceSkillsDir = path.join(runeRoot, 'skills');
67
+ let sourceSkillCount = 0;
68
+ if (existsSync(sourceSkillsDir)) {
69
+ const entries = await readdir(sourceSkillsDir, { withFileTypes: true });
70
+ sourceSkillCount = entries.filter(
71
+ (e) => e.isDirectory() && existsSync(path.join(sourceSkillsDir, e.name, 'SKILL.md')),
72
+ ).length;
73
+ }
74
+ const expectedSkillCount = sourceSkillCount - (config.skills?.disabled?.length || 0);
65
75
 
66
76
  if (skillFiles.length >= expectedSkillCount) {
67
77
  results.checks.push({ name: 'Skill files', status: 'pass', detail: `${skillFiles.length}/${expectedSkillCount}` });