Skip to main content

Module shell

Module shell 

Source
Expand description

run_shell tool — executes commands through a pluggable ShellBackend.

On desktop the default backend is the real OS shell (NativeShell); on mobile it is the fastshell sandbox engine (FastshellBackend). See backend.rs. Returns a JSON string with {success, returncode, stdout, stderr, command}. Oversized output is archived under .aacode/extracts/.

Re-exports§

pub use super::backend::SharedFastshell as SharedShell;

Structs§

ShellTool

Constants§

DEFAULT_MAX_OUTPUT_CHARS
Default output caps for run_shell (aligned with the Python AACode defaults). full_output=true (or max_output=0) disables them.
DEFAULT_MAX_OUTPUT_LINES