Skip to main content

Module bash_command

Module bash_command 

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

BackgroundShellManager
Manages background shell sessions - matches WCGW Python’s background_shells dict
ExitedShellInfo
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 BashCommand tool call with WCGW parity