🌊 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(console): Theme Studio boot line, help guide, by-name nav, 0.43.0, no Python, files under 500 lines
RuFlodc4a519a2a9c
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.jsonindex 1efe23da59..74b00df4f8 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, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, 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. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings \u2192 Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",- "version": "0.42.7",+ "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, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, 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. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings → Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",+ "version": "0.43.0","author": {"name": "ruvnet","url": "https://github.com/ruvnet"@@ -85,7 +85,7 @@"look": {"type": "string","title": "Look",- "description": "bbs is the neon BBS look: an ASCII-art banner, \u2593\u2592\u2591 section headers and a cyberpunk palette. plain uses your terminal theme colours and plain rules (better on light backgrounds). orbital uses black telemetry panels, square red borders, muted values and green health indicators; best with a dark terminal.",+ "description": "bbs is the neon BBS look: an ASCII-art banner, ▓▒░ section headers and a cyberpunk palette. plain uses your terminal theme colours and plain rules (better on light backgrounds). orbital uses black telemetry panels, square red borders, muted values and green health indicators; best with a dark terminal.","default": "bbs","options": ["bbs",diff --git a/plugins/ruflo-console/CHANGELOG.md b/plugins/ruflo-console/CHANGELOG.mdindex 9d94411de1..5fd0ddacb8 100644--- a/plugins/ruflo-console/CHANGELOG.md+++ b/plugins/ruflo-console/CHANGELOG.md@@ -2,6 +2,10 @@Newest first. One `## <version> — <date>` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; older versions: `git log -- plugins/ruflo-console`.+## 0.43.0 — 2026-10-12+- feat: an optional Orbital look (black telemetry panels, square borders, a rotating globe, a scan sweep and a shaded Ruflo header that stays visible after boot) and Theme Studio: pick Classic BBS, plain or Orbital, six bundled color presets, up to twelve named custom themes, a color picker with a 3:1 minimum contrast, motion layers and speed, and a generate-console-theme skill whose JSON is imported through a strict, size-bounded schema. Classic BBS stays the default; open it from Main Menu → Tools, Settings or /ruflo themes+- fix: Theme Studio has its own boot-log line and help guide, and is reached by name (every hotkey letter is taken)+## 0.42.7 — 2026-10-11- feat: `ruflo tui` has five pages: Overview, Cost, Swarm, Events and Missions (keys 1 to 5, or o c s e m; Tab and Shift-Tab cycle). A page bar shows where you are, a key line says what the keys are, and the terminal redraws on a resize (a short bar under 60 columns, a one-line notice under 40). Room is left out on purpose: it is a message box and Claude sessions this host does not have (ADR-489)- fix: on the standalone terminal the shared chrome no longer draws what only Claude Code can do: no tab bar, footer buttons, Launch section, Ask Claude buttons or Claude control card, and buttons that nobody can press are not drawn (a state chip such as `● all 0` and a section title are). Under Claude Code nothing changes: every new branch is behind `state.isStandalone`diff --git a/plugins/ruflo-console/README.md b/plugins/ruflo-console/README.mdindex 021cca598b..86f6c89532 100644--- a/plugins/ruflo-console/README.md+++ b/plugins/ruflo-console/README.md@@ -121,14 +121,13 @@ Select a preset to load it immediately. Edit colors or motion and choose **SaveThe demo drives actual console view handlers through boot, Main Menu, all six presets, custom color and motion, save, fresh state restoration from a local JSON store, portable JSON import, reduced motion, and 80/116 column layouts. It checks each transition and writes `receipt.json`. This is a renderer integration demo, not a native Claude host recording: other console actions are not exercised, the FPS setting is changed by the harness, and no AI provider is invoked.-From the repository root, with Node, Python Pillow and ffmpeg available:+From the repository root, with Node:```shnpx tsx plugins/ruflo-console/scripts/theme-demo.mts /tmp/ruflo-demo-new-python3 plugins/ruflo-console/scripts/render-theme-demo.py /tmp/ruflo-demo-new```-Use a fresh output directory. The capture refuses to overwrite an existing `demo-session.json`; omitting the directory creates a unique temporary directory and prints its path. Outputs include a 38 second MP4 at 12 fps, a GIF at 6 fps, captured cell frames and an assertion receipt. Native host rendering and live AI theme generation remain separate acceptance checks.+Use a fresh output directory. The capture refuses to overwrite an existing `demo-session.json`; omitting the directory creates a unique temporary directory and prints its path. Outputs are `frames.json` (the captured terminal cells for every step, with a caption, palette and column count) and `receipt.json` (what was and was not exercised: no native host, no AI provider). Turning the frames into a GIF or video is left to your own renderer; the repository ships none, so no Python or image library is needed.The terminal color picker provides swatches and exact `#RRGGBB` entry for headings, success, failure, warning, information and background. Preview the globe and swarm motion, adjust speed and decorative layers, then **Save preview and apply**. Up to twelve named custom presets are stored locally through the host; reusing a name replaces that preset. Failed saves leave the active theme unchanged. Settings `fps: 0` still disables animation. Layouts retain the compact/narrow fallbacks.diff --git a/plugins/ruflo-console/hooks/controller.ts b/plugins/ruflo-console/hooks/controller.tsindex cf9a9379dc..c0b90b9b53 100644--- a/plugins/ruflo-console/hooks/controller.ts+++ b/plugins/ruflo-console/hooks/controller.ts@@ -20,11 +20,9 @@ import type { Host } from './host'import { agentLogs } from './ops'import { landingRefusal } from './model-tools'import { createRunner, EXPIRY_TIMER, type Runner } from './runner'-import { advance, loadLedger, mcOf } from './mission-control'+import { advance, mcOf } from './mission-control'import { hasLiveWork } from './mission-list'-import { loadAllowed } from './remember'-import { loadThemes } from './themes'-import { loadAiPrefs } from './settings'+import { loadSaved } from './startup-loads'import { openLoaders } from './view-open'import { listSkills } from './skills'import { readDrillLogs } from './drill-logs'@@ -318,10 +316,7 @@ export function createController(state: State, host: Host): Controller {let lastIdleMs = 0// The AI terminal's saved model and budget apply from the first turn, not only once Settings was opened.- void loadThemes(state, host)- void loadAiPrefs(state, host)- void loadAllowed(state, host)- void loadLedger(state, host)+ loadSaved(state, host)void host.storeGet(NAV_KEY).then(saved => {const style = NAV_STYLES.find(candidate => candidate === saved)diff --git a/plugins/ruflo-console/hooks/gfx/boot.ts b/plugins/ruflo-console/hooks/gfx/boot.tsindex b4473a9bb2..9531784db9 100644--- a/plugins/ruflo-console/hooks/gfx/boot.ts+++ b/plugins/ruflo-console/hooks/gfx/boot.ts@@ -60,6 +60,7 @@ export const BOOT_MODULES: readonly { name: string; note: string }[] = [{ name: 'AI Terminal', note: 'ruflo, codex, claude' },{ name: 'ADRs', note: 'decisions your project made' },{ name: 'What’s new', note: 'changes in your plugins' },+ { name: 'Themes', note: 'look, colors, motion' },{ name: 'Settings', note: 'every option a button' },]const NAME_WIDTH = 15diff --git a/plugins/ruflo-console/hooks/help-docs.ts b/plugins/ruflo-console/hooks/help-docs.tsindex 30f9b461d2..2bd0f27789 100644--- a/plugins/ruflo-console/hooks/help-docs.ts+++ b/plugins/ruflo-console/hooks/help-docs.ts@@ -69,6 +69,7 @@ export const VIEW_TOPIC: Partial<Record<ViewId, string>> = {settings: 'settings',whatsnew: 'whatsnew',adrs: 'adrs',+ themes: 'themes',timeline: 'watch',events: 'watch',room: 'room',diff --git a/plugins/ruflo-console/hooks/help-topics-more.ts b/plugins/ruflo-console/hooks/help-topics-more.tsindex 50e144bc11..74ca33c5a7 100644--- a/plugins/ruflo-console/hooks/help-topics-more.ts+++ b/plugins/ruflo-console/hooks/help-topics-more.ts@@ -260,6 +260,22 @@ export const MORE_TOPICS: readonly HelpTopic[] = [related: ['updates', 'plugins'],keywords: ['changelog', 'release', 'notes', 'new', 'breaking', 'version', 'changes'],},+ {+ id: 'themes',+ title: 'Theme Studio: look, colors and motion',+ group: 'Console',+ summary: 'pick Classic BBS, plain or Orbital, tune colors and motion, save presets',+ steps: [+ { text: 'Open Theme Studio (Main Menu → Tools, the TOOLS group, Settings, or /ruflo themes). 01 LOOK picks Classic BBS (the default), Terminal plain or Orbital, and six bundled color presets.', go: { view: 'themes' } },+ { text: '02 CUSTOMIZE has three tabs. Colors: name the theme, pick a role (head, ok, bad, warn, info, background) and type a hex color such as #72c79b. Motion: stars, globe and topology on or off, and speed 0.25x to 2x.' },+ { text: 'Save and apply needs at least 3:1 contrast between each color and the background. Up to twelve named themes are kept; reuse a name to replace one. If saving fails, the active theme is unchanged.' },+ { text: 'Discard draft changes restores the active palette. Use configured look goes back to the look set in Settings.' },+ { text: 'AI tab: describe a theme, press Generate with Claude or Codex, then paste the returned JSON into Import and Save. The generator returns data only; the import accepts a strict schema up to 4096 characters.' },+ { text: 'Motion follows the fps option. Set fps to 0 for a still frame (reduced motion). Colors use the 256-color palette in tmux.' },+ ],+ related: ['settings', 'terminal'],+ keywords: ['theme', 'themes', 'color', 'colors', 'orbital', 'look', 'animation', 'motion', 'palette', 'appearance', 'dark'],+ },{id: 'headless',title: 'Commands without the pane',diff --git a/plugins/ruflo-console/hooks/self-check.ts b/plugins/ruflo-console/hooks/self-check.tsindex 51dba5a042..3ba46bee28 100644--- a/plugins/ruflo-console/hooks/self-check.ts+++ b/plugins/ruflo-console/hooks/self-check.ts@@ -22,11 +22,11 @@ export const AREA_VIEW: Record<string, ViewId> = {Missions: 'missions', Overview: 'overview', Swarm: 'swarm', Workflows: 'workflows', 'Hive-Mind': 'hive', Claims: 'claims', Approvals: 'approvals', Automation: 'automate',Learning: 'learning', Neural: 'neural', 'Vector Lab': 'vector', 'Memory Lab': 'memory', MetaHarness: 'metaharness', 'Self-Evolution': 'evolve',Security: 'secure', Federation: 'federation', 'x.ruv.io': 'xruv', 'Plugins & Mods': 'plugins', Skills: 'skills', 'Plugin Catalog': 'market',- 'Dev Tools': 'devtools', Sandbox: 'sandbox', 'Cost & Budget': 'cost', Timeline: 'timeline', Events: 'events', 'The Room': 'room', Performance: 'perf', 'AI Terminal': 'terminal', 'What’s new': 'whatsnew', ADRs: 'adrs', Settings: 'settings',+ 'Dev Tools': 'devtools', Sandbox: 'sandbox', 'Cost & Budget': 'cost', Timeline: 'timeline', Events: 'events', 'The Room': 'room', Performance: 'perf', 'AI Terminal': 'terminal', 'What’s new': 'whatsnew', ADRs: 'adrs', Themes: 'themes', Settings: 'settings',}/** Pages with no hotkey on purpose (every letter is taken): reached from the menu, the nav, the palette or by name. */-const NAMED_ONLY: ReadonlySet<string> = new Set(['sandbox', 'room', 'workflows', 'whatsnew', 'adrs'])+const NAMED_ONLY: ReadonlySet<string> = new Set(['sandbox', 'room', 'workflows', 'whatsnew', 'adrs', 'themes'])export type Registries = { secure: readonly SecEntry[]; secureText: readonly SecText[]; perf: readonly PerfEntry[]; dev: readonly DevEntry[]; lab: readonly LabEntry[] }export const REGISTRIES: Registries = { secure: SECURE, secureText: SECURE_TEXT, perf: PERF, dev: DEV, lab: LAB }diff --git a/plugins/ruflo-console/hooks/startup-loads.ts b/plugins/ruflo-console/hooks/startup-loads.tsnew file mode 100644index 0000000000..23265891e5--- /dev/null+++ b/plugins/ruflo-console/hooks/startup-loads.ts@@ -0,0 +1,14 @@+/** What the controller reads back from host storage when the pane opens: theme, AI terminal prefs, remembered answers and the mission ledger. */+import type { Host } from './host'+import { loadLedger } from './mission-control'+import { loadAllowed } from './remember'+import { loadAiPrefs } from './settings'+import type { State } from './state'+import { loadThemes } from './themes'++export function loadSaved(state: State, host: Host): void {+ void loadThemes(state, host)+ void loadAiPrefs(state, host)+ void loadAllowed(state, host)+ void loadLedger(state, host)+}diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.tsindex 4dedca65dd..7e425a9576 100644--- a/plugins/ruflo-console/hooks/version.ts+++ b/plugins/ruflo-console/hooks/version.ts@@ -2,4 +2,4 @@* The console's version, shown on the header so a person can tell which build is running. Kept equal to the plugin's manifest* (`.claude-plugin/plugin.json`); tests/version.spec.ts fails if the two drift.*/-export const CONSOLE_VERSION = '0.42.7'+export const CONSOLE_VERSION = '0.43.0'diff --git a/plugins/ruflo-console/hooks/views/pane-icons.ts b/plugins/ruflo-console/hooks/views/pane-icons.tsnew file mode 100644index 0000000000..46832a7d83--- /dev/null+++ b/plugins/ruflo-console/hooks/views/pane-icons.ts@@ -0,0 +1,53 @@+/** The pane's icon row (menu, palette, help, settings, refresh) and where it sits beside the header art; split out of pane.ts to keep both under 500 lines. */+import type { RenderElement } from 'claude-code'++import { ICON_MARGIN, ICONS, iconsSpellWords } from '../icon-layout'+import { THEME, type Ctx } from './common'++/**+ * The icons on one line, at the right of the first row, beside the host's ✕: the main menu, the palette, help, settings and refresh (hooks/icon-layout.ts+ * says which glyphs and why). Each says its word as well when the pane is wide and the header art beside it leaves room for the whole row; otherwise it+ * is a glyph and a cell. The one for the page you are on is lit: coloured text of exactly the width of a button (a plain Button draws exactly its label).+ */+export function iconRow(ctx: Ctx): RenderElement {+ const { state } = ctx+ const header = ctx.pictures.get(state.view === 'menu' ? 'header' : 'title')+ const withWords = iconsSpellWords(ctx.columns, header?.columns ?? 0)+ const press: Record<(typeof ICONS)[number]['id'], { isCurrent: boolean; run: () => void }> = {+ menu: { isCurrent: state.view === 'menu' && !state.isHelp && !state.palette.isOpen, run: () => ctx.act.view('menu') },+ palette: { isCurrent: state.palette.isOpen, run: () => ctx.act.palette('all') },+ help: { isCurrent: state.isHelp, run: ctx.act.help },+ settings: { isCurrent: state.view === 'settings' && !state.isHelp && !state.palette.isOpen, run: () => ctx.act.view('settings') },+ // Refresh re-reads everything and replays the intro, as the footer's Refresh and the r key do; it is an action, never the page you are on.+ refresh: { isCurrent: false, run: ctx.act.restart },+ }++ return ctx.kit.Box({+ flexDirection: 'row',+ flexShrink: 0,+ key: 'pane-icons',+ children: [+ ...ICONS.map(icon => {+ const key = `pane-icon-${icon.id}`+ const label = withWords ? `${icon.glyph} ${icon.word} ` : `${icon.glyph} `+ const entry = press[icon.id]++ return entry.isCurrent+ ? ctx.kit.Box({ key, flexShrink: 0, children: [ctx.kit.Text({ bold: true, color: THEME.head, children: label })] })+ : ctx.kit.Button({ key, label, plain: true, dimColor: true, onPress: entry.run })+ }),+ ctx.kit.Text({ children: ' '.repeat(ICON_MARGIN) }),+ ],+ })+}++/** Puts the icon row at the right of the first line of the pane, beside the header art and its purpose line; with no header, on a row of its own. */+export function withIcons(ctx: Ctx, parts: RenderElement[], lead: number): RenderElement[] {+ if (ctx.columns < 40) return parts++ if (lead === 0) {+ return [ctx.kit.Box({ flexDirection: 'row', key: 'pane-top', children: [ctx.kit.Box({ flexGrow: 1, key: 'pane-top-gap', children: [ctx.kit.Text({ children: ' ' })] }), iconRow(ctx)] }), ...parts]+ }++ return [ctx.kit.Box({ flexDirection: 'row', key: 'pane-top', children: [ctx.kit.Box({ flexDirection: 'column', flexGrow: 1, key: 'pane-lead', children: parts.slice(0, lead) }), iconRow(ctx)] }), ...parts.slice(lead)]+}diff --git a/plugins/ruflo-console/hooks/views/pane.ts b/plugins/ruflo-console/hooks/views/pane.tsindex 980582b7f3..bfea2c6b99 100644--- a/plugins/ruflo-console/hooks/views/pane.ts+++ b/plugins/ruflo-console/hooks/views/pane.ts@@ -46,7 +46,7 @@ import { labResult } from './mh-lab'import { neuralResult, neuralView } from './neural'import { missionControlView } from './mission-control'import { overviewView } from './overview'-import { ICON_MARGIN, ICONS, iconsSpellWords } from '../icon-layout'+import { withIcons } from './pane-icons'import { helpView } from './help'import { paletteView } from './palette'import { perfResult, perfView } from './perf'@@ -316,54 +316,6 @@ const RESULT_OF: Partial<Record<ViewId, (ctx: Ctx) => RenderElement[]>> = {learning: neuralResult,}-/**- * The icons on one line, at the right of the first row, beside the host's ✕: the main menu, the palette, help, settings and refresh (hooks/icon-layout.ts- * says which glyphs and why). Each says its word as well when the pane is wide and the header art beside it leaves room for the whole row; otherwise it- * is a glyph and a cell. The one for the page you are on is lit: coloured text of exactly the width of a button (a plain Button draws exactly its label).- */-export function iconRow(ctx: Ctx): RenderElement {- const { state } = ctx- const header = ctx.pictures.get(state.view === 'menu' ? 'header' : 'title')- const withWords = iconsSpellWords(ctx.columns, header?.columns ?? 0)- const press: Record<(typeof ICONS)[number]['id'], { isCurrent: boolean; run: () => void }> = {- menu: { isCurrent: state.view === 'menu' && !state.isHelp && !state.palette.isOpen, run: () => ctx.act.view('menu') },- palette: { isCurrent: state.palette.isOpen, run: () => ctx.act.palette('all') },- help: { isCurrent: state.isHelp, run: ctx.act.help },- settings: { isCurrent: state.view === 'settings' && !state.isHelp && !state.palette.isOpen, run: () => ctx.act.view('settings') },- // Refresh re-reads everything and replays the intro, as the footer's Refresh and the r key do; it is an action, never the page you are on.- refresh: { isCurrent: false, run: ctx.act.restart },- }-- return ctx.kit.Box({- flexDirection: 'row',- flexShrink: 0,- key: 'pane-icons',- children: [- ...ICONS.map(icon => {- const key = `pane-icon-${icon.id}`- const label = withWords ? `${icon.glyph} ${icon.word} ` : `${icon.glyph} `- const entry = press[icon.id]-- return entry.isCurrent- ? ctx.kit.Box({ key, flexShrink: 0, children: [ctx.kit.Text({ bold: true, color: THEME.head, children: label })] })- : ctx.kit.Button({ key, label, plain: true, dimColor: true, onPress: entry.run })- }),- ctx.kit.Text({ children: ' '.repeat(ICON_MARGIN) }),- ],- })-}--/** Puts the icon row at the right of the first line of the pane, beside the header art and its purpose line; with no header, on a row of its own. */-function withIcons(ctx: Ctx, parts: RenderElement[], lead: number): RenderElement[] {- if (ctx.columns < 40) return parts-- if (lead === 0) {- return [ctx.kit.Box({ flexDirection: 'row', key: 'pane-top', children: [ctx.kit.Box({ flexGrow: 1, key: 'pane-top-gap', children: [ctx.kit.Text({ children: ' ' })] }), iconRow(ctx)] }), ...parts]- }-- return [ctx.kit.Box({ flexDirection: 'row', key: 'pane-top', children: [ctx.kit.Box({ flexDirection: 'column', flexGrow: 1, key: 'pane-lead', children: parts.slice(0, lead) }), iconRow(ctx)] }), ...parts.slice(lead)]-}-export function paneView(base: Ctx): RenderElement {setLook(base.state.options.look, activeTheme(base.state).palette)diff --git a/plugins/ruflo-console/scripts/render-theme-demo.py b/plugins/ruflo-console/scripts/render-theme-demo.pydeleted file mode 100644index b86d3fb4d2..0000000000--- a/plugins/ruflo-console/scripts/render-theme-demo.py+++ /dev/null@@ -1,43 +0,0 @@-"""Render theme-demo.mts frames to GIF and MP4. Requires Pillow and ffmpeg."""-import json, sys, subprocess-from pathlib import Path-from PIL import Image, ImageDraw, ImageFont-root=Path(sys.argv[1] if len(sys.argv)>1 else '/tmp/ruflo-console-demo')-frames=json.loads((root/'frames.json').read_text())-font=ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf',16)-small=ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf',12)-width=1208-height=120+max(len(f['rows']) for f in frames)*19-height+=height%2-# Cache rendered terminal cells so repeated text is not rasterized hundreds of times.-cache={}-def tile(c,bg):- key=(c['ch'],c['fg'],c.get('bg',bg))- if key not in cache:- im=Image.new('RGB',(10,19),key[2]);d=ImageDraw.Draw(im)- if c['ch'] in ['█','▀','▄']:- lo=9 if c['ch']=='▄' else 0;hi=8 if c['ch']=='▀' else 18- d.rectangle((0,lo,9,hi),fill=c['fg'])- elif c['ch']!=' ':d.text((0,0),c['ch'],font=font,fill=c['fg'])- cache[key]=im- return cache[key]-video=subprocess.Popen(['ffmpeg','-y','-loglevel','error','-f','rawvideo','-pixel_format','rgb24','-video_size',f'{width}x{height}','-framerate','12','-i','-','-an','-c:v','libx264','-preset','fast','-crf','19','-pix_fmt','yuv420p','-movflags','+faststart',str(root/'ruflo-console-demo.mp4')],stdin=subprocess.PIPE)-images=[]-for n,f in enumerate(frames):- im=Image.new('RGB',(width,height),f['bg']);d=ImageDraw.Draw(im)- d.text((24,16),'RUFLO / COMPLETE THEME WORKFLOW',font=font,fill=f['accent'])- d.text((24,45),f['caption'],font=small,fill='#a8b2bd')- d.line((24,68,width-24,68),fill=f['accent'])- left=24+(116-f['columns'])*5- for y,row in enumerate(f['rows']):- for x,c in enumerate(row):im.paste(tile(c,f['bg']),(left+x*10,78+y*19))- d.line((24,height-35,24+(width-48)*(n+1)/len(frames),height-35),fill=f['accent'],width=2)- d.text((24,height-23),'RENDERER DEMO / real UI actions + disk persistence / native host and AI generation unverified',font=small,fill='#a8b2bd')- video.stdin.write(im.tobytes())- # GIF at 6 fps; MP4 retains the full 12 fps capture.- if n%2==0:images.append(im.quantize(colors=128))- if n in [60,96,180,300,420]:im.save(root/f'check-{n}.png')-video.stdin.close()-if video.wait()!=0:raise RuntimeError('ffmpeg failed')-images[0].save(root/'ruflo-console-demo.gif',save_all=True,append_images=images[1:],duration=[160 if i%3==0 else 170 for i in range(len(images))],loop=0,optimize=False)-print(json.dumps({'width':width,'height':height,'frames':len(frames),'gifFrames':len(images),'seconds':len(frames)/12}))diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.shindex 56b7dcec88..ae146f657e 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.42.7"+step "1. plugin.json declares ruflo-console 0.43.0"grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \- && grep -q '"version": "0.42.7"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"+ && grep -q '"version": "0.43.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/skills/generate-console-theme/SKILL.md b/plugins/ruflo-console/skills/generate-console-theme/SKILL.mdindex 7e0fe23ab9..66361efbdc 100644--- a/plugins/ruflo-console/skills/generate-console-theme/SKILL.md+++ b/plugins/ruflo-console/skills/generate-console-theme/SKILL.md@@ -1,6 +1,7 @@---name: generate-console-themedescription: Generate a data-only animated theme preset for Ruflo Console Theme Studio. Use when the user requests a new console color palette, cyberpunk theme, or variation of Orbital globe, stars, and swarm animation in Claude or Codex.+allowed-tools: Read---# Generate a Ruflo console themediff --git a/plugins/ruflo-console/tests/boot-cyber.spec.ts b/plugins/ruflo-console/tests/boot-cyber.spec.tsindex cfc5913039..a00b0c5986 100644--- a/plugins/ruflo-console/tests/boot-cyber.spec.ts+++ b/plugins/ruflo-console/tests/boot-cyber.spec.ts@@ -59,7 +59,7 @@ describe('the cyberpunk log', () => {expect(text).toContain('RUV.NET // RUVECTOR CONSTELLATION')expect(text).toContain('rUv · ruflo v0.26.0 · abc123')expect(text).toContain('ruvector')- expect(text).toMatch(/\[WARN\] READY · 31 of 31 areas verified · \d+ stars? dark/)+ expect(text).toMatch(/\[WARN\] READY · 32 of 32 areas verified · \d+ stars? dark/)expect(text).not.toContain('ALL STARS ALIGNED')})@@ -76,7 +76,7 @@ describe('the cyberpunk log', () => {const failed = textOf(bootPicture('p', 90, 6000, 10, 10, rowsFor, failing, bootFacts(lit, '1', '')))expect(failed).not.toContain('ALL STARS ALIGNED')- expect(failed).toMatch(/\[FAIL\] READY · 30 of 31 areas verified · 1 failed/)+ expect(failed).toMatch(/\[FAIL\] READY · 31 of 32 areas verified · 1 failed/)})it('shows the easter egg only in its window, and it decodes to rUv', () => {@@ -97,7 +97,7 @@ describe('the cyberpunk log', () => {it('falls back to the plain log in a narrow or short pane', () => {const facts = bootFacts(withPlugins([]), '1', '')- expect(textOf(bootPicture('p', 44, 6000, 10, 10, rowsFor, allOk, facts))).toContain('[ OK ] READY 31 of 31 areas verified')+ expect(textOf(bootPicture('p', 44, 6000, 10, 10, rowsFor, allOk, facts))).toContain('[ OK ] READY 32 of 32 areas verified')expect(textOf(bootPicture('p', 90, 6000, 10, 10, BOOT_ROWS + 6, allOk, facts))).not.toContain('RUV.NET')})})diff --git a/plugins/ruflo-console/tests/nav.spec.ts b/plugins/ruflo-console/tests/nav.spec.tsindex 122a9b6137..878d5aa7df 100644--- a/plugins/ruflo-console/tests/nav.spec.ts+++ b/plugins/ruflo-console/tests/nav.spec.ts@@ -7,12 +7,12 @@ const RESERVED = ['p', 'x', 'r', 'h', 'j', 'k', 'y', 'n', 'o']describe('main nav hotkeys', () => {it('every view has one (a single digit or lowercase letter) or none (reached by name), and no two share one', () => {- // Every letter is a view key or reserved, so Sandbox has no key: it is reached from the menu, the nav or by typing `sandbox`.+ // Every letter is a view key or reserved, so Sandbox and Theme Studio have no key: they are reached from the menu, the nav or by typing `sandbox` or `themes`.const keys = VIEWS.map(view => view.key).filter(key => key !== '')expect(keys.every(key => /^[0-9a-z]$/.test(key))).toBe(true)expect(new Set(keys).size).toBe(keys.length)- expect(VIEWS.filter(view => view.key === '').map(view => view.id)).toEqual(['workflows', 'room', 'sandbox', 'adrs', 'whatsnew'])+ expect(VIEWS.filter(view => view.key === '').map(view => view.id)).toEqual(['workflows', 'room', 'sandbox', 'adrs', 'whatsnew', 'themes'])})it('none takes a key the footer, the confirm row, scrolling or the menu prompt owns', () => {