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

fix(#1899): ruflo-core hooks call `npx ruflo@alpha` not `npx claude-flow@alpha`

Reuven01149515029d
diff --git a/plugins/ruflo-core/.claude-plugin/plugin.json b/plugins/ruflo-core/.claude-plugin/plugin.json
index 26e41a8cba..95237697a0 100644
--- a/plugins/ruflo-core/.claude-plugin/plugin.json
+++ b/plugins/ruflo-core/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-core",
"description": "Foundation plugin — registers the ruflo MCP server (300+ tools across memory/agentdb/embeddings/hooks/aidefence/neural/autopilot/browser/agent/swarm), provides 3 generalist agents (coder/researcher/reviewer), 3 first-run skills, and a curated plugin-discovery catalog",
- "version": "0.2.1",
+ "version": "0.2.2",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-core/hooks/hooks.json b/plugins/ruflo-core/hooks/hooks.json
index 168400eee1..3b713b98d2 100644
--- a/plugins/ruflo-core/hooks/hooks.json
+++ b/plugins/ruflo-core/hooks/hooks.json
@@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
- "command": "cat | npx claude-flow@alpha hooks modify-bash"
+ "command": "cat | npx ruflo@alpha hooks modify-bash"
}
]
},
@@ -15,7 +15,7 @@
"hooks": [
{
"type": "command",
- "command": "cat | npx claude-flow@alpha hooks modify-file"
+ "command": "cat | npx ruflo@alpha hooks modify-file"
}
]
}
@@ -26,7 +26,7 @@
"hooks": [
{
"type": "command",
- "command": "/bin/bash -c 'INPUT=$(cat); CMD=$(printf %s \"$INPUT\" | jq -r \".tool_input.command // empty\"); [ -z \"$CMD\" ] && exit 0; EXIT=$(printf %s \"$INPUT\" | jq -r \".tool_response.exit_code // 0\"); SUCCESS=$([ \"$EXIT\" = \"0\" ] && echo true || echo false); npx claude-flow@alpha hooks post-command -c \"$CMD\" -s \"$SUCCESS\" -e \"$EXIT\"'"
+ "command": "/bin/bash -c 'INPUT=$(cat); CMD=$(printf %s \"$INPUT\" | jq -r \".tool_input.command // empty\"); [ -z \"$CMD\" ] && exit 0; EXIT=$(printf %s \"$INPUT\" | jq -r \".tool_response.exit_code // 0\"); SUCCESS=$([ \"$EXIT\" = \"0\" ] && echo true || echo false); npx ruflo@alpha hooks post-command -c \"$CMD\" -s \"$SUCCESS\" -e \"$EXIT\"'"
}
]
},
@@ -35,7 +35,7 @@
"hooks": [
{
"type": "command",
- "command": "/bin/bash -c 'INPUT=$(cat); FILE=$(printf %s \"$INPUT\" | jq -r \".tool_input.file_path // .tool_input.path // empty\"); [ -z \"$FILE\" ] && exit 0; npx claude-flow@alpha hooks post-edit -f \"$FILE\" -s true'"
+ "command": "/bin/bash -c 'INPUT=$(cat); FILE=$(printf %s \"$INPUT\" | jq -r \".tool_input.file_path // .tool_input.path // empty\"); [ -z \"$FILE\" ] && exit 0; npx ruflo@alpha hooks post-edit -f \"$FILE\" -s true'"
}
]
}
@@ -65,7 +65,7 @@
"hooks": [
{
"type": "command",
- "command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
+ "command": "npx ruflo@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
}
]
}
diff --git a/plugins/ruflo-core/scripts/test-hooks.mjs b/plugins/ruflo-core/scripts/test-hooks.mjs
index c17728cb03..b690e6e095 100644
--- a/plugins/ruflo-core/scripts/test-hooks.mjs
+++ b/plugins/ruflo-core/scripts/test-hooks.mjs
@@ -9,7 +9,7 @@
* - Output records the *intended* value (the file path / command), not a
* stray boolean like "true" — the symptom that #1859 reported
*
- * The script substitutes `npx claude-flow@alpha` → the local CLI binary, so
+ * The script substitutes `npx ruflo@alpha` → the local CLI binary, so
* we exercise the same flag wiring users hit in production but pinned to
* the build under test.
*
@@ -47,7 +47,7 @@ const post = hooks.hooks?.PostToolUse ?? [];
const findHook = (matcher) => {
const hit = post.find(h => h.matcher === matcher);
if (!hit) throw new Error(`No PostToolUse hook with matcher=${matcher}`);
- return hit.hooks[0].command.replace(/npx claude-flow@alpha/g, cliInvoke);
+ return hit.hooks[0].command.replace(/npx ruflo@alpha/g, cliInvoke);
};
const cmdBash = findHook('Bash');