| 927 | } |
| 928 | |
| 929 | function emitQuestion(state: State, kind: QuestionKind = "multi"): void { |
| 930 | const questions = (() => { |
| 931 | if (kind === "single") { |
| 932 | return [ |
| 933 | { |
| 934 | header: "Mode", |
| 935 | question: "Which footer should be the reference for spacing checks?", |
| 936 | options: [ |
| 937 | { label: "Permission", description: "Inspect the permission footer" }, |
| 938 | { label: "Question", description: "Keep this question footer open" }, |
| 939 | { label: "Prompt", description: "Return to the normal composer" }, |
| 940 | ], |
| 941 | multiple: false, |
| 942 | custom: false, |
| 943 | }, |
| 944 | ] |
| 945 | } |
| 946 | |
| 947 | if (kind === "checklist") { |
| 948 | return [ |
| 949 | { |
| 950 | header: "Checks", |
| 951 | question: "Select the direct-mode cases you want to inspect next", |
| 952 | options: [ |
| 953 | { label: "Diff", description: "Show an edit diff in the footer" }, |
| 954 | { label: "Task", description: "Show a structured task summary" }, |
| 955 | { label: "Todo", description: "Show a todo snapshot" }, |
| 956 | { label: "Error", description: "Show an error transcript row" }, |
| 957 | ], |
| 958 | multiple: true, |
| 959 | custom: false, |
| 960 | }, |
| 961 | ] |
| 962 | } |
| 963 | |
| 964 | if (kind === "custom") { |
| 965 | return [ |
| 966 | { |
| 967 | header: "Reply", |
| 968 | question: "What custom answer should appear in the footer preview?", |
| 969 | options: [ |
| 970 | { label: "Short note", description: "Keep the answer to one line" }, |
| 971 | { label: "Wrapped note", description: "Use a longer answer to test wrapping" }, |
| 972 | ], |
| 973 | multiple: false, |
| 974 | custom: true, |
| 975 | }, |
| 976 | ] |
| 977 | } |
| 978 | |
| 979 | return [ |
| 980 | { |
| 981 | header: "Layout", |
| 982 | question: "Which footer view should stay active while testing?", |
| 983 | options: [ |
| 984 | { label: "Prompt", description: "Return to prompt" }, |
| 985 | { label: "Question", description: "Keep question open" }, |
| 986 | ], |