package service import ( "context" "log/slog" "os/exec" "time" ) // shellCommandTimeout is the timeout for shell commands executed by pipes and triggers. const shellCommandTimeout = 30 * time.Second // RunShellCommand executes a shell command via "sh -c" with optional positional args. // When args are provided, "_" occupies $0 and args land in $1, $2, etc. // This is standard POSIX shell behavior for "sh -c