feat(preview): add sandboxed live code previews

Render validated HTML, SVG, JSX, and TSX fences locally while preserving tool context and preventing explanatory JSON from triggering actions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 03:34:19 -05:00
committed by Athena
co-authored by Cursor
parent 42eaed647a
commit 656c14caf3
13 changed files with 3079 additions and 31 deletions
+2
View File
@@ -10,9 +10,11 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"test": "node --test src/preview/jsx-transform.test.js",
"preview": "vite preview"
},
"dependencies": {
"preact": "^10.29.8",
"react": "^19.2.4",
"react-dom": "^19.2.4"
},