@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.
- package/README.md +36 -17
- package/compiler/__tests__/pack-split.test.js +141 -1
- package/compiler/__tests__/parser.test.js +147 -55
- package/compiler/__tests__/scripts-bundling.test.js +10 -11
- package/compiler/__tests__/skill-index.test.js +218 -0
- package/compiler/adapters/antigravity.js +71 -57
- package/compiler/bin/rune.js +355 -355
- package/compiler/doctor.js +11 -1
- package/compiler/emitter.js +678 -466
- package/compiler/parser.js +267 -247
- package/hooks/hooks.json +12 -0
- package/hooks/intent-router/index.cjs +108 -0
- package/hooks/pre-tool-guard/index.cjs +177 -68
- package/package.json +63 -63
- package/skills/brainstorm/SKILL.md +2 -0
- package/skills/cook/SKILL.md +661 -648
- package/skills/debug/SKILL.md +394 -392
- package/skills/deploy/SKILL.md +2 -0
- package/skills/fix/SKILL.md +283 -281
- package/skills/onboard/SKILL.md +7 -0
- package/skills/plan/SKILL.md +344 -342
- package/skills/preflight/SKILL.md +362 -360
- package/skills/review/SKILL.md +491 -489
- package/skills/scout/SKILL.md +1 -0
- package/skills/sentinel/SKILL.md +319 -299
- package/skills/session-bridge/SKILL.md +1 -0
- package/skills/team/SKILL.md +1 -0
- package/skills/test/SKILL.md +587 -585
- package/skills/verification/SKILL.md +1 -0
- package/skills/watchdog/SKILL.md +2 -0
package/compiler/doctor.js
CHANGED
|
@@ -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
|
-
|
|
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}` });
|