🌊 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): tab bar fits a narrow dock; the line under it names the view
ruv55c253494398
diff --git a/plugins/ruflo-console/hooks/gfx/pictures.ts b/plugins/ruflo-console/hooks/gfx/pictures.tsindex 21f3737218..397f050155 100644--- a/plugins/ruflo-console/hooks/gfx/pictures.ts+++ b/plugins/ruflo-console/hooks/gfx/pictures.ts@@ -114,7 +114,8 @@ export function topologyPicture(model: TopoModel, columns: number, rows: number,const x = leader.x + (q.x - leader.x) * kconst y = leader.y + (q.y - leader.y) * k- canvas.dot(x, y, mix(COLOR.warn, COLOR.line, 0.35))+ canvas.dot(x, y, COLOR.warn)+ canvas.dot(x + 1, y, COLOR.warn)})model.nodes.forEach((node, i) => {diff --git a/plugins/ruflo-console/hooks/views/pane.ts b/plugins/ruflo-console/hooks/views/pane.tsindex 0317a93691..e508cfba59 100644--- a/plugins/ruflo-console/hooks/views/pane.ts+++ b/plugins/ruflo-console/hooks/views/pane.ts@@ -23,6 +23,8 @@ import { pluginsView } from './plugins'import { swarmView } from './swarm'export const NARROW = 44+/** Width from which the current tab spells its name beside its icon. */+const WIDE_TABS = 110const BODIES: Record<ViewId, (ctx: Ctx) => RenderElement> = {overview: overviewView,@@ -60,7 +62,9 @@ function tabs(ctx: Ctx): RenderElement {// A Button cannot be styled, so the current tab is Text: its key is not needed, the view is already open// (from a drill-down, b goes back).- if (isCurrent) return ctx.kit.Box({ key: `tab-${view.id}`, children: [ctx.kit.Text({ bold: true, color: THEME.head, children: `${view.key}:${view.icon} ${view.label}` })] })+ // The dock's width is the engine's (it keeps where the divider was left): the name joins the icon only where+ // the bar has room for it, and the line under the bar always leads with it.+ if (isCurrent) return ctx.kit.Box({ key: `tab-${view.id}`, children: [ctx.kit.Text({ bold: true, color: THEME.head, wrap: 'truncate-end', children: ctx.columns >= WIDE_TABS ? `${view.key}:${view.icon} ${view.label}` : `${view.key}:${view.icon}` })] })return ctx.kit.Button({ key: `tab-${view.id}`, label: view.icon, hotkey: view.key, plain: true, dimColor: true, onPress: () => ctx.act.view(view.id) })}),@@ -75,7 +79,13 @@ function blurb(ctx: Ctx): RenderElement | null {if (view === undefined) return null- return text(ctx, clip(ctx.state.view === 'agent' ? `drill-down: one agent's role, task, claims, activity and logs · b goes back to ${view.label}` : view.blurb, ctx.columns), { dimColor: true, italic: true })+ const name = ctx.state.view === 'agent' ? 'Agent' : view.label+ const about = ctx.state.view === 'agent' ? `one agent's role, task, claims, activity and logs · b goes back to ${view.label}` : view.blurb++ return row(ctx, [+ ctx.kit.Text({ bold: true, color: THEME.head, children: `${view.icon} ${name}` }),+ ctx.kit.Text({ dimColor: true, italic: true, wrap: 'truncate-end', children: clip(` — ${about}`, Math.max(4, ctx.columns - name.length - 2)) }),+ ], 'about')}function help(ctx: Ctx): RenderElement {diff --git a/plugins/ruflo-console/hooks/views/swarm.ts b/plugins/ruflo-console/hooks/views/swarm.tsindex 19c4342778..ddd0f67924 100644--- a/plugins/ruflo-console/hooks/views/swarm.ts+++ b/plugins/ruflo-console/hooks/views/swarm.ts@@ -32,6 +32,8 @@ export function swarmView(ctx: Ctx): RenderElement {rows.push(text(ctx, '★ leader · ◉ busy (a dot runs to it while it works) · ● idle · grey stopped · a white flash = an event about that agent', { dimColor: true }))rows.push(rule(ctx, 'Agents', `${agents.length} · j/k pick · d open · x actions`))const labels = agentLabels(agents)+ // The type column only earns its room when some agent has a name that is not its type.+ const hasTypes = agents.some(agent => agent.name !== undefined && agent.name !== agent.type)for (const agent of agents.slice(0, 10)) {const isPicked = picked?.id === agent.id@@ -44,7 +46,7 @@ export function swarmView(ctx: Ctx): RenderElement {wrap: 'truncate-end',...(isPicked && { bold: true }),// One label (name, else type, with a short id only where two read the same); the type only when it differs.- children: clip(`${(labels.get(agent.id) ?? agent.type).padEnd(16)} ${agent.status.padEnd(8)} ${(agent.name !== undefined && agent.name !== agent.type ? agent.type : '').padEnd(12)} tasks ${agent.taskCount ?? 'n/a'} · health ${agent.health === undefined ? 'n/a' : `${Math.round(agent.health * 100)}%`} · #${shortId(agent.id)}`, ctx.columns - 3),+ children: clip(`${(labels.get(agent.id) ?? agent.type).padEnd(16)} ${agent.status.padEnd(8)} ${hasTypes ? `${(agent.name !== undefined && agent.name !== agent.type ? agent.type : '').padEnd(12)} ` : ''}tasks ${agent.taskCount ?? 'n/a'} · health ${agent.health === undefined ? 'n/a' : `${Math.round(agent.health * 100)}%`} · #${shortId(agent.id)}`, ctx.columns - 3),}),]),)diff --git a/plugins/ruflo-console/tests/behaviour.test.ts b/plugins/ruflo-console/tests/behaviour.test.tsindex cc9616e79d..3a3553483e 100644--- a/plugins/ruflo-console/tests/behaviour.test.ts+++ b/plugins/ruflo-console/tests/behaviour.test.ts@@ -14,9 +14,9 @@ describe('behaviour', () => {const pane = await $.ui.mount({ ...paneAt(110), plugin: PLUGIN })- expect(textOf(await pane.drawn())).toContain('1:⌂ Overview')+ expect(textOf(await pane.drawn())).toContain('⌂ Overview')await pane.press({ key: 'tab-claims' })- expect(textOf(await pane.drawn())).toContain('3:⚑ Claims')+ expect(textOf(await pane.drawn())).toContain('⚑ Claims')expect(world.stored.get('ruflo-console/ui:/work')).toEqual({ view: 'claims', isClosedByPerson: false })expect(world.opened.length).toBeGreaterThanOrEqual(2)await pane.unmount()@@ -96,7 +96,7 @@ describe('behaviour', () => {const pane = await $.ui.mount({ ...paneAt(100), plugin: PLUGIN })const text = textOf(await pane.drawn())- expect(text).toMatch(/[0-9a-z]:\S \w/) // the current tab: key, icon and name+ expect(text).toMatch(/\n\S [A-Z][A-Za-z]+\n — \w/) // the line under the tabs: icon, view name, what it is forawait pane.unmount()}