@haposoft/cafekit 0.3.5 → 0.3.6
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/bin/install.js +28 -23
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -467,32 +467,37 @@ function copyPlatformFiles(platformKey, results, options = {}) {
|
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
// Copy additional required skills based on platform
|
|
471
|
+
let requiredSkills = [];
|
|
470
472
|
if (platformKey === 'claude') {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
473
|
+
requiredSkills = CLAUDE_MIGRATION_MANIFEST?.skills?.required || [];
|
|
474
|
+
} else if (platformKey === 'antigravity') {
|
|
475
|
+
// Antigravity also needs impact-analysis skill
|
|
476
|
+
requiredSkills = ['impact-analysis'];
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
requiredSkills
|
|
480
|
+
.filter((skillName) => skillName !== 'specs')
|
|
481
|
+
.forEach((skillName) => {
|
|
482
|
+
const skillSource = path.join(skillsSourceDir, skillName);
|
|
483
|
+
const skillDest = path.join(platform.skillsDir, skillName);
|
|
484
|
+
|
|
485
|
+
if (fs.existsSync(skillSource)) {
|
|
486
|
+
const skillExisted = fs.existsSync(skillDest);
|
|
487
|
+
copyRecursive(skillSource, skillDest, options);
|
|
488
|
+
results.installedSkills++;
|
|
489
|
+
|
|
490
|
+
if (shouldOverwriteManagedFiles && skillExisted) {
|
|
491
|
+
console.log(` ↻ Skill updated: ${skillName}`);
|
|
492
|
+
results.updated++;
|
|
490
493
|
} else {
|
|
491
|
-
|
|
492
|
-
console.log(` ⚠ Missing dependency template: ${path.join(platform.skillsDir, skillName)}`);
|
|
494
|
+
console.log(` ✓ Skill installed: ${skillName}`);
|
|
493
495
|
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
+
} else {
|
|
497
|
+
results.missingDependencies++;
|
|
498
|
+
console.log(` ⚠ Missing dependency template: ${path.join(platform.skillsDir, skillName)}`);
|
|
499
|
+
}
|
|
500
|
+
});
|
|
496
501
|
}
|
|
497
502
|
|
|
498
503
|
// Copy agents
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haposoft/cafekit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Spec-Driven Development workflow for AI coding assistants. Supports Claude Code and Antigravity with spec-first and code-test-review workflows.",
|
|
5
5
|
"author": "Haposoft <nghialt@haposoft.com>",
|
|
6
6
|
"license": "MIT",
|