Skip to main content

shape_tool_output

Function shape_tool_output 

Source
pub fn shape_tool_output(output: &str, tool_name: Option<&str>) -> String
Expand description

compress_tool_result for a caller that is no request of this proxy: the output of a host-native tool handed in after it ran (ctx_shape, every tool whose command line is not known).

Such a caller holds no tool list of the host that will read the result, so no expand tool is known to be followable there. The compression runs as a pass that knows no tool (sticky_tools::in_pass), never outside any pass, where the bare name ctx_expand would stand in. Under protection no stub is issued then: the text stays whole with recovery.handle_not_followable, and nothing is stored. Unprotected, the result and its Community tee handle are those of compress_tool_result.