From ebb9e4a5cb4f12103fb2c3198fc77ac281fc0588 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 19 Nov 2026 14:27:22 -0500 Subject: [PATCH] Build README headers, badges and capability panels from the ruPro workspace design --- docs/assets/readme/badges/chatgpt.svg | 9 +- .../assets/readme/badges/claude-directory.svg | 31 ++--- docs/assets/readme/badges/claude.svg | 9 +- docs/assets/readme/badges/codex.svg | 9 +- docs/assets/readme/badges/downloads.svg | 31 ++--- docs/assets/readme/badges/first-commit.svg | 9 +- docs/assets/readme/capabilities.svg | 12 +- docs/assets/readme/card-learning.svg | 12 +- docs/assets/readme/card-memory.svg | 12 +- docs/assets/readme/card-plugins.svg | 12 +- docs/assets/readme/card-routing.svg | 12 +- docs/assets/readme/card-security.svg | 12 +- docs/assets/readme/card-swarm.svg | 12 +- docs/assets/readme/console-icon-control.svg | 2 +- docs/assets/readme/console-icon-inspect.svg | 2 +- docs/assets/readme/console-icon-workflows.svg | 2 +- docs/assets/readme/console.svg | 12 +- docs/assets/readme/documentation.svg | 12 +- docs/assets/readme/federation.svg | 12 +- docs/assets/readme/icons/agents.svg | 2 +- docs/assets/readme/icons/audit.svg | 2 +- docs/assets/readme/icons/federation.svg | 2 +- docs/assets/readme/icons/learning.svg | 2 +- docs/assets/readme/icons/memory.svg | 2 +- docs/assets/readme/icons/network.svg | 2 +- docs/assets/readme/icons/plugins.svg | 2 +- docs/assets/readme/icons/routing.svg | 2 +- docs/assets/readme/icons/security.svg | 2 +- docs/assets/readme/icons/swarm.svg | 2 +- docs/assets/readme/icons/terminal.svg | 2 +- docs/assets/readme/icons/workers.svg | 2 +- docs/assets/readme/quick-start.svg | 12 +- docs/assets/readme/rupro-demo.svg | 40 +----- docs/assets/readme/rupro-explore.svg | 41 +------ docs/assets/readme/support.svg | 12 +- docs/assets/readme/theme_artwork.py | 4 + docs/assets/readme/workspace_panels.py | 116 ++++++++++++++++++ 37 files changed, 273 insertions(+), 200 deletions(-) create mode 100644 docs/assets/readme/workspace_panels.py diff --git a/docs/assets/readme/badges/chatgpt.svg b/docs/assets/readme/badges/chatgpt.svg index 2859855c2b..fe379622b4 100644 --- a/docs/assets/readme/badges/chatgpt.svg +++ b/docs/assets/readme/badges/chatgpt.svg @@ -1,2 +1,7 @@ -ChatGPT pluginChatGPT plugin badge with a rotating three dimensional cube in mint green. Animation pauses to a readable static frame with reduced motion.PLUGINChatGPTRuFlo Federation for ChatGPT - + +ChatGPTChatGPT. RuFlo Federation for ChatGPT. + + + +PLUGINChatGPTRuFlo Federation for ChatGPT + diff --git a/docs/assets/readme/badges/claude-directory.svg b/docs/assets/readme/badges/claude-directory.svg index 7e329923fd..1a1f032135 100644 --- a/docs/assets/readme/badges/claude-directory.svg +++ b/docs/assets/readme/badges/claude-directory.svg @@ -1,24 +1,7 @@ - -Claude plugin directory -Open the supplied Claude plugin listing. This badge does not claim installation or endorsement. - - - - - - - - -CLAUDE PLUGIN -VIEW IN CLAUDE -PLUGIN DIRECTORY - - - - + +VIEW IN CLAUDEOpen the supplied Claude plugin listing. This badge does not claim installation or endorsement. + + + +CLAUDE PLUGINVIEW IN CLAUDEPLUGIN DIRECTORY + diff --git a/docs/assets/readme/badges/claude.svg b/docs/assets/readme/badges/claude.svg index be0615b616..73d0956737 100644 --- a/docs/assets/readme/badges/claude.svg +++ b/docs/assets/readme/badges/claude.svg @@ -1,2 +1,7 @@ -Claude Code integrationClaude Code integration badge with a rotating three dimensional octahedron in warm coral. Animation pauses to a readable static frame with reduced motion.INTEGRATIONClaude CodeTools, console and mods - + +Claude CodeClaude Code. Tools, console and mods. + + + +INTEGRATIONClaude CodeTools, console and mods + diff --git a/docs/assets/readme/badges/codex.svg b/docs/assets/readme/badges/codex.svg index 7f58a4f77c..f0d78117d1 100644 --- a/docs/assets/readme/badges/codex.svg +++ b/docs/assets/readme/badges/codex.svg @@ -1,2 +1,7 @@ -Codex integrationCodex integration badge with a rotating three dimensional cube in cool cyan. Animation pauses to a readable static frame with reduced motion.INTEGRATIONCodexCoding agent integration - + +CodexCodex. Coding agent integration. + + + +INTEGRATIONCodexCoding agent integration + diff --git a/docs/assets/readme/badges/downloads.svg b/docs/assets/readme/badges/downloads.svg index 093917b534..8366c232bc 100644 --- a/docs/assets/readme/badges/downloads.svg +++ b/docs/assets/readme/badges/downloads.svg @@ -1,24 +1,7 @@ - -npm downloads: 120.95M observed since October 2025 -120,946,147 observed npm download events since 2025-10-01, 429 package cohort, evidence through 2026-11-15. Observed lower bound with historical gaps, not unique users or lifetime downloads. No animated counter increments are claimed. - - - - - - - - -NPM DOWNLOADS -120.95M -OBSERVED SINCE OCT 2025 - - - - + +120.95M120,946,147 observed npm download events since 2025-10-01, 429 package cohort, evidence through 2026-11-15. Observed lower bound with historical gaps, not unique users or lifetime downloads. No animated counter increments are claimed. + + + +NPM DOWNLOADS120.95MOBSERVED SINCE OCT 2025 + diff --git a/docs/assets/readme/badges/first-commit.svg b/docs/assets/readme/badges/first-commit.svg index 7644d73a42..0023394929 100644 --- a/docs/assets/readme/badges/first-commit.svg +++ b/docs/assets/readme/badges/first-commit.svg @@ -1,2 +1,7 @@ -Claude Flow lineage: first commit June 2, 2025Ruflo began as claude-code-flow. Commit 7c1f9402 by rUv. Follow the surrounding link for dated source evidence. Rotating 3D icon; a static frame is shown with reduced motion.CLAUDE FLOW LINEAGEJune 2, 2025First commit · 7c1f9402 - + +June 2, 2025Ruflo began as claude-code-flow. Commit 7c1f9402 by rUv. Follow the surrounding link for dated source evidence. + + + +CLAUDE FLOW LINEAGEJune 2, 2025First commit · 7c1f9402 + diff --git a/docs/assets/readme/capabilities.svg b/docs/assets/readme/capabilities.svg index d0dbf2accf..08a8b1cbcd 100644 --- a/docs/assets/readme/capabilities.svg +++ b/docs/assets/readme/capabilities.svg @@ -1,5 +1,7 @@ -ONE HARNESS. MANY MINDS.Teams, memory and tools working together. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 03Teams, memory and tools working together.01 / COORDINATE02 / REMEMBER03 / VERIFYCOORDINATE / VERIFY - - - - \ No newline at end of file + +One harness. Many minds.Teams, memory and tools working together. + + + +RUFLO · AGENT WORKSPACEOne harness.Many minds.Teams, memory and tools working together.Ruflo / Agent workspaceCoordinate agentsRecall contextVerify results + diff --git a/docs/assets/readme/card-learning.svg b/docs/assets/readme/card-learning.svg index 758940f9ab..ddb51c0ef0 100644 --- a/docs/assets/readme/card-learning.svg +++ b/docs/assets/readme/card-learning.svg @@ -1,5 +1,7 @@ -Learning loopsIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYCapture successful patterns.Use feedback on future tasks. - - - - \ No newline at end of file + +Learning loopsCapture successful patterns. Use feedback on future tasks. + + + +RUFLO · CAPABILITYLearning loopsCapture successful patterns.Use feedback on future tasks. + diff --git a/docs/assets/readme/card-memory.svg b/docs/assets/readme/card-memory.svg index 27258ea303..56ef380d09 100644 --- a/docs/assets/readme/card-memory.svg +++ b/docs/assets/readme/card-memory.svg @@ -1,5 +1,7 @@ -Persistent memoryIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYRetrieve useful context.Carry knowledge across sessions. - - - - \ No newline at end of file + +Persistent memoryRetrieve useful context. Carry knowledge across sessions. + + + +RUFLO · CAPABILITYPersistent memoryRetrieve useful context.Carry knowledge across sessions. + diff --git a/docs/assets/readme/card-plugins.svg b/docs/assets/readme/card-plugins.svg index 9b5302a528..8f78898305 100644 --- a/docs/assets/readme/card-plugins.svg +++ b/docs/assets/readme/card-plugins.svg @@ -1,5 +1,7 @@ -Plugin ecosystemIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYAdd plugins, skills and tools.Build the setup your team needs. - - - - \ No newline at end of file + +Plugin ecosystemAdd plugins, skills and tools. Build the setup your team needs. + + + +RUFLO · CAPABILITYPlugin ecosystemAdd plugins, skills and tools.Build the setup your team needs. + diff --git a/docs/assets/readme/card-routing.svg b/docs/assets/readme/card-routing.svg index 230e2d4e20..e574aacf98 100644 --- a/docs/assets/readme/card-routing.svg +++ b/docs/assets/readme/card-routing.svg @@ -1,5 +1,7 @@ -Models and routingIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYConnect model providers.Route work through your harness. - - - - \ No newline at end of file + +Models and routingConnect model providers. Route work through your harness. + + + +RUFLO · CAPABILITYModels and routingConnect model providers.Route work through your harness. + diff --git a/docs/assets/readme/card-security.svg b/docs/assets/readme/card-security.svg index b4fe646db3..cb24f2ed81 100644 --- a/docs/assets/readme/card-security.svg +++ b/docs/assets/readme/card-security.svg @@ -1,5 +1,7 @@ -Security controlsIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYInspect inputs and tool access.Keep decisions auditable. - - - - \ No newline at end of file + +Security controlsInspect inputs and tool access. Keep decisions auditable. + + + +RUFLO · CAPABILITYSecurity controlsInspect inputs and tool access.Keep decisions auditable. + diff --git a/docs/assets/readme/card-swarm.svg b/docs/assets/readme/card-swarm.svg index 7f3cc9da8f..ec04c8b4be 100644 --- a/docs/assets/readme/card-swarm.svg +++ b/docs/assets/readme/card-swarm.svg @@ -1,5 +1,7 @@ -Agent teamsIllustrative Ruflo artwork. Motion is decorative; no live metrics. Supports reduced motion.RUFLO / CAPABILITYCoordinate specialized agents.Share tasks and context. - - - - \ No newline at end of file + +Agent teamsCoordinate specialized agents. Share tasks and context. + + + +RUFLO · CAPABILITYAgent teamsCoordinate specialized agents.Share tasks and context. + diff --git a/docs/assets/readme/console-icon-control.svg b/docs/assets/readme/console-icon-control.svg index f485cb20ea..7967ab0994 100644 --- a/docs/assets/readme/console-icon-control.svg +++ b/docs/assets/readme/console-icon-control.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/console-icon-inspect.svg b/docs/assets/readme/console-icon-inspect.svg index 2214585a3d..e9f91b760e 100644 --- a/docs/assets/readme/console-icon-inspect.svg +++ b/docs/assets/readme/console-icon-inspect.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/console-icon-workflows.svg b/docs/assets/readme/console-icon-workflows.svg index 230c655b17..250b8d634d 100644 --- a/docs/assets/readme/console-icon-workflows.svg +++ b/docs/assets/readme/console-icon-workflows.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/console.svg b/docs/assets/readme/console.svg index fd00e819a7..b82ba1ee3b 100644 --- a/docs/assets/readme/console.svg +++ b/docs/assets/readme/console.svg @@ -1,5 +1,7 @@ -MISSION CONTROLYour team. Every decision in view. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 01Your team. Every decision in view.01 / OBSERVE02 / INSPECT03 / CONTROLOBSERVE / CONTROL - - - - \ No newline at end of file + +Mission control.Your team. Every decision in view. + + + +RUFLO · RUN INSPECTORMissioncontrol.Your team. Every decision in view.Ruflo / Run inspectorObserve activityInspect evidenceReview controls + diff --git a/docs/assets/readme/documentation.svg b/docs/assets/readme/documentation.svg index 14f293a94c..e8add66ad7 100644 --- a/docs/assets/readme/documentation.svg +++ b/docs/assets/readme/documentation.svg @@ -1,5 +1,7 @@ -UNDERSTAND. THEN BUILD.Explore the guides. Inspect the evidence. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 05Explore the guides. Inspect the evidence.01 / EXPLORE02 / REPRODUCE03 / VERIFYEXPLORE / VERIFY - - - - \ No newline at end of file + +Understand. Then build.Explore the guides. Inspect the evidence. + + + +RUFLO · DOCUMENTATIONUnderstand.Then build.Explore the guides. Inspect the evidence.Ruflo / DocumentationExplore the guidesReproduce a resultVerify the evidence + diff --git a/docs/assets/readme/federation.svg b/docs/assets/readme/federation.svg index b4af41907a..5ead1997c2 100644 --- a/docs/assets/readme/federation.svg +++ b/docs/assets/readme/federation.svg @@ -1,5 +1,7 @@ -LOCAL AGENTS. SHARED INTENT.Work across machines with identity and policy. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 04Work across machines with identity and policy.01 / IDENTIFY02 / PROTECT03 / EXCHANGEIDENTIFY / EXCHANGE - - - - \ No newline at end of file + +Local agents. Shared intent.Work across machines with identity and policy. + + + +RUFLO · FEDERATIONLocal agents.Shared intent.Work across machines with identity and policy.Ruflo / FederationIdentify the senderApply policyExchange a message + diff --git a/docs/assets/readme/icons/agents.svg b/docs/assets/readme/icons/agents.svg index 07795ff003..9bed50b425 100644 --- a/docs/assets/readme/icons/agents.svg +++ b/docs/assets/readme/icons/agents.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/audit.svg b/docs/assets/readme/icons/audit.svg index 04e174059f..033da17e44 100644 --- a/docs/assets/readme/icons/audit.svg +++ b/docs/assets/readme/icons/audit.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/federation.svg b/docs/assets/readme/icons/federation.svg index 44829c2375..ba68317602 100644 --- a/docs/assets/readme/icons/federation.svg +++ b/docs/assets/readme/icons/federation.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/learning.svg b/docs/assets/readme/icons/learning.svg index 8739d58c61..0b798e2e8b 100644 --- a/docs/assets/readme/icons/learning.svg +++ b/docs/assets/readme/icons/learning.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/memory.svg b/docs/assets/readme/icons/memory.svg index b7354f4f1a..5b84d3d785 100644 --- a/docs/assets/readme/icons/memory.svg +++ b/docs/assets/readme/icons/memory.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/network.svg b/docs/assets/readme/icons/network.svg index 243366e0db..947b76f2ba 100644 --- a/docs/assets/readme/icons/network.svg +++ b/docs/assets/readme/icons/network.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/plugins.svg b/docs/assets/readme/icons/plugins.svg index d59138c9ea..09708794bc 100644 --- a/docs/assets/readme/icons/plugins.svg +++ b/docs/assets/readme/icons/plugins.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/routing.svg b/docs/assets/readme/icons/routing.svg index 6e2ba97072..550ad18009 100644 --- a/docs/assets/readme/icons/routing.svg +++ b/docs/assets/readme/icons/routing.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/security.svg b/docs/assets/readme/icons/security.svg index 0aa410f599..0322373cfc 100644 --- a/docs/assets/readme/icons/security.svg +++ b/docs/assets/readme/icons/security.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/swarm.svg b/docs/assets/readme/icons/swarm.svg index fb54d50f9d..ecf7a2cbf1 100644 --- a/docs/assets/readme/icons/swarm.svg +++ b/docs/assets/readme/icons/swarm.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/terminal.svg b/docs/assets/readme/icons/terminal.svg index 394dd99ccc..08e7eb2704 100644 --- a/docs/assets/readme/icons/terminal.svg +++ b/docs/assets/readme/icons/terminal.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/icons/workers.svg b/docs/assets/readme/icons/workers.svg index a7a8163aa0..15a0539099 100644 --- a/docs/assets/readme/icons/workers.svg +++ b/docs/assets/readme/icons/workers.svg @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/docs/assets/readme/quick-start.svg b/docs/assets/readme/quick-start.svg index 3b745f9438..e4f463069b 100644 --- a/docs/assets/readme/quick-start.svg +++ b/docs/assets/readme/quick-start.svg @@ -1,5 +1,7 @@ -FROM ZERO TO RUFLOChoose a path. Initialize. Start building. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 02Choose a path. Initialize. Start building.01 / INSTALL02 / INITIALIZE03 / BUILDINSTALL / BUILD - - - - \ No newline at end of file + +From zero to Ruflo.Choose a path. Initialize. Start building. + + + +RUFLO · GETTING STARTEDFrom zeroto Ruflo.Choose a path. Initialize. Start building.Ruflo / Getting startedInstall RufloInitialize a projectStart building + diff --git a/docs/assets/readme/rupro-demo.svg b/docs/assets/readme/rupro-demo.svg index 6d3a1db3ae..9d825cf110 100644 --- a/docs/assets/readme/rupro-demo.svg +++ b/docs/assets/readme/rupro-demo.svg @@ -1,35 +1,7 @@ -Try the interactive demo -Plan, run and review a change. - - - - - - - - - - - - - - - -WALKTHROUGH - -Plan, run and review a change - - - +Try the interactive demoTry the interactive demo. Plan, run and review a change. + + + +WALKTHROUGHTry the interactive demoPlan, run and review a change + diff --git a/docs/assets/readme/rupro-explore.svg b/docs/assets/readme/rupro-explore.svg index fe21eba672..2e8749ce80 100644 --- a/docs/assets/readme/rupro-explore.svg +++ b/docs/assets/readme/rupro-explore.svg @@ -1,36 +1,7 @@ -Explore ruPro -Agents, projects and evidence. - - - - - - - - - - - - - - - -EARLY ACCESS - -Agents, projects and evidence - - - - +Explore ruProExplore ruPro. Agents, projects and evidence. + + + +EARLY ACCESSExplore ruProAgents, projects and evidence + diff --git a/docs/assets/readme/support.svg b/docs/assets/readme/support.svg index 19e7b31ee7..33b8656c23 100644 --- a/docs/assets/readme/support.svg +++ b/docs/assets/readme/support.svg @@ -1,5 +1,7 @@ -BUILD WHAT COMES NEXT.Join the people moving the ecosystem forward. Decorative motion, reduced motion supported. Display lettering uses vector outlines.RUFLO / CHAPTER 06Join the people moving the ecosystem forward.01 / CONNECT02 / CONTRIBUTE03 / CREATECONNECT / CREATE - - - - \ No newline at end of file + +Build what comes next.Join the people moving the ecosystem forward. + + + +RUFLO · COMMUNITYBuild whatcomes next.Join the people moving the ecosystem forward.Ruflo / CommunityConnectContributeCreate + diff --git a/docs/assets/readme/theme_artwork.py b/docs/assets/readme/theme_artwork.py index a3d9d444df..a7aeef08e4 100644 --- a/docs/assets/readme/theme_artwork.py +++ b/docs/assets/readme/theme_artwork.py @@ -6,6 +6,8 @@ from pathlib import Path import re import xml.etree.ElementTree as ET +from workspace_panels import render_panel + ROOT = Path(__file__).resolve().parents[3] README = ROOT / "README.md" VIOLET = "#bd9bf8" @@ -31,6 +33,8 @@ def embedded_paths(): yield path def apply_theme(path): + if render_panel(path): + return svg = path.read_text() if 'id="readme-card-trim"' in svg: return diff --git a/docs/assets/readme/workspace_panels.py b/docs/assets/readme/workspace_panels.py new file mode 100644 index 0000000000..0b1d91c4fb --- /dev/null +++ b/docs/assets/readme/workspace_panels.py @@ -0,0 +1,116 @@ +"""Render README panels using the typography and surfaces of the ruPro hero.""" +from html import escape +from xml.etree import ElementTree + +CHAPTERS = { + "console": ("Mission", "control.", "Your team. Every decision in view.", "Run inspector", ["Observe activity", "Inspect evidence", "Review controls"]), + "quick-start": ("From zero", "to Ruflo.", "Choose a path. Initialize. Start building.", "Getting started", ["Install Ruflo", "Initialize a project", "Start building"]), + "capabilities": ("One harness.", "Many minds.", "Teams, memory and tools working together.", "Agent workspace", ["Coordinate agents", "Recall context", "Verify results"]), + "federation": ("Local agents.", "Shared intent.", "Work across machines with identity and policy.", "Federation", ["Identify the sender", "Apply policy", "Exchange a message"]), + "documentation": ("Understand.", "Then build.", "Explore the guides. Inspect the evidence.", "Documentation", ["Explore the guides", "Reproduce a result", "Verify the evidence"]), + "support": ("Build what", "comes next.", "Join the people moving the ecosystem forward.", "Community", ["Connect", "Contribute", "Create"]), +} +ICONS = { + "terminal": "M3 5h18v15H3z M6 9l3 3-3 3m6 0h5", + "grid": "M3 3h7v7H3z M14 3h7v7h-7z M3 14h7v7H3z M14 14h7v7h-7z", + "chat": "M3 4h14v11H8l-5 4z M20 8h2v14l-5-4h-5", + "review": "M7 5H4v16h16V5h-3 M8 3h8v5H8z M8 13l3 3 5-5", + "folder": "M2 6h7l3 3h10v12H2z M7 12v5m4-5v3m4-3v6", + "play": "M6 3l15 9-15 9z", + "download": "M12 3v13m-5-5 5 5 5-5 M3 19v2h18v-2", + "history": "M4 7v5h5 M5 10a8 8 0 1 1 0 6 M12 7v6l4 2", + "memory": "M3 6l9-4 9 4-9 4z M3 11l9 4 9-4 M3 16l9 4 9-4", + "routing": "M3 12h5l5-6h7m-4-3 4 3-4 3 M8 12l5 6h7m-4-3 4 3-4 3", +} +CAPABILITIES = { + "card-swarm": ("Agent teams","Coordinate specialized agents.","Share tasks and context.","chat"), + "card-memory": ("Persistent memory","Retrieve useful context.","Carry knowledge across sessions.","memory"), + "card-learning": ("Learning loops","Capture successful patterns.","Use feedback on future tasks.","history"), + "card-security": ("Security controls","Inspect inputs and tool access.","Keep decisions auditable.","review"), + "card-plugins": ("Plugin ecosystem","Add plugins, skills and tools.","Build the setup your team needs.","grid"), + "card-routing": ("Models and routing","Connect model providers.","Route work through your harness.","routing"), +} +BADGES = {"first-commit":"history","downloads":"download","claude":"chat","codex":"terminal","claude-directory":"grid","chatgpt":"chat"} +ACTIONS = { + "rupro-explore": ("EARLY ACCESS","Explore ruPro","Agents, projects and evidence","folder"), + "rupro-demo": ("WALKTHROUGH","Try the interactive demo","Plan, run and review a change","play"), +} +def text(x,y,label,size,fill="#f6f4fc",weight=400,tracking=0,extra=""): + return f'{escape(label)}' + +def box(x,y,w,h,fill,stroke="none",radius=8): + return f'' + +def icon(x,y,name): + return box(x,y,36,36,"#191626","#514067",9)+f'' + +def chrome(w,h,title,desc,body): + return f''' +{escape(title)}{escape(desc)} + + + +{body} + +''' + +def render_panel(path): + """Return False for content whose original illustration needs a themed frame.""" + n=path.stem + if path.parent.name == "icons" or n.startswith("console-icon-"): + svg=path.read_text() + for old,new in [("#142730","#191626"),("#85dcea","#d1beff"),("#bd9bf8","#d1beff"),('stroke-opacity=".42"','stroke-opacity=".72"')]: + svg=svg.replace(old,new) + path.write_text(svg) + return True + if path.parent.name == "readme" and n in CHAPTERS: + first,second,subtitle,tab,rows=CHAPTERS[n] + body=box(0,0,960,234,"#0c0f14") + body+=text(26,34,"RUFLO · "+tab.upper(),13,"#bca6ff",700,1.6) + body+=text(24,98,first,49,weight=700,tracking=-1.8)+text(24,150,second,49,"url(#heading)",700,-1.8) + body+=text(26,196,subtitle,17,"#b3bdcc") + body+=box(520,10,430,214,"#0d0c14","#3b304f",14) + for x,c in [(537,"#ac817c"),(548,"#c3a66d"),(559,"#83ae97")]: + body+=f'' + body+=text(625,34,"Ruflo / "+tab,13,"#c6bddd")+box(521,46,428,1,"#22202a",radius=0) + for i,row in enumerate(rows): + y=59+i*51 + body+=box(536,y,398,42,"#191626" if i==0 else "#121119","#282631",8) + body+=f'' + body+=text(568,y+27,row,17) + body+=f''+box(854,y+19,56-i*10,4,"#a88bdf",radius=2)+'' + out=chrome(960,234,first+" "+second,subtitle,body) + elif n in CAPABILITIES: + title,first,second,symbol=CAPABILITIES[n] + body=box(1,1,446,153,"#0d0c14","#3b304f",13)+icon(17,17,symbol) + body+=text(68,32,"RUFLO · CAPABILITY",12,"#bca6ff",700,1.4) + body+=text(67,68,title,29,"url(#heading)",700,-.8) + body+=text(68,100,first,17,"#b3bdcc")+text(68,124,second,17,"#b3bdcc") + body+=''+box(68,139,45,2,"#b191ff",radius=1)+'' + out=chrome(448,155,title,first+" "+second,body) + elif n in ACTIONS or (path.parent.name=="badges" and n in BADGES): + source=ElementTree.parse(path).getroot() + tag=lambda x:"{http://www.w3.org/2000/svg}"+x + if n in ACTIONS: + category,title,sub,symbol=ACTIONS[n] + else: + category,title,sub=(e.text for e in source.iter(tag("text"))) + symbol=BADGES[n] + desc=source.findtext(tag("desc")) or sub + if n in ACTIONS or n in {"claude","codex","chatgpt"}: + desc=title+". "+sub+"." + if n=="first-commit": + desc=desc.split(" Rotating 3D icon")[0] + body=box(.5,.5,299,75,"#0d0c14","#3b304f",11)+icon(12,19,symbol) + body+=text(59,19,category,9.4,"#bca6ff",700,1.2) + size=18 if len(title)>18 else 21 + body+=text(58,44,title,size,"url(#heading)",700,-.55) + body+=text(59,63,sub,11,"#b3bdcc") + if n in ACTIONS: + body+='' + body+=''+box(59,70,32,1.5,"#aa8de1",radius=.75)+'' + out=chrome(300,76,title,desc,body) + else: + return False + path.write_text(out) + return True