mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
* feat(console): native vector pictures on surfaces that draw Svg (ADR-546, 0.51.0) On Claude Code Desktop, the editor and the mobile app, the swarm graph, cost gauge, activity/burn sparklines and the BBS neon titles are drawn as native, interactive SVG (isInteractive) instead of the terminal's cells written as SVG: pulsing busy nodes, traffic along edges, a sweeping gauge with ladder ticks, draw-in sparklines, hover tooltips on every node/sample/tick. Motion is CSS only (none at fps 0 or under reduced motion). Settings -> UI -> Desktop pictures (rich|cells, saved). The terminal is unchanged. Security: data only through escapeXml or finite numbers, colours only as validated hex attributes, constant stylesheet, no script/link/image/ foreignObject/external url(), capped at 131072 chars with a cell fallback. Tests: tests/vector-pictures.spec.ts (pure, hostile inputs, size cap, motion gating, determinism, build cost), tests/desktop-rich.test.ts (kit e2e on the desktop and terminal surfaces in all three looks, setting persistence). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(console): gate desktop vectors on host version, fit to pane, loop-only motion (ADR-546) - Draw the vector pictures only on hosts that take Text `weight` (2.1.299+), past the 2.1.289 types that declare Svg `height`/`isInteractive`; an older engine refuses a tree with an unknown prop, so it keeps the cell pictures. - Never draw a vector wider than the cell picture it replaces (the BBS title is fitted beside the nav icons); the viewBox scales it down. - Drop the draw-in/fade/sweep entrance animations: a sparkline or gauge whose data ticks is a new document each time, so they replayed on every tick. Only looping motion remains (pulse, edge traffic, flicker). - Tests: a 2.1.289 host gets cells; the BBS title fits at 110 and 64 columns. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>