mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: rebrand/ruvflow-umbrella - Timestamp: 2026-02-09T18:18:47Z - 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
33e6a74ca4
commit
fafd2bd286
1 file changed
+16
@@ -450,6 +450,22 @@ export async function executeUpgrade(targetDir: string, upgradeSettings = false)
|
||||
try { fs.chmodSync(targetPath, '755'); } catch {}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Source not found (npx with broken paths) — use generated fallbacks
|
||||
const generatedCritical: Record<string, string> = {
|
||||
'hook-handler.cjs': generateHookHandler(),
|
||||
'intelligence.cjs': generateIntelligenceStub(),
|
||||
};
|
||||
for (const [helperName, content] of Object.entries(generatedCritical)) {
|
||||
const targetPath = path.join(targetDir, '.claude', 'helpers', helperName);
|
||||
if (fs.existsSync(targetPath)) {
|
||||
result.updated.push(`.claude/helpers/${helperName}`);
|
||||
} else {
|
||||
result.created.push(`.claude/helpers/${helperName}`);
|
||||
}
|
||||
fs.writeFileSync(targetPath, content, 'utf-8');
|
||||
try { fs.chmodSync(targetPath, '755'); } catch {}
|
||||
}
|
||||
}
|
||||
|
||||
// 1. ALWAYS update statusline helper (force overwrite)
|
||||
|
||||
Reference in new issue
Block a user