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(mods): vitest suites in agntcy, arena and graph-intelligence are *.spec.ts so claude plugin test collects only the kit tests

ruvf94269846d43
diff --git a/plugins/ruflo-agntcy/.claude-plugin/plugin.json b/plugins/ruflo-agntcy/.claude-plugin/plugin.json
index c1d97ea1f0..dfc1655309 100644
--- a/plugins/ruflo-agntcy/.claude-plugin/plugin.json
+++ b/plugins/ruflo-agntcy/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-agntcy",
"description": "AGNTCY/Outshift Internet-of-Cognition runtime integration for Ruflo — SLIM secure transport for cross-host agent coordination, CASA intent-scoped tool authorization enforcement, optional IOC Layer 9 coordination events, and AGNTCY identity/observability spans (ADR-380). Optional, removable augmentation per ADR-150; degrades gracefully when AGNTCY/SLIM packages are not installed.",
- "version": "0.2.2",
+ "version": "0.2.3",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-agntcy/README.md b/plugins/ruflo-agntcy/README.md
index 4fa00a078a..dad2f53f89 100644
--- a/plugins/ruflo-agntcy/README.md
+++ b/plugins/ruflo-agntcy/README.md
@@ -60,4 +60,4 @@ AGNTCY also ships as a function-hook mod (ADR-445 pattern; hooks in `hooks/`, lo
- **`/agntcy-mod`**: answered locally. `/agntcy-mod status`, `/agntcy-mod config`.
- **Status file**: `.claude-flow/agntcy-mod/status.json` (`version`, `updatedMs`, counters), written at session start; the console reads it.
-Test: `claude plugin validate plugins/ruflo-agntcy`, `claude plugin test plugins/ruflo-agntcy` (this plugin also holds vitest files that `claude plugin test` cannot load; run it on a copy holding only `.claude-plugin`, `hooks` and `tests/mod.test.ts`), and `bash plugins/ruflo-agntcy/scripts/smoke.sh`.
+Test: `claude plugin validate plugins/ruflo-agntcy`, `claude plugin test plugins/ruflo-agntcy` (its vitest suites are `*.spec.ts`, so the kit collects only `tests/mod.test.ts`), and `bash plugins/ruflo-agntcy/scripts/smoke.sh`.
diff --git a/plugins/ruflo-agntcy/scripts/smoke.sh b/plugins/ruflo-agntcy/scripts/smoke.sh
index 819d642f2a..dcd9e38a45 100755
--- a/plugins/ruflo-agntcy/scripts/smoke.sh
+++ b/plugins/ruflo-agntcy/scripts/smoke.sh
@@ -8,9 +8,9 @@ step() { printf "→ %s ... " "$1"; }
ok() { printf "PASS\n"; PASS=$((PASS+1)); }
bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }
-step "0. plugin.json declares 0.2.2"
+step "0. plugin.json declares 0.2.3"
v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
-[[ "$v" == "0.2.2" ]] && ok || bad "expected 0.2.2, got '$v'"
+[[ "$v" == "0.2.3" ]] && ok || bad "expected 0.2.3, got '$v'"
# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rule
step "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"
diff --git a/plugins/ruflo-agntcy/src/casa/__tests__/compile.test.ts b/plugins/ruflo-agntcy/src/casa/__tests__/compile.spec.ts
similarity index 100%
rename from plugins/ruflo-agntcy/src/casa/__tests__/compile.test.ts
rename to plugins/ruflo-agntcy/src/casa/__tests__/compile.spec.ts
diff --git a/plugins/ruflo-agntcy/src/casa/__tests__/enforce.test.ts b/plugins/ruflo-agntcy/src/casa/__tests__/enforce.spec.ts
similarity index 100%
rename from plugins/ruflo-agntcy/src/casa/__tests__/enforce.test.ts
rename to plugins/ruflo-agntcy/src/casa/__tests__/enforce.spec.ts
diff --git a/plugins/ruflo-agntcy/src/receipts/__tests__/casa-receipt.test.ts b/plugins/ruflo-agntcy/src/receipts/__tests__/casa-receipt.spec.ts
similarity index 100%
rename from plugins/ruflo-agntcy/src/receipts/__tests__/casa-receipt.test.ts
rename to plugins/ruflo-agntcy/src/receipts/__tests__/casa-receipt.spec.ts
diff --git a/plugins/ruflo-arena/.claude-plugin/plugin.json b/plugins/ruflo-arena/.claude-plugin/plugin.json
index f7a55af9e3..298ed7175e 100644
--- a/plugins/ruflo-arena/.claude-plugin/plugin.json
+++ b/plugins/ruflo-arena/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "ruflo-arena",
- "version": "0.2.2",
+ "version": "0.2.3",
"description": "Competitive ruliology for Ruflo swarms — arenas, tournaments, and adaptive co-evolution of program strategies (ADR-147/148). Strategies-as-programs compete under payoff games; tournaments produce Wolfram-style competitive arrays; hill-climb and mutual co-evolution discover winners empirically.",
"author": {
"name": "ruvnet",
diff --git a/plugins/ruflo-arena/README.md b/plugins/ruflo-arena/README.md
index b92c7d8baa..dea3d2f1e0 100644
--- a/plugins/ruflo-arena/README.md
+++ b/plugins/ruflo-arena/README.md
@@ -85,4 +85,4 @@ Arena also ships as a function-hook mod (ADR-445 pattern; hooks in `hooks/`, loa
- **`/arena-mod`**: answered locally. `/arena-mod status`, `/arena-mod strategies`.
- **Status file**: `.claude-flow/arena-mod/status.json` (`version`, `updatedMs`, counters), written at session start; the console reads it.
-Test: `claude plugin validate plugins/ruflo-arena`, `claude plugin test plugins/ruflo-arena` (this plugin also holds vitest files that `claude plugin test` cannot load; run it on a copy holding only `.claude-plugin`, `hooks` and `tests/mod.test.ts`), and `bash plugins/ruflo-arena/scripts/smoke.sh`.
+Test: `claude plugin validate plugins/ruflo-arena`, `claude plugin test plugins/ruflo-arena` (its vitest suites are `*.spec.ts`, so the kit collects only `tests/mod.test.ts`), and `bash plugins/ruflo-arena/scripts/smoke.sh`.
diff --git a/plugins/ruflo-arena/scripts/smoke.sh b/plugins/ruflo-arena/scripts/smoke.sh
index 8e26ee9858..55293d89e3 100755
--- a/plugins/ruflo-arena/scripts/smoke.sh
+++ b/plugins/ruflo-arena/scripts/smoke.sh
@@ -8,9 +8,9 @@ step() { printf "→ %s ... " "$1"; }
ok() { printf "PASS\n"; PASS=$((PASS+1)); }
bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }
-step "0. plugin.json declares 0.2.2"
+step "0. plugin.json declares 0.2.3"
v=$(grep -E '"version"' "$ROOT/.claude-plugin/plugin.json" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
-[[ "$v" == "0.2.2" ]] && ok || bad "expected 0.2.2, got '$v'"
+[[ "$v" == "0.2.3" ]] && ok || bad "expected 0.2.3, got '$v'"
# M1. The mod (ADR-445 pattern): hooks module registered, files within the 500-line rule
step "M1. mod: hooks.json names register.ts, every hook file is present and under 500 lines"
diff --git a/plugins/ruflo-arena/tests/evolution.test.ts b/plugins/ruflo-arena/tests/evolution.spec.ts
similarity index 100%
rename from plugins/ruflo-arena/tests/evolution.test.ts
rename to plugins/ruflo-arena/tests/evolution.spec.ts
diff --git a/plugins/ruflo-arena/tests/games-arena.test.ts b/plugins/ruflo-arena/tests/games-arena.spec.ts
similarity index 100%
rename from plugins/ruflo-arena/tests/games-arena.test.ts
rename to plugins/ruflo-arena/tests/games-arena.spec.ts
diff --git a/plugins/ruflo-arena/tests/mcp-tools.test.ts b/plugins/ruflo-arena/tests/mcp-tools.spec.ts
similarity index 100%
rename from plugins/ruflo-arena/tests/mcp-tools.test.ts
rename to plugins/ruflo-arena/tests/mcp-tools.spec.ts
diff --git a/plugins/ruflo-arena/tests/tournament.test.ts b/plugins/ruflo-arena/tests/tournament.spec.ts
similarity index 100%
rename from plugins/ruflo-arena/tests/tournament.test.ts
rename to plugins/ruflo-arena/tests/tournament.spec.ts
diff --git a/plugins/ruflo-arena/vitest.config.ts b/plugins/ruflo-arena/vitest.config.ts
index 12c79f297e..fbcb464b57 100644
--- a/plugins/ruflo-arena/vitest.config.ts
+++ b/plugins/ruflo-arena/vitest.config.ts
@@ -2,9 +2,9 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
- include: ['tests/**/*.test.ts'],
- // mod.test.ts runs under `claude plugin test` (claude-code/testing), not vitest.
- exclude: ['tests/mod.test.ts', 'node_modules/**'],
+ include: ['tests/**/*.spec.ts'],
+ // vitest suites are *.spec.ts; *.test.ts is reserved for the engine kit (claude plugin test).
+ exclude: ['node_modules/**'],
environment: 'node',
globals: false,
},
diff --git a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json
index c985cb9aae..9370177014 100644
--- a/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json
+++ b/plugins/ruflo-graph-intelligence/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-graph-intelligence",
"description": "RuFlo Graph Intelligence Engine — real-time relationship intelligence with complexity-aware execution. Single-entry personalized PageRank, streaming delta updates, witness-signed reasoning artifacts, federation-distributable PR vectors. Built on [email protected].",
- "version": "0.2.0-alpha.3",
+ "version": "0.2.0-alpha.4",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-graph-intelligence/README.md b/plugins/ruflo-graph-intelligence/README.md
index 49632a74a2..c5e2c064c0 100644
--- a/plugins/ruflo-graph-intelligence/README.md
+++ b/plugins/ruflo-graph-intelligence/README.md
@@ -2,7 +2,7 @@
Graph Intelligence Engine for RuFlo: single-entry personalized PageRank, streaming delta updates and witness-signed reasoning artifacts (ADR-123), built on sublinear-time-solver. Library: `npm test`, `npm run build`.
-## As a mod (0.2.0-alpha.3)
+## As a mod (0.2.0-alpha.4)
A function-hook mod ships beside the skills (ADR-445 pattern). Needs a Claude Code with mods (2.1.287+); older builds ignore it. No network, no process spawning: it only tightens calls to this plugin's own tools and reads through tools already connected.
diff --git a/plugins/ruflo-graph-intelligence/tests/adapter-registry.test.ts b/plugins/ruflo-graph-intelligence/tests/adapter-registry.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/adapter-registry.test.ts
rename to plugins/ruflo-graph-intelligence/tests/adapter-registry.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/browser-causal-adapter.test.ts b/plugins/ruflo-graph-intelligence/tests/browser-causal-adapter.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/browser-causal-adapter.test.ts
rename to plugins/ruflo-graph-intelligence/tests/browser-causal-adapter.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/mcp-tools.test.ts b/plugins/ruflo-graph-intelligence/tests/mcp-tools.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/mcp-tools.test.ts
rename to plugins/ruflo-graph-intelligence/tests/mcp-tools.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase3-adapters.test.ts b/plugins/ruflo-graph-intelligence/tests/phase3-adapters.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase3-adapters.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase3-adapters.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase4-adapters.test.ts b/plugins/ruflo-graph-intelligence/tests/phase4-adapters.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase4-adapters.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase4-adapters.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase5-portfolio.test.ts b/plugins/ruflo-graph-intelligence/tests/phase5-portfolio.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase5-portfolio.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase5-portfolio.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase6-adapters.test.ts b/plugins/ruflo-graph-intelligence/tests/phase6-adapters.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase6-adapters.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase6-adapters.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase6_5-streaming.test.ts b/plugins/ruflo-graph-intelligence/tests/phase6_5-streaming.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase6_5-streaming.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase6_5-streaming.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase7-signed-artifact.test.ts b/plugins/ruflo-graph-intelligence/tests/phase7-signed-artifact.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase7-signed-artifact.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase7-signed-artifact.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/phase8-federation.test.ts b/plugins/ruflo-graph-intelligence/tests/phase8-federation.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/phase8-federation.test.ts
rename to plugins/ruflo-graph-intelligence/tests/phase8-federation.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/tests/solver-bridge.test.ts b/plugins/ruflo-graph-intelligence/tests/solver-bridge.spec.ts
similarity index 100%
rename from plugins/ruflo-graph-intelligence/tests/solver-bridge.test.ts
rename to plugins/ruflo-graph-intelligence/tests/solver-bridge.spec.ts
diff --git a/plugins/ruflo-graph-intelligence/vitest.config.ts b/plugins/ruflo-graph-intelligence/vitest.config.ts
index 369787f6f5..46c0686099 100644
--- a/plugins/ruflo-graph-intelligence/vitest.config.ts
+++ b/plugins/ruflo-graph-intelligence/vitest.config.ts
@@ -2,7 +2,7 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
- include: ['tests/**/*.test.ts'],
+ include: ['tests/**/*.spec.ts'],
environment: 'node',
globals: false,
},