Skip to main content

canonical_command_session_tool_name

Function canonical_command_session_tool_name 

Source
pub fn canonical_command_session_tool_name(
    tool_name: &str,
) -> Option<&'static str>
Expand description

Canonical command-session tool name for a possibly-aliased tool name.

Maps every exec/PTY alias (plus the "bash", "exec", and "container.exec" spellings transcript layers emit) to UNIFIED_EXEC. Pure string match living next to the constants so lower layers (e.g. transcript normalization) can use it without depending on the classifier.