test: update bundled setup-entry docker prompt

This commit is contained in:
Peter Steinberger
2026-04-25 21:47:19 +01:00
parent 9d2254be06
commit 90218364b4

View File

@@ -786,11 +786,17 @@ const prompter = {
}
return initialValue ?? true;
},
select: async ({ message }) => {
select: async ({ message, options }) => {
if (message === "Select a channel") {
channelSelectCount += 1;
return channelSelectCount === 1 ? "whatsapp" : "__done__";
}
if (message === "Install WhatsApp plugin?") {
if (!options?.some((option) => option.value === "local")) {
throw new Error(`missing bundled local install option: ${JSON.stringify(options)}`);
}
return "local";
}
if (message === "WhatsApp phone setup") {
return "separate";
}