Skip to main content

Module bash_command

Module bash_command 

Source
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§

BashCommandResult
Human-readable output plus runtime-owned state. Only state drives MCP orchestration; output is presentation and may contain arbitrary child text.
BashCommandState
Machine-readable state of one BashCommand action.

Enums§

BashProcessStatus
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 BashCommand using 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 BashCommand while preserving the runtime-owned typed state.