keyman: replace removed inquirer prompt type 'list' with 'select'

inquirer v10 removed the legacy 'list' prompt in favour of 'select', so
every list-style prompt — starting with the main menu — died with
"Prompt type \"list\" is not registered" on any real run against the
declared ^14 dependency. The tests never saw it because they all mock
inquirer.prompt, which accepts any type string. Choice shapes and the
'default' option are unchanged; 'select' takes them as-is.

Bump to 0.7.2 to ship the fix.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ce5atB2tXDXyz2jd9s1bqE
This commit is contained in:
Benjamin Diedrichsen
2026-09-02 13:50:59 +02:00
co-authored by Claude Opus 5
parent 643d7379ba
commit 568d4c83ff
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ export async function rotateKey(
const { key } = await inquirer.prompt<{ key: string }>([
{
type: 'list',
type: 'select',
name: 'key',
message: 'Select the key to rotate:',
choices: vaultKeys,
@@ -180,7 +180,7 @@ export async function retireKey(sshDir: string, keysDir: string, tmpDir: string)
const { key } = await inquirer.prompt<{ key: string }>([
{
type: 'list',
type: 'select',
name: 'key',
message: 'Select the key to retire:',
choices: vaultKeys,