Files
editor/apps/editor/public
Adrian PerezandClaude Opus 4.7 bdb47a6e5d feat(editor): expose useScene on window in dev for MCP-editor bridging
Adds window.__pascalScene = useScene in development builds so that a
running MCP process (which has its own Node-side in-memory store) can
inject a built scene into the browser editor for visual verification:

  fetch('/dev/casa-sol.json')
    .then(r => r.json())
    .then(s => window.__pascalScene.getState().setScene(s.nodes, s.rootNodeIds))

Also ships /public/dev/casa-sol.json as a reference scene — the
artefact exported from the MCP Casa del Sol test build.

Gated behind NODE_ENV !== 'production' so nothing leaks to prod.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 18:38:07 +02:00
..
2026-02-12 10:17:22 +09:00
2026-03-13 09:07:46 +01:00
2026-04-13 23:31:57 -04:00
2026-03-06 13:09:25 +01:00
2026-02-26 22:09:40 -05:00
2026-01-14 09:03:07 +09:00
2026-01-14 09:03:07 +09:00
2026-01-14 09:03:07 +09:00
hub
2026-02-16 14:11:40 +09:00
hub
2026-02-16 14:11:40 +09:00
hub
2026-02-16 14:11:40 +09:00
2026-01-14 09:03:07 +09:00
2026-01-14 09:03:07 +09:00
2026-01-14 09:03:07 +09:00
2026-01-14 09:03:07 +09:00