The 10 highest-frequency add_*_v0 handlers (card_row / metric_row / bottom_nav / section_header / top_nav_bar / heading / body_text / text_button / search_bar / list_row) now dispatch their tree build step to @zseven-w/pen-core's buildX functions. Pre-check, rollback, post-insert verification stay in element-tool-helpers.ts (server invariants — apps/web shim doesn't need them). Zero behavior change: 26 existing pen-mcp handler tests pass unchanged through the refactor. Server output byte-identical to pre-refactor. The value is forward-looking — apps/web client shims (Phase 2) import the same pen-core builders, so the two sides produce identical trees without manual parity maintenance. element-tool-helpers.ts re-exports detectCjkScript / cjkFontFamily from pen-core for backward compat with any external caller. |
||
|---|---|---|
| .. | ||
| agent-native@e1f90cab96 | ||
| pen-acp | ||
| pen-ai-skills | ||
| pen-core | ||
| pen-engine | ||
| pen-figma | ||
| pen-mcp | ||
| pen-react | ||
| pen-renderer | ||
| pen-sdk | ||
| pen-types | ||
| CLAUDE.md | ||