pub fn peel_simple_command_loose(cmd: &Command) -> Option<PeeledCommand>Expand description
Looser cousin of peel_simple_command that ignores per-command
redirects, leading variable assignments, and embedded subshells. Used
by crate’s downstream consumers (agent-tools::approval) when the
containing rule has already opted into those shapes via flags like
allow_redirects — at that layer we still want to extract the primary
command name so each pipeline stage can be matched.