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

rUv91151e4d45b2
diff --git a/v3/@claude-flow/cli/src/mcp-tools/progress-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/progress-tools.ts
index a98672d01d..18ab7ac894 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/progress-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/progress-tools.ts
@@ -163,15 +163,16 @@ async function calculateProgress(): Promise<V3ProgressMetrics> {
} catch (_e) { /* ignore */ }
}
- // Count hooks subcommands
- let hooksSubcommands = 20; // Approximate
+ // Count hooks subcommands (count const *Command definitions)
+ let hooksSubcommands = 27; // Default to documented count
const hooksPath = join(V3_DIR, '@claude-flow/cli/src/commands/hooks.ts');
if (existsSync(hooksPath)) {
try {
const content = readFileSync(hooksPath, 'utf-8');
- const matches = content.match(/subcommands:\s*\[([^\]]+)\]/s);
- if (matches) {
- hooksSubcommands = (matches[1].match(/Command/g) || []).length || 20;
+ // Count command definitions like "const fooCommand: Command = {"
+ const commandDefs = content.match(/const\s+\w+Command\s*:\s*Command\s*=/g);
+ if (commandDefs && commandDefs.length > 0) {
+ hooksSubcommands = commandDefs.length;
}
} catch (_e) { /* ignore */ }
}