π 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): draw missing SVG icons and align animated glyph cells
rUvddadeaae6cfa
diff --git a/plugins/ruflo-console/scripts/render-theme-svg.mjs b/plugins/ruflo-console/scripts/render-theme-svg.mjsindex 943c1f261a..c83971f585 100644--- a/plugins/ruflo-console/scripts/render-theme-svg.mjs+++ b/plugins/ruflo-console/scripts/render-theme-svg.mjs@@ -11,6 +11,20 @@ height += height % 2const fps = 12, duration = frames.length / fpsconst esc = s => s.replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' })[c])const FONT = 'font-family="DejaVu Sans Mono, Menlo, Consolas, monospace"'+// Explicit vector icons avoid platform emoji fonts and missing-glyph boxes.+const ICONS = {+ "β": "M5 5V3M5 17v-2M1 9h2m4 0h2M2 5l1.5 1.5M7 12.5L8.5 14M2 14l1.5-1.5M7 6.5L8.5 5 M5 6a3 3 0 1 0 0 6a3 3 0 1 0 0-6",+ "β³": "M8 8A3.5 4 0 1 0 8 12M8 4v4H4",+ "π": "M1 5h8v10H1zM2.5 7h5v4h-5zM3 13h1m2 0h1",+ "π": "M4 5a3 3 0 1 0 0 6a3 3 0 1 0 0-6M6 11l3 4",+ "π»": "M2 5h6v8H2zM1 15h8l-1-2H2z",+ "π€": "M1 7h8v8H1zM5 7V4M4 4h2M3 10v1m4-1v1M3 13h4",+ "π§": "M7 4L5 6l1 2 2-1 1-2c1 4-1 5-3 5L2 15l-1-1 4-5C2 7 3 4 7 4z",+ "π§©": "M1 6h3V4h2v2h3v3H7v2h2v4H6v-2H4v2H1v-4h2V9H1z",+ "π": "M1 4v12h8zM3 10v4h3z",+ "π": "M1 5h8v10H1zM3 12V8l4 4V8",+ "β": "M5 5V3M5 17v-2M1 9h2m4 0h2M2 5l1.5 1.5M7 12.5L8.5 14M2 14l1.5-1.5M7 6.5L8.5 5 M5 6a3 3 0 1 0 0 6a3 3 0 1 0 0-6"+}const rows = new Map()const rowId = cells => {const key = JSON.stringify(cells.map(c => [c.ch, c.fg, c.bg ?? null]))@@ -23,15 +37,18 @@ const rowId = cells => {}// Block glyphs are drawn as rectangles so they stay crisp; other characters share one text run per foreground colour.let run = null- const flush = () => { if (run) out.push(`<text ${FONT} font-size="16" fill="${run.fg}" x="${run.x}" y="15" xml:space="preserve">${esc(run.text)}</text>`); run = null }+ const flush = () => { if (run) out.push(`<text ${FONT} font-size="16" fill="${run.fg}" x="${run.positions.join(' ')}" y="15" xml:space="preserve">${esc(run.text)}</text>`); run = null }cells.forEach((c, x) => {if (c.ch === 'β' || c.ch === 'β' || c.ch === 'β') {flush()const y = c.ch === 'β' ? 9 : 0, h = c.ch === 'β' ? 9 : c.ch === 'β' ? 10 : 19out.push(`<rect fill="${c.fg}" x="${x * 10}" y="${y}" width="10" height="${h}"/>`)- } else if (c.ch === ' ') flush()- else if (run && run.fg === c.fg && run.next === x) { run.text += c.ch; run.next = x + 1 }- else { flush(); run = { fg: c.fg, x: x * 10, text: c.ch, next: x + 1 } }+ } else if (Object.hasOwn(ICONS, c.ch)) {+ flush()+ out.push(`<path transform="translate(${x * 10},0)" d="${ICONS[c.ch]}" fill="none" stroke="${c.fg}" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>`)+ } else if (c.ch === ' ' || c.ch === '\ufe0f' || c.ch === '\ufe0e') flush()+ else if (run && run.fg === c.fg && run.next === x) { run.text += c.ch; run.positions.push(x * 10); run.next = x + 1 }+ else { flush(); run = { fg: c.fg, positions: [x * 10], text: c.ch, next: x + 1 } }})flush()rows.set(key, { id, svg: `<g id="${id}">${out.join('')}</g>` })@@ -56,3 +73,4 @@ const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${const file = resolve(root, 'ruflo-console-demo.svg')writeFileSync(file, svg)console.log(JSON.stringify({ file, bytes: Buffer.byteLength(svg), frames: frames.length, seconds: duration, rowSymbols: rows.size, sha256: createHash('sha256').update(svg).digest('hex') }))+