package input import "../picker" Picker_Mode :: enum { None, Models, Sessions, Variants, Files, } File_Choice :: struct { name: string, } Input_Row :: struct { start: int, end: int, // Byte offset after the last rune drawn on this row. length: int, // Display-cell width. } State :: struct { bytes: [dynamic]byte, saved_prompt: []byte, saved_position: int, saved_prompt_valid: bool, len: int, position: int, cursor: uint, cursor_row: int, width: uint, loading: bool, loading_frame: int, command_autocomplete: bool, selected: int, files: [dynamic]File_Choice, skill_commands: [dynamic]string, // Owned slash names; no registry or filesystem dependency. rows: [dynamic]Input_Row, picker: picker.State, picker_mode: Picker_Mode, notice: string, }