openpencil/src
Danila Poyarkov 70c25cddf5 Fix render tool in automation: use ssrLoadModule for JSX transform
The render tool needs esbuild to transform JSX → createElement calls, but
esbuild only runs in Node, not in the browser where the automation server
executes commands. The bridge now:

1. Intercepts render tool calls with JSX
2. Uses Vite's ssrLoadModule to import @open-pencil/core (handles TS source)
3. Transforms JSX → tree on the Node side via buildComponent + resolveToTree
4. Sends the tree to the browser which calls renderTreeNode directly

Also fixes @open-pencil/core exports: remove "node" condition that pointed
to non-existent dist/ during development. Published consumers get dist/ via
publishConfig.exports override.
2026-03-07 20:16:52 +03:00
..
ai Delete re-export shims, import from @open-pencil/core directly 2026-03-06 21:42:56 +03:00
automation Fix render tool in automation: use ssrLoadModule for JSX transform 2026-03-07 20:16:52 +03:00
components Merge branch 'reka-vueuse-refactor' 2026-03-07 14:46:40 +03:00
composables Merge branch 'reka-vueuse-refactor' 2026-03-07 14:46:40 +03:00
engine Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
shims Stub shiki to eliminate 9MB of unused language grammars 2026-03-01 20:05:52 +03:00
stores Delete re-export shims, import from @open-pencil/core directly 2026-03-06 21:42:56 +03:00
utils Refactor mobile drawer: use VueUse composables, unify panels 2026-03-05 22:13:24 +03:00
views Add CLI-to-app RPC bridge for live document access 2026-03-06 22:29:49 +03:00
app.css Fix scrollbar: use utility class instead of global selector 2026-03-04 09:35:30 +03:00
App.vue Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
constants.ts Fix drawer animation: single spring transition, no jump on close 2026-03-06 09:22:03 +03:00
demo.ts Delete re-export shims, import from @open-pencil/core directly 2026-03-06 21:42:56 +03:00
env.d.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
global.d.ts Release v0.3.2 2026-03-02 11:36:18 +03:00
main.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
router.d.ts Move demo to /demo route, add @unhead/vue for title management 2026-03-06 20:54:48 +03:00
router.ts Move demo to /demo route, add @unhead/vue for title management 2026-03-06 20:54:48 +03:00
types.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00