openpencil/packages
Danila Poyarkov 749d7baec9
feat: show AI agents on the canvas and to collaborators (#803)
* feat(canvas): draw agents' cursors as outlined sparkles

Editor state's remoteCursors becomes presenceCursors with a kind, since the list now includes local agents. People keep the filled arrow; an agent is a sparkle outlined in its owner's color, with an outlined name pill, so whose agent it is reads from the outline. Cursor drawing moves out of the pen overlay into canvas/overlays/presence.ts.

* feat(app): publish AI agent presence to collaborators

The built-in chat now appears as an agent with a callsign while it replies, at the nodes its tools touch on the run's page, and goes idle (off the canvas) when the reply ends. Agents live in a per-document presence registry and are published in their owner's awareness state, so collaborators see each other's agents in the owner's color; the payload is metadata only.

Peer awareness was cast without checks. It is now validated with Valibot, invalid fields are dropped rather than the peer, and names, selections, and agent counts are bounded.

* docs(collaboration): list the agent model among shared presence

* test(vue): a canvas story for presence cursors

Storybook now serves CanvasKit, so a story can render the real canvas:
people's arrows and agents' outlined sparkles, with controls for names,
colors, and zoom.

* feat(canvas): mark agents with a sparkle label instead of a sparkle cursor

A sparkle on its own did not read as a pointer. Agents now point with
the same filled arrow as people, in their owner's color, and their
outlined label starts with a sparkle.
2026-10-03 14:01:36 +04:00
..
cli feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
codegen refactor: print OpenPencil JSX export as syntax trees (#799) 2026-10-01 21:22:43 +04:00
core feat: show AI agents on the canvas and to collaborators (#803) 2026-10-03 14:01:36 +04:00
demos
design-jsx refactor: print OpenPencil JSX export as syntax trees (#799) 2026-10-01 21:22:43 +04:00
docs feat: show AI agents on the canvas and to collaborators (#803) 2026-10-03 14:01:36 +04:00
dom-css refactor: print OpenPencil JSX export as syntax trees (#799) 2026-10-01 21:22:43 +04:00
fig fix(tests): let the app Playwright suite load every spec (#842) 2026-10-03 12:39:53 +04:00
harness docs: route contributors through per-domain guides and ship npm license text (#785) 2026-09-29 01:02:06 +04:00
kiwi refactor(kiwi)!: drop the colorVariableBinding paint field 2026-10-01 23:47:51 +04:00
mcp refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
pen fix(figma-api): validate effects like Figma (#794) 2026-09-30 21:18:20 +04:00
scene-graph fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
vue feat: show AI agents on the canvas and to collaborators (#803) 2026-10-03 14:01:36 +04:00