Skip to main content

Module command_text

Module command_text 

Source
Expand description

Pure command/output text predicates shared by the shell executor, the compression engine and ctx_shell. Moved down from tools/ctx_shell.rs.

Functionsยง

contains_auth_flow
Detects OAuth device code flow output that must not be compressed. Uses a two-tier approach: strong signals match alone (very specific to device code flows), weak signals require a URL/domain in the same output.
normalize_command_for_shell
On Windows cmd.exe, ; is not a valid command separator. Convert cmd1; cmd2 to cmd1 && cmd2 when running under cmd.exe.