Files
hermes-agent/tools
Maciej Lisiewski 13e2ada325 fix(approval): read write-then-run runs with the pipe sink's launcher grammar
A written cat script run through a path-qualified shell, a launcher with
valued options (sudo -u root, timeout 60), a VAR= prefix, a compound
keyword, ( / { / | starts or `shell < FILE` lost main's hardline and deny
floors. The run matcher now reuses the pipe sink's launcher grammar
with whitespace kept on one line, and `command -v` becomes a post-filter
on the matched span. The launcher table stays in approval_pipe_launchers;
_pipe_launcher_re gains a `ws` parameter defaulting to `\s`, so the pipe
sink's pattern is unchanged. _PIPE_PATH_PREFIX_RE and _PIPE_WRAPPERS_RE
move here from approval_detection.

Refs #140704

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
2026-11-15 22:07:16 +01:00
..