Acceptance Criteria
- Template apply writes the manifest's
site SiteConfig into sites.<key> (sites.default/singular for a new project, sites.<name> for a multi-site add), deep-merged per SPEC-115 - Content/sandbox destinations are derived from (framework starter layout) × (target site key); the package's
content//sandboxes/ are copied in; the resolved contentDir/sandbox.dir are written into the SiteConfig - Deps are derived from
site.plugins + site.theme.package and pinned as live dependencies; content is scaffold-copied (author-owned) - Full-site templates seed a new project or new site only (no overlay onto an existing site — the deferred section case)
--site names a new site; collision with an existing site errors (WORK-446)
Approach
Implement the kind: "site" apply branch over the shared resolver (WORK-445) and the multi-site helpers (WORK-446), using the template.json type (WORK-451). Greenfield runs through create-refrakt; add-a-site runs through the install surface — both share this apply.
Dependencies
- WORK-451 —
template.json type - WORK-445 — shared resolver
- WORK-446 — multi-site
--site + config helpers
References
- SPEC-109 §2, §3; SPEC-110 §4