Summary
Add @clack/prompts package to enable interactive prompts and animated spinner functionality in the progress module.
Motivation
- Need spinner support for long-running operations
- Want interactive CLI prompts (text, select, confirm, etc.)
- Enhance user experience with visual feedback
Proposed Implementation
New Files
src/progress/spinner.ts - Spinner wrapper around @clack/prompts
src/progress/prompts.ts - Interactive prompt functions
test/progress/spinner.test.ts - Spinner tests
test/progress/prompts.test.ts - Prompts tests
Modified Files
src/progress/index.ts - Export new functions/types
src/index.ts - Re-export from main entry
package.json - Add @clack/prompts dependency
Features
createSpinner() - Start/stop/error methods for animated spinner
promptText(), promptSelect(), promptConfirm() - Interactive prompts
- Maintains consistency with existing
createProgressIndicator()
- Backward compatible
Tasks
Summary
Add @clack/prompts package to enable interactive prompts and animated spinner functionality in the progress module.
Motivation
Proposed Implementation
New Files
src/progress/spinner.ts- Spinner wrapper around @clack/promptssrc/progress/prompts.ts- Interactive prompt functionstest/progress/spinner.test.ts- Spinner teststest/progress/prompts.test.ts- Prompts testsModified Files
src/progress/index.ts- Export new functions/typessrc/index.ts- Re-export from main entrypackage.json- Add @clack/prompts dependencyFeatures
createSpinner()- Start/stop/error methods for animated spinnerpromptText(),promptSelect(),promptConfirm()- Interactive promptscreateProgressIndicator()Tasks