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

test(plugins): align namespace and stable hook shims

ruvnet5e66f065e90b
diff --git a/.claude-plugin/scripts/ruflo-hook.cjs b/.claude-plugin/scripts/ruflo-hook.cjs
index 729c62f279..5b94703c2c 100644
--- a/.claude-plugin/scripts/ruflo-hook.cjs
+++ b/.claude-plugin/scripts/ruflo-hook.cjs
@@ -14,7 +14,7 @@
* Behaviour mirrors ruflo-hook.sh:
* 1. Reads hook JSON payload from stdin.
* 2. Prefers a locally installed `ruflo` or `claude-flow` binary.
- * 3. Falls back to `npx --prefer-offline ruflo@alpha`.
+ * 3. Falls back to `npx --prefer-offline ruflo@latest`.
* 4. Always exits 0 β€” hook subcommands are best-effort telemetry.
* 5. Swallows all stderr β€” nothing should surface to Claude Code.
*
@@ -157,7 +157,7 @@ function main() {
// a spurious failure even though the shim itself works correctly.
// The bash version doesn't hit this because it backgrounded the work.
if (process.env.RUFLO_HOOK_SKIP_NPX !== '1') {
- invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@alpha'], hookArgs, stdinData);
+ invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@latest'], hookArgs, stdinData);
}
done();
diff --git a/plugin/scripts/ruflo-hook.cjs b/plugin/scripts/ruflo-hook.cjs
index 729c62f279..5b94703c2c 100644
--- a/plugin/scripts/ruflo-hook.cjs
+++ b/plugin/scripts/ruflo-hook.cjs
@@ -14,7 +14,7 @@
* Behaviour mirrors ruflo-hook.sh:
* 1. Reads hook JSON payload from stdin.
* 2. Prefers a locally installed `ruflo` or `claude-flow` binary.
- * 3. Falls back to `npx --prefer-offline ruflo@alpha`.
+ * 3. Falls back to `npx --prefer-offline ruflo@latest`.
* 4. Always exits 0 β€” hook subcommands are best-effort telemetry.
* 5. Swallows all stderr β€” nothing should surface to Claude Code.
*
@@ -157,7 +157,7 @@ function main() {
// a spurious failure even though the shim itself works correctly.
// The bash version doesn't hit this because it backgrounded the work.
if (process.env.RUFLO_HOOK_SKIP_NPX !== '1') {
- invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@alpha'], hookArgs, stdinData);
+ invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@latest'], hookArgs, stdinData);
}
done();
diff --git a/plugins/ruflo-core/scripts/ruflo-hook.cjs b/plugins/ruflo-core/scripts/ruflo-hook.cjs
index 729c62f279..5b94703c2c 100644
--- a/plugins/ruflo-core/scripts/ruflo-hook.cjs
+++ b/plugins/ruflo-core/scripts/ruflo-hook.cjs
@@ -14,7 +14,7 @@
* Behaviour mirrors ruflo-hook.sh:
* 1. Reads hook JSON payload from stdin.
* 2. Prefers a locally installed `ruflo` or `claude-flow` binary.
- * 3. Falls back to `npx --prefer-offline ruflo@alpha`.
+ * 3. Falls back to `npx --prefer-offline ruflo@latest`.
* 4. Always exits 0 β€” hook subcommands are best-effort telemetry.
* 5. Swallows all stderr β€” nothing should surface to Claude Code.
*
@@ -157,7 +157,7 @@ function main() {
// a spurious failure even though the shim itself works correctly.
// The bash version doesn't hit this because it backgrounded the work.
if (process.env.RUFLO_HOOK_SKIP_NPX !== '1') {
- invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@alpha'], hookArgs, stdinData);
+ invokeHook('npx', ['--prefer-offline', '--yes', 'ruflo@latest'], hookArgs, stdinData);
}
done();
diff --git a/scripts/smoke-neural-trader-portfolio-cg.mjs b/scripts/smoke-neural-trader-portfolio-cg.mjs
index 50a593f4f5..ee90969138 100644
--- a/scripts/smoke-neural-trader-portfolio-cg.mjs
+++ b/scripts/smoke-neural-trader-portfolio-cg.mjs
@@ -153,8 +153,8 @@ if (!existsSync(SKILL_MD)) {
'the MCP tool that powers Phase 3 must be allow-listed',
);
check(
- 'skill declares `mcp__claude-flow__memory_store` for artifact persistence',
- /^allowed-tools:[^\n]*mcp__claude-flow__memory_store/m.test(skill),
+ 'skill declares plugin-qualified `memory_store` for artifact persistence',
+ /^allowed-tools:[^\n]*mcp__plugin_ruflo-core_ruflo__memory_store/m.test(skill),
'persistence to trading-risk namespace requires memory_store',
);
check(