Skip to main content

process_hook_copilot

Function process_hook_copilot 

Source
pub fn process_hook_copilot(input: &str) -> Result<String>
Expand description

Process a hook invocation for GitHub Copilot CLI.

Copilot’s camelCase preToolUse payload carries toolName + toolArgs; the response uses permissionDecision + modifiedArgs, which substitutes the tool arguments wholesale, so unchanged fields are carried over. Shell tools are bash and powershell.