π 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
feat(ruflo-console): Wildcat furniture β section block-art titles, welcome and networks strips, spacing
ruv6cee728fe9cf
diff --git a/plugins/ruflo-console/hooks/gfx/font.ts b/plugins/ruflo-console/hooks/gfx/font.tsnew file mode 100644index 0000000000..88643e81cd--- /dev/null+++ b/plugins/ruflo-console/hooks/gfx/font.ts@@ -0,0 +1,27 @@+/** A two-row half-block font, the RUFLO logo's style, for the BBS section titles. */+export const FONT: Record<string, readonly [string, string]> = {+ A: ['βββ', 'βββ'], B: ['βββ', 'βββ'], C: ['βββ', 'βββ'], D: ['βββ', 'βββ'], E: ['βββ', 'βββ'],+ F: ['βββ', 'ββ '], G: ['βββ', 'βββ'], H: ['β β', 'βββ'], I: ['βββ', 'βββ'], J: [' β', 'βββ'],+ K: ['β β', 'βββ'], L: ['β ', 'βββ'], M: ['βββββ', 'β β'], N: ['ββ β', 'β ββ'], O: ['βββ', 'βββ'],+ P: ['βββ', 'βββ'], Q: ['βββ', 'βββ'], R: ['βββ', 'βββ'], S: ['βββ', 'βββ'], T: ['βββ', ' β '],+ U: ['β β', 'βββ'], V: ['β β', 'βββ'], W: ['β β', 'βββββ'], X: ['βββ', 'βββ'], Y: ['βββ', ' β '],+ Z: ['βββ', 'βββ'], '.': [' ', 'β'], '-': ['ββ', ' '], ' ': [' ', ' '],+}++export function bigText(text: string): [string, string] {+ const rows: [string[], string[]] = [[], []]++ for (const ch of text.toUpperCase()) {+ const glyph = FONT[ch] ?? FONT[' ']!++ rows[0].push(glyph[0])+ rows[1].push(glyph[1])+ }++ return [rows[0].join(' '), rows[1].join(' ')]+}++/** Text spaced out letter by letter, the way BBS splash screens captioned their art: `S W A R M`. */+export function spaced(text: string): string {+ return [...text.toUpperCase()].join(' ')+}diff --git a/plugins/ruflo-console/hooks/gfx/pictures.ts b/plugins/ruflo-console/hooks/gfx/pictures.tsindex 7a7e98f87e..3d0d9ee7b4 100644--- a/plugins/ruflo-console/hooks/gfx/pictures.ts+++ b/plugins/ruflo-console/hooks/gfx/pictures.ts@@ -5,6 +5,7 @@* where it is not.*/import { Braille, COLOR, Grid, mix, ramp, sparkline } from './raster'+import { bigText } from './font'export type TopoNode = { id: string; label: string; status: string; isLeader: boolean; /** When the console last saw an event about it. */ pulseAtMs?: number }export type TopoModel = { topology: string; nodes: TopoNode[] }@@ -269,6 +270,39 @@ export function bannerPicture(project: string, columns: number, t: number): Gridreturn grid}+const NEON_CORAL = 0xff7a59++/**+ * A view's BBS title: its name in the two-row half-block font, magenta to coral like the ANSI art boards, framed by+ * dithered βββ ramps, with a slow shimmer down the letters (decoration). Two rows.+ */+export function titlePicture(name: string, columns: number, t: number): Grid {+ const grid = new Grid(columns, 2)+ const [top, bottom] = bigText(name)+ const edge = 'βββ'+ const x0 = edge.length + 1+ const width = Math.max(top.length, bottom.length)+ const shimmer = ((t / 40) % (width + 30)) - 15++ for (let y = 0; y < 2; y++) {+ ;[...edge].forEach((ch, i) => grid.set(i, y, ch, mix(0x3a0f2e, NEON_MAGENTA, (i + 1) / edge.length)))+ ;[...(y === 0 ? top : bottom)].forEach((ch, i) => {+ if (ch === ' ' || x0 + i >= columns) return++ const glow = Math.max(0, 1 - Math.abs(i - shimmer) / 3)++ grid.set(x0 + i, y, ch, mix(mix(NEON_MAGENTA, NEON_CORAL, i / Math.max(1, width - 1)), 0xffffff, glow * 0.6))+ })+ ;[...'βββ'].forEach((ch, i) => {+ const x = x0 + width + 1 + i++ if (x < columns) grid.set(x, y, ch, mix(NEON_MAGENTA, 0x3a0f2e, (i + 1) / edge.length))+ })+ }++ return grid+}+/** The boot screen's height. */export const BOOT_ROWS = 10diff --git a/plugins/ruflo-console/hooks/views/common.ts b/plugins/ruflo-console/hooks/views/common.tsindex 1690f8032b..69ba19206b 100644--- a/plugins/ruflo-console/hooks/views/common.ts+++ b/plugins/ruflo-console/hooks/views/common.ts@@ -113,7 +113,11 @@ export function rule(ctx: Ctx, title: string, right = ''): RenderElement {const head = `βββ ${title.toUpperCase()} βββ`const fill = Math.max(1, ctx.columns - head.length - right.length - 2)- return row(ctx, [ctx.kit.Text({ bold: true, color: THEME.head, children: head }), ctx.kit.Text({ color: THEME.info, dimColor: true, children: `${'β'.repeat(fill)} ` }), ctx.kit.Text({ color: THEME.info, children: right })])+ // A blank line above each section, so the board breathes instead of packing every block together.+ return col(ctx, [+ ctx.kit.Text({ children: ' ' }),+ row(ctx, [ctx.kit.Text({ bold: true, color: THEME.head, children: head }), ctx.kit.Text({ color: THEME.info, dimColor: true, children: `${'β'.repeat(fill)} ` }), ctx.kit.Text({ color: THEME.info, children: right })]),+ ])}const fill = Math.max(1, ctx.columns - title.length - right.length - 3)@@ -129,8 +133,9 @@ export function kv(ctx: Ctx, label: string, value: string, color?: string): Rendconst neonValue = look === 'bbs' && color === undefined ? { color: THEME.info } : {}return row(ctx, [- ctx.kit.Text(look === 'bbs' ? { color: NEON_LABEL, children: `${label.padEnd(16)} ` } : { dimColor: true, children: `${label.padEnd(16)} ` }),- ctx.kit.Text({ wrap: 'truncate-end', ...(isNa ? { dimColor: true } : color !== undefined ? { color } : neonValue), children: clip(value, Math.max(4, ctx.columns - 18)) }),+ // BBS rows sit indented one column, with two spaces between label and value.+ ctx.kit.Text(look === 'bbs' ? { color: NEON_LABEL, children: ` ${label.padEnd(16)} ` } : { dimColor: true, children: `${label.padEnd(16)} ` }),+ ctx.kit.Text({ wrap: 'truncate-end', ...(isNa ? { dimColor: true } : color !== undefined ? { color } : neonValue), children: clip(value, Math.max(4, ctx.columns - (look === 'bbs' ? 20 : 18))) }),])}diff --git a/plugins/ruflo-console/hooks/views/frames.ts b/plugins/ruflo-console/hooks/views/frames.tsindex 4b36a522f8..67c7e33f41 100644--- a/plugins/ruflo-console/hooks/views/frames.ts+++ b/plugins/ruflo-console/hooks/views/frames.ts@@ -11,11 +11,11 @@ import type { Channels, Peers, Roster } from '../data/cli'import { pipelinePicture, radarPicture, samplesPicture, trendPicture, gaugePicture, type Stage } from '../gfx/charts'import { flowModelOf, flowPicture, flowRows } from '../gfx/flow'import { federationPicture, ganttPicture, heatmapPicture, type FedNode, type HealthRow, type Lane } from '../gfx/maps'-import { activityPicture, bannerPicture, bootPicture, curvePicture, headerPicture, PULSE_MS, topologyPicture, type TopoModel } from '../gfx/pictures'+import { activityPicture, bannerPicture, bootPicture, titlePicture, curvePicture, headerPicture, PULSE_MS, topologyPicture, type TopoModel } from '../gfx/pictures'import type { Grid } from '../gfx/raster'import { PROBES, severityOf } from '../data/cli'import { EXPECTED_IN_MARKET, RUFLO_MARKET } from '../data/snapshot'-import { isBooting, rowsOf, type State } from '../state'+import { isBooting, rowsOf, VIEWS, type State } from '../state'import { live } from './common'import { openTasks } from './select'@@ -129,6 +129,12 @@ export function picturesOf(state: State, columns: number, nowMs: number, t: numbconst project = state.cwd.split('/').filter(Boolean).at(-1) ?? ''pictures.set('header', state.options.look === 'bbs' ? bannerPicture(project, Math.min(width, 72), t) : headerPicture(`β ruflo Β· ${project}`, Math.min(width, 40), t))+ // BBS: each view's name as ANSI-style block art under the tabs.+ if (state.options.look === 'bbs') {+ const name = state.isHelp ? 'help' : state.palette.isOpen ? 'palette' : state.view === 'agent' ? 'agent' : (VIEWS.find(view => view.id === state.view)?.label ?? state.view)++ pictures.set('title', titlePicture(name, Math.min(width, 80), t))+ }}switch (state.view) {diff --git a/plugins/ruflo-console/hooks/views/pane.ts b/plugins/ruflo-console/hooks/views/pane.tsindex 7109e1a9de..fc430a2a58 100644--- a/plugins/ruflo-console/hooks/views/pane.ts+++ b/plugins/ruflo-console/hooks/views/pane.ts@@ -166,6 +166,29 @@ function footer(ctx: Ctx): RenderElement {* make that tall), it goes compact: no title strip, and the confirm row and the footer's buttons move up under the* tabs, so every control stays on screen while the view below scrolls.*/+/**+ * The Wildcat-board furniture for the BBS look: under the banner a welcome line and the networks this node is on,+ * the way boards listed their nets; and the current view's name as block art under the tabs.+ */+function wildcat(ctx: Ctx): { strip: RenderElement[]; art: RenderElement[] } {+ const art = ctx.pictures.get('title')++ return {+ strip: [+ row(ctx, [+ ctx.kit.Text({ bold: true, color: THEME.head, children: 'RUFLO ' }),+ ctx.kit.Text({ color: THEME.info, children: 'x.ruv.io ' }),+ ctx.kit.Text({ bold: true, color: THEME.ok, children: clip('AGENTS WELCOME.', Math.max(4, ctx.columns - 16)) }),+ ], 'welcome'),+ row(ctx, [+ ctx.kit.Text({ color: THEME.head, children: 'NETWORKS: ' }),+ ctx.kit.Text({ color: THEME.info, wrap: 'truncate-end', children: clip('x.ruv.io * relay.ruv.io * agentbbs * mcp * claude code', Math.max(4, ctx.columns - 10)) }),+ ], 'networks'),+ ],+ art: art !== undefined && ctx.kit.Raster !== undefined ? [ctx.kit.Raster(art.toRaster('title'))] : [],+ }+}+export function paneView(ctx: Ctx): RenderElement {setLook(ctx.state.options.look)@@ -183,7 +206,11 @@ export function paneView(ctx: Ctx): RenderElement {const isCompact = ctx.state.pane.rows > 0 && ctx.state.pane.rows < rowsOf(ctx.state.view)const title = !isCompact && header !== undefined && ctx.kit.Raster !== undefined ? [ctx.kit.Raster(header.toRaster('header'))] : []const about = blurb(ctx)- const parts = isCompact ? [tabs(ctx), ...(confirm !== null ? [confirm] : []), footer(ctx), body] : [...title, tabs(ctx), ...(about !== null ? [about] : []), body, ...(confirm !== null ? [confirm] : []), footer(ctx)]+ const bbs = isBbs() && !isCompact ? wildcat(ctx) : { strip: [], art: [] }+ const gap = isBbs() && !isCompact ? [text(ctx, ' ')] : []+ const parts = isCompact+ ? [tabs(ctx), ...(confirm !== null ? [confirm] : []), footer(ctx), body]+ : [...title, ...bbs.strip, ...gap, tabs(ctx), ...gap, ...bbs.art, ...(about !== null ? [about] : []), ...gap, body, ...(confirm !== null ? [confirm] : []), ...gap, footer(ctx)]return ctx.kit.Box({ flexDirection: 'column', children: parts })}diff --git a/plugins/ruflo-console/tests/pure.spec.ts b/plugins/ruflo-console/tests/pure.spec.tsindex 3963738993..dd6d3268b1 100644--- a/plugins/ruflo-console/tests/pure.spec.ts+++ b/plugins/ruflo-console/tests/pure.spec.ts@@ -146,9 +146,9 @@ describe('graphics', () => {const state = newState({})state.view = 'learning'- expect([...picturesOf(state, 90, 0, 5).keys()]).toEqual(['header', 'curve', 'pipeline', 'patterns'])+ expect([...picturesOf(state, 90, 0, 5).keys()]).toEqual(['header', 'title', 'curve', 'pipeline', 'patterns'])state.view = 'memory'- expect([...picturesOf(state, 90, 0, 5).keys()]).toEqual(['header'])+ expect([...picturesOf(state, 90, 0, 5).keys()]).toEqual(['header', 'title'])})it('the budget ladder marks 50/75/90/100% and fills to the spend', () => {diff --git a/plugins/ruflo-console/tests/views.test.ts b/plugins/ruflo-console/tests/views.test.tsindex d88b89ec60..d3d31e5099 100644--- a/plugins/ruflo-console/tests/views.test.ts+++ b/plugins/ruflo-console/tests/views.test.ts@@ -41,7 +41,7 @@ describe('views', () => {const { text, rasters } = await drawn($, 'overview')- expect(rasters).toEqual(['header', 'activity'])+ expect(rasters).toEqual(['header', 'title', 'activity'])expect(text).toContain('v3.50.0 (npx-offline)')expect(text).toContain('running per daemon-state.json')expect(text).toContain('1 ruflo server connected (plugin_ruflo-core_ruflo) Β· 2 tools callable now')@@ -59,7 +59,7 @@ describe('views', () => {const { text, rasters, tree } = await drawn($, 'swarm')- expect(rasters).toEqual(['header', 'topology'])+ expect(rasters).toEqual(['header', 'title', 'topology'])expect(text).toContain('hierarchical Β· specialized Β· running Β· max 6')// One label per agent (no repeated type), then status; a short id instead of the full one.expect(text).toMatch(/βΈβ \ncoder\s+idle\s+tasks/)@@ -76,7 +76,7 @@ describe('views', () => {const { text, rasters, tree } = await drawn($, 'claims')- expect(rasters).toEqual(['header', 'flow'])+ expect(rasters).toEqual(['header', 'title', 'flow'])expect(text).toContain('1 active Β· 1 stealable Β· 0 handoff')expect(text).toContain('no claims tool sets a TTL today')expect(text).toMatch(/console-demo-2.*stealable/)@@ -90,7 +90,7 @@ describe('views', () => {const { text, rasters } = await drawn($, 'federation')- expect(rasters).toEqual(['header', 'fedmap'])+ expect(rasters).toEqual(['header', 'title', 'fedmap'])expect(text).toContain('agentbbs agentbbs-not-found')expect(text).toContain('Off: the roster is on the public relay')expect(world.runs.some(argv => argv.join(' ').includes('x_federation_roster'))).toBe(false)@@ -103,7 +103,7 @@ describe('views', () => {const { text, rasters } = await drawn($, 'plugins')- expect(rasters).toEqual(['header', 'health'])+ expect(rasters).toEqual(['header', 'title', 'health'])expect(text).toContain('STALE: the clone does not list ruflo-mods')expect(text).toContain('2 ruflo Β· 1 enabled Β· 2 total')})@@ -116,7 +116,7 @@ describe('views', () => {const { text, rasters } = await drawn($, 'learning')- expect(rasters).toEqual(['header', 'curve', 'pipeline', 'patterns'])+ expect(rasters).toEqual(['header', 'title', 'curve', 'pipeline', 'patterns'])expect(text).toContain('tester 60% Β· keyword match')expect(text).toMatch(/\d+\/9 succeeded \(\d+% success rate, N=9\)/)expect(text).toContain('consolidate: EWC consolidations')@@ -129,7 +129,7 @@ describe('views', () => {const { text, rasters } = await drawn($, 'metaharness')- expect(rasters).toEqual(['header', 'radar', 'trend'])+ expect(rasters).toEqual(['header', 'title', 'radar', 'trend'])expect(text).toContain('$0.024')expect(text).toContain('valid Β· 0 commits Β· 0 receipts')})@@ -147,7 +147,7 @@ describe('views', () => {const cost = await drawn($, 'cost')- expect(cost.rasters).toEqual(['header', 'gauge', 'burn'])+ expect(cost.rasters).toEqual(['header', 'title', 'gauge', 'burn'])expect(cost.text).toContain('$0.421')expect(cost.text).toContain('WARNING Β· $3.90 of $5.00 (78%)')})@@ -157,7 +157,7 @@ describe('views', () => {mock.clock(on)await $.session.start(SESSION)- expect((await drawn($, 'timeline')).rasters).toEqual(['header', 'gantt'])+ expect((await drawn($, 'timeline')).rasters).toEqual(['header', 'title', 'gantt'])const approvals = await drawn($, 'approvals')