block / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block.github.io/goose/
Apache License 2.0
112 stars 17 forks source link

added some regex based checks for dangerous commands #38

Closed Kvadratni closed 1 month ago

Kvadratni commented 1 month ago

This pull request enhances the safety of shell command execution by introducing a check for dangerous commands and updating the notification messages accordingly. The most important changes include adding a utility function to identify dangerous commands, modifying the shell command execution logic to incorporate this check, and adding tests to validate the new functionality.

Safety Enhancements:

Notification Improvements:

Testing:

Import Adjustments: