mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 13:22:57 +00:00
Empty Nx library at frontend/libs/components/pagescene/ mirroring the @storyteller/ui-pagedraw shape (package.json with development export, tsconfig.lib.json with workspace lib references, vite.config.ts). Defines the platform-abstraction surface PageSceneAdapter: - Generation enqueue (model/provider/prompt/tokens/aspect/resolution) - Scene I/O (saveScene, loadScene, fetchAsset, host CDN/API getters) - Slot renderers for host-owned modals (renderAssetBrowser, renderSceneLoader) - Optional event hooks (onError, onSceneSaved, onSceneTitleChange, onEnqueueMeta, onSelectionChange, onSceneDirty) - Tab-cache integration (cacheJsonString + onSceneSerialized) so the artcraft useTabStore can roundtrip serialized scene JSON without the lib knowing about tabs Library code is empty for now -- file migrations (PageSceneStore + engine + comps + actions + hooks etc.) land in follow-up commits on this branch.