Skip to content

feat(#9): Add setup wizard for missing dependencies - #63

Merged
admarble merged 2 commits into
mainfrom
feature/9-add-setup-wizard-for-missing-dependencies
Jan 11, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/9-add-setup-wizard-for-missing-dependencies

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds an interactive setup wizard during sequant init that checks for required dependencies (gh, claude) and optional ones (jq)
  • Displays clear status for each dependency with platform-specific install instructions (brew/apt/choco)
  • Allows skipping with --skip-setup flag or automatically skips in CI environments
  • Continues initialization even when dependencies are missing, showing appropriate warnings

Test plan

  • Unit tests for checkAllDependencies() detecting missing gh/claude
  • Unit tests for shouldRunSetupWizard() with skip flags and CI detection
  • Unit tests for platform-specific getInstallHint() returns
  • Integration tests for wizard prompts and step-by-step flow
  • Test that init completes with warnings when wizard is declined/skipped
  • Manual test: Run sequant init with dependencies missing
  • Manual test: Run sequant init --skip-setup to verify skip behavior

Closes #9

🤖 Generated with Claude Code

Adds an interactive setup wizard during `sequant init` that:
- Checks for required dependencies (gh, claude) and optional ones (jq)
- Displays clear status for each dependency
- Offers guided installation with platform-specific commands
- Allows verification after installation attempts
- Skips automatically in CI or with --skip-setup flag
- Continues init even when dependencies are missing (with warnings)

New files:
- src/lib/wizard.ts - Wizard module with dependency checking and guided setup
- src/lib/wizard.test.ts - Comprehensive tests for wizard functionality

Modified files:
- bin/cli.ts - Added --skip-setup flag to init command
- src/commands/init.ts - Integrated wizard into init flow
- src/lib/system.ts - Added claude to install hints
- Tests updated for new wizard integration

Closes #9

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add input validation to commandExists() to prevent shell injection
- Wrap inquirer prompts in try-catch for graceful degradation
- Add tests for multi-dep wizard flow and verify-failure scenarios
- Add tests for command injection prevention

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 82352ba into main Jan 11, 2026
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.

Add setup wizard for missing dependencies

1 participant