Skip to content

Add Questions Library for Terminal Prompts#123

Merged
AndrewRedican merged 18 commits intomainfrom
week-2026-04-13_3
Apr 20, 2026
Merged

Add Questions Library for Terminal Prompts#123
AndrewRedican merged 18 commits intomainfrom
week-2026-04-13_3

Conversation

@AndrewRedican
Copy link
Copy Markdown
Owner

@AndrewRedican AndrewRedican commented Apr 17, 2026

Description

Adds a new @hyperfrontend/questions library providing a terminal prompting API with composable, functional primitives for text input, select, confirm, and multiselect prompts. The library is fully tested and integrated into the docs site and CI pipelines.

Type of Change

✨ Feature
📝 Docs
🔧 Build/Config

Changes Made

  • Add libs/questions library with terminal prompting functions (text, select, confirm, multiselect)
  • Implement functional state machine pattern with immutable state and explicit prompt outcomes
  • Add searchable multiselect with type-to-filter functionality
  • Create E2E test project (apps/package-e2e/questions) for CJS and ESM format validation
  • Add dedicated CI workflow (ci-lib-questions.yml) for the library
  • Update ci-libraries.yml and ci-main.yml to include questions library in change detection and coverage uploads
  • Add questions library page to docs site
  • Update root README to list the new package in Internal Packages
  • Update roadmap documentation with features implementation plan

Testing

  • Comprehensive unit tests covering all prompt types, terminal I/O, and state rendering
  • E2E tests validating CJS and ESM package outputs
  • Browser bundle tests excluded as this is a Node.js-only library using node:readline

Checklist

  • I have performed a self-review of my code
  • I have added/updated tests as needed
  • I have updated relevant documentation
  • I have used npm run commit for conventional commit messages

AI Assistance

GitHub Copilot was used to generate this PR description and large parts of this new questions package.


📝 CLA Requirement

By submitting this pull request, you acknowledge that:

  • You have read and agree to sign our Contributor License Agreement (CLA)
  • The CLA Assistant bot will automatically check your signature status
  • If you haven't signed yet, the bot will provide instructions in the comments
  • By signing, you grant the project maintainer exclusive rights to your contributions

For more information, see our Contributing Guide.


Thank you for contributing to hyperfrontend! 🚀

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-site Ready Ready Preview, Comment Apr 20, 2026 9:50pm

Request Review

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 17, 2026

View your CI Pipeline Execution ↗ for commit bf8b7f2

Command Status Duration Result
nx run-many -t=e2e --projects=@hyperfrontend/wo... ✅ Succeeded 19s View ↗
nx run-many -t=build --projects=@hyperfrontend/... ✅ Succeeded 4m 38s View ↗
nx run-many -t=lint --projects=@hyperfrontend/w... ✅ Succeeded 20s View ↗
nx run-many -t=typecheck --projects=@hyperfront... ✅ Succeeded 16s View ↗
nx run-many -t=test --projects=@hyperfrontend/w... ✅ Succeeded 10s View ↗
nx run-many -t=format:check --projects=@hyperfr... ✅ Succeeded <1s View ↗
nx version-check lib-versioning ✅ Succeeded <1s View ↗
nx version-check lib-questions ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-20 21:57:15 UTC

@AndrewRedican AndrewRedican merged commit 587d0dc into main Apr 20, 2026
15 checks passed
@AndrewRedican AndrewRedican deleted the week-2026-04-13_3 branch April 20, 2026 21:57
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