//! Bash command rewriter for hoisted bash. Phase 0 stub; Phase 1 Track B fills in.
//!
//! When the agent calls `bash("grep -n foo src/")`, the rewriter detects this
//! pattern, dispatches internally to AFT's `grep` command, and returns the
//! result with a footer hint nudging the agent to use the `grep` tool directly.
use crateAppContext;
use crateResponse;
/// A `RewriteRule` matches a specific bash invocation pattern and dispatches
/// internally to an AFT tool.
/// Try to rewrite a bash command into an internal AFT tool call.
/// Returns Some(response) if rewritten, None if no rule matched.