Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv545ba7ea5a70
diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts
index 6cac2d3502..554d36fdbd 100644
--- a/v3/@claude-flow/cli/src/init/executor.ts
+++ b/v3/@claude-flow/cli/src/init/executor.ts
@@ -430,6 +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');
+ 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');
+ }
+ fs.copyFileSync(sourceAutoMemory, autoMemoryHookPath);
+ fs.chmodSync(autoMemoryHookPath, '755');
+ }
+ }
+
// 1. ALWAYS update statusline helper (force overwrite)
const statuslinePath = path.join(targetDir, '.claude', 'helpers', 'statusline.cjs');
// Use default options with statusline config