mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: rebrand/ruvflow-umbrella - Timestamp: 2026-02-08T22:15:49Z - 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
1d8bbb6beb
commit
c094228839
1 file changed
+13
-10
@@ -430,19 +430,22 @@ export async function executeUpgrade(targetDir: string, upgradeSettings = false)
|
||||
}
|
||||
}
|
||||
|
||||
// 0. ALWAYS update auto-memory-hook.mjs (force overwrite)
|
||||
const autoMemoryHookPath = path.join(targetDir, '.claude', 'helpers', 'auto-memory-hook.mjs');
|
||||
// 0. ALWAYS update critical helpers (force overwrite)
|
||||
const sourceHelpersForUpgrade = findSourceHelpersDir();
|
||||
if (sourceHelpersForUpgrade) {
|
||||
const sourceAutoMemory = path.join(sourceHelpersForUpgrade, 'auto-memory-hook.mjs');
|
||||
if (fs.existsSync(sourceAutoMemory)) {
|
||||
if (fs.existsSync(autoMemoryHookPath)) {
|
||||
result.updated.push('.claude/helpers/auto-memory-hook.mjs');
|
||||
} else {
|
||||
result.created.push('.claude/helpers/auto-memory-hook.mjs');
|
||||
const criticalHelpers = ['auto-memory-hook.mjs', 'hook-handler.cjs'];
|
||||
for (const helperName of criticalHelpers) {
|
||||
const targetPath = path.join(targetDir, '.claude', 'helpers', helperName);
|
||||
const sourcePath = path.join(sourceHelpersForUpgrade, helperName);
|
||||
if (fs.existsSync(sourcePath)) {
|
||||
if (fs.existsSync(targetPath)) {
|
||||
result.updated.push(`.claude/helpers/${helperName}`);
|
||||
} else {
|
||||
result.created.push(`.claude/helpers/${helperName}`);
|
||||
}
|
||||
fs.copyFileSync(sourcePath, targetPath);
|
||||
try { fs.chmodSync(targetPath, '755'); } catch {}
|
||||
}
|
||||
fs.copyFileSync(sourceAutoMemory, autoMemoryHookPath);
|
||||
fs.chmodSync(autoMemoryHookPath, '755');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user