๐ 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): the RuFlo neon sign as an animated ASCII boot and the main menu's title (0.5.0)
ruvfbeada07e6b5
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.jsonindex 350978a968..2d5caa6769 100644--- a/plugins/ruflo-console/.claude-plugin/plugin.json+++ b/plugins/ruflo-console/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "ruflo-console","description": "ruflo's cockpit inside Claude Code and the one /ruflo command for every ruflo mod (function hooks, early access). Views: overview with health alerts, swarm topology graph, claims flow with TTL rings, federation map, plugin health matrix, learning curve and pipeline, MetaHarness radar and audit trend, memory, cost gauge, agent timeline, approvals queue, event stream, an x.ruv.io federation board, a second terminal for codex, claude and the ruflo CLI (each run confirmed), agent drill-down; a command palette for confirm-gated actions through the ruflo CLI; a band above the prompt. Reads ruflo's files and the CLI's local JSON; anything not measured reads n/a; no network by default.",- "version": "0.4.0",+ "version": "0.5.0","author": {"name": "ruvnet","url": "https://github.com/ruvnet"diff --git a/plugins/ruflo-console/hooks/gfx/boot.ts b/plugins/ruflo-console/hooks/gfx/boot.tsindex f28b36f659..c945f0c28e 100644--- a/plugins/ruflo-console/hooks/gfx/boot.ts+++ b/plugins/ruflo-console/hooks/gfx/boot.ts@@ -1,52 +1,19 @@/**- * The BBS boot screen, played for the first seconds after the pane opens: a modem dials and connects, then RUFLO- * materialises as big ANSI block art out of an animated ASCII field (the image-to-ASCII effect, done here in cells:- * an ordered dither decides when each cell resolves, noise characters flicker in the cells still resolving, and a- * plasma of dim characters moves behind). Then a handshake line and a bar that fills with the first ruflo reads.- * The boot is the one animation in the console that is decoration; it ends by itself.+ * The BBS boot screen, played for the first seconds after the pane opens: a modem dials and connects, then the RuFlo+ * neon sign strikes up tube by tube on its brick wall (gfx/neon.ts), then a handshake line and a bar that fills with+ * the first ruflo reads. The boot is the one animation in the console that is decoration; it ends by itself.*/-import { bigText } from './font'-import { Grid, mix } from './raster'+import { neonPicture, NEON_ROWS } from './neon'+import { Grid } from './raster'-export const BOOT_ROWS = 14+const SIGN_TOP = 2+export const BOOT_ROWS = SIGN_TOP + NEON_ROWS + 3-const MAGENTA = 0xff2a6d-const CORAL = 0xff7a59-const CYAN = 0x05d9e8const GREEN = 0x39ff14+const CYAN = 0x05d9e8const DIM = 0x6b7280-const SHADOW = 0x4a1030-const PLASMA = [0x2a1038, 0x3d1450, 0x5a1a66] as const-const NOISE = '.:-=+*#%@'-const FIELD = ' ยท:โ'-/** 4x4 ordered-dither thresholds: the order in which the logo's cells resolve. */-const BAYER = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5] as const--/** The logo as a pixel mask: the two-row half-block font, each cell two pixels tall. */-function logoMask(word: string): boolean[][] {- const [top, bottom] = bigText(word)- const rows: boolean[][] = [[], [], [], []]-- for (const [i, line] of [top, bottom].entries()) {- for (const ch of line) {- rows[i * 2]?.push(ch === 'โ' || ch === 'โ')- rows[i * 2 + 1]?.push(ch === 'โ' || ch === 'โ')- }- }-- return rows-}--const MASK = logoMask('RUFLO')-const MASK_W = MASK[0]?.length ?? 0-/** Each mask pixel is drawn as a 2x2 block of cells. */-const SCALE = 2-export const LOGO_COLUMNS = MASK_W * SCALE-const LOGO_TOP = 3-const LOGO_ROWS = MASK.length * SCALE--const hash = (x: number, y: number, k: number): number => (Math.imul(x, 73_856_093) ^ Math.imul(y, 19_349_663) ^ Math.imul(k, 83_492_791)) >>> 0-const isOn = (cx: number, cy: number): boolean => MASK[Math.floor(cy / SCALE)]?.[Math.floor(cx / SCALE)] === true+/** The sign is switched on once the line connects. */+const SIGN_ON_MS = 900/*** `age` is ms since the pane opened; the bar mixes elapsed time with the reads that have answered (`done` of@@ -61,69 +28,24 @@ export function bootPicture(project: string, columns: number, age: number, done:}type(0, 0, `ATDT ruflo.local${age >= 450 ? ' RINGโฆ RINGโฆ' : ''}`, DIM, 18)- type(1, 700, 'CONNECT 115200 / ARQ / V.42bis', GREEN, 12)+ type(1, 600, 'CONNECT 115200 / ARQ / V.42bis', GREEN, 12)- const left = Math.max(0, Math.floor((Math.min(columns, LOGO_COLUMNS + 26) - LOGO_COLUMNS - 26) / 2))- const frame = Math.floor(age / 70)- // Resolve runs 0..1 from 0.9 s to 2.4 s; the plasma fades out from 2.6 s so the finished logo stands clean.- const resolve = Math.max(0, Math.min(1, (age - 900) / 1500))- const fieldFade = age < 900 ? Math.max(0, (age - 300) / 600) : age < 2600 ? 1 : Math.max(0, 1 - (age - 2600) / 600)- const glint = ((age / 24) % (LOGO_COLUMNS + 30)) - 10+ // The sign's wall shows from the start, unlit; the tubes strike from SIGN_ON_MS.+ const sign = neonPicture(columns, age - SIGN_ON_MS, true)- if (age >= 300) {- for (let cy = 0; cy < LOGO_ROWS; cy++) {- for (let cx = 0; cx < Math.min(LOGO_COLUMNS + 2, columns - left); cx++) {- const x = left + cx- const y = LOGO_TOP + cy-- if (isOn(cx, cy)) {- // Each cell resolves when the sweep plus its dither threshold passes it; just before, it flickers as noise.- const at = (BAYER[(cy % 4) * 4 + (cx % 4)] as number) / 16 * 0.55 + (cx / LOGO_COLUMNS) * 0.45- const gap = resolve - at-- if (gap >= 0) {- const base = mix(mix(MAGENTA, CORAL, cy / (LOGO_ROWS - 1)), CYAN, cx / LOGO_COLUMNS * 0.55)- const shine = Math.max(0, 1 - Math.abs(cx - glint) / 3)-- grid.set(x, y, gap < 0.06 ? 'โ' : 'โ', mix(base, 0xffffff, shine * 0.65))- } else if (gap > -0.25) {- grid.set(x, y, NOISE[hash(cx, cy, frame) % NOISE.length] as string, mix(CYAN, MAGENTA, (hash(cy, cx, frame) % 100) / 100))- } else if (fieldFade > 0) {- grid.set(x, y, 'ยท', mix(0x000000, PLASMA[0], fieldFade))- }- } else if (isOn(cx - 1, cy - 1) && resolve - ((cx - 1) / LOGO_COLUMNS) * 0.45 > 0.35) {- // A drop shadow down and right of the resolved letters, the way ANSI title screens set their logos off.- grid.set(x, y, 'โ', SHADOW)- } else if (fieldFade > 0) {- const v = Math.sin(cx * 0.33 + age / 300) + Math.sin(cy * 0.9 - age / 230) + Math.sin((cx + cy) * 0.18 + age / 410)- const k = Math.max(0, Math.min(FIELD.length - 1, Math.floor(((v + 3) / 6) * FIELD.length)))-- if (k > 0) grid.set(x, y, FIELD[k] as string, mix(0x000000, PLASMA[k - 1] as number, fieldFade))- }- }- }- }-- const tagX = left + LOGO_COLUMNS + 3-- if (age >= 1700 && columns >= tagX + 12) {- grid.text(tagX, LOGO_TOP + 1, 'โโโ AGENT SWARM'.slice(0, columns - tagX), MAGENTA)- grid.text(tagX, LOGO_TOP + 2, ' CONSOLE'.slice(0, columns - tagX), CORAL)- grid.text(tagX, LOGO_TOP + 4, 'x.ruv.io'.slice(0, columns - tagX), CYAN)- grid.text(tagX, LOGO_TOP + 5, 'AGENTS WELCOME.'.slice(0, columns - tagX), GREEN)- }+ grid.cells.set(sign.cells, SIGN_TOP * columns * 3)- type(BOOT_ROWS - 3, 2200, `> handshake ok ยท node ${project}`, CYAN, 14)+ type(BOOT_ROWS - 2, 2300, `> handshake ok ยท node ${project}`, CYAN, 14)// LOADING [โโโโโโโโ] 58% reads 6/10, with a blinking cursor while it runs.- if (age >= 2200) {- const pct = Math.min(1, 0.55 * Math.min(1, (age - 2200) / 800) + 0.45 * (total > 0 ? done / total : 1))+ if (age >= 2300) {+ const pct = Math.min(1, 0.55 * Math.min(1, (age - 2300) / 700) + 0.45 * (total > 0 ? done / total : 1))const barWidth = Math.max(6, Math.min(24, columns - 30))const filled = Math.round(pct * barWidth)const line = `LOADING [${'โ'.repeat(filled)}${'โ'.repeat(barWidth - filled)}] ${String(Math.round(pct * 100)).padStart(3)}% reads ${done}/${total}`- grid.text(0, BOOT_ROWS - 2, line.slice(0, columns), pct >= 1 ? GREEN : CYAN)- if (Math.floor(age / 400) % 2 === 0 && line.length + 1 < columns) grid.set(line.length + 1, BOOT_ROWS - 2, 'โ', CYAN)+ grid.text(0, BOOT_ROWS - 1, line.slice(0, columns), pct >= 1 ? GREEN : CYAN)+ if (Math.floor(age / 400) % 2 === 0 && line.length + 1 < columns) grid.set(line.length + 1, BOOT_ROWS - 1, 'โ', CYAN)}return griddiff --git a/plugins/ruflo-console/hooks/gfx/neon.ts b/plugins/ruflo-console/hooks/gfx/neon.tsnew file mode 100644index 0000000000..c954404d56--- /dev/null+++ b/plugins/ruflo-console/hooks/gfx/neon.ts@@ -0,0 +1,181 @@+/**+ * The RuFlo neon sign (ruflo/assets/ruflo-small.jpeg) in terminal cells: a pink rounded frame hung on clips and wires,+ * yellow tube lettering, a cyan circle of waves, on a dim brick wall. The tubes are line characters; the glow is the+ * cells' background, mixed toward each tube's colour by distance, so the light spills onto the wall as in the photo.+ * Animated (the boot), the tubes strike one after another with a stutter, then hum, with now and then a buzz; still+ * (the main menu), the sign is simply lit.+ */+import { Grid, mix } from './raster'++/** Light adds: the wall keeps its colour and the tube's light is laid over it, so a halo stays saturated, not muddy. */+function add(base: number, light: number, k: number): number {+ const channel = (shift: number) => Math.min(255, Math.round(((base >> shift) & 255) + ((light >> shift) & 255) * k))++ return (channel(16) << 16) | (channel(8) << 8) | channel(0)+}++/** Tube colours on the xterm-256 cube, so the sign reads the same where Claude Code draws in 256 colours: the lit+ * tube (a cell's background) and its white-hot core (the line drawn on it). */+const PINK = 0xd7005f+const YELLOW = 0xd7af00+const CYAN = 0x00afd7+const CORE: Record<number, number> = { [PINK]: 0xffafd7, [YELLOW]: 0xffff87, [CYAN]: 0xafffff }+const UNLIT = 0x3b3440+const CLIP = 0x26262c+const WIRE = 0x15151a++/** The lettering, five rows, one string per row; lower case sits on rows 1-4. */+const GLYPHS: Record<string, readonly string[]> = {+ R: ['โญโโโโฎ', 'โ โ', 'โโโโฌโฏ', 'โ โฐโฎ', 'โต โฐ'],+ u: [' ', 'โท โท', 'โ โ', 'โ โ', 'โฐโโโโฏ'],+ f: [' โญโโด', ' โ ', 'โถโผโโด', ' โ ', ' โต '],+ l: ['โท ', 'โ ', 'โ ', 'โ ', 'โฐโด'],+ o: [' ', 'โญโโโโฎ', 'โ โ', 'โ โ', 'โฐโโโโฏ'],+}+const BADGE = ['โญโโโโโโโโฎ', 'โ ~~~~~ โ', 'โ ~~~~~ โ', 'โ ~~~~~ โ', 'โฐโโโโโโโโฏ'] as const++type Cell = { x: number; y: number; ch: string; tube: number }+type Tube = { color: number; strikeMs: number; seed: number }++/** The sign's cells in its own coordinates, built once: where each tube character sits and which tube it belongs to. */+function build(): { width: number; height: number; cells: Cell[]; tubes: Tube[]; clips: number[]; inner: { x0: number; x1: number; y0: number; y1: number } } {+ const word = 'Ruflo'+ const tubes: Tube[] = [{ color: PINK, strikeMs: 0, seed: 1 }]+ const cells: Cell[] = []+ const pad = 3+ let x = 1 + pad++ ;[...word].forEach((letter, i) => {+ const glyph = GLYPHS[letter] ?? []+ const tube = tubes.push({ color: YELLOW, strikeMs: 420 + i * 170, seed: 11 + i }) - 1++ glyph.forEach((line, row) => [...line].forEach((ch, col) => ch !== ' ' && cells.push({ x: x + col, y: 3 + row, ch, tube })))+ x += (glyph[0]?.length ?? 0) + 1+ })++ const badge = tubes.push({ color: CYAN, strikeMs: 420 + word.length * 170 + 160, seed: 41 }) - 1++ x += 1+ BADGE.forEach((line, row) => [...line].forEach((ch, col) => ch !== ' ' && cells.push({ x: x + col, y: 3 + row, ch, tube: badge })))+ x += BADGE[0].length + pad++ const width = x + 1+ const height = 11++ // The frame: a rounded rectangle on rows 1 and 9, with three clips on each long side and the wires they hang from.+ for (let cx = 1; cx < width - 1; cx++) {+ cells.push({ x: cx, y: 1, ch: 'โ', tube: 0 }, { x: cx, y: 9, ch: 'โ', tube: 0 })+ }+ for (let cy = 2; cy < 9; cy++) cells.push({ x: 0, y: cy, ch: 'โ', tube: 0 }, { x: width - 1, y: cy, ch: 'โ', tube: 0 })+ cells.push({ x: 0, y: 1, ch: 'โญ', tube: 0 }, { x: width - 1, y: 1, ch: 'โฎ', tube: 0 }, { x: 0, y: 9, ch: 'โฐ', tube: 0 }, { x: width - 1, y: 9, ch: 'โฏ', tube: 0 })++ return { width, height, cells, tubes, clips: [4, Math.floor(width / 2) - 1, width - 6], inner: { x0: 1, x1: width - 2, y0: 2, y1: 8 } }+}++const SIGN = build()+export const NEON_COLUMNS = SIGN.width+export const NEON_ROWS = SIGN.height++/** For each cell of the sign's box, the tubes within reach and how much of each one's light lands there. */+const GLOW: Map<number, { tube: number; w: number }[]> = (() => {+ const reach = 2+ const out = new Map<number, { tube: number; w: number }[]>()++ for (const cell of SIGN.cells) {+ for (let dy = -reach; dy <= reach; dy++) {+ for (let dx = -reach * 2; dx <= reach * 2; dx++) {+ // Cells are twice as tall as wide: a horizontal step counts half.+ const d = Math.hypot(dx / 2, dy)++ if (d > reach) continue++ const key = (cell.y + dy) * 4096 + (cell.x + dx)+ const list = out.get(key) ?? []+ // A halo, not a flood: each tube lights a cell by its nearest stretch only, falling off fast.+ const w = 0.32 * (1 - d / (reach + 0.5)) ** 2+ const same = list.find(entry => entry.tube === cell.tube)++ if (same !== undefined) same.w = Math.max(same.w, w)+ else list.push({ tube: cell.tube, w })+ out.set(key, list)+ }+ }+ }++ return out+})()++const hash = (a: number, b: number): number => (Math.imul(a, 73_856_093) ^ Math.imul(b, 19_349_663)) >>> 0++/** How brightly a tube burns at `age` ms: dark before its strike, a stutter as it catches, then a hum and rare buzz. */+function power(tube: Tube, age: number, isAnimated: boolean): number {+ if (!isAnimated) return 1+ if (age < tube.strikeMs) return 0++ const since = age - tube.strikeMs++ if (since < 380) return hash(Math.floor(since / 45), tube.seed) % 3 === 0 ? 0.12 : 0.55 + since / 900+ if (hash(Math.floor(age / 90), tube.seed) % 53 === 0) return 0.35++ return 0.9 + 0.1 * Math.sin(age / 210 + tube.seed)+}++/** The wall behind the sign: bricks a row tall in a running bond, teal on the left warming to rose on the right. */+function wall(x: number, y: number, columns: number): number {+ const base = mix(0x0f2f38, 0x3a1230, x / Math.max(1, columns - 1))+ const brick = Math.floor((x + (y % 2) * 3) / 6)+ const isSeam = (x + (y % 2) * 3) % 6 === 0++ return isSeam ? mix(base, 0x000000, 0.22) : mix(base, 0x4a2a38, (hash(brick, y) % 100) / 500)+}++/**+ * The sign centred in `columns`, `age` ms after it was switched on. `isAnimated` false draws it fully lit and still+ * (the main menu: motion there must mean data). Narrower than the sign, it is clipped at the right.+ */+export function neonPicture(columns: number, age: number, isAnimated: boolean): Grid {+ const grid = new Grid(columns, NEON_ROWS)+ const left = Math.max(0, Math.floor((columns - SIGN.width) / 2))+ const levels = SIGN.tubes.map(tube => power(tube, age, isAnimated))++ for (let y = 0; y < NEON_ROWS; y++) {+ for (let gx = 0; gx < columns; gx++) {+ const sx = gx - left+ const bg = wall(gx, y, columns)+++ let light = 0+ let tint = 0x000000++ for (const { tube, w } of GLOW.get(y * 4096 + sx) ?? []) {+ const amount = w * (levels[tube] ?? 0)++ if (amount <= 0) continue+ tint = light === 0 ? (SIGN.tubes[tube]?.color ?? 0) : mix(tint, SIGN.tubes[tube]?.color ?? 0, amount / (light + amount))+ light += amount+ }++ grid.set(gx, y, ' ', 0xffffff, light > 0 ? add(bg, tint, Math.min(0.22, light)) : bg)+ }+ }++ for (const cell of SIGN.cells) {+ const level = levels[cell.tube] ?? 0+ const color = SIGN.tubes[cell.tube]?.color ?? 0xffffff+ const at = (cell.y * columns + cell.x + left) * 3+ const under = grid.cells[at + 2] ?? 0++ grid.set(cell.x + left, cell.y, cell.ch, level <= 0.05 ? UNLIT : mix(UNLIT, CORE[color] ?? 0xffffff, Math.min(1, level)), level <= 0.05 || cell.ch === '~' ? under : mix(under, color, Math.min(1, level)))+ }++ // The hardware stays dark: clips over the frame, wires up and down off the panel.+ for (const cx of SIGN.clips) {+ for (const [y, wireY] of [[1, 0], [9, 10]] as const) {+ grid.set(left + cx, y, 'โ', CLIP, 0x0c0c10)+ grid.set(left + cx + 1, y, 'โ', CLIP, 0x0c0c10)+ grid.set(left + cx + 1, wireY, 'โ', WIRE)+ }+ }++ return grid+}diff --git a/plugins/ruflo-console/hooks/state.ts b/plugins/ruflo-console/hooks/state.tsindex ad68bc1e42..0c3a449f20 100644--- a/plugins/ruflo-console/hooks/state.ts+++ b/plugins/ruflo-console/hooks/state.ts@@ -21,7 +21,7 @@ export type ViewId = 'menu' | 'overview' | 'swarm' | 'claims' | 'federation' | '* current tab adds its label, and `blurb` is the one line under the bar that says what the view is for.*/export const VIEWS: readonly { id: ViewId; key: string; label: string; short: string; icon: string; blurb: string; rows: number }[] = [- { id: 'menu', key: '0', label: 'Main Menu', short: 'Mnu', icon: '๐', blurb: 'the board: every area by its key, the line status, and a prompt that takes a key or a name', rows: 32 },+ { id: 'menu', key: '0', label: 'Main Menu', short: 'Mnu', icon: '๐', blurb: 'the board: every area by its key, the line status, and a prompt that takes a key or a name', rows: 40 },{ id: 'overview', key: '1', label: 'Overview', short: 'Ovr', icon: '๐ ', blurb: 'what ruflo is doing here: subsystems, mods, health alerts and live activity', rows: 26 },{ id: 'swarm', key: '2', label: 'Swarm', short: 'Swm', icon: '๐', blurb: 'the swarm as ruflo wrote it: topology, agents at work, and the hive-mind votes', rows: 30 },{ id: 'claims', key: '3', label: 'Claims', short: 'Clm', icon: '๐', blurb: 'who holds which task: claim, release, hand off or steal, each after a y/n confirm', rows: 30 },diff --git a/plugins/ruflo-console/hooks/views/frames.ts b/plugins/ruflo-console/hooks/views/frames.tsindex 93aac414a8..400ac50b6c 100644--- a/plugins/ruflo-console/hooks/views/frames.ts+++ b/plugins/ruflo-console/hooks/views/frames.ts@@ -12,6 +12,7 @@ import { pipelinePicture, radarPicture, samplesPicture, trendPicture, gaugePictuimport { flowModelOf, flowPicture, flowRows } from '../gfx/flow'import { federationPicture, ganttPicture, heatmapPicture, type FedNode, type HealthRow, type Lane } from '../gfx/maps'import { activityPicture, bannerPicture, bootPicture, titlePicture, curvePicture, headerPicture, PULSE_MS, topologyPicture, type TopoModel } from '../gfx/pictures'+import { neonPicture } from '../gfx/neon'import type { Grid } from '../gfx/raster'import { PROBES, severityOf } from '../data/cli'import { EXPECTED_IN_MARKET, RUFLO_MARKET } from '../data/snapshot'@@ -128,12 +129,15 @@ export function picturesOf(state: State, columns: number, nowMs: number, t: numbif (!(state.pane.rows > 0 && state.pane.rows < rowsOf(state.view))) {const 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))+ // The main menu's neon sign stands in for the banner there.+ if (!(state.options.look === 'bbs' && state.view === 'menu')) 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' : state.view === 'menu' ? 'ruflo bbs' : (VIEWS.find(view => view.id === state.view)?.label ?? state.view)+ const name = state.isHelp ? 'help' : state.palette.isOpen ? 'palette' : state.view === 'agent' ? 'agent' : (VIEWS.find(view => view.id === state.view)?.label ?? state.view)+ const isMenu = state.view === 'menu' && !state.isHelp && !state.palette.isOpen- pictures.set('title', titlePicture(name, Math.min(width, 80), t))+ // The main menu hangs the RuFlo neon sign, lit and still; every other view its name in block art.+ pictures.set('title', isMenu ? neonPicture(width, 0, false) : titlePicture(name, Math.min(width, 80), t))}}diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.shindex fa8d8da457..a22c6fbb50 100755--- a/plugins/ruflo-console/scripts/smoke.sh+++ b/plugins/ruflo-console/scripts/smoke.sh@@ -11,9 +11,9 @@ step() { printf "โ %s ... " "$1"; }ok() { printf "PASS\n"; PASS=$((PASS+1)); }bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }-step "1. plugin.json declares ruflo-console 0.4.0"+step "1. plugin.json declares ruflo-console 0.5.0"grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.4.0"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.5.0"' "$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-console/tests/diagrams.spec.ts b/plugins/ruflo-console/tests/diagrams.spec.tsindex 97f74ff692..97afa4d614 100644--- a/plugins/ruflo-console/tests/diagrams.spec.ts+++ b/plugins/ruflo-console/tests/diagrams.spec.ts@@ -155,9 +155,11 @@ describe('BBS boot screen', () => {const done = text(bootPicture('demo', 60, 3_800, 10, 10), 60)expect(done).toContain('CONNECT 115200 / ARQ / V.42bis')- expect(done).toContain('โโโโโโ โโ โโ โโโโโโ')- expect(text(bootPicture('demo', 60, 1_400, 3, 10), 60)).toMatch(/[.:=+*#%@]/)- expect(done).toContain('AGENTS WELCOME.')+ expect(done).toContain('โ ~~~~~ โ')+ expect(done).toContain('โโ')+ // The tubes are dark before the line connects, lit once it has: the same cell, two colours.+ const fgAt = (age: number) => { const g = bootPicture('demo', 60, age, 3, 10); for (let i = 0; i < g.columns * g.rows; i++) if (g.cells[i * 3] === 0x256d) return g.cells[i * 3 + 1]; return -1 }+ expect(fgAt(500)).not.toBe(fgAt(3_800))expect(done).toContain('> handshake ok ยท node demo')expect(done).toContain('100% reads 10/10')})diff --git a/plugins/ruflo-console/tests/views.test.ts b/plugins/ruflo-console/tests/views.test.tsindex 88a08b324b..4f6a5713e5 100644--- a/plugins/ruflo-console/tests/views.test.ts+++ b/plugins/ruflo-console/tests/views.test.ts@@ -240,7 +240,7 @@ describe('views', () => {const pane = await $.ui.mount({ ...paneAt(110), surface: 'terminal' as const, plugin: PLUGIN })const menu = await pane.drawn()- expect(elementsOf(menu, 'Raster').map(keyOf)).toEqual(['header', 'title'])+ expect(elementsOf(menu, 'Raster').map(keyOf)).toEqual(['title'])expect(textOf(menu)).toContain('โ Swarm Commandsโ ')expect(textOf(menu)).toContain('Swarm Topology')expect(textOf(menu)).toContain('ANSI-BBS')