🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(ruflo-mods): print the probe label once in the /ruflo-mods report (0.3.10)
ruvff66586247d3
diff --git a/plugins/ruflo-mods/.claude-plugin/plugin.json b/plugins/ruflo-mods/.claude-plugin/plugin.jsonindex b4398fff4a..e22702f5c2 100644--- a/plugins/ruflo-mods/.claude-plugin/plugin.json+++ b/plugins/ruflo-mods/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-mods","description": "ruflo as a Claude Code mod (function hooks, ADR-404): in-process prompt routing, edit learning signals, tighten-only tool checks from ruflo policy, the cost-tracker budget ladder, a mod trust gate for newly installed mods, and the $.ruflo noun other mods compose their status with. Opt-in and removable: the classic hook-handler hooks stay the default and take every event back whenever the mod is not loaded.",- "version": "0.3.9",+ "version": "0.3.10","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-mods/hooks/probe/index.ts b/plugins/ruflo-mods/hooks/probe/index.tsindex b8cc5dd413..6d7788ce8c 100644--- a/plugins/ruflo-mods/hooks/probe/index.ts+++ b/plugins/ruflo-mods/hooks/probe/index.ts@@ -67,7 +67,7 @@ export function versionText(value: unknown): string | undefined {return typeof text === 'string' && /^[A-Za-z0-9._+-]{1,40}$/.test(text) ? text : undefined}-/** The bounded status line `/ruflo-mods` shows. */+/** The bounded status text the `probe:` row of `/ruflo-mods` shows (no label of its own: the report adds it). */export function probeLine(probe: ProbeState): string {if (!probe.enabled) return 'off (set the capabilityProbe option)'const names = [...probe.registered].sort()@@ -75,6 +75,6 @@ export function probeLine(probe: ProbeState): string {const never = names.filter(n => !probe.fired.get(n))const engine = probe.version ? `engine ${probe.version}` : 'engine version not exposed'const tail = never.length ? ` · never fired: ${never.join(', ')}` : ''- const line = `probe: ${engine} · events fired ${fired}/${names.length}${tail}`+ const line = `${engine} · events fired ${fired}/${names.length}${tail}`return line.length > MAX_LINE ? `${line.slice(0, MAX_LINE - 1)}…` : line}diff --git a/plugins/ruflo-mods/scripts/smoke.sh b/plugins/ruflo-mods/scripts/smoke.shindex 80b91ebb73..55d95e42a1 100755--- a/plugins/ruflo-mods/scripts/smoke.sh+++ b/plugins/ruflo-mods/scripts/smoke.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# Structural + security smoke for ruflo-mods v0.3.9 (ADR-404, ADR-447).+# Structural + security smoke for ruflo-mods v0.3.10 (ADR-404, ADR-447).# Static only: CI has no Claude Code, so the hooks module's behaviour is held# by v3/@claude-flow/cli/__tests__/mods/*.test.ts and, where function hooks are# on, by `claude plugin test plugins/ruflo-mods`.@@ -12,9 +12,9 @@ ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }HOOKS="$ROOT/hooks"-step "1. plugin.json declares ruflo-mods 0.3.9"+step "1. plugin.json declares ruflo-mods 0.3.10"grep -q '"name": "ruflo-mods"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.3.9"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.3.10"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"step "2. hooks.json names exactly one module and no classic hook commands"grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \diff --git a/plugins/ruflo-mods/tests/probe.test.ts b/plugins/ruflo-mods/tests/probe.test.tsindex 867a2f24cd..5d1692c634 100644--- a/plugins/ruflo-mods/tests/probe.test.ts+++ b/plugins/ruflo-mods/tests/probe.test.ts@@ -56,8 +56,9 @@ describe('capabilityProbe option (ADR-451 item 5)', () => {test('on: version, fired count and the never-fired events are reported', { options: { capabilityProbe: true } }, async ($, on) => {boot(on, { version: '2.1.287', base: '2.1.287' })await $.session.start(START)- const line = (await report($)).split('\n').find(l => l.includes('probe: engine')) ?? ''- expect(line).toMatch(/probe: engine 2\.1\.287 · events fired \d+\/\d+ · never fired: /)+ const line = (await report($)).split('\n').find(l => /^\s*probe:\s+engine/.test(l)) ?? ''+ expect(line).toMatch(/probe:\s+engine 2\.1\.287 · events fired \d+\/\d+ · never fired: /)+ expect(line).not.toMatch(/probe:\s+probe:/) // the label is printed onceexpect(Number(/fired (\d+)\//.exec(line)?.[1])).toBeGreaterThanOrEqual(2) // session.start and command.run firedexpect(line).not.toMatch(/never fired:.*\bsession\.start\b/)expect(line).toMatch(/never fired:.*\btool\.check\b/)@@ -80,7 +81,7 @@ describe('capabilityProbe option (ADR-451 item 5)', () => {boot(on)on('session.version', () => ({ deny: 'not available' }))await $.session.start(START)- expect(await report($)).toContain('probe: engine version not exposed · events fired')+ expect(await report($)).toMatch(/probe:\s+engine version not exposed · events fired/)expect(JSON.parse(w.files.get(BEAT) ?? '').engine).toBeNull()})@@ -95,6 +96,6 @@ describe('capabilityProbe option (ADR-451 item 5)', () => {expect(bad.decision).toBe('deny')expect((await $.tool.check(check('ls'))).decision).toBe('allow')const odd = await $.command.run({ ...run('ruflo-mods'), args: '\u0000'.repeat(10) })- expect(odd.text).toContain('probe: engine')+ expect(odd.text).toMatch(/probe:\s+engine/)})})