Milestone: What is the complete scope and status of S205 @libs-structur...
Documentation for Sessions
๐ Milestone: What is the complete scope and status of S205 @libs-structur...
Date: 2026-03-11
Time: 23:38:00 UTC
Session: gspace1-205.7
Agent: angular
Confidence: 95%
Status: โ
Documented
๐ Decision Context
Question:
What is the complete scope and status of S205 @libs-structural/platform-preview library implementation?
Task: Not specified
๐ฏ Decision Made
Chosen:
New NX library @libs-structural/platform-preview created with 30+ files: 3 type models, 7 services (BundlerService, BundlerFilesystemService, PreviewServerService, PreviewBridgeService, ComponentTaggingService, InstantPublishService, PreviewContentService), 2 rspack plugins, 2 config files, 1 Service Worker, 4 UI components. Integrated into vitto-studio dock panels (both Visual and Code layouts), wired with StudioInterconnectionService for deep cross-tool context, bridge events model extended with 8 new message types + 4 payload types. 4 preview modes: static (JSON summary), rspack (in-browser WASM compilation), devserver (ng serve iframe), space (live URL). Backend instant deploy endpoint added. BLOCKER: rspack compilation cannot work until the generation pipeline (S204) produces clean-compiling Angular code โ current generated output has bugs (override without base class, unresolved @libs-core/security imports).
Options Considered:
- Complete the preview end-to-end by fixing the generated platform output
- Stop at infrastructure and fix generation pipeline separately
- Skip rspack, use only devserver mode with ng serve
๐ญ Reasoning
The full preview infrastructure is built and compiles cleanly within gspace1. The Live Preview tab renders in vitto-studio (confirmed via screenshot). Static mode works and shows space data. The rspack compilation pipeline (VFSโmemfsโcompileโSWโiframe) is wired but blocked on the generated code quality. The generation pipeline bugs (override without base class, unresolved @libs-core paths) are root-cause issues in backend-vitto-api's code generation templates โ fixing the generated output would be pointless since the next generation would reproduce the same bugs. The devserver mode was added as a practical middle ground. Next session should fix the generation pipeline to produce compilable Angular 20 code, after which the entire rspack preview pipeline will activate automatically.
๐ Files Involved
libs/libs-structural/platform-preview/src/index.tslibs/libs-structural/vitto-studio/src/lib/services/preview.service.tslibs/libs-structural/vitto-studio/src/lib/services/studio-interconnection.service.tslibs/libs-structural/vitto-studio/src/lib/config/studio-dock-panels.config.tslibs/libs-ux/embeddable-bridge/src/lib/models/bridge-events.model.tsAPIs/backend-vitto-api/src/app/studio/studio-deploy.controller.tstsconfig.base.json
๐ Related
- Decision ID:
dev_1773272280807_2zabz43 - Session: 205
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation