mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: main - Timestamp: 2026-01-21T01:40:05Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6eb9e16a4a
commit
9c0c2ea8d8
1 file changed
+11
-1
@@ -421,11 +421,21 @@ export async function executeUpgradeWithMissing(targetDir: string): Promise<Upgr
|
||||
// Add missing skills
|
||||
if (sourceSkillsDir) {
|
||||
const allSkills = Object.values(SKILLS_MAP).flat();
|
||||
const debugMode = process.env.DEBUG || process.env.CLAUDE_FLOW_DEBUG;
|
||||
if (debugMode) {
|
||||
console.log(`[DEBUG] Checking ${allSkills.length} skills from SKILLS_MAP`);
|
||||
}
|
||||
for (const skillName of [...new Set(allSkills)]) {
|
||||
const sourcePath = path.join(sourceSkillsDir, skillName);
|
||||
const targetPath = path.join(skillsDir, skillName);
|
||||
const sourceExists = fs.existsSync(sourcePath);
|
||||
const targetExists = fs.existsSync(targetPath);
|
||||
|
||||
if (fs.existsSync(sourcePath) && !fs.existsSync(targetPath)) {
|
||||
if (debugMode) {
|
||||
console.log(`[DEBUG] Skill '${skillName}': source=${sourceExists}, target=${targetExists}`);
|
||||
}
|
||||
|
||||
if (sourceExists && !targetExists) {
|
||||
copyDirRecursive(sourcePath, targetPath);
|
||||
result.addedSkills.push(skillName);
|
||||
result.created.push(`.claude/skills/${skillName}`);
|
||||
|
||||
Reference in new issue
Block a user