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-20 00:51:29 -05:00
committed by Athena
co-authored by Cursor
parent fe5d18afa7
commit 00bd43d32e
13 changed files with 3084 additions and 28 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"
},