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(ruflo-console): focus hint and Esc behaviour say what the engine does; catalog equality spec always runs

ruve1723ef825d9
diff --git a/plugins/ruflo-console/hooks/commands.ts b/plugins/ruflo-console/hooks/commands.ts
index 8694e13f2d..d342dae0ec 100644
--- a/plugins/ruflo-console/hooks/commands.ts
+++ b/plugins/ruflo-console/hooks/commands.ts
@@ -104,8 +104,9 @@ export const HELP = [
' /ruflo mods ruflo-mods: what this session routed, recorded and tightened (was /ruflo-mods)',
' /ruflo swarm pane|status|topology|claims|consensus ruflo-swarm (was /ruflo-swarm-*)',
'',
- 'Pane keys (while it holds the keyboard: click it, or ctrl+x tab)',
+ 'Pane keys (while it holds the keyboard: /ruflo opens it with the keys, or click it; ctrl+x tab reaches the band, not the pane)',
' 1-9 views · g timeline · q approvals · e events · m missions · p palette · x actions for the selection',
- ' j/k select · d drill in · b back · r refresh · h help · f event filter · y/n confirm · Esc close',
+ ' j/k select · d drill in · b back · r refresh · h help · f event filter · y/n confirm',
+ ' Esc: a pane /ruflo opened closes; one that opened by itself (panel=auto) only hands the keys back. ✕ or /ruflo close closes either',
' (? and Enter cannot be pane hotkeys in this Claude Code build: use h, and d to drill in)',
].join('\n')
diff --git a/plugins/ruflo-console/hooks/views/pane.ts b/plugins/ruflo-console/hooks/views/pane.ts
index c4b16cbbbf..aa0ae1f325 100644
--- a/plugins/ruflo-console/hooks/views/pane.ts
+++ b/plugins/ruflo-console/hooks/views/pane.ts
@@ -100,7 +100,7 @@ function footer(ctx: Ctx): RenderElement {
}
const read = state.snapshot === null ? 'reading…' : `read ${ago(state.snapshot.readAtMs, nowMs)}`
- const keys = state.pane.isFocused ? 'keys on' : 'keys off: click the pane or ctrl+x tab (or /ruflo …)'
+ const keys = state.pane.isFocused ? 'keys on' : 'keys off: click the pane (or /ruflo …)'
parts.push(
row(ctx, [
diff --git a/plugins/ruflo-console/tests/catalog.spec.ts b/plugins/ruflo-console/tests/catalog.spec.ts
index 3e9c7c4d47..cdbc9a69be 100644
--- a/plugins/ruflo-console/tests/catalog.spec.ts
+++ b/plugins/ruflo-console/tests/catalog.spec.ts
@@ -1,11 +1,11 @@
/**
* Parity for the copied ADR-406 command catalog: the copy's sourceDigest is the sha256 of its entries' canonical JSON
- * (keys sorted at every depth, no whitespace), as the ruflo CLI computes it, and where the CLI's own generated
- * catalog is in this tree the copy equals it. Refresh the copy with:
+ * (keys sorted at every depth, no whitespace), as the ruflo CLI computes it, and the copy equals the CLI's own
+ * generated catalog in this tree. Refresh the copy with:
* cp v3/@claude-flow/cli/src/mods/command-registry/catalog.generated.json plugins/ruflo-console/catalog/command-catalog.json
*/
import { createHash } from 'node:crypto'
-import { existsSync, readFileSync } from 'node:fs'
+import { readFileSync } from 'node:fs'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
@@ -36,7 +36,7 @@ describe('command catalog copy', () => {
expect(`sha256:${createHash('sha256').update(canonical(catalog.entries)).digest('hex')}`).toBe(catalog.sourceDigest)
})
- it.skipIf(!existsSync(CANONICAL))('equals the CLI-generated catalog in this tree', () => {
+ it('equals the CLI-generated catalog in this tree', () => {
expect(JSON.parse(readFileSync(CANONICAL, 'utf8')).sourceDigest).toBe(catalog.sourceDigest)
})