Repository navigation
fix(#1256): interactive sequant init uses select prompts; inquirer 14 removed list - #1258
Merged
Merged
Conversation
… removed list All four type: "list" questions (init stack confirm/select/primary, wizard dependency action) become type: "select". New gate tests check every prompt type init and the wizard ask for against the real installed inquirer, since every suite mocks it wholesale. Claude-Session: https://claude.ai/code/session_01VpUo5Vzp2kJErZDRxF24iy Entire-Checkpoint: 39ef54113e03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1256.
What
Interactive
sequant initcrashed in every real terminal on 2.18.0 withUnknownPromptTypeError: Prompt type "list" is not registered. Inquirer 14 removed thelistprompt (it isselect). Four questions used it:src/commands/init.tsprimary-stack, confirm-detected-stack and select-stack promptssrc/lib/wizard.tsmissing-dependency action promptAll four are now
type: "select", with the same choices and no defaults to translate.Why CI missed it
Every suite mocks
inquirerwholesale, so no test ever checked that a prompt type exists. The new gate tests run each interactive path with the mock, collect thetypeof every question asked, and assert each one is registered by the real installed inquirer (vi.importActual("inquirer")). The next removed or renamed prompt type fails CI instead of users.Verification
/verifyunder a real pty in a scratch Next.js repo: the fixed build renders? Detected nextjs project. Is this correct?; published 2.18.0 throws. Evidence on fix(init): interactivesequant initcrashes — inquirer 14 removed thelistprompt type #1256.init.test.ts+wizard.test.ts: 85/85.updateandunmanaged-skill-safetyintegration suites (also mock inquirer): 10/10.tsc --noEmitclean, prettier clean.Mutation records
Mutation-verified: AC-2 — init.ts confirm-detected-stack prompt reverted to type "list"; confirm-detected-stack prompt uses a registered type failed; restored.
Mutation-verified: AC-2 — init.ts select-stack prompt reverted to type "list"; select-stack prompt uses a registered type failed; restored.
Mutation-verified: AC-2 — init.ts primary-stack prompt reverted to type "list"; primary-stack prompt uses a registered type failed; restored.
Mutation-verified: AC-2 — wizard.ts dependency action prompt reverted to type "list"; missing-dependency action prompt uses a registered type failed; restored.
Each mutation failed exactly that one test (84 others passed); tree restored clean after each.
🤖 Generated with Claude Code