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

rUv576b4b740d08
diff --git a/v3/@claude-flow/memory/src/auto-memory-bridge.ts b/v3/@claude-flow/memory/src/auto-memory-bridge.ts
index 4ae5dad039..21aca8dcc4 100644
--- a/v3/@claude-flow/memory/src/auto-memory-bridge.ts
+++ b/v3/@claude-flow/memory/src/auto-memory-bridge.ts
@@ -920,10 +920,18 @@ function pruneSectionsToFit(
function buildIndexLines(
sections: Record<string, string[]>,
topicMapping: Record<string, string>,
+ sectionOrder?: string[],
): string[] {
const lines: string[] = ['# Claude Flow V3 Project Memory', ''];
- for (const [category, summaries] of Object.entries(sections)) {
+ // Use provided order, then append any remaining sections
+ const orderedCategories = sectionOrder
+ ? [...sectionOrder, ...Object.keys(sections).filter((k) => !sectionOrder.includes(k))]
+ : Object.keys(sections);
+
+ for (const category of orderedCategories) {
+ const summaries = sections[category];
+ if (!summaries || summaries.length === 0) continue;
const label = CATEGORY_LABELS[category] || category;
const filename = topicMapping[category] || `${category}.md`;