- Status: Accepted
- Date: 2026-08-12
After Skill playbooks (ADR 0013), the second extension surface is canvas-native UI: toolbar buttons, later export formats / selection chrome. Authors described packs as manifest.json + TypeScript entry (e.g. watermark).
- Phase B = in-process canvas plugins. Packs under
plugins/canvas/<id>/register with a small host API (registerToolbarButton, …). They run in the editor bundle — not a browser sandbox yet. - Host lives in
apps/web/src/plugins/canvas/host.ts; the bottom tool strip renders registered buttons afterensureCanvasPlugins(). - Scene writes go through existing editor store helpers (
spawnCreatedNode,placeTexton the runtime) — plugins must not invent a second document writer. - Sample:
plugins/canvas/watermark— toolbar inserts translucent text. - Out of scope here: sandboxed iframes, remote CDN plugins, Python
handler.pyrunners (Skill Phase next),.recombyn-pluginzip install.
- Same mount story as Skills (
plugins/…at repo root). - Toolbar extensions without editing
EditorToolStripfor every private button. - Clear split: Skills = Agent craft; Canvas plugins = editor UI/tools.
- Trust model = first-party code until a sandbox lands.
- New packs must be wired into
ensureCanvasPlugins()(static import) until a zip installer exists.
- Only Skill
handler.pynext — deferred; canvas UI was the second half of the author’s two-system design. - iframe sandbox first — too heavy for the first mount point.
- docs/canvas-plugins.md
plugins/canvas/README.mdapps/web/src/plugins/canvas/host.ts- ADR 0013