Studio is implemented as layered packages to support both standalone runtime and host integration.
- Core layer: schema, prompt, and domain types
- Runtime layer: session orchestration and task state mutations
- App layer: standalone app package with CLI scaffolding
- Host layer: Nuxt pages and layout integration in this repository
- @design-to-code/studio-core
- @design-to-code/studio-runtime
- @design-to-code/studio-app
- User requirement enters Studio workbench
- Runtime creates session and run records
- Core prompt/schema utilities transform and validate model outputs
- Host UI renders run state and delivery outputs
- Core must not depend on browser or framework APIs
- Runtime should expose deterministic helpers and state transitions
- Host layer manages useState, localStorage, iframe wiring, and route lifecycle
- Workspace package builds should pass independently
- Nuxt app build should pass with workspace package consumption