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

rUv580e43782bbe
diff --git a/v3/@claude-flow/cli/src/commands/init.ts b/v3/@claude-flow/cli/src/commands/init.ts
index d8d2da2f28..57c28c8ca3 100644
--- a/v3/@claude-flow/cli/src/commands/init.ts
+++ b/v3/@claude-flow/cli/src/commands/init.ts
@@ -220,7 +220,34 @@ const initAction = async (ctx: CommandContext): Promise<CommandResult> => {
output.writeln();
output.printSuccess('All services started');
- } else {
+ }
+
+ // Handle --with-embeddings
+ const withEmbeddings = ctx.flags['with-embeddings'] || ctx.flags.withEmbeddings;
+ const embeddingModel = (ctx.flags['embedding-model'] || ctx.flags.embeddingModel || 'all-MiniLM-L6-v2') as string;
+
+ if (withEmbeddings) {
+ output.writeln();
+ output.printInfo('Initializing ONNX embedding subsystem...');
+
+ const { execSync } = await import('child_process');
+
+ try {
+ output.writeln(output.dim(` Model: ${embeddingModel}`));
+ output.writeln(output.dim(' Hyperbolic: Enabled (Poincaré ball)'));
+ execSync(`npx @claude-flow/cli@latest embeddings init --model ${embeddingModel} --no-download --force 2>/dev/null`, {
+ stdio: 'pipe',
+ cwd: ctx.cwd,
+ timeout: 30000
+ });
+ output.writeln(output.success(' ✓ Embeddings initialized'));
+ output.writeln(output.dim(' Run "embeddings init --download" to download model'));
+ } catch (err) {
+ output.writeln(output.warning(' Embedding initialization skipped (run manually)'));
+ }
+ }
+
+ if (!startDaemon && !startAll) {
// Next steps (only if not auto-starting)
output.writeln(output.bold('Next steps:'));
output.printList([