Vibe.Plugins.Safety.Patterns (vibe v0.2.2)

Copy Markdown View Source

Safety checks for potentially destructive commands.

Returns a warning label when a command matches a known dangerous pattern. The caller decides whether to prompt for confirmation or proceed.

Summary

Functions

check_command(command)

@spec check_command(String.t()) :: {:ok, String.t()} | :safe

dangerous?(command)

@spec dangerous?(String.t()) :: boolean()