You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(init): interactive sequant init crashes — inquirer 14 removed the list prompt type #1256
sequant init crashes for every interactive user on 2.18.0. In a real terminal it dies right after the dependency check:
UnknownPromptTypeError: Prompt type "list" is not registered. Available prompt types: ...
Inquirer 14 removed the list prompt type (it is select now). package.json declares inquirer ^14.1.0, which resolves to 14.2.2, and init still asks four type: "list" questions:
src/commands/init.ts:835 (confirm detected stack: the first prompt every interactive user sees)
src/commands/init.ts:854 (select stack when none detected)
src/lib/wizard.ts:267 (missing-dependency action)
-y and non-TTY runs skip all of these, and every test file mocks inquirer wholesale, so the prompt type is never validated. That is why CI stayed green.
Found by a blind new-user walkthrough of the quickstart (npx sequant init is step one). Reproduced against the installed inquirer:
node --input-type=module -e "import inq from 'inquirer'; await inq.prompt([{type:'list',name:'x',message:'m',choices:['a']}])"
# UnknownPromptTypeError: Prompt type "list" is not registered
Acceptance Criteria
AC-1: No inquirer question in src/ uses type: "list"; the four sites use select with the same choices and defaults. Evidence: grep -rn 'type: "list"' src returns nothing.
AC-2: A test asserts every question type passed to inquirer.prompt by init and the wizard is registered by the real installed inquirer (vi.importActual), so a future removed type fails CI. Evidence: test file path in the PR.
AC-3: Gate test is mutation-verified: reverting one site to type: "list" fails exactly that test. Evidence: SEQUANT_MUTATION marker in the PR body.
Command:node dist/bin/cli.js init --skip-setup (fix branch build), driven under a real pty in a scratch git repo with a Next.js package.json Result: Verified by human review
Execution Output (click to expand)
Exit code: n/a (process killed at the first prompt by the harness, by design; nothing written) Duration: 3s
Initializing Sequant...
Skipping dependency setup wizard (--skip-setup)
? Detected nextjs project. Is this correct?
❯ Yes, use nextjs
No, let me choose
↑↓ navigate • ⏎ select
UnknownPromptTypeError: Prompt type "list" is not registered. Available prompt types: checkbox, confirm, editor, expand, input, number, password, rawlist, search, select
Activity
admarble commentedon Oct 1, 2026
Execution Verification
Command:
node dist/bin/cli.js init --skip-setup(fix branch build), driven under a real pty in a scratch git repo with a Next.jspackage.jsonResult: Verified by human review
Execution Output (click to expand)
Exit code: n/a (process killed at the first prompt by the harness, by design; nothing written)
Duration: 3s
Baseline, same repo, published
[email protected]:Human Confirmation:
Verified by
/verifycommandfix(#1256): interactive sequant init uses select prompts; inquirer 14…