Acceptance Criteria
--type accepts plugin, template, preset-pack alongside site|theme|plan; site stays the default- Each new kind dispatches to its scaffolder; the existing
--scope plumbing is reused for package naming - An invalid
--type value errors with the full list of valid kinds - Existing
site/theme/plan behaviour is unchanged
Approach
Update flag parsing + the dispatch table in bin.ts. Keep the scaffolder functions in scaffold.ts (or a scaffolders/ split) so each kind's work item can land independently.
References
- SPEC-116 §1
packages/create-refrakt/src/bin.ts, packages/create-refrakt/src/scaffold.ts
Resolution
Completed: 2026-06-24
Branch: claude/v0.25.0-impl-2/-3. create-refrakt --type now accepts site|theme|plan|preset-pack|plugin|template, each dispatched to its scaffolder (scaffoldPresetPack/scaffoldPlugin/scaffoldTheme/scaffoldTemplate), with --scope plumbing and an updated error message + interactive options. Existing site/theme/plan behaviour preserved (verified by bin.test.ts).