pub fn extract_inner_command(cmdline: &str) -> Option<String>Expand description
Unwrap a shell-wrapper cmdline to the user command inside it.
Recognizes the shape claude wraps Bash tool calls in (captured via
ps -axww): /bin/zsh -c source <snapshot> ... && eval '<CMD>' < /dev/null && pwd -P >| /tmp/claude-<hash>-cwd. The inner command is
single-quoted between eval ' and ' < /dev/null. Returns None
when cmdline is not a recognized wrapper (non-shell processes pass
through unchanged at the call site).