main
1export function multiSelectInputPrompt(question: string, suggestions: string[]): string {
2 return `${question}\n\nOptions: ${suggestions.join(", ")}\nEnter one or more choices, separated by commas:`;
3}
4
5export function parseMultiSelectAnswer(answer: string | undefined): string[] {
6 return (answer ?? "")
7 .split(",")
8 .map((selection) => selection.trim())
9 .filter(Boolean);
10}