openpencil/packages/docs/programmable
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(cli): export Storybook stories beside many documents (#761) 2026-09-30 22:05:51 +04:00
sdk feat(updater): show download progress while installing an update 2026-09-25 23:15:14 +04:00
ai-chat.md feat: preview streamed JSX on the canvas (#692) 2026-10-01 10:52:36 +04:00
byok-provider-compatibility.md docs(ai): tighten BYOK compatibility probes 2026-08-05 16:23:23 +03:00
collaboration.md feat: show AI agents on the canvas and to collaborators (#803) 2026-10-03 14:01:36 +04:00
index.md feat: export components as Storybook stories (#751) 2026-09-30 03:16:47 +04:00
jsx-renderer.md refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00
mcp-server.md fix(fonts): explain PingFang substitution and draw its CJK text (#781) 2026-09-26 11:14:30 +04:00
native-api.md refactor(design-jsx): extract design JSX into its own package (#793) 2026-09-30 20:55:27 +04:00