Skip to content

Revamp interactive prompts with @clack/prompts - #6

Merged
theoephraim merged 2 commits into
mainfrom
claude/clack-prompts
Apr 15, 2026
Merged

Revamp interactive prompts with @clack/prompts#6
theoephraim merged 2 commits into
mainfrom
claude/clack-prompts

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • Replace the hand-rolled readline wrapper (utils/prompt.ts) with @clack/prompts — arrow-key navigation, validation, intro/outro framing, spinners, and clean Ctrl-C cancellation
  • Rewrite bumpy add interactive flow to use clack idioms (multiselect with hints, per-package bump select, cascade flow, p.note summary, p.outro)
  • Wrap bumpy migrate cleanup prompt in intro/outro with a spinner
  • Swap ansispicocolors (clack already brings picocolors transitively, no point bundling two color libs)
  • Decision: keep the hand-rolled cli.ts dispatcher — only 11 commands and 2 are interactive, a CLI framework would be churn

Test plan

  • bun install — clack + picocolors install, ansis removed
  • bun run build — bundles cleanly (~13KB gzipped added for clack)
  • bun test — all 47 tests pass
  • Manual: walk through bumpy add in a fixture monorepo (multiselect, bump select, cascade flow, summary, name, note + outro)
  • Manual: Ctrl-C at each prompt step exits cleanly
  • Manual: non-interactive bumpy add --empty and bumpy add --packages X:patch --message Y still work
  • Manual: bumpy migrate cleanup prompt with spinner

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

🐸 Bumpy Release Plan

1 changeset(s) → 1 package(s) to release

🟡 Minor

Package Change
@varlock/bumpy 0.0.1 → 0.1.0

This comment is maintained by bumpy.

@theoephraim
theoephraim force-pushed the claude/clack-prompts branch from ca4d5d4 to dec583c Compare April 15, 2026 04:58
Replaces the hand-rolled readline wrapper with @clack/prompts for a much
nicer CLI UX — arrow-key navigation, validation, intro/outro framing,
spinners, and clean cancellation. Also swaps ansis for picocolors since
clack already brings picocolors transitively.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theoephraim
theoephraim force-pushed the claude/clack-prompts branch from dec583c to 619bead Compare April 15, 2026 05:18
Updated the version of '@varlock/bumpy' from minor to patch.
@theoephraim
theoephraim merged commit f1bd965 into main Apr 15, 2026
2 checks passed
@theoephraim
theoephraim deleted the claude/clack-prompts branch April 22, 2026 16:07
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