Check a tool argument for injection before passing it through
===================================================================
const { checkShellArg, checkPathArg } = require("./sanitize-tool-args");
checkShellArg(userProvidedValue);   // catches shell metacharacters: ; & | ` $ ( ) < >
checkPathArg(userProvidedValue, "/var/data");  // catches ".." and absolute paths

Use before passing any model- or user-provided value into a shell command, file path, or
similar tool call your agent executes.
