Skip to content

refactor(onboarding): wave init delegates to BaselineService (1.3)#1588

Merged
nextlevelshit merged 1 commit into
mainfrom
1578-init-onboarding-service
Apr 29, 2026
Merged

refactor(onboarding): wave init delegates to BaselineService (1.3)#1588
nextlevelshit merged 1 commit into
mainfrom
1578-init-onboarding-service

Conversation

@nextlevelshit
Copy link
Copy Markdown
Collaborator

Summary

  • Rewrite cmd/wave/commands/init.go to delegate through BaselineService (PRE-2) instead of the legacy RunWizard path
  • Delete legacy wizard machinery: onboarding.go, steps.go, flow.go, output.go, scaffold.go, skill_step.go, wave_command_step.go and their tests
  • Keep flavour.go + metadata.go (still used for detection)
  • Adapt validate_test.go to match new init wiring

Related to #1578

Changes

  • cmd/wave/commands/init.go — wizard path replaced by BaselineService call (193→shrunk to delegation)
  • internal/onboarding/onboarding.go, steps.go, flow.go, output.go, scaffold.go, skill_step.go, wave_command_step.go — deleted (~2200 lines of legacy wizard machinery)
  • internal/onboarding/{onboarding,steps,skill_step,wave_command_step}_test.go — deleted (legacy tests)
  • cmd/wave/commands/validate_test.go — adapted for new init signature
  • specs/1578-init-onboarding-service/{spec,plan,tasks}.md — planning artifacts

Test Plan

  • go build ./... passes
  • go test ./... passes
  • wave init non-interactive smoke run on greenfield repo
  • wave init --interactive routes through service

Wire cmd/wave init to onboarding.BaselineService.StartSession instead of
the legacy RunWizard machinery. Delete the wizard step types
(WizardConfig, WizardResult, WizardStep, DependencyStep,
TestConfigStep, PipelineSelectionStep, AdapterConfigStep,
ModelSelectionStep, SkillSelectionStep, WaveCommandStep), the
PrepareWizard / WizardOpts / WizardWaveDirs helpers, and
PrintWizardSuccess. Update validate_test.go to drive BaselineService
for its onboarding fixture.

Interactive prompts are deliberately removed pending the follow-up UI
work in the parent epic — non-interactive --yes / --reconfigure /
--merge behaviour remains intact.

Refs #1578, epic #1565.
@nextlevelshit nextlevelshit merged commit c44433d into main Apr 29, 2026
15 checks passed
@nextlevelshit nextlevelshit deleted the 1578-init-onboarding-service branch April 29, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant