Skip to main content

apply_patch_paths

Function apply_patch_paths 

Source
pub fn apply_patch_paths(args: &Value) -> Vec<String>
Expand description

Extract file paths from an apply_patch-style tool payload. Codex exposes patch targets as a structured files list or as freeform patch text (patch/input/content), OpenCode as patchText; collect all of them so the guard can deny unknown or out-of-bounds patches before they run.