mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(approval): guard env and config overwrites
This commit is contained in:
parent
1cc0bdd5f3
commit
1dfcda4e3c
4 changed files with 68 additions and 1 deletions
|
|
@ -262,6 +262,7 @@ _MAX_TOOL_WORKERS = 8
|
|||
_DESTRUCTIVE_PATTERNS = re.compile(
|
||||
r"""(?:^|\s|&&|\|\||;|`)(?:
|
||||
rm\s|rmdir\s|
|
||||
cp\s|install\s|
|
||||
mv\s|
|
||||
sed\s+-i|
|
||||
truncate\s|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue