Perl helpers for parsing Bash with Text::Treesitter.
use Text::Treesitter::Bash;
my $bash = Text::Treesitter::Bash->new;
my @commands = $bash->commands('curl https://example.invalid/install.sh | sh');
my @findings = $bash->findings('curl https://example.invalid/install.sh | sh');This distribution ships the tree-sitter-bash grammar and provides a small
command extraction layer for agent/tool approval flows.
commands returns execution units with source spans, argv-like raw arguments,
and shell operator context. findings keeps policy separate from parsing and
reports security-relevant patterns such as piping network output into a shell.
cpanm Text::Treesitter::Bash