Expand description
Implementation of the BashCommand tool with WCGW parity.
This module provides the implementation for the BashCommand tool, which is used
to execute shell commands, check command status, and interact with the shell.
Matches the behavior of wcgw Python implementation 1:1.
Structs§
- Background
Shell Manager - Manages background shell sessions - matches WCGW Python’s
background_shellsdict - Exited
Shell Info - Snapshot of a background shell that has exited but whose final output has not
yet been consumed by the caller. We keep it around so the next call (typically
a
status_check) can return the trailing output before the entry is gone.
Functions§
- handle_
tool_ call - Handles the
BashCommandtool call with WCGW parity