Check if stdin has piped data available.
This distinguishes between actual piped input (e.g., echo "query" | cmd)
and non-TTY environments without input (e.g., CI).
Returns boolean
True if stdin is receiving piped data or file redirect, false otherwise.
Check if stdin has piped data available. This distinguishes between actual piped input (e.g.,
echo "query" | cmd) and non-TTY environments without input (e.g., CI).