(raw: &str, policy: CodexBundlePolicy)
| 586 | } |
| 587 | |
| 588 | fn codex_plugin_manifest(raw: &str, policy: CodexBundlePolicy) -> Result<String> { |
| 589 | super::plugin_bundle::stamp_manifest_version_with(raw, |manifest| { |
| 590 | if !policy.include_hooks() { |
| 591 | if let Some(object) = manifest.as_object_mut() { |
| 592 | object.remove("hooks"); |
| 593 | } |
| 594 | } |
| 595 | }) |
| 596 | } |
| 597 | |
| 598 | fn codex_plugin_mcp(raw: &str, tracedecay_bin: &str, policy: CodexBundlePolicy) -> Result<String> { |
| 599 | // Reuse the shared command rewrite, then layer the policy's args/env on |
no test coverage detected