@chaggle/dsh-powershell-check: Intercepting Common PowerShell Pitfalls Before pwsh Tool Calls
`@chaggle/dsh-powershell-check` is a DSH plugin designed to address common syntax, encoding, and version compatibility issues in PowerShell invocations. It leverages the `tools/pre-execute` interception point to perform static checks before command execution, directly rejecting calls that hit blocking-level rules and returning a `deny reason` with remediation suggestions, thereby front-loading error feedback and reducing model trial-and-error loops. The plugin offers two modes—`deny` (blocking) and `warn` (logging only)—supports bilingual output in Chinese and English, and includes a built-in rule engine to ensure consistent behavior between the Gate and the CLI. Users can independently check command text or files via the CLI, run self-tests, or install PSScriptAna in the host environment.
Read More