🌊 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-console): with ruflo-mods or ruflo-swarm absent, /ruflo mods and /ruflo swarm <sub> show the hint
ruv88cac6c75839
diff --git a/plugins/ruflo-console/hooks/dispatch.ts b/plugins/ruflo-console/hooks/dispatch.tsindex 08f9484559..98e7321afa 100644--- a/plugins/ruflo-console/hooks/dispatch.ts+++ b/plugins/ruflo-console/hooks/dispatch.ts@@ -11,6 +11,9 @@ import { VIEWS, type State } from './state'import { barText } from './views/bar'import { viewText } from './views/pane'+/** The engine's words when a registered command reaches it with no hook answering (Claude Code 2.1.287). */+const NO_HOOK_ANSWERED = /registered \/ruflo but no command\.run hook answered/+export type Delegate = () => Promise<{ text?: string } | undefined>/** The one-line answer of `/ruflo status`, with the measured render, refresh and frame costs. */@@ -53,7 +56,8 @@ export async function dispatch(control: Controller, state: State, args: string,try {const answer = await delegate()- if (typeof answer?.text === 'string' && answer.text.trim() !== '') return { text: answer.text }+ // With nothing beneath, the engine answers in its own words that no hook answered: that is no answer either.+ if (typeof answer?.text === 'string' && answer.text.trim() !== '' && !NO_HOOK_ANSWERED.test(answer.text)) return { text: answer.text }} catch {// Nothing beneath answers this command: fall through to the hint.}diff --git a/plugins/ruflo-console/tests/palette.test.ts b/plugins/ruflo-console/tests/palette.test.tsindex 01eab5fb62..e2b341c0d1 100644--- a/plugins/ruflo-console/tests/palette.test.ts+++ b/plugins/ruflo-console/tests/palette.test.ts@@ -93,6 +93,15 @@ describe('palette and /ruflo', () => {expect((await $.command.run(command('swarm status'))).text).toMatch(/^ruflo-swarm is not loaded in this session/)})+ test('the engine saying no hook answered /ruflo mods is not an answer: the hint shows', async ($, on) => {+ worldOf(on, RUFLO_FILES)+ mock.clock(on)+ on('command.run', () => ({ text: 'ruflo-console registered /ruflo but no command.run hook answered it: add on("command.run", ...)' }))+ await $.session.start(SESSION)++ expect((await $.command.run(command('mods'))).text).toMatch(/^ruflo-mods is not loaded in this session/)+ })+test('/ruflo mods and /ruflo swarm <sub> are answered by the plugin beneath that owns them', async ($, on) => {worldOf(on, RUFLO_FILES)mock.clock(on)