Tools::ShellAccess::ShellCommandTool
Inherits Tools::BuiltInFunction < LLM::LocalFunction < LLM::Function < Reference < Object
The ShellCommandTool class defines a tool for executing shell commands within the
current project directory. Note: This implementation assumes a protected environment (e.g., chroot).
Constants
In *nix commands, & is for background execution, so we forbid it.
Class methods
Don't know what the chell command does, so assume anything is possible
Instance methods
Allowed commands can be specified via tool settings in the config file, or
via ENKAIDU_ALLOWED_EXECUTABLES environment variable, with config taking priority.
Approved commands are includes in the allowed commands list.
Approved commands can be specified via tool settings in the config file, or
via ENKAIDU_APPROVED_EXECUTABLES environment variable, with config taking priority.
Additional restricted terms can be specified via tool settings in the config file. Commands are checked if they are present ANYWHERE within.