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

rUv48cad2007a3f
diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.ts
index 1dde3c0d59..eb10cc073d 100644
--- a/v3/@claude-flow/cli/src/commands/hooks.ts
+++ b/v3/@claude-flow/cli/src/commands/hooks.ts
@@ -833,12 +833,18 @@ const pretrainCommand: Command = {
strategiesLearned: number;
trajectoriesEvaluated: number;
contradictionsResolved: number;
+ documentsIndexed?: number;
+ embeddingsGenerated?: number;
+ hyperbolicProjections?: number;
};
duration: number;
}>('hooks/pretrain', {
- path,
+ path: repoPath,
depth,
skipCache: ctx.flags.skipCache || false,
+ withEmbeddings,
+ embeddingModel,
+ fileTypes: fileTypes.split(',').map((t: string) => t.trim()),
});
spinner.succeed('Pretraining completed');
@@ -849,23 +855,40 @@ const pretrainCommand: Command = {
}
output.writeln();
+
+ // Base stats
+ const tableData = [
+ { metric: 'Files Analyzed', value: result.stats.filesAnalyzed },
+ { metric: 'Patterns Extracted', value: result.stats.patternsExtracted },
+ { metric: 'Strategies Learned', value: result.stats.strategiesLearned },
+ { metric: 'Trajectories Evaluated', value: result.stats.trajectoriesEvaluated },
+ { metric: 'Contradictions Resolved', value: result.stats.contradictionsResolved },
+ ];
+
+ // Add embedding stats if available
+ if (withEmbeddings && result.stats.documentsIndexed !== undefined) {
+ tableData.push(
+ { metric: 'Documents Indexed', value: result.stats.documentsIndexed },
+ { metric: 'Embeddings Generated', value: result.stats.embeddingsGenerated || 0 },
+ { metric: 'Hyperbolic Projections', value: result.stats.hyperbolicProjections || 0 }
+ );
+ }
+
+ tableData.push({ metric: 'Duration', value: `${(result.duration / 1000).toFixed(1)}s` });
+
output.printTable({
columns: [
{ key: 'metric', header: 'Metric', width: 30 },
{ key: 'value', header: 'Value', width: 15, align: 'right' }
],
- data: [
- { metric: 'Files Analyzed', value: result.stats.filesAnalyzed },
- { metric: 'Patterns Extracted', value: result.stats.patternsExtracted },
- { metric: 'Strategies Learned', value: result.stats.strategiesLearned },
- { metric: 'Trajectories Evaluated', value: result.stats.trajectoriesEvaluated },
- { metric: 'Contradictions Resolved', value: result.stats.contradictionsResolved },
- { metric: 'Duration', value: `${(result.duration / 1000).toFixed(1)}s` }
- ]
+ data: tableData
});
output.writeln();
output.printSuccess('Repository intelligence bootstrapped successfully');
+ if (withEmbeddings) {
+ output.writeln(output.dim(' Semantic search enabled: Use "embeddings search -q <query>" to search'));
+ }
output.writeln(output.dim(' Next step: Run "claude-flow hooks build-agents" to generate optimized configs'));
return { success: true, data: result };