On this page
Form-style TUI wizard for creating new Claude Code profiles.
#claudewheel.wizard
#claudewheel.wizard
Interactive form wizard for creating and configuring new profiles.
#WizardField
Defines a single input field in the profile creation wizard.
#WizardResult
Collected values from a completed profile wizard run.
#_get_field
def _get_field(fields: list[WizardField], label: str) -> WizardFieldLook up a wizard field by its label.
#_validate_name
def _validate_name(name: str, existing_profiles: list[str]) -> str | NoneReturn error message, or None if valid.
#_build_fields
def _build_fields(existing_profiles: list[str]) -> list[WizardField]Build the ordered list of wizard fields.
#_is_advanced_expanded
def _is_advanced_expanded(fields: list[WizardField]) -> boolReturn True when the Advanced toggle is set to show checkboxes.
#_visible_fields
def _visible_fields(fields: list[WizardField]) -> list[WizardField]Return fields that should be rendered based on current Advanced toggle.
#_focusable_indices
def _focusable_indices(fields: list[WizardField]) -> list[int]Return indices into fields that are visible and interactive.
#_build_result
def _build_result(fields: list[WizardField]) -> WizardResultConstruct a WizardResult from current field values.
#_hints_for_field
def _hints_for_field(f: WizardField) -> strReturn context-sensitive keyboard hint text for the given field.
#_render
def _render(term: Terminal, fields: list[WizardField], focus: int, error: str='') -> NoneRender the full wizard form centered in the terminal.
#_cancelled_result
def _cancelled_result() -> WizardResultReturn a cancelled WizardResult with zero-value fields.
#run_profile_wizard
def run_profile_wizard(existing_profiles: list[str]) -> WizardResultRun the form TUI and return the user's choices.
#_load_shared_settings
def _load_shared_settings() -> dictLoad shared-settings.json, falling back to canonical defaults if missing.
#create_profile
def create_profile(result: WizardResult, cfg: ConfigManager) -> NoneExecute the profile creation based on wizard results.