execpolicy helpers (#7032)

this PR 
- adds a helper function to amend `.codexpolicy` files with new prefix
rules
- adds a utility to `Policy` allowing prefix rules to be added to
existing `Policy` structs

both additions will be helpful as we thread codexpolicy into the TUI
workflow
This commit is contained in:
zhao-oai
2025-12-02 15:05:27 -05:00
committed by GitHub
parent 127e307f89
commit 1d09ac89a1
6 changed files with 336 additions and 35 deletions

1
codex-rs/Cargo.lock generated
View File

@@ -1283,6 +1283,7 @@ dependencies = [
"serde_json",
"shlex",
"starlark",
"tempfile",
"thiserror 2.0.17",
]