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

rUvfafd2bd28629
diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts
index d88c6602f1..e607199fa2 100644
--- a/v3/@claude-flow/cli/src/init/executor.ts
+++ b/v3/@claude-flow/cli/src/init/executor.ts
@@ -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)