Expand description
User input: modal dialogs for interactive user prompts. Port of Go’s pkg/userinput/userinput.go.
Provides request/response types for:
- Text input prompts
- Confirmation dialogs
- Checkbox-bearing dialogs
The actual display is handled by the frontend (Tauri webview); this module defines the wire format and a registry for pending requests.
Structs§
- User
Input Handler - Registry for pending user input requests. Routes responses from the frontend back to waiting async tasks.
- User
Input Request - Request for user input, sent to the frontend for display.
Matches Go’s
userinput.UserInputRequestJSON tags. - User
Input Response - Response from the frontend after user interaction.
Matches Go’s
userinput.UserInputResponseJSON tags.
Constants§
- DEFAULT_
TIMEOUT - Default timeout for user input prompts (30 seconds).
- RESPONSE_
TYPE_ CONFIRM - RESPONSE_
TYPE_ TEXT - SSH_
PROMPT_ TIMEOUT - Timeout used for SSH passphrase/password prompts (60 seconds).
Functions§
- wait_
for_ response - Wait for a user input response with timeout.