Files
ruflo/plugins/ruflo-console/tests
rUvandr 4ba353a57f feat(console): native vector pictures on Claude Code Desktop (ADR-546, 0.51.0) (#5075)
* 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>
2026-11-22 21:46:54 -05:00
..
2026-10-07 18:10:29 -04:00