WORK-447
ID:WORK-447Status:in-progress

create-refrakt --type plugin|template|preset-pack dispatch

create-refrakt --type accepts only site|theme|plan (packages/create-refrakt/src/bin.ts). SPEC-116 §1 extends it with the three distributable kinds and dispatches each to its own scaffolder. This is the thin CLI seam; the scaffolder bodies land in their own work items (plugin, theme, template, preset-pack).

Priority:highComplexity:simpleMilestone:v0.25.0Source:SPEC-116
claude/v0.25.0-impl-2 View source

Criteria completion

Criteria completion: 3 of 4 (75%) checked; tracking started on Jun 24, no incremental history yet0%25%50%75%100%Jun 24Jul 11

Tracking started Jun 24 — check back for trends.

Branches 6
History 1
  1. b5d4fcd
    Created (in-progress)by bjornolofandersson

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