domain/models/text_input_types library
Types for text input handling, vim mode, and command queuing.
Migrated from the Neomage TypeScript types/textInputTypes.ts.
Classes
- BaseInputState
- Common properties shared by all input state variants.
- InlineGhostText
- Inline ghost text shown during mid-input command autocomplete.
- InputPastedContent
- Represents pasted content (text or image) attached to a queued command.
- OrphanedPermission
- A permission result left over from a previous turn that still needs to be resolved.
- PasteState
- Paste buffer state.
- QueuedCommand
- A command queued for deferred execution when the model is busy.
- VimInputState
- State for a vim-mode text input, extending BaseInputState with the current VimMode.
Enums
- MessageOrigin
- Provenance of a queued command or user message.
- PromptInputMode
- Input modes for the prompt.
- QueuePriority
- Priority levels for queued commands.
- VimMode
- Vim editor modes.
Functions
-
getImagePasteIds(
Map< int, InputPastedContent> ? pastedContents) → List<int> ? -
Extract image paste IDs from a QueuedCommand's
pastedContents. -
isValidImagePaste(
InputPastedContent content) → bool -
Returns
truewhencontentrepresents a non-empty image paste.
Typedefs
- TextInputState = BaseInputState
- State for a standard (non-vim) text input.