OptionalChoicesAvailable choices (present only for 'select' prompts).
OptionalDefaultDefault value to use if the user presses Enter without input.
Question or instruction to display to the user.
Unique identifier for this prompt (e.g., 'db-host', 'version-select').
Type of input expected from the user.
Callback that the frontend must invoke with the user's answer. Calling this unblocks the engine to continue execution.
Event type discriminator.
Emitted when the engine needs user input during interactive mode.
The frontend must call Resolve with the user's answer to unblock the engine. In
--yesmode, prompts are auto-resolved with defaults and this event is not emitted.Example