WORK-447
ID:WORK-447Status:done

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-3 View source

Criteria completion

Criteria completion: 4 of 4 (100%) 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 5
  1. ecafe59
    Created (done)by bjornolofandersson
  2. c4ba0af
    Content editedby Claude
    feat(create-refrakt): site templates — framework×purpose axis, apply, re
  3. b5d4fcd
    Content editedby Claude
    feat(create-refrakt): plugin scaffold (WORK-449); close ADR-023 wiring (
  4. 0a2f563
    Content editedby Claude
    feat(create-refrakt): --type preset-pack scaffold (WORK-447/448 partial)
  5. a6bdcba
    Content editedby Claude
    plan(v0.25.0): accept specs/ADRs and decompose into 21 work items

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).