Expand description
BashCommand facade and action dispatcher.
Execution, output/status rendering, interactive input, and TUI driving live
in focused submodules under tools/bash_command/.
Re-exports§
pub use super::background_shell::BackgroundShellManager;pub use super::background_shell::ExitedShellInfo;
Structs§
- Bash
Command Result - Human-readable output plus runtime-owned state. Only
statedrives MCP orchestration;outputis presentation and may contain arbitrary child text. - Bash
Command State - Machine-readable state of one
BashCommandaction.
Enums§
- Bash
Process Status - Authoritative process state produced by the shell runtime. It is transported separately from human-readable terminal output, so command text cannot spoof orchestration state by printing Winx-looking markers.
Functions§
- handle_
tool_ call - Handle a
BashCommandusing the embedded runtime. - handle_
tool_ call_ with_ runtime - Backwards-compatible text-only API used by direct library callers.
- handle_
tool_ call_ with_ runtime_ detailed - Execute a
BashCommandwhile preserving the runtime-owned typed state.