import type { WizardPrompter } from '../prompter/interface.js';
import type { WizardState, WizardMode } from '../types.js';

export async function modeSelectStage(p: WizardPrompter, state: WizardState): Promise<void> {
  state.mode = await p.select<WizardMode>({
    message: 'Installation mode',
    options: [
      {
        value: 'quick',
        label: 'Quick Start',
        hint: 'Sensible defaults, minimal questions (~2 min)',
      },
      {
        value: 'advanced',
        label: 'Advanced',
        hint: 'Full customization of identity, runtimes, and skills',
      },
    ],
  });
}
