Post

Laravel Prompts v0.3.15 is out! A ton of new primitives came out of building the Cloud CLI (+ some unreleased stuff ๐Ÿ‘€), so we decided to bake them in Prompts itself. Let's take a look ๐Ÿงต๐Ÿ‘‡

3 reposts17 likes

Let's start with `task()`: Run long processes with a live-updating spinner, scrolling log output, and stable success, warning, and error messages that stick around. Update the label as the task progresses.

The new `stream()` prompt is for streaming partial text to the terminal. Automatic word wrapping, ANSI support, and a smooth fade-in effect built right in. Perfect for AI responses, real-time logs, or anything that arrives incrementally.

`autocomplete()` gives users type-ahead suggestions while still allowing them to enter any value. Pass a static array or a closure that filters dynamically based on what they've typed. Great for config keys, file paths, or anything where you'd like to save the user some typing.

Select prompts now support a dynamic `info` message. Pass a closure to the new `info` parameter and it receives the currently highlighted value - display pricing details, descriptions, IDs, or any contextual info that updates as the user navigates.