openpencil/packages
Danila Poyarkov e7e5f53b57 Add CLI-to-app RPC bridge for live document access
- Extract shared RPC command handlers into packages/core/src/rpc/
  (info, pages, tree, find, node, variables, analyze colors/typography/spacing/clusters)
- Add automation bridge (src/automation/bridge.ts) that runs in Vite/Bun process,
  listens on localhost:7600 (HTTP) and :7601 (WebSocket)
- Add browser-side handler (src/automation/server.ts) that connects via WebSocket,
  executes commands against live EditorStore with requestRender()/flashNodes()
- Supports eval, tool execution, and image export via RPC
- Refactor all CLI commands: file arg is now optional — omit it to connect
  to the running app instead of loading a .fig file
- Bearer token auth generated per session, exposed via /health endpoint
- Vite plugin starts the bridge automatically during dev
2026-03-06 22:29:49 +03:00
..
acp Release v0.7.0 2026-03-05 10:32:35 +03:00
cli Add CLI-to-app RPC bridge for live document access 2026-03-06 22:29:49 +03:00
core Add CLI-to-app RPC bridge for live document access 2026-03-06 22:29:49 +03:00
demos feat: mobile layout, PWA support (#27) (#27) 2026-03-05 19:51:51 +03:00
docs Move demo to /demo route, add @unhead/vue for title management 2026-03-06 20:54:48 +03:00
mcp Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00